This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PPC405 libstdc++ cross-compile fails w/ 3.0.3


Hi all,

I'm trying to build a PPC405-targetted gcc3 cross compiler which sits
on top of Montavista's HardHat Linux 2.0 (which itself uses binutils
2.10.91.0.2, gcc 2.95.3, glibc 2.2.3, and linux 2.4.2).

When configuring as follows on my i686-pc-linux-gnu (Debian) host,

../gcc-3.0.3/configure \
         --target=powerpc-linux \
         --prefix=/opt/hardhat/devkit/ppc/405 \
         --with-headers=/opt/hardhat/devkit/ppc/405/target/usr/include \
         --enable-shared \
         --enable-long-long \
         --enable-threads=posix \
         --enable-langugages=c,c++ \
         --nfp \
         --with-cpu=403

I get an assembler failure from cross-compiling
libstdc++/libsupc++/eh_aux_runtime.c:

[snip gcc cmdline]
/tmp/cciOvBIV.s: Assembler messages:
/tmp/cciOvBIV.s:375: Error: invalid section for operation
/tmp/cciOvBIV.s:400: Error: invalid section for operation
make[3]: *** [eh_aux_runtime.lo] Error 1

building with -save-temps, the offending lines are:
         .4byte  .LLSDA1-.
and
         .4byte  .LLSDA2-.
(respectively).

It looks like similar, non-offending lines are all of the form
         .4byte  .LCFI0-.LFB1
in other words, there is another label after the -.

Does 3.0.3 require a newer version of binutils? Or is gcc generating
invalid assembler syntax? Should I file a GNATS problem report with more
details? (gcc 3.0.2 works correctly with the above configuration)

Regards,

Bryan

-- 
Bryan Rittmeyer
mailto:bryan@ixiacom.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]