comp.lang.ada
 help / color / mirror / Atom feed
* Building GNAT
@ 2010-05-03 15:04 Tom
  2010-05-03 17:03 ` Simon Wright
  0 siblings, 1 reply; 8+ messages in thread
From: Tom @ 2010-05-03 15:04 UTC (permalink / raw)


Is this an appropriate forum for discussing GNAT build problems?  I am
attempting to build a GNAT cross compiler targeting bare metal PowerPC
platforms.  After successfully getting past binutils, the first pass
of GCC, and Newlib, I'm getting stuck on the final pass of GCC and
GNAT.  When linking gnatmake, the linker is throwing a bunch of
undefined references from osint.adb  (such as
__gnat_is_writable_file_attr).  See log below.

Many of the challenges I've had to this point have been around this
use of <derint.h> and sockets, neither of which are needed on my
target platform.  Is there any way to configure GNAT not to build all
this OS related stuff?

Recent discussions I've have with some of the issues encountered so
far:

http://comments.gmane.org/gmane.comp.lib.newlib/6132
http://comments.gmane.org/gmane.comp.gcc.help/32672

Thanks for any help!

-Tom


gcc -c -I./ -I/usr/lib/gcc/i486-linux-gnu/4.4.3/adalib/../adainclude -
I/usr/lib/gcc/i486-linux-gnu/4.4.3/adalib/ -I. -I/home/e0082888/build-
powerpc-eabi/gcc-4.5.0/gcc/ada -g -O2 -W -Wall -Wwrite-strings -
Wstrict-prototypes -Wmissing-prototypes -gnatpg -gnata -I- /home/
e0082888/build-powerpc-eabi/gcc-4.5.0/gcc/ada/prj-strt.adb
gnatbind -I/usr/lib/gcc/i486-linux-gnu/4.4.3/adalib/../adainclude -I/
usr/lib/gcc/i486-linux-gnu/4.4.3/adalib/ -I. -I/home/e0082888/build-
powerpc-eabi/gcc-4.5.0/gcc/ada -static -x gnatmake
gnatlink -v gnatmake -o ../../gnatmake \
		--GCC="gcc -static-libgcc -I/usr/lib/gcc/i486-linux-gnu/4.4.3/
adalib/../adainclude -I/usr/lib/gcc/i486-linux-gnu/4.4.3/adalib/ -I. -
I/home/e0082888/build-powerpc-eabi/gcc-4.5.0/gcc/ada" ../../
prefix.o ../../version.o targext.o link.o  ../../../libiberty/
libiberty.a

GNATLINK 4.4.3
Copyright (C) 1995-2008, Free Software Foundation, Inc.
gcc -c -gnatA -gnatWb -gnatiw -static-libgcc -I/usr/lib/gcc/i486-linux-
gnu/4.4.3/adalib/../adainclude -I/usr/lib/gcc/i486-linux-gnu/4.4.3/
adalib/ -I. -I/home/e0082888/build-powerpc-eabi/gcc-4.5.0/gcc/ada -
gnatws /home/e0082888/build-powerpc-eabi/build-gcc/gcc/ada/tools/
b~gnatmake.adb
/usr/bin/gcc b~gnatmake.o ../../prefix.o ../../version.o targext.o
link.o ./alloc.o ./debug.o ./gnatvsn.o ./gnatmake.o ./rident.o ./
sfn_scan.o ./types.o ./hostparm.o ./krunch.o ./csets.o ./output.o ./
stylesw.o ./tree_io.o ./stand.o ./opt.o ./table.o ./stringt.o ./
binderr.o ./fname.o ./fname-sf.o ./fmap.o ./ali.o ./switch.o ./
sdefault.o ./sinput-c.o ./snames.o ./targparm.o ./osint.o ./butil.o ./
tempdir.o ./uintp.o ./err_vars.o ./erroutc.o ./urealp.o ./scans.o ./
mlib-utl.o ./mlib-fil.o ./mlib-tgt-specific.o ./prj-attr-pm.o ./prj-
com.o ./prj-attr.o ./mlib-tgt.o ./mlib.o ./prj-env.o ./prj-ext.o ./prj-
pp.o ./prj-util.o ./makeutl.o ./atree.o ./sinfo.o ./einfo.o ./
uname.o ./lib.o ./styleg.o ./nlists.o ./mlib-prj.o ./switch-m.o ./
usage.o ./makeusg.o ./widechar.o ./sinput.o ./fname-uf.o ./namet.o ./
osint-m.o ./scng.o ./casing.o ./ali-util.o ./errutil.o ./make.o ./prj-
err.o ./sinput-p.o ./prj-strt.o ./prj-proc.o ./prj-part.o ./prj-
pars.o ./prj-dect.o ./prj-conf.o ./prj-tree.o ./prj-nmsc.o ./prj.o -
o ../../gnatmake ../../../libiberty/libiberty.a -L./ -L/usr/lib/gcc/
i486-linux-gnu/4.4.3/adalib/../adainclude/ -L/usr/lib/gcc/i486-linux-
gnu/4.4.3/adalib/ -L./ -L/home/e0082888/build-powerpc-eabi/gcc-4.5.0/
gcc/ada/ -L/usr/lib/gcc/i486-linux-gnu/4.4.3/adalib/ /usr/lib/gcc/i486-
linux-gnu/4.4.3/adalib/libgnat.a -static-libgcc -static-libgcc -I/usr/
lib/gcc/i486-linux-gnu/4.4.3/adalib/../adainclude -I/usr/lib/gcc/i486-
linux-gnu/4.4.3/adalib/ -I. -I/home/e0082888/build-powerpc-eabi/
gcc-4.5.0/gcc/ada
./osint.o: In function `osint__is_writable_file':
/home/e0082888/build-powerpc-eabi/gcc-4.5.0/gcc/ada/osint.adb:1767:
undefined reference to `__gnat_is_writable_file_attr'
./osint.o: In function `osint__is_symbolic_link':
/home/e0082888/build-powerpc-eabi/gcc-4.5.0/gcc/ada/osint.adb:1754:
undefined reference to `__gnat_is_symbolic_link_attr'
./osint.o: In function `osint__is_regular_file':
/home/e0082888/build-powerpc-eabi/gcc-4.5.0/gcc/ada/osint.adb:1741:
undefined reference to `__gnat_is_regular_file_attr'
/home/e0082888/build-powerpc-eabi/gcc-4.5.0/gcc/ada/osint.adb:1741:
undefined reference to `__gnat_is_regular_file_attr'



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-05-05  7:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-03 15:04 Building GNAT Tom
2010-05-03 17:03 ` Simon Wright
2010-05-04  5:03   ` Using GNAT in a C and assembly toolchain Tom
2010-05-04 19:50     ` Simon Wright
2010-05-04 22:04       ` Randy Brukardt
2010-05-05  2:10       ` Robert A Duff
2010-05-05  7:54         ` sjw
2010-05-05  5:52       ` Tom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox