From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B1D813857425; Fri, 28 Oct 2022 16:18:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B1D813857425 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666973903; bh=RcnNnfjU6KOdVBxOHzZWZoWxNS2WJ7RTHZsAdnox/fw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=f5ZIqEiJvWZtMmv3fjdl6hge3kqkA+Lg4WPAtDO/HYVg3b3jVcu0SB0elLGDm6nw3 9OVBrT0xCFc3tFHH7ISs4bA5G+i0NCId+nxZR831vLTp+Ph0e7w3z4Oh3/0p3qjjYe Z5+9QsPKZNFK/IesDoUSnmZ62XK7u+LrtZDCyzEE= From: "james.hilliard1 at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/29621] librtld.os: in function `__register_frame': libgcc/unwind-dw2-fde.c:136: undefined reference to `malloc' Date: Fri, 28 Oct 2022 16:18:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.36 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: james.hilliard1 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29621 --- Comment #14 from James Hilliard --- > So now I even more confident it is something on buildroot environment that > is generating a wrong stage1 gcc build. You can see the exact env being set during buildroot's configure stage and = copy that for testing: >>> host-gcc-initial 11.3.0 Configuring mkdir -p /tmp/buildroot/output/build/host-gcc-initial-11.3.0/build ln -sf ../configure /tmp/buildroot/output/build/host-gcc-initial-11.3.0/build/configure (cd /tmp/buildroot/output/build/host-gcc-initial-11.3.0/build && rm -rf config.cache; PATH=3D"/tmp/buildroot/output/host/bin:/tmp/buildroot/output/host/sbin:/hom= e/buildroot/bin:/home/buildroot/.local/bin:/home/buildroot/bin:/usr/local/s= bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/game= s:/snap/bin" PKG_CONFIG=3D"/tmp/buildroot/output/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR=3D"/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=3D1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=3D1 PKG_CONFIG_LIBDIR=3D"/tmp/buildroot/output/host/lib/pkgconfig:/tmp/buildroo= t/output/host/share/pkgconfig" AR=3D"/usr/bin/ar" AS=3D"/usr/bin/as" LD=3D"/usr/bin/ld" NM=3D"/usr/bin/nm" CC=3D"/usr/bin/gcc" GCC=3D"/usr/bin/gcc" CXX=3D"/usr/bin/g++" CPP=3D"/usr/b= in/cpp" OBJCOPY=3D"/usr/bin/objcopy" RANLIB=3D"/usr/bin/ranlib" CPPFLAGS=3D"-I/tmp/buildroot/output/host/include" CFLAGS=3D"-O2 -I/tmp/buildroot/output/host/include" CXXFLAGS=3D"-O2 -I/tmp/buildroot/output/host/include" LDFLAGS=3D"-L/tmp/buildroot/output/ho= st/lib -Wl,-rpath,/tmp/buildroot/output/host/lib" INTLTOOL_PERL=3D/usr/bin/perl CFLAGS=3D"-O2 -I/tmp/buildroot/output/host/include" LDFLAGS=3D"-L/tmp/buildroot/output/host/lib -Wl,-rpath,/tmp/buildroot/output/host/lib" MAKEINFO=3Dmissing CFLAGS_FOR_TARGET=3D"-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=3D64 -O0 -g0 " CXXFLAGS_FOR_TARGET=3D"-D_LARGEFILE_SOU= RCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=3D64 -O0 -g0 " AR_FOR_TARGET=3Dg= cc-ar NM_FOR_TARGET=3Dgcc-nm RANLIB_FOR_TARGET=3Dgcc-ranlib CONFIG_SITE=3D/dev/nu= ll ./configure --prefix=3D"/tmp/buildroot/output/host" --sysconfdir=3D"/tmp/buildroot/output/host/etc" --localstatedir=3D"/tmp/buildroot/output/host/var" --enable-shared --disable-static --disable-gtk-doc --disable-gtk-doc-html --disable-doc --disable-docs --disable-documentation --disable-debug --with-xmlto=3Dno --with-fop=3Dno --disable-nls --disable-dependency-tracking=20 --target=3Dmipsel-buildroot-linux-gnu --with-sysroot=3D/tmp/buildroot/output/host/mipsel-buildroot-linux-gnu/sysr= oot --enable-__cxa_atexit --with-gnu-ld --disable-libssp --disable-multilib --disable-decimal-float --enable-plugins --enable-lto --with-gmp=3D/tmp/buildroot/output/host --with-mpc=3D/tmp/buildroot/output/= host --with-mpfr=3D/tmp/buildroot/output/host --with-pkgversion=3D"Buildroot 2022.08-383-ge4ecf82f99" --with-bugurl=3D"http://bugs.buildroot.net/" --without-zstd --disable-libquadmath --disable-libquadmath-support --enable= -tls --enable-threads --without-isl --without-cloog --with-arch=3D"mips32r3" --with-abi=3D"32" --with-nan=3D"legacy" --with-fp-32=3D"xx" --enable-langua= ges=3Dc --disable-shared --without-headers --disable-threads --with-newlib --disable-largefile ) Something different with the buildroot compilation environmental variables seems to be why your build is working. If you set them manually when running ./configure one gets the same failure as when building using buildroot. This fails for example: PATH=3D"/tmp/buildroot/output/host/bin:/tmp/buildroot/output/host/sbin:/hom= e/buildroot/bin:/home/buildroot/.local/bin:/home/buildroot/bin:/usr/local/s= bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/game= s:/snap/bin" PKG_CONFIG=3D"/tmp/buildroot/output/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR=3D"/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=3D1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=3D1 PKG_CONFIG_LIBDIR=3D"/tmp/buildroot/output/host/lib/pkgconfig:/tmp/buildroo= t/output/host/share/pkgconfig" AR=3D"/usr/bin/ar" AS=3D"/usr/bin/as" LD=3D"/usr/bin/ld" NM=3D"/usr/bin/nm" CC=3D"/usr/bin/gcc" GCC=3D"/usr/bin/gcc" CXX=3D"/usr/bin/g++" CPP=3D"/usr/b= in/cpp" OBJCOPY=3D"/usr/bin/objcopy" RANLIB=3D"/usr/bin/ranlib" CPPFLAGS=3D"-I/tmp/buildroot/output/host/include" CFLAGS=3D"-O2 -I/tmp/buildroot/output/host/include" CXXFLAGS=3D"-O2 -I/tmp/buildroot/output/host/include" LDFLAGS=3D"-L/tmp/buildroot/output/ho= st/lib -Wl,-rpath,/tmp/buildroot/output/host/lib" INTLTOOL_PERL=3D/usr/bin/perl CFLAGS=3D"-O2 -I/tmp/buildroot/output/host/include" LDFLAGS=3D"-L/tmp/buildroot/output/host/lib -Wl,-rpath,/tmp/buildroot/output/host/lib" MAKEINFO=3Dmissing CFLAGS_FOR_TARGET=3D"-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=3D64 -O0 -g0 " CXXFLAGS_FOR_TARGET=3D"-D_LARGEFILE_SOU= RCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=3D64 -O0 -g0 " AR_FOR_TARGET=3Dg= cc-ar NM_FOR_TARGET=3Dgcc-nm RANLIB_FOR_TARGET=3Dgcc-ranlib CONFIG_SITE=3D/dev/nu= ll ./configure --prefix=3D/tmp/buildroot/output/host --sysconfdir=3D/tmp/buildroot/output/host/etc --localstatedir=3D/tmp/buildroot/output/host/var --disable-gtk-doc --disable-gtk-doc-html --disable-doc --disable-docs --disable-documentation --disable-debug --with-xmlto=3Dno --with-fop=3Dno --disable-nls --disable-dependency-tracking --target=3Dmipsel-buildroot-linux-gnu --with-sysroot=3D/tmp/buildroot/output/host/mipsel-buildroot-linux-gnu/sysr= oot --with-gnu-ld --disable-libssp --disable-multilib --disable-decimal-float --with-gmp=3D/tmp/buildroot/output/host --with-mpc=3D/tmp/buildroot/output/= host --with-mpfr=3D/tmp/buildroot/output/host --with-pkgversion=3D"Buildroot 2022.08-383-ge4ecf82f99-dirty" --with-bugurl=3Dhttp://bugs.buildroot.net/ --without-zstd --disable-libquadmath --disable-libquadmath-support --without-isl --without-cloog --with-arch=3Dmips32r3 --with-abi=3D32 --with-nan=3Dlegacy --with-fp-32=3Dxx --enable-languages=3Dc --enable-initf= ini-array --disable-libssp --disable-shared --without-headers --disable-threads --disable-libatomic --disable-decimal-float --disable-libffi --disable-libg= omp --disable-libitm --disable-libmpx --disable-libquadmath --disable-libsaniti= zer --with-newlib --=20 You are receiving this mail because: You are on the CC list for the bug.=