Hi, 

buildd a linux/x86 -> darwin/x86 cross compiler, the libstdc++ compile calls 

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

which barfs with

../libsupc++/.libs/libsupc++convenience.a|nm: .libs/bitmap_allocator.o: File
format not recognized
nm: .libs/pool_allocator.o: File format not recognized
nm: .libs/mt_allocator.o: File format not recognized

it seems that the 

  libstdc++-v3/scripts/make_exports.pl

script is hardcoded to "nm" iso. the value for NM_FOR_TARGET.


This happens with configuring as 

/home/hanwen/vc/gub/target/darwin-ppc/src/gcc-4.1.0/configure
--prefix=/home/hanwen/vc/gub/target/darwin-ppc/install/gcc-root/usr
--program-prefix=powerpc-apple-darwin7-
--prefix=/home/hanwen/vc/gub/target/darwin-ppc/system/usr/cross/
--with-slibdir=/usr/lib/ --target=powerpc-apple-darwin7
--with-sysroot=/home/hanwen/vc/gub/target/darwin-ppc/system/ 
--with-as=/home/hanwen/vc/gub/target/darwin-ppc/system/usr/cross/bin/powerpc-apple-darwin7-as
--with-ld=/home/hanwen/vc/gub/target/darwin-ppc/system/usr/cross/bin/powerpc-apple-darwin7-ld
--enable-static --enable-shared  --enable-languages=c,c++ 
--enable-libstdcxx-debug


-- 
           Summary: make_exports.pl hardcoded to build nm
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hanwen at xs4all dot nl
 GCC build triplet: i386-redhat-linux
  GCC host triplet: i386-redhat-linux
GCC target triplet: i686-apple-darwin7


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26513

Reply via email to