gcc-4.1 RC1 (20060219) fails to create libstdc++-symbol.explist on powerpc-apple-darwin7 with the following error message:
nm -P .libs/bitmap_allocator.o .libs/pool_allocator.o .libs/mt_allocator.o .libs/codecvt.o .libs/compatibility.o .libs/complex_io.o .libs/ctype.o .libs/debug.o .libs/debug_list.o .libs/functexcept.o .libs/globals_locale.o .libs/globals_io.o .libs/ios.o .libs/ios_failure.o .libs/ios_init.o .libs/ios_locale.o .libs/limits.o .libs/list.o .libs/locale.o .libs/locale_init.o .libs/locale_facets.o .libs/localename.o .libs/stdexcept.o .libs/strstream.o .libs/tree.o .libs/allocator-inst.o .libs/concept-inst.o .libs/fstream-inst.o .libs/ext-inst.o .libs/ios-inst.o .libs/iostream-inst.o .libs/istream-inst.o .libs/istream.o .libs/locale-inst.o .libs/locale-misc-inst.o .libs/misc-inst.o .libs/ostream-inst.o .libs/sstream-inst.o .libs/streambuf-inst.o .libs/streambuf.o .libs/string-inst.o .libs/valarray-inst.o .libs/wlocale-inst.o .libs/wstring-inst.o .libs/atomicity.o .libs/codecvt_members.o .libs/collate_members.o .libs/ctype_members.o .libs/messages_members.o .libs/monetary_members.o .libs/numeric_members.o .libs/time_members.o .libs/basic_file.o .libs/c++locale.o ../libmath/.libs/libmath.a ../libsupc++/.libs/libsupc++convenience.a|nm: invalid argument -P Usage: nm [-agnoprumxjl[s segname sectname] [-] [[-arch <arch_flag>] ...] [file ...] nm error at /Volumes/Local/fang/local/src/gcc-snapshots/gcc-4.1.0-20060219/libstdc++-v3/scripts/make_exports.pl line 130. make[4]: *** [libstdc++-symbol.explist] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-target-libstdc++-v3] Error 2 On darwin7, nm doesn't have a -P flag, whereas on darwin8, -P "writes information in a portable output format." (man page) I couldn't find an appropriate flag to substitute, would no flag be correct? To get this far, I've followed the instructions found here: http://opendarwin.org/projects/odcctools/usingodcctools.html I'm using the 20060123 snapshot of odcctools. I've manually pathched "gcc/config/darwin.h" with: perl -pi -e 's,/usr/bin/libtool,/Volumes/Local/fang/lib/odcctools/bin/libtool,;' gcc/config/darwin.h and configured with: ../configure --prefix=/Volumes/Local/fang \ --program-suffix=-4.1 \ --enable-languages=c,c++ \ --disable-nls \ --with-gmp=/sw \ --with-mpfr=/sw \ --infodir='${prefix}/share/info' \ --with-included-gettext \ --host=powerpc-apple-darwin`uname -r|cut -f1 -d.` \ --with-as=/Volumes/Local/fang/lib/odcctools/bin/as \ --with-ld=/Volumes/Local/fang/lib/odcctools/bin/ld Is this something fixable in the source, detectable at configure time, or do we need a target-specific patch? (I can provide more configuration information if needed for this report.) -- Summary: 4.1 RC1 build failure on nm -P command (darwin7) Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: fang at csl dot cornell dot edu GCC host triplet: powerpc-apple-darwin7 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26385