Problem building gcc 4.3.1 cross-compiler with ada

Dirk Heinrichs dirk.heinrichs at online.de
Sat Aug 23 10:09:05 UTC 2008


Am Samstag, 23. August 2008 11:54:56 schrieb Dirk Heinrichs:
> Am Donnerstag, 21. August 2008 18:39:37 schrieb Dirk Heinrichs:
> > Am Mittwoch, 20. August 2008 21:27:28 schrieb Joel Sherrill:
> > > > just wanted to ask wether there is any news about this problem.
> > >
> > > I've been building and testing off the GCC SVN trunk
> > > and RTEMS head with no problems.
> >
> > OK, I'll try that.
>
> Just found the solution to my problem. I had a native gnatgcc installed and
> $ADA_INCLUDE_PATH was set to that installation. After unsetting all ADA
> related env variables in the shell where I built the toolchain everything
> built just fine with gcc 4.3.1.

Unfortunately, compiling the test program from the WIKI page fails at link 
stage:

i386-rtems-gnatmake -f -g t -largs -B/opt/i386-rtems/pck6 -specs /opt/i386-
rtems/pck6/lib/bsp_specs -qrtems
i386-rtems-gcc -c -g t.adb
i386-rtems-gnatbind -x t.ali
i386-rtems-gnatlink t.ali -g -B/opt/i386-rtems/pck6 -specs /opt/i386-
rtems/pck6/lib/bsp_specs -qrtems
/opt/bin/i386-rtems-ld: cannot open linker script file linkcmds: No such file 
or directory
collect2: ld returned 1 exit status
i386-rtems-gnatlink: error when calling /opt/bin/i386-rtems-gcc
i386-rtems-gnatmake: *** link failed.

What to do now?

Bye...

	Dirk



More information about the users mailing list