[Bug bootstrap/28324] boostrapping with gcc fails with unrecognized linker option
--- Comment #7 from multix at gmail dot com 2006-11-08 23:11 --- If I configure with --prefix, as here: # ../gcc-4.1.1/configure --prefix=/usr/multiware --with-gnu-as --with-as=/usr/multiware/bin/as --disable-wchar_t --enable-languages=c,c++,objc I get the following error during build: ./xgcc -B./ -B/usr/multiware/mips-sgi-irix6.5/bin/ -isystem /usr/multiware/mips-sgi-irix6.5/include -isystem /usr/multiware/mips-sgi-irix6.5/sys-include -L/usr/people/multix/gccbuildware/gcc/../ld -O2 -O2 -O -DIN_GCC-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -shared -nodefaultlibs -Wl,-soname,libgcc_s.so.1 -o ./libgcc_s.so.1.tmp libgcc/./_muldi3_s.o libgcc/./_negdi2_s.o libgcc/./_lshrdi3_s.o libgcc/./_ashldi3_s.o libgcc/./_ashrdi3_s.o libgcc/./_cmpdi2_s.o libgcc/./_ucmpdi2_s.o libgcc/./_floatdidf_s.o libgcc/./_floatdisf_s.o libgcc/./_fixunsdfsi_s.o libgcc/./_fixunssfsi_s.o libgcc/./_fixunsdfdi_s.o libgcc/./_fixdfdi_s.o libgcc/./_fixunssfdi_s.o libgcc/./_fixsfdi_s.o libgcc/./_fixxfdi_s.o libgcc/./_fixunsxfdi_s.o libgcc/./_floatdixf_s.o libgcc/./_fixunsxfsi_s.o libgcc/./_fixtfdi_s.o libgcc/./_fixunstfdi_s.o libgcc/./_floatditf_s.o libgcc/./_clear_cache_s.o libgcc/./_enable_execute_stack_s.o libgcc/./_trampoline_s.o libgcc/./__main_s.o libgcc/./_absvsi2_s.o libgcc/./_absvdi2_s.o libgcc/./_addvsi3_s.o libgcc/./_addvdi3_s.o libgcc/./_subvsi3_s.o libgcc/./_subvdi3_s.o libgcc/./_mulvsi3_s.o libgcc/./_mulvdi3_s.o libgcc/./_negvsi2_s.o libgcc/./_negvdi2_s.o libgcc/./_ctors_s.o libgcc/./_ffssi2_s.o libgcc/./_ffsdi2_s.o libgcc/./_clz_s.o libgcc/./_clzsi2_s.o libgcc/./_clzdi2_s.o libgcc/./_ctzsi2_s.o libgcc/./_ctzdi2_s.o libgcc/./_popcount_tab_s.o libgcc/./_popcountsi2_s.o libgcc/./_popcountdi2_s.o libgcc/./_paritysi2_s.o libgcc/./_paritydi2_s.o libgcc/./_powisf2_s.o libgcc/./_powidf2_s.o libgcc/./_powixf2_s.o libgcc/./_powitf2_s.o libgcc/./_mulsc3_s.o libgcc/./_muldc3_s.o libgcc/./_mulxc3_s.o libgcc/./_multc3_s.o libgcc/./_divsc3_s.o libgcc/./_divdc3_s.o libgcc/./_divxc3_s.o libgcc/./_divtc3_s.o libgcc/./_divdi3_s.o libgcc/./_moddi3_s.o libgcc/./_udivdi3_s.o libgcc/./_umoddi3_s.o libgcc/./_udiv_w_sdiv_s.o libgcc/./_udivmoddi4_s.o libgcc/./_pack_sf_s.o libgcc/./_unpack_sf_s.o libgcc/./_addsub_sf_s.o libgcc/./_mul_sf_s.o libgcc/./_div_sf_s.o libgcc/./_fpcmp_parts_sf_s.o libgcc/./_compare_sf_s.o libgcc/./_eq_sf_s.o libgcc/./_ne_sf_s.o libgcc/./_gt_sf_s.o libgcc/./_ge_sf_s.o libgcc/./_lt_sf_s.o libgcc/./_le_sf_s.o libgcc/./_unord_sf_s.o libgcc/./_si_to_sf_s.o libgcc/./_sf_to_si_s.o libgcc/./_negate_sf_s.o libgcc/./_make_sf_s.o libgcc/./_sf_to_df_s.o libgcc/./_sf_to_tf_s.o libgcc/./_thenan_sf_s.o libgcc/./_sf_to_usi_s.o libgcc/./_usi_to_sf_s.o libgcc/./_pack_df_s.o libgcc/./_unpack_df_s.o libgcc/./_addsub_df_s.o libgcc/./_mul_df_s.o libgcc/./_div_df_s.o libgcc/./_fpcmp_parts_df_s.o libgcc/./_compare_df_s.o libgcc/./_eq_df_s.o libgcc/./_ne_df_s.o libgcc/./_gt_df_s.o libgcc/./_ge_df_s.o libgcc/./_lt_df_s.o libgcc/./_le_df_s.o libgcc/./_unord_df_s.o libgcc/./_si_to_df_s.o libgcc/./_df_to_si_s.o libgcc/./_negate_df_s.o libgcc/./_make_df_s.o libgcc/./_df_to_sf_s.o libgcc/./_df_to_tf_s.o libgcc/./_thenan_df_s.o libgcc/./_df_to_usi_s.o libgcc/./_usi_to_df_s.o libgcc/./_pack_tf_s.o libgcc/./_unpack_tf_s.o libgcc/./_addsub_tf_s.o libgcc/./_mul_tf_s.o libgcc/./_div_tf_s.o libgcc/./_fpcmp_parts_tf_s.o libgcc/./_compare_tf_s.o libgcc/./_eq_tf_s.o libgcc/./_ne_tf_s.o libgcc/./_gt_tf_s.o libgcc/./_ge_tf_s.o libgcc/./_lt_tf_s.o libgcc/./_le_tf_s.o libgcc/./_unord_tf_s.o libgcc/./_si_to_tf_s.o libgcc/./_tf_to_si_s.o libgcc/./_negate_tf_s.o libgcc/./_make_tf_s.o libgcc/./_tf_to_df_s.o libgcc/./_tf_to_sf_s.o libgcc/./_thenan_tf_s.o libgcc/./_tf_to_usi_s.o libgcc/./_usi_to_tf_s.o libgcc/./fixtfdi_s.o libgcc/./fixunstfdi_s.o libgcc/./floatditf_s.o libgcc/./floatunditf_s.o libgcc/./unwind-dw2_s.o libgcc/./unwind-dw2-fde_s.o libgcc/./unwind-sjlj_s.o libgcc/./gthr-gnat_s.o libgcc/./unwind-c_s.o -lc && rm -f ./libgcc_s.so && if [ -f ./libgcc_s.so.1 ]; then mv -f ./libgcc_s.so.1 ./libgcc_s.so.1.backup; else true; fi && mv ./libgcc_s.so.1.tmp ./libgcc_s.so.1 && ln -s libgcc_s.so.1 ./libgcc_s.so /usr/multiware/mips-sgi-irix6.5/bin/ld: unrecognized option '-_SYSTYPE_SVR4' /usr/multiware/mips-sgi-irix6.5/bin/ld: use the --help option for usage information collect2: ld returned 1 exit status if I give the SAME configure line but without specifying --prefix, the compiler builds and installs in /usr/local. It builds a simple hello.c program /usr/multiware/mips-sgi-irix6.5/bin/ld is the GNU assembler, ther eis NO assembler in /usr/local/bin the default IRIX ld is in /usr/bin/ld and the GNU assembler is not in the default path. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28324
[Bug bootstrap/28324] boostrapping with gcc fails with unrecognized linker option
--- Comment #6 from multix at gmail dot com 2006-07-17 18:50 --- I removed binutils from /usr/local and created a directory where I will install my own packages. Thus the binutils are now in /usr/multiware (/bin) I configured with ../gcc-4.1.1/configure --with-gnu-as --with-as=/usr/multiware/bin/as --disable-wchar_t --enable-languages=c,c++,objc so to double-assert the assembler type and location I then get this error: e true; fi && mv ./libgcc_s.so.1.tmp ./libgcc_s.so.1 && ln -s libgcc_s.so.1 ./libgcc_s.so ./collect-ld[2]: /usr/local/mips-sgi-irix6.5/bin/ld: not found collect2: ld returned 127 exit status why is gcc still looking in /usr/local for a linker? it does NOT exist there at all. system ld is: % which ld /usr/bin/ld -- multix at gmail dot com changed: What|Removed |Added Status|WAITING |UNCONFIRMED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28324
[Bug bootstrap/28324] boostrapping with gcc fails with unrecognized linker option
--- Comment #4 from multix at gmail dot com 2006-07-12 12:32 --- I already configured using --with-gnu-as but not with --with-gnu-ld. Possibly the two options need to be specified together, that is the gnu assembler needs the gnu linker? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28324
[Bug libstdc++/27878] GCC 4.1.1 build fails on mips-sgi-irix6.5 (libstdc++)/GCC 4.1.0 worked.
--- Comment #26 from multix at gmail dot com 2006-07-12 12:27 --- I have 6.5.17 too. I would propose to either improve the autodetect features or point out that flag in the atchitecture specific page so that other users won't ask. I'm available for testing on my box. I Think I have access to a 6.5.4 box too... but am not sure. SGI says that binaries compiled on different minor releases should be compatible each other, I wonder if a binary packager can safely build on >= 6.5.18 and expect it to work on older boxes too or not... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27878
[Bug libstdc++/27878] GCC 4.1.1 build fails on mips-sgi-irix6.5 (libstdc++)/GCC 4.1.0 worked.
--- Comment #17 from multix at gmail dot com 2006-07-09 12:34 --- as it appears that I am suffering form the same problem, what kind of confirmation do you need? Maybe we have different irix 6.5 subrevisions ? Even if they should all be binary compatible back and forth, later revisions added many improvments, possibly also in the wchar area? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27878
[Bug bootstrap/28324] New: boostrapping with gcc fails with unrecognized linker option
I boostrapped using gcc 3.3 from sgi, usning as configure option ../gcc-4.1.1/configure --with-as=/usr/local/bin/as --enable-languages=c,c++,objc and as make command gmake CFLAGS='-O' LIBCFLAGS='-O2' LIBCXXFLAGS='-O2 -fno-implicit-templates' bootstrap bootstrapping fails with: mv 'libgcc/./tmp-libgcc.map' libgcc/./libgcc.map ./xgcc -B./ -B/usr/local/mips-sgi-irix6.5/bin/ -isystem /usr/local/mips-sgi-irix 6.5/include -isystem /usr/local/mips-sgi-irix6.5/sys-include -L/usr/people/multi x/gcc-gccbuild/gcc/../ld -O2 -O2 -O -DIN_GCC-W -Wall -Wwrite-strings -Wstr ict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -shared -nodefaultlibs -Wl,-soname,l ibgcc_s.so.1 -o ./libgcc_s.so.1.tmp libgcc/./_muldi3_s.o libgcc/./_negdi2_s.o l ibgcc/./_lshrdi3_s.o libgcc/./_ashldi3_s.o libgcc/./_ashrdi3_s.o libgcc/./_cmpdi 2_s.o libgcc/./_ucmpdi2_s.o libgcc/./_floatdidf_s.o libgcc/./_floatdisf_s.o libg cc/./_fixunsdfsi_s.o libgcc/./_fixunssfsi_s.o libgcc/./_fixunsdfdi_s.o libgcc/./ _fixdfdi_s.o libgcc/./_fixunssfdi_s.o libgcc/./_fixsfdi_s.o libgcc/./_fixxfdi_s. o libgcc/./_fixunsxfdi_s.o libgcc/./_floatdixf_s.o libgcc/./_fixunsxfsi_s.o libg cc/./_fixtfdi_s.o libgcc/./_fixunstfdi_s.o libgcc/./_floatditf_s.o libgcc/./_cle ar_cache_s.o libgcc/./_enable_execute_stack_s.o libgcc/./_trampoline_s.o libgcc/ ./__main_s.o libgcc/./_absvsi2_s.o libgcc/./_absvdi2_s.o libgcc/./_addvsi3_s.o l ibgcc/./_addvdi3_s.o libgcc/./_subvsi3_s.o libgcc/./_subvdi3_s.o libgcc/./_mulvs i3_s.o libgcc/./_mulvdi3_s.o libgcc/./_negvsi2_s.o libgcc/./_negvdi2_s.o libgcc/ ./_ctors_s.o libgcc/./_ffssi2_s.o libgcc/./_ffsdi2_s.o libgcc/./_clz_s.o libgcc/ ./_clzsi2_s.o libgcc/./_clzdi2_s.o libgcc/./_ctzsi2_s.o libgcc/./_ctzdi2_s.o lib gcc/./_popcount_tab_s.o libgcc/./_popcountsi2_s.o libgcc/./_popcountdi2_s.o libg cc/./_paritysi2_s.o libgcc/./_paritydi2_s.o libgcc/./_powisf2_s.o libgcc/./_powi df2_s.o libgcc/./_powixf2_s.o libgcc/./_powitf2_s.o libgcc/./_mulsc3_s.o libgcc/ ./_muldc3_s.o libgcc/./_mulxc3_s.o libgcc/./_multc3_s.o libgcc/./_divsc3_s.o lib gcc/./_divdc3_s.o libgcc/./_divxc3_s.o libgcc/./_divtc3_s.o libgcc/./_divdi3_s.o libgcc/./_moddi3_s.o libgcc/./_udivdi3_s.o libgcc/./_umoddi3_s.o libgcc/./_udiv _w_sdiv_s.o libgcc/./_udivmoddi4_s.o libgcc/./_pack_sf_s.o libgcc/./_unpack_sf_s .o libgcc/./_addsub_sf_s.o libgcc/./_mul_sf_s.o libgcc/./_div_sf_s.o libgcc/./_f pcmp_parts_sf_s.o libgcc/./_compare_sf_s.o libgcc/./_eq_sf_s.o libgcc/./_ne_sf_s .o libgcc/./_gt_sf_s.o libgcc/./_ge_sf_s.o libgcc/./_lt_sf_s.o libgcc/./_le_sf_s .o libgcc/./_unord_sf_s.o libgcc/./_si_to_sf_s.o libgcc/./_sf_to_si_s.o libgcc/. /_negate_sf_s.o libgcc/./_make_sf_s.o libgcc/./_sf_to_df_s.o libgcc/./_sf_to_tf_ s.o libgcc/./_thenan_sf_s.o libgcc/./_sf_to_usi_s.o libgcc/./_usi_to_sf_s.o libg cc/./_pack_df_s.o libgcc/./_unpack_df_s.o libgcc/./_addsub_df_s.o libgcc/./_mul_ df_s.o libgcc/./_div_df_s.o libgcc/./_fpcmp_parts_df_s.o libgcc/./_compare_df_s. o libgcc/./_eq_df_s.o libgcc/./_ne_df_s.o libgcc/./_gt_df_s.o libgcc/./_ge_df_s. o libgcc/./_lt_df_s.o libgcc/./_le_df_s.o libgcc/./_unord_df_s.o libgcc/./_si_to _df_s.o libgcc/./_df_to_si_s.o libgcc/./_negate_df_s.o libgcc/./_make_df_s.o lib gcc/./_df_to_sf_s.o libgcc/./_df_to_tf_s.o libgcc/./_thenan_df_s.o libgcc/./_df_ to_usi_s.o libgcc/./_usi_to_df_s.o libgcc/./_pack_tf_s.o libgcc/./_unpack_tf_s.o libgcc/./_addsub_tf_s.o libgcc/./_mul_tf_s.o libgcc/./_div_tf_s.o libgcc/./_fpc mp_parts_tf_s.o libgcc/./_compare_tf_s.o libgcc/./_eq_tf_s.o libgcc/./_ne_tf_s.o libgcc/./_gt_tf_s.o libgcc/./_ge_tf_s.o libgcc/./_lt_tf_s.o libgcc/./_le_tf_s.o libgcc/./_unord_tf_s.o libgcc/./_si_to_tf_s.o libgcc/./_tf_to_si_s.o libgcc/./_ negate_tf_s.o libgcc/./_make_tf_s.o libgcc/./_tf_to_df_s.o libgcc/./_tf_to_sf_s. o libgcc/./_thenan_tf_s.o libgcc/./_tf_to_usi_s.o libgcc/./_usi_to_tf_s.o libgcc /./fixtfdi_s.o libgcc/./fixunstfdi_s.o libgcc/./floatditf_s.o libgcc/./floatundi tf_s.o libgcc/./unwind-dw2_s.o libgcc/./unwind-dw2-fde_s.o libgcc/./unwind-sjlj_ s.o libgcc/./gthr-gnat_s.o libgcc/./unwind-c_s.o -lc && rm -f ./libgcc_s.so && i f [ -f ./libgcc_s.so.1 ]; then mv -f ./libgcc_s.so.1 ./libgcc_s.so.1.backup; els e true; fi && mv ./libgcc_s.so.1.tmp ./libgcc_s.so.1 && ln -s libgcc_s.so.1 ./li bgcc_s.so /usr/local/mips-sgi-irix6.5/bin/ld: unrecognized option '-_SYSTYPE_SVR4' /usr/local/mips-sgi-irix6.5/bin/ld: use the --help option for usage information collect2: ld returned 1 exit status gmake[3]: *** [libgcc_s.so] Error 1 gmake[3]: Leaving directory `/usr/people/multix/gcc-gccbuild/gcc' -- Summary: boostrapping with gcc fails with unrecognized linker option Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned at gcc d
[Bug bootstrap/28323] New: undeclared wcs symbols in libstdc++
The boostrap is done using the MipsPRO compiler. boostrap fails inside the C++ std library with: /usr/people/multix/gcc-build/./gcc/xgcc -shared-libgcc -B/usr/people/multix/gcc-build/./gcc -nostdinc++ -L/usr/people/multix/gcc-build/mips-sgi-irix6.5/libstdc++-v3/src -L/usr/people/multix/gcc-build/mips-sgi-irix6.5/libstdc++-v3/src/.libs -B/usr/local/mips-sgi-irix6.5/bin/ -B/usr/local/mips-sgi-irix6.5/lib/ -isystem /usr/local/mips-sgi-irix6.5/include -isystem /usr/local/mips-sgi-irix6.5/sys-include -I/usr/people/multix/gcc-build/mips-sgi-irix6.5/libstdc++-v3/include/mips-sgi-irix6.5 -I/usr/people/multix/gcc-build/mips-sgi-irix6.5/libstdc++-v3/include -I/usr/people/multix/gcc-4.1.1/libstdc++-v3/libsupc++ -g -O2 -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -c ../../../../gcc-4.1.1/libstdc++-v3/src/codecvt.cc -DPIC -o .libs/codecvt.o /usr/people/multix/gcc-build/mips-sgi-irix6.5/libstdc++-v3/include/cwchar:183: error: '::wcsftime' has not been declared /usr/people/multix/gcc-build/mips-sgi-irix6.5/libstdc++-v3/include/cwchar:194: error: '::wcstok' has not been declared gmake[5]: *** [codecvt.lo] Error 1 gmake[5]: Leaving directory `/usr/people/multix/gcc-build/mips-sgi-irix6.5/libstdc++-v3/src' -- Summary: undeclared wcs symbols in libstdc++ Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: multix at gmail dot com GCC build triplet: mips-sgi-irix6.5 GCC host triplet: mips-sgi-irix6.5 GCC target triplet: mips-sgi-irix6.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28323
[Bug c/26768] New: fixinclude supplied file doesn't declare some constants in float.h
the float.h hader gets just replaced with another version, it doesn't patch the system one. Some constants like #define FP_PLUS_ZERO 2 are thus not defined. I was told that on newer os versions this doesn't get noticed since these are duplicated in math.h which gets patched. -- Summary: fixinclude supplied file doesn't declare some constants in float.h Product: gcc Version: 3.4.5 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: multix at gmail dot com GCC build triplet: powerpc-ibm-aix4.2.1.0 GCC host triplet: powerpc-ibm-aix4.2.1.0 GCC target triplet: powerpc-ibm-aix4.2.1.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26768
[Bug target/26541] std lib problems at link time
--- Comment #3 from multix at gmail dot com 2006-03-09 10:22 --- If I compile 3.4.5 using --disable-shared the problem goes away, thus it is a problem with the shared library. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26541
[Bug bootstrap/26545] undeclared 64bit constants in c-common.c
--- Comment #2 from multix at gmail dot com 2006-03-03 15:48 --- I have the AIX 4.2.1 awk in /usr/bin/awk -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26545
[Bug c++/26541] std lib problems at link time
--- Comment #2 from multix at gmail dot com 2006-03-03 15:47 --- I read those caveats, there are no mentions for Fixes needed for 4.2.1 and since the web-based fix inteface of ibm is for 4.3 and up... without knowing a specific fix number it is impossible to find it on the FTP for < 4.3. config.status recorded the following configure line ../gcc-4.1.0/configure --prefix=/usr/local/gcc410 --enable-threads=aix --disable-nls --enable-languages=c,c++,objc I am running in an unlimited shell and do not have gnu binutils installed. Bootstrap occours using gcc 2.95 since this is the only usable compiler I have. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26541
[Bug bootstrap/26545] New: undeclared 64bit constants in c-common.c
configured with threads=aix, no nls and languages c, c++; objc gcc -c -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.1.0/gcc -I../../gcc-4.1.0/gcc/. -I../../gcc-4.1.0/gcc/../include -I../../gcc-4.1.0/gcc/../libcpp/include ../../gcc-4.1.0/gcc/c-common.c -o c-common.o ../../gcc-4.1.0/gcc/c-common.c: In function `c_common_nodes_and_builtins': ../../gcc-4.1.0/gcc/c-common.c:3167: `TARGET_64BIT' undeclared (first use in this function) ../../gcc-4.1.0/gcc/c-common.c:3167: (Each undeclared identifier is reported only once ../../gcc-4.1.0/gcc/c-common.c:3167: for each function it appears in.) ../../gcc-4.1.0/gcc/c-common.c: In function `c_stddef_cpp_builtins': ../../gcc-4.1.0/gcc/c-common.c:4036: `TARGET_64BIT' undeclared (first use in this function) make[2]: *** [c-common.o] Error 1 -- Summary: undeclared 64bit constants in c-common.c Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: multix at gmail dot com GCC build triplet: powerpc-ibm-aix4.2.1.0 GCC host triplet: powerpc-ibm-aix4.2.1.0 GCC target triplet: powerpc-ibm-aix4.2.1.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26545
[Bug c++/26541] New: std lib problems at link time
compiling a simple c++ program fails. The program is trivial and compiles fine on g++ 2.95 bash-2.01$ g++ hello.c ld: 0711-317 ERROR: Undefined symbol: .std::basic_string, std::allocator >::size() const ld: 0711-317 ERROR: Undefined symbol: .std::basic_string, std::allocator >::operator[](unsigned long) const ld: 0711-317 ERROR: Undefined symbol: __gxx_personality_v0 ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*) ld: 0711-317 ERROR: Undefined symbol: .std::ios_base::Init::Init() ld: 0711-317 ERROR: Undefined symbol: .std::ios_base::Init::~Init() ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status I think the problems I have with 3.36 and 4.0.2 are very similar, but I deinstalled those compilers since they weren't working. -- Summary: std lib problems at link time Product: gcc Version: 3.4.5 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: multix at gmail dot com GCC build triplet: powerpc-ibm-aix4.2.1.0 GCC host triplet: powerpc-ibm-aix4.2.1.0 GCC target triplet: powerpc-ibm-aix4.2.1.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26541
[Bug libstdc++/26297] boostrap fails with invalid cast compiling libstdc++ with --disable-nls on AIX
--- Comment #10 from multix at gmail dot com 2006-02-21 17:00 --- thanks. I fixed the header as you suggest and typed the same boostrap make command again and left it running overninght. I found that gcc had completed build and I installed. Trying to compile a hello world program like #include int main () { std::cout << "hello"; return 0; } yields me g++ hello.c ld: 0711-317 ERROR: Undefined symbol: __gxx_personality_v0 ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*) ld: 0711-317 ERROR: Undefined symbol: .std::ios_base::Init::Init() ld: 0711-317 ERROR: Undefined symbol: .std::ios_base::Init::~Init() ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status I don't think this is now related to the bugs we are discussing here ? Since the gcc 3.04 has known problems too (ld: 0711-317 ERROR: Undefined symbol: std::string::_Rep::_S_max_size) I tried the program with 2.95 and it works. I wonder know if your fix is safe and if it could be integrated in future stable versions of 3.4x and 4.x and that there are other problems to solve instead. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26297
[Bug libstdc++/26297] boostrap fails with invalid cast compiling libstdc++ with --disable-nls on AIX
--- Comment #8 from multix at gmail dot com 2006-02-18 23:04 --- this happens on 3.3.6 too, but I read http://gcc.gnu.org/ml/gcc/2003-10/msg00110.html who was able to build 3.3.1 on an even older system. Differences are that he disabled multilib and shared libraries. I don't see how that could affect me though. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26297
[Bug libstdc++/26297] boostrap fails with invalid cast compiling libstdc++ with --disable-nls on AIX
--- Comment #5 from multix at gmail dot com 2006-02-15 17:04 --- this bug appears to still exist in gcc 4.0.2 (compiled on the same box) /usr/local/build/buildgcc402/gcc/xgcc -shared-libgcc -B/usr/local/build/buildgcc402/gcc/ -nostdinc++ -L/usr/local/build/buildgcc402/powerpc-ibm-aix4.2.1.0/libstdc++-v3/src -L/usr/local/build/buildgcc402/powerpc-ibm-aix4.2.1.0/libstdc++-v3/src/.libs -B/usr/local/gcc402/powerpc-ibm-aix4.2.1.0/bin/ -B/usr/local/gcc402/powerpc-ibm-aix4.2.1.0/lib/ -isystem /usr/local/gcc402/powerpc-ibm-aix4.2.1.0/include -isystem /usr/local/gcc402/powerpc-ibm-aix4.2.1.0/sys-include -I/usr/local/build/buildgcc402/powerpc-ibm-aix4.2.1.0/libstdc++-v3/include/powerpc-ibm-aix4.2.1.0 -I/usr/local/build/buildgcc402/powerpc-ibm-aix4.2.1.0/libstdc++-v3/include -I/usr/local/build/gcc-4.0.2/libstdc++-v3/libsupc++ -g -O2 -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -c c++locale.cc -DPIC -o .libs/c++locale.o c++locale.cc:1: warning: -ffunction-sections may affect debugging on some targets c++locale.cc: In function 'void std::__convert_to_v(const char*, _Tv&, std::_Ios_Iostate&, int* const&) [with _Tv = float]': c++locale.cc:61: error: invalid conversion from 'const char*' to 'char*' c++locale.cc:61: error: initializing argument 1 of 'float strtof(char*, char**)' make[4]: *** [c++locale.lo] Error 1 make[4]: Leaving directory `/usr/local/build/buildgcc402/powerpc-ibm-aix4.2.1.0/libstdc++-v3/src' make[3]: *** [all-recursive] Error 1 -- multix at gmail dot com changed: What|Removed |Added Version|3.4.5 |4.0.2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26297
[Bug bootstrap/26297] boostrap fails with invalid cast cast on AIX
--- Comment #1 from multix at gmail dot com 2006-02-15 08:24 --- configure flags recorded in config.status are: # /home/multix/gcc-3.4.5/configure --prefix=/usr/local/gcc345 --enable-threads= aix --disable-nls --enable-languages=c,c++,objc --with-gcc-version-trigger=/home /multix/gcc-3.4.5/gcc/version.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26297
[Bug bootstrap/26297] New: boostrap fails with invalid cast cast on AIX
/usr/local/build/gcc/xgcc -shared-libgcc -B/usr/local/build/gcc/ -nostdinc++ -L/ usr/local/build/powerpc-ibm-aix4.2.1.0/soft-float/libstdc++-v3/src -L/usr/local/ build/powerpc-ibm-aix4.2.1.0/soft-float/libstdc++-v3/src/.libs -B/usr/local/gcc3 45/powerpc-ibm-aix4.2.1.0/bin/ -B/usr/local/gcc345/powerpc-ibm-aix4.2.1.0/lib/ - isystem /usr/local/gcc345/powerpc-ibm-aix4.2.1.0/include -isystem /usr/local/gcc 345/powerpc-ibm-aix4.2.1.0/sys-include -msoft-float -I/usr/local/build/powerpc-i bm-aix4.2.1.0/soft-float/libstdc++-v3/include/powerpc-ibm-aix4.2.1.0 -I/usr/loca l/build/powerpc-ibm-aix4.2.1.0/soft-float/libstdc++-v3/include -I/home/multix/gc c-3.4.5/libstdc++-v3/libsupc++ -O2 -O -g -O2 -msoft-float -fno-implicit-template s -Wall -W -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffuncti on-sections -fdata-sections -c c++locale.cc -DPIC -o .libs/c++locale.o c++locale.cc:1: warning: -ffunction-sections may affect debugging on some target s c++locale.cc: In function `void std::__convert_to_v(const char*, _Tv&, std::_Ios _Iostate&, int* const&) [with _Tv = float]': c++locale.cc:61: error: invalid conversion from `const char*' to `char*' c++locale.cc:61: error: initializing argument 1 of `float strtof(char*, char**)' make[7]: *** [c++locale.lo] Error 1 make[7]: Leaving directory `/usr/local/build/powerpc-ibm-aix4.2.1.0/soft-float/libstdc++-v3/src' -- Summary: boostrap fails with invalid cast cast on AIX Product: gcc Version: 3.4.5 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: multix at gmail dot com GCC build triplet: powerpc-ibm-aix4.2.1.0 GCC host triplet: powerpc-ibm-aix4.2.1.0 GCC target triplet: powerpc-ibm-aix4.2.1.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26297
[Bug target/26275] boostrap fails with undefined symbol when linking java front-end
--- Comment #2 from multix at gmail dot com 2006-02-14 15:44 --- well, indeed I used ../gcc-4.0.2/configure --prefix=/usr/local/gcc402 --enable-threads=aix --disable-nls --enable-shared --with-cpu=powerpc --with-gcc-version-trigger=/usr/local/build/gcc-4.0. 2/gcc/version.c --enable-languages=c,c++,java,objc I will try without java and see if bootstrap ends. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26275
[Bug bootstrap/15226] [AIX 4.2.1] bootstrap failure in collect2.c: parse error before "FILHDR"
--- Comment #3 from multix at gmail dot com 2006-02-14 11:05 --- this is still broken in both gcc 3.4.5 and gcc 4.0.2 on aix 4.2.1 (well, it is marked as wontfix, thus it was to be expected) -- multix at gmail dot com changed: What|Removed |Added CC||multix at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15226
[Bug bootstrap/26275] New: boostrap fails with undefined symbol
rm -f jcf-dump stage1/xgcc -Bstage1/ -B/usr/local/gcc402/powerpc-ibm-aix4.2.1.0/bin/ -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -DHAVE_CONFIG_H -o jcf-dump java/jcf-dump.o java/jcf-io.o java/jcf-depend.o java/jcf-path.o java/win32-host.o java/zextract.o errors.o version.o ggc-none.o intl.o \ -L../zlib -lz ../libcpp/libcpp.a -liconv ../libiberty/libiberty.a ld: 0711-317 ERROR: Undefined symbol: .__set_errno128 ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status make[2]: *** [jcf-dump] Error 1 make[2]: Leaving directory `/usr/local/build/buildgcc402/gcc' -- Summary: boostrap fails with undefined symbol Product: gcc Version: 4.0.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: multix at gmail dot com GCC build triplet: powerpc-ibm-aix4.2.1 GCC host triplet: powerpc-ibm-aix4.2.1 GCC target triplet: powerpc-ibm-aix4.2.1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26275