From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13435 Path: news.gmane.org!.POSTED!not-for-mail From: argante Newsgroups: gmane.linux.lib.musl.general Subject: Re: using musl-cross-make to build host gcc Date: Sun, 11 Nov 2018 20:00:36 +0000 Message-ID: References: <20181111141331.GB15979@voyager> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1541966328 8484 195.159.176.226 (11 Nov 2018 19:58:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Nov 2018 19:58:48 +0000 (UTC) To: "musl@lists.openwall.com" Original-X-From: musl-return-13451-gllmg-musl=m.gmane.org@lists.openwall.com Sun Nov 11 20:58:44 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1gLvsZ-00025r-Hm for gllmg-musl@m.gmane.org; Sun, 11 Nov 2018 20:58:43 +0100 Original-Received: (qmail 5628 invoked by uid 550); 11 Nov 2018 20:00:52 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 5610 invoked from network); 11 Nov 2018 20:00:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=proton; t=1541966439; bh=FqUGawETpgvsAnMSU9UyrJprutAi5ljJzyh1TwhqlUE=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:Feedback-ID: From; b=Z/RZGPJ3dpkweq8Be85H4UAOYWhgSQiV+m77vtvQdVbrLe60D1qleuMSqjae4bco0 lCRV+fbUBMoHhrGNlHrrnX1jhfjmeRPen5w6D4MXPvnQ4KolX83hfXNzczyzisUZIo nEffm/o82X3qJI2Yaa2jlagcFYsTRrys0pJ10DIBs50bngm5ipcpzyfZj4sVmQJyRV UDUGYx7mHcO5xVEzjSK8/utoZ92leQYJ4UhXZP3IndCJNzhF/S40UitQK0VI50ndRX 1qLrdIvQc7akwoxCGW2pdF0x2O37CBDhJ72gQj7chDutfk7flSIs8Jtxmm4H7PWhJc Rsqj8oZHPZy6Q== In-Reply-To: Feedback-ID: sj1YN_iN560_iv4ir5EpCpCFj2RELVzNnBQpDIwMoUMNXowIBSidTdxSWFyLT3J_uOeJsE1taahISy929bGTAA==:Ext:ProtonMail Xref: news.gmane.org gmane.linux.lib.musl.general:13435 Archived-At: > > cat /tmp/ports/gcc/work/gcc-7.3.0/host-x86_64-linux-musl/gcc/config.log > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > language_hooks=3D'' > > option_includes=3D'' > > > > ----------- > > > > ------------ > > > > 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.lo= g > > 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. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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-plugi= n/config.log ACLOCAL=3D'${SHELL} /tmp/ports/gcc/work/gcc-7.3.0/missing --run aclocal-1.1= 1' AMDEPBACKSLASH=3D'\' AMDEP_FALSE=3D'#' AMDEP_TRUE=3D'' AMTAR=3D'$${TAR-tar}' AR=3D'ar' AUTOCONF=3D'${SHELL} /tmp/ports/gcc/work/gcc-7.3.0/missing --run autoconf' AUTOHEADER=3D'${SHELL} /tmp/ports/gcc/work/gcc-7.3.0/missing --run autohead= er' AUTOMAKE=3D'${SHELL} /tmp/ports/gcc/work/gcc-7.3.0/missing --run automake-1= .11' AWK=3D'awk' CC=3D'x86_64-linux-musl-gcc' CCDEPMODE=3D'depmode=3Dgcc3' CFLAGS=3D'-g' CPP=3D'x86_64-linux-musl-gcc -E' CPPFLAGS=3D'' CYGPATH_W=3D'echo' DEFS=3D'-DHAVE_CONFIG_H' DEPDIR=3D'.deps' DSYMUTIL=3D'' DUMPBIN=3D'' ECHO_C=3D'' ECHO_N=3D'-n' ECHO_T=3D'' EGREP=3D'/usr/bin/grep -E' EXEEXT=3D'' FGREP=3D'/usr/bin/grep -F' GREP=3D'/usr/bin/grep' INSTALL_DATA=3D'/usr/bin/install -c -m 644' INSTALL_PROGRAM=3D'/usr/bin/install -c' INSTALL_SCRIPT=3D'/usr/bin/install -c' INSTALL_STRIP_PROGRAM=3D'$(install_sh) -c -s' LD=3D'ld -m elf_x86_64' LDFLAGS=3D' -s' LIBOBJS=3D'' LIBS=3D'' LIBTOOL=3D'$(SHELL) $(top_builddir)/libtool' LIPO=3D'' LN_S=3D'ln -s' LTLIBOBJS=3D'' MAINT=3D'#' MAINTAINER_MODE_FALSE=3D'' MAINTAINER_MODE_TRUE=3D'#' MAKEINFO=3D'/tmp/ports/gcc/work/gcc-7.3.0/missing makeinfo --split-size=3D5= 000000 --split-size=3D5000000' MKDIR_P=3D'../.././lto-plugin/../install-sh -c -d' NM=3D'nm' NMEDIT=3D'' OBJDUMP=3D'objdump' OBJEXT=3D'o' OTOOL64=3D'' OTOOL=3D'' PACKAGE=3D'lto-plugin' PACKAGE_BUGREPORT=3D'' PACKAGE_NAME=3D'LTO plugin for ld' PACKAGE_STRING=3D'LTO plugin for ld 0.1' PACKAGE_TARNAME=3D'lto-plugin' PACKAGE_URL=3D'' PACKAGE_VERSION=3D'0.1' PATH_SEPARATOR=3D':' RANLIB=3D'ranlib' SED=3D'/usr/bin/sed' SET_MAKE=3D'' SHELL=3D'/bin/sh' STRIP=3D'strip' VERSION=3D'0.1' ac_ct_CC=3D'' ac_ct_DUMPBIN=3D'' ac_lto_plugin_ldflags=3D'-Wc,-static-libgcc' ac_lto_plugin_warn_cflags=3D'-Wall' accel_dir_suffix=3D'' am__EXEEXT_FALSE=3D'' am__EXEEXT_TRUE=3D'#' am__fastdepCC_FALSE=3D'#' am__fastdepCC_TRUE=3D'' am__include=3D'include' am__isrc=3D' -I$(srcdir)' am__leading_dot=3D'.' am__nodep=3D'_no' am__quote=3D'' am__tar=3D'$${TAR-tar} chof - "$$tardir"' am__untar=3D'$${TAR-tar} xf -' bindir=3D'${exec_prefix}/bin' build=3D'x86_64-pc-linux-musl' build_alias=3D'x86_64-linux-musl' build_cpu=3D'x86_64' build_libsubdir=3D'build-x86_64-linux-musl' build_os=3D'linux-musl' build_subdir=3D'build-x86_64-linux-musl' build_vendor=3D'pc' datadir=3D'${datarootdir}' datarootdir=3D'${prefix}/share' docdir=3D'${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir=3D'${docdir}' exec_prefix=3D'${prefix}' gcc_build_dir=3D'../../host-x86_64-linux-musl/gcc' get_gcc_base_ver=3D'cat' host=3D'x86_64-pc-linux-musl' host_alias=3D'x86_64-linux-musl' host_cpu=3D'x86_64' host_os=3D'linux-musl' host_subdir=3D'host-x86_64-linux-musl' host_vendor=3D'pc' htmldir=3D'${docdir}' includedir=3D'${prefix}/include' infodir=3D'${datarootdir}/info' install_sh=3D'${SHELL} /tmp/ports/gcc/work/gcc-7.3.0/install-sh' libdir=3D'${exec_prefix}/lib' libexecdir=3D'${exec_prefix}/libexec' localedir=3D'${datarootdir}/locale' localstatedir=3D'${prefix}/var' lt_host_flags=3D'' mandir=3D'${datarootdir}/man' mkdir_p=3D'$(top_builddir)/../.././lto-plugin/../install-sh -c -d' oldincludedir=3D'/usr/include' pdfdir=3D'${docdir}' prefix=3D'/usr/local' program_transform_name=3D's,y,y,' psdir=3D'${docdir}' real_target_noncanonical=3D'x86_64-linux-musl' sbindir=3D'${exec_prefix}/sbin' sharedstatedir=3D'${prefix}/com' sysconfdir=3D'${prefix}/etc' target=3D'x86_64-pc-linux-musl' target_alias=3D'x86_64-linux-musl' target_cpu=3D'x86_64' target_noncanonical=3D'x86_64-linux-musl' target_os=3D'linux-musl' target_subdir=3D'x86_64-linux-musl' target_vendor=3D'pc' with_libiberty=3D'../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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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=3D'' option_includes=3D'' ## ----------- ## ## 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D and nothing more. This is the first time I have encountered such an error.