mailing list of musl libc
 help / color / mirror / code / Atom feed
From: argante <argante@pm.me>
To: "musl@lists.openwall.com" <musl@lists.openwall.com>
Subject: Re: using musl-cross-make to build host gcc
Date: Sun, 11 Nov 2018 20:00:36 +0000	[thread overview]
Message-ID: <yyoJYMkaEkfEbKNeXXzRrlhgA1G4vqJCCCVdupGc1-HuHqKOL9RfxIyJhv2-4ypHdSAfg0cLazriT-wY-lleSw==@pm.me> (raw)
In-Reply-To: <CAGw6cBvYRkQ2ait-L32K7F=bUdyZbVQW9Nw91LWae2uj2XJK-g@mail.gmail.com>

> > 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.




  reply	other threads:[~2018-11-11 20:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-11 11:11 argante
2018-11-11 14:13 ` Markus Wichmann
2018-11-11 14:23   ` argante
2018-11-11 19:39     ` argante
2018-11-11 19:46     ` Michael Forney
2018-11-11 20:00       ` argante [this message]
2018-11-11 21:13         ` Michael Forney
2018-11-11 21:39           ` argante

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='yyoJYMkaEkfEbKNeXXzRrlhgA1G4vqJCCCVdupGc1-HuHqKOL9RfxIyJhv2-4ypHdSAfg0cLazriT-wY-lleSw==@pm.me' \
    --to=argante@pm.me \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).