Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 11 Nov 2018 20:00:36 +0000
From: argante <argante@...me>
To: "musl@...ts.openwall.com" <musl@...ts.openwall.com>
Subject: Re: using musl-cross-make to build host gcc

> > cat /tmp/ports/gcc/work/gcc-7.3.0/host-x86_64-linux-musl/gcc/config.log
> >
> > ========================================================================
> >
> > language_hooks=''
> > option_includes=''
> >
> > -----------
> >
> > ------------
> >
> > confdefs.h.
> >
> > ------------
> >
> > -----------
> >
> > ------------
> >
> > /* confdefs.h */
> > #define PACKAGE_NAME ""
> > #define PACKAGE_TARNAME ""
> > #define PACKAGE_VERSION ""
> > #define PACKAGE_STRING ""
> > #define PACKAGE_BUGREPORT ""
> > #define PACKAGE_URL ""
> > #define HAVE_SYS_TYPES_H 1
> > #define HAVE_SYS_STAT_H 1
> > #define HAVE_STDLIB_H 1
> > #define HAVE_STRING_H 1
> > #define HAVE_MEMORY_H 1
> > #define HAVE_STRINGS_H 1
> > #define HAVE_INTTYPES_H 1
> > #define HAVE_STDINT_H 1
> > #define HAVE_UNISTD_H 1
> > #define EXTENSIONS 1
> > #define _ALL_SOURCE 1
> > #define _GNU_SOURCE 1
> > #define _POSIX_PTHREAD_SEMANTICS 1
> > #define _TANDEM_SOURCE 1
> > #define SIZEOF_VOID_P 0
> > #define SIZEOF_SHORT 0
> > #define SIZEOF_INT 0
> > #define SIZEOF_LONG 0
> > #define HAVE_LONG_LONG 1
> > configure: exit 77
> > As you can see, the sizeof for types is incorrectly set to 0. config.log
> > does not add anything to what I wrote earlier.
>
> Can you paste the entire config.log somewhere? As Markus said, it
> should contain (earlier in the log) the actual error from gcc, and the
> test program which triggered it.


========================================================================

It was the whole file.

1) lto-plugin (full and correct)


# cat /mnt/vz/tmp/ports/gcc/work/gcc-7.3.0/host-x86_64-linux-musl/lto-plugin/config.log
ACLOCAL='${SHELL} /tmp/ports/gcc/work/gcc-7.3.0/missing --run aclocal-1.11'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AR='ar'
AUTOCONF='${SHELL} /tmp/ports/gcc/work/gcc-7.3.0/missing --run autoconf'
AUTOHEADER='${SHELL} /tmp/ports/gcc/work/gcc-7.3.0/missing --run autoheader'
AUTOMAKE='${SHELL} /tmp/ports/gcc/work/gcc-7.3.0/missing --run automake-1.11'
AWK='awk'
CC='x86_64-linux-musl-gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g'
CPP='x86_64-linux-musl-gcc -E'
CPPFLAGS=''
CYGPATH_W='echo'
DEFS='-DHAVE_CONFIG_H'
DEPDIR='.deps'
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/usr/bin/grep -E'
EXEEXT=''
FGREP='/usr/bin/grep -F'
GREP='/usr/bin/grep'
INSTALL_DATA='/usr/bin/install -c -m 644'
INSTALL_PROGRAM='/usr/bin/install -c'
INSTALL_SCRIPT='/usr/bin/install -c'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD='ld -m elf_x86_64'
LDFLAGS=' -s'
LIBOBJS=''
LIBS=''
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LIPO=''
LN_S='ln -s'
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='/tmp/ports/gcc/work/gcc-7.3.0/missing makeinfo --split-size=5000000 --split-size=5000000'
MKDIR_P='../.././lto-plugin/../install-sh -c -d'
NM='nm'
NMEDIT=''
OBJDUMP='objdump'
OBJEXT='o'
OTOOL64=''
OTOOL=''
PACKAGE='lto-plugin'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='LTO plugin for ld'
PACKAGE_STRING='LTO plugin for ld 0.1'
PACKAGE_TARNAME='lto-plugin'
PACKAGE_URL=''
PACKAGE_VERSION='0.1'
PATH_SEPARATOR=':'
RANLIB='ranlib'
SED='/usr/bin/sed'
SET_MAKE=''
SHELL='/bin/sh'
STRIP='strip'
VERSION='0.1'
ac_ct_CC=''
ac_ct_DUMPBIN=''
ac_lto_plugin_ldflags='-Wc,-static-libgcc'
ac_lto_plugin_warn_cflags='-Wall'
accel_dir_suffix=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE='#'
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=' -I$(srcdir)'
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-pc-linux-musl'
build_alias='x86_64-linux-musl'
build_cpu='x86_64'
build_libsubdir='build-x86_64-linux-musl'
build_os='linux-musl'
build_subdir='build-x86_64-linux-musl'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
gcc_build_dir='../../host-x86_64-linux-musl/gcc'
get_gcc_base_ver='cat'
host='x86_64-pc-linux-musl'
host_alias='x86_64-linux-musl'
host_cpu='x86_64'
host_os='linux-musl'
host_subdir='host-x86_64-linux-musl'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /tmp/ports/gcc/work/gcc-7.3.0/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_host_flags=''
mandir='${datarootdir}/man'
mkdir_p='$(top_builddir)/../.././lto-plugin/../install-sh -c -d'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local'
program_transform_name='s,y,y,'
psdir='${docdir}'
real_target_noncanonical='x86_64-linux-musl'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='x86_64-pc-linux-musl'
target_alias='x86_64-linux-musl'
target_cpu='x86_64'
target_noncanonical='x86_64-linux-musl'
target_os='linux-musl'
target_subdir='x86_64-linux-musl'
target_vendor='pc'
with_libiberty='../libiberty'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "LTO plugin for ld"
#define PACKAGE_TARNAME "lto-plugin"
#define PACKAGE_VERSION "0.1"
#define PACKAGE_STRING "LTO plugin for ld 0.1"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "lto-plugin"
#define VERSION "0.1"
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define __EXTENSIONS__ 1
#define _ALL_SOURCE 1
#define _GNU_SOURCE 1
#define _POSIX_PTHREAD_SEMANTICS 1
#define _TANDEM_SOURCE 1
#define HAVE_DLFCN_H 1
#define LT_OBJDIR ".libs/"
#define HAVE_SYS_WAIT_H 1

configure: exit 0



========================================================================

2) gcc's config.log (error)


# cat /tmp/ports/gcc/work/gcc-7.3.0/host-x86_64-linux-musl/gcc/config.log
language_hooks=''
option_includes=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define __EXTENSIONS__ 1
#define _ALL_SOURCE 1
#define _GNU_SOURCE 1
#define _POSIX_PTHREAD_SEMANTICS 1
#define _TANDEM_SOURCE 1
#define SIZEOF_VOID_P 0
#define SIZEOF_SHORT 0
#define SIZEOF_INT 0
#define SIZEOF_LONG 0
#define HAVE_LONG_LONG 1

configure: exit 77

========================================================================

and nothing more. This is the first time I have encountered such an error.


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.