Problems building RTEMS for ARM on Ubuntu 64bit

rtems at soulscythe.com rtems at soulscythe.com
Fri Nov 12 17:44:43 UTC 2010


I've removed all of the prebuild binaries and downloaded and  
recompiled a newer toolchain using this script  
https://github.com/esden/summon-arm-toolchain

$ arm-none-eabi-gcc --version
arm-none-eabi-gcc (GCC) 4.5.1
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$

successfully configured it using...

$../rtems-4.9.4/configure -target=arm-none-eabi -enable-cxx  
-enable-rdbg -enable-tests -enable-networking -enable-posix  
-enable-rtemsbsp=nds

$make RTEMS_BSP="nds" fails like this...

<snip>
configure: creating make/nds.cache
make[3]: Entering directory  
`/home/jayse/downloads/arm-development/rtems/rtems-4.9.4-jay/arm-none-eabi/c/nds'
make[3]: Leaving directory  
`/home/jayse/downloads/arm-development/rtems/rtems-4.9.4-jay/arm-none-eabi/c/nds'
checking for RTEMS_CPU_MODEL... arm9tdmi
checking for RTEMS_BSP_FAMILY... (cached) nds
checking for CPU_CFLAGS... (cached) -mcpu=arm9tdmi -msoft-float  
-mstructure-size-boundary=8
checking for CFLAGS_OPTIMIZE_V... (cached) -O2
checking for style of include used by make... GNU
checking for arm-none-eabi-gcc... arm-none-eabi-gcc
checking for arm-none-eabi-gcc... (cached) arm-none-eabi-gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.

config.log looks like this...

<snip>
configure:3444: checking for C compiler version
configure:3452: arm-none-eabi-gcc --version >&5
arm-none-eabi-gcc (GCC) 4.5.1
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3456: $? = 0
configure:3463: arm-none-eabi-gcc -v >&5
Using built-in specs.
COLLECT_GCC=arm-none-eabi-gcc
COLLECT_LTO_WRAPPER=/home/jayse/sat/libexec/gcc/arm-none-eabi/4.5.1/lto-wrapper
Target: arm-none-eabi
Configured with: ../gcc-4.5.1/configure --target=arm-none-eabi  
--prefix=/home/jayse/sat --enable-interwork --enable-multilib  
--enable-languages=c,c++ --with-newlib --disable-shared --with-gnu-as  
--with-gnu-ld --disable-nls --disable-werror --with-system-zlib
Thread model: single
gcc version 4.5.1 (GCC)
configure:3467: $? = 0
configure:3474: arm-none-eabi-gcc -V >&5
arm-none-eabi-gcc: '-V' option must have argument
configure:3478: $? = 1
configure:3501: checking for C compiler default output file name
configure:3523: arm-none-eabi-gcc -mcpu=arm920  
-mstructure-size-boundary=8  -O2 -g   conftest.c  >&5
/home/jayse/sat/lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/lib/libg.a(lib_a-exit.o): In function  
`exit':
/home/jayse/downloads/arm-development/build/arm-none-eabi/newlib/libc/stdlib/../../../../../newlib-1.18.0/newlib/libc/stdlib/exit.c:65: undefined reference to  
`_exit'
collect2: ld returned 1 exit status


gcc looks to be searching the correct folders for libraries...

$ arm-none-eabi-gcc -print-search-dirs
install: /home/jayse/sat/lib/gcc/arm-none-eabi/4.5.1/
programs:  
=/home/jayse/sat/libexec/gcc/arm-none-eabi/4.5.1/:/home/jayse/sat/libexec/gcc/arm-none-eabi/4.5.1/:/home/jayse/sat/libexec/gcc/arm-none-eabi/:/home/jayse/sat/lib/gcc/arm-none-eabi/4.5.1/:/home/jayse/sat/lib/gcc/arm-none-eabi/:/home/jayse/sat/lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/bin/arm-none-eabi/4.5.1/:/home/jayse/sat/lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/bin/
libraries:  
=/home/jayse/sat/lib/gcc/arm-none-eabi/4.5.1/:/home/jayse/sat/lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/lib/arm-none-eabi/4.5.1/:/home/jayse/sat/lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/lib/


I'm getting closer, but still no banana :(
I thought _exit and stuff like that would be provided by the bsp but  
cant find any reference.

Thanks again for your time
Jayse





More information about the users mailing list