https://sourceware.org/bugzilla/show_bug.cgi?id=32943
Bug ID: 32943 Summary: libgprofng.so: undefined reference to `std::ios_base_library_init()' Product: binutils Version: 2.43 Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: zohran.londais at gmail dot com Target Milestone: --- Created attachment 16073 --> https://sourceware.org/bugzilla/attachment.cgi?id=16073&action=edit Full build log Hi guys, I am developing my own Linux distribution, I am working on a new kind of package manager for Linux over 4 years now. I am seeking your help because recently I started to face this issue when I try to build binutils 2.43. Just to let you know, my package manager build everything from zero, it mean I built before a cross toolchain. I guess the problem came from how I built the cross toolchain, but I can't find where is the problem. This is the error I get: sr/lib/gcc/x86_64-unknown-linux-gnu/14.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: ./.libs/libgprofng.so: undefined reference to `std::ios_base_library_init()' /usr/lib/gcc/x86_64-unknown-linux-gnu/14.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: ./.libs/libgprofng.so: undefined reference to `std::ios_base_library_init()' collect2: error: ld returned 1 exit status /usr/lib/gcc/x86_64-unknown-linux-gnu/14.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: ./.libs/libgprofng.so: undefined reference to `std::ios_base_library_init()' collect2: error: ld returned 1 exit status collect2: error: ld returned 1 exit status make[5]: *** [Makefile:696: gp-archive] Error 1 make[5]: *** Waiting for unfinished jobs.... make[5]: *** [Makefile:712: gprofng] Error 1 make[5]: *** [Makefile:700: gp-collect-app] Error 1 /usr/lib/gcc/x86_64-unknown-linux-gnu/14.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: ./.libs/libgprofng.so: undefined reference to `std::ios_base_library_init()' collect2: error: ld returned 1 exit status make[5]: *** [Makefile:704: gp-display-src] Error 1 make[4]: *** [Makefile:573: all] Error 2 make[5]: Leaving directory '/sources/ProgrammingTools-Main/Binutils/2.43.0/Sources/mainBuild/gprofng/src' make[4]: Leaving directory '/sources/ProgrammingTools-Main/Binutils/2.43.0/Sources/mainBuild/gprofng/src' make[3]: *** [Makefile:472: all-recursive] Error 1 make[3]: Leaving directory '/sources/ProgrammingTools-Main/Binutils/2.43.0/Sources/mainBuild/gprofng' make[2]: *** [Makefile:404: all] Error 2 make[2]: Leaving directory '/sources/ProgrammingTools-Main/Binutils/2.43.0/Sources/mainBuild/gprofng' make[1]: *** [Makefile:7658: all-gprofng] Error 2 make[1]: *** Waiting for unfinished jobs.... CXXLD ld-new CXXLD incremental-dump make[4]: Leaving directory '/sources/ProgrammingTools-Main/Binutils/2.43.0/Sources/mainBuild/gold' make[3]: Leaving directory '/sources/ProgrammingTools-Main/Binutils/2.43.0/Sources/mainBuild/gold' make[2]: Leaving directory '/sources/ProgrammingTools-Main/Binutils/2.43.0/Sources/mainBuild/gold' make[1]: Leaving directory '/sources/ProgrammingTools-Main/Binutils/2.43.0/Sources/mainBuild' make: *** [Makefile:1028: all] Error 2 [ [31mInstaller failure[0m ] Class: [31mSoftware[0m Function: [31mbuild[0m [31mInstallation task failed[0m The [35mbuild[0m process failed for [35m@ProgrammingTools-Main:Binutils[0m /[38;2;255;100;100m2.43.0[0m/ Exception: [31mNil assertion failed[0m Exit code: [31m1[0m [31m[31mISM raised that error because the ran script did not call properly a system command or the system command itself need to be fix.[0m[0m I will attach the full log. By the way, the link to my project too: https://github.com/fulgurance/ism -- You are receiving this mail because: You are on the CC list for the bug.