This is the mail archive of the crossgcc@sourceware.org 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: building for Cortex M3


On Oct 20, 2009, at 2:49 PM, Leon Woestenberg wrote:

Hello,

On Tue, Oct 20, 2009 at 11:18 PM, Yann E. MORIN
<yann.morin.1998@anciens.enib.fr> wrote:
On Tuesday 20 October 2009 12:19:03 Leon Woestenberg wrote:

I'll try to remember to post an updated script, but please email me if
I forget and you could use it.

Yes, please. I would be very glad to look at the updated version. Now that
we have basic support for newlib, it should be easier to add support
for this.


Sure, find it attached.



Leon,


I used your script to build a Cortex-M3 compiler. Unfortunately it will not link. I am getting the following errors.

acurtis@ac2vmserver:~/tmp$ arm-sidebranch-eabi-gcc hello.c -o hello_c/ opt/stm32/lib/gcc/arm-sidebranch-eabi/4.3.3/../../../../arm-sidebranch- eabi/lib/thumb/libc.a(lib_a-exit.o): In function `exit':
exit.c:(.text.exit+0x14): undefined reference to `_exit'
/opt/stm32/lib/gcc/arm-sidebranch-eabi/4.3.3/../../../../arm- sidebranch-eabi/lib/thumb/libc.a(lib_a-sbrkr.o): In function `_sbrk_r':
sbrkr.c:(.text._sbrk_r+0xe): undefined reference to `_sbrk'
/opt/stm32/lib/gcc/arm-sidebranch-eabi/4.3.3/../../../../arm- sidebranch-eabi/lib/thumb/libc.a(lib_a-writer.o): In function `_write_r':
writer.c:(.text._write_r+0x12): undefined reference to `_write'
/opt/stm32/lib/gcc/arm-sidebranch-eabi/4.3.3/../../../../arm- sidebranch-eabi/lib/thumb/libc.a(lib_a-closer.o): In function `_close_r':
closer.c:(.text._close_r+0xe): undefined reference to `_close'
/opt/stm32/lib/gcc/arm-sidebranch-eabi/4.3.3/../../../../arm- sidebranch-eabi/lib/thumb/libc.a(lib_a-lseekr.o): In function `_lseek_r':
lseekr.c:(.text._lseek_r+0x12): undefined reference to `_lseek'
/opt/stm32/lib/gcc/arm-sidebranch-eabi/4.3.3/../../../../arm- sidebranch-eabi/lib/thumb/libc.a(lib_a-readr.o): In function `_read_r':
readr.c:(.text._read_r+0x12): undefined reference to `_read'
/opt/stm32/lib/gcc/arm-sidebranch-eabi/4.3.3/../../../../arm- sidebranch-eabi/lib/thumb/libc.a(lib_a-fstatr.o): In function `_fstat_r':
fstatr.c:(.text._fstat_r+0x10): undefined reference to `_fstat'
/opt/stm32/lib/gcc/arm-sidebranch-eabi/4.3.3/../../../../arm- sidebranch-eabi/lib/thumb/libc.a(lib_a-isattyr.o): In function `_isatty_r':
isattyr.c:(.text._isatty_r+0xe): undefined reference to `_isatty'
collect2: ld returned 1 exit status


Could this because NewLib syscalls have been disabled?

../configure --target=${TOOLCHAIN_TARGET} --prefix=${TOOLCHAIN_PATH} \
--enable-interwork \
--disable-newlib-supplied-syscalls --with-gnu-ld --with-gnu-as -- disable-shared \
2>&1 | tee configure.log


Thanks
Allen


-- For unsubscribe information see http://sourceware.org/lists.html#faq


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