[prev in list] [next in list] [prev in thread] [next in thread] 

List:       uclibc
Subject:    [uClibc] toolchain question
From:       joakim.tjernlund () lumentis ! se (Joakim Tjernlund)
Date:       2005-05-31 0:41:28
Message-ID: JPEALJAFNGDDLOPNDIEEEEKMDDAA.joakim.tjernlund () lumentis ! se
[Download RAW message or body]

> I have a question for the compiler experts:
> 
> Over the last weeks, I've been working on integrating the NIOS II
> functionality in buildroot. I managed to get a working configuration and
> am using the compiler to boot the kernel on the Altera NIOS 2 evaluation
> board.
> 
> In the process of setting up the root FS I came across one minor
> problem: the final linking fase complains of busybox complains with 
> 
> /opt/barco/20050517/toolchain_uclibc_nios2/bin/../lib/gcc/nios2-linux-uclibc/3.4.3/../../../../nios2-linux-uclibc/lib/libc
>                 
> .a(__uClibc_main.o)(.text+0xe0):
> In function `__uClibc_start_main':
> > undefined reference to `main'
> collect2: ld returned 1 exit status
> make: *** [busybox] Error 1

Adding a reference to main in /libc/sysdeps/linux/nios2/crt0.S might help, but in
current SVN thats not enough. You need to match the new ABI, look at powerpc and/or \
i386 crt1.S for details.

 Jocke


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic