This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

Re: Problems with ppc-elf-run?


On Thursday 03 July 2003 09:27 am, Bill Gatliff wrote:
> Jay:
>
>
> $ ppc-elf-g++ -msim -fno-rtti -fno-exceptions -o hello hello.cpp
> $ ppc-elf-run hello
> hello: Caught signal 11 at address 0x10016558
>
> gcc-3.2.3 binutils-2.13.2 newlib-1.11.0 gdb-5.3
>
>
> b.g.
>


Hmmm...

I struggled for a while a few weeks back trying to get gcc-3.2.3 or
gcc-3.3 to work for powerpc-eabi.  I think the reason I gave up and
went back to gcc-2.95.3 was trouble in getting C++ destructors to run.

Anyway, I had some measure of success with gcc-3.3, binutils-2.13.2.1,
and newlib-20030516 from CVS.  I restored that build from a tar file
and can successfully build and run with these commands:

   powerpc-eabi-g++ -msim -fno-rtti -fno-exceptions hello.cpp -o hello
   powerpc-eabi-run hello

You might want to look into using a CVS version of newlib.  If working
static destructors are important to you, make sure you verify that 
they are run when your program completes.

- Jay


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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