environment variables

lange92 at 2067.resnet.uni.edu lange92 at 2067.resnet.uni.edu
Fri Aug 3 05:50:33 UTC 2001


Hi all,
  During the compilation of the build tools, the gnat/rtems documentation
specifies that the environment variables
  GCC_EXEC_PREFIX
  ADA_INCLUDE_PATH
  ADA_OBJECTS_PATH
  LD_RUN_PATH
  C_INCLUDE_PATH
should not be specified, for they will conflict with the building of the
tools.

After the tools are built, though, would it be useful to set these?

I successfully built the pc386 bsp now, but during the build of
hello_world_ada, I received the following errors:

i386-rtemscoff-gcc: file path prefix `/users/lange92/illinoiscentral/rtems-4.5.0-gnat-3.12p-gcc-2.8.1-i386-rtemscoff-noinitfini/pc386/lib' never used
./hello.o: In function `_ada_main':
/users/lange92/illinoiscentral/tools/hello_world_ada/hello.adb:9: undefined reference to `ada__text_io__put_line__2'
i386-rtemscoff-gnatmake: *** link failed.

I have included my modified Makefile below my signature for reference.

Thanks again for all the help! It's greatly appreciated, and much progress
is being made.

DanL


Makefile:
#
#  Makefile for hello world example
#

MAIN=hello

# Tool paths
tooldir=/users/lange92/illinoiscentral/rtems-4.5.0-gnat-3.12p-gcc-2.8.1-i386-rtemscoff
rtemsdir=/users/lange92/illinoiscentral/rtems-4.5.0-gnat-3.12p-gcc-2.8.1-i386-rtemscoff-noinitfini/pc386
#rtemsdir=${tooldir}/rtems/score603e
#rtemsdir=/users/lange92/illinoiscentral/rtems-i386/pc386/

# Tool names
GCC=${tooldir}/bin/i386-rtemscoff-gcc
GNATMAKE=${tooldir}/bin/i386-rtemscoff-gnatmake
SIZE=${tooldir}/bin/i386-rtemscoff-size

CARGS=-B${rtemsdir}/lib/ -specs bsp_specs -qrtems -mcpu=i386

all: init.o
	$(GNATMAKE) -v -O -gnata -gnatE -gnato $(MAIN) -g \
	    -cargs $(CARGS) \
	    -largs $(CARGS) init.o
	$(SIZE) $(MAIN)



init.o: init.c
	$(GCC) -O4 -g  -Wall -ansi -fasm $(CARGS) -c init.c

run:
	@ echo Must run on the real target

gdb:
	@ echo No real target

clean:
	rm -f b_$(MAIN).c b_$(MAIN).o *.o *.ali $(MAIN)





More information about the users mailing list