uclibc 3.3.2 with gcc-4.7

Sedat Dilek sedat.dilek at gmail.com
Fri Mar 8 15:47:09 UTC 2013


On Fri, Mar 8, 2013 at 4:39 PM, Alexey Zaytsev <alexey.zaytsev at gmail.com> wrote:
> On Fri, Mar 8, 2013 at 4:33 PM, Sedat Dilek <sedat.dilek at gmail.com> wrote:
>> On Mon, Aug 27, 2012 at 8:17 PM, Dubey, Abhishek
>> <abhishek.dubey at vanderbilt.edu> wrote:
>>> Building uclibc 3.3.2 with debugging  and NPTL using the gcc 4.7.1 compiler leads to the following unresolved symbols.
>>>
>>> libc/libc_so.a(lockf.os): In function `__GI_lockf':
>>> /home/f6/F6Dev/f6utils/IM/uClibc-0.9.33.2/libc/misc/file/lockf.c:73: undefined reference to `_Unwind_Resume'
>>> libc/libc_so.a(lockf.os):(.data.DW.ref.__gcc_personality_v0[DW.ref.__gcc_personality_v0]+0x0): undefined reference to `__gcc_personality_v0'
>>> collect2: error: ld returned 1 exit status
>>> make: *** [lib/libc.so] Error 1
>>>
>>> Any suggestions on what is the cause of the problem. Has anyone else faced this before?
>>>
>>
>> Hi,
>>
>> you forgot to give some useful details... like your uclibc-config or
>> infos to your build-environment.
>> What is your host/target arch?
>>
>> Why do you use gcc-4.7.1 when there is v4.7.2?
>
> You are replying to a message that was sent in August 2012 - gcc 4.7.2
> was not released until September.
>
> I'm using 4.7.2, and the problem is still there. I'll try to reproduce
> with current uclibc and updated buildroot.
>

Accidently, I replied to the initial email.
But, anyway, the people gave too less informations.
And vanilla toolchain IIRC will not work OOTB.
If you are on MIPS(el) you can have look at target-toolchain patches
from Freetz project or OpenWrt is also a good address.

- Sedat -

[1] http://freetz.org/browser/trunk/toolchain/make/target
[2] http://git.mirror.nanl.de/?p=openwrt/trunk.git;a=tree;f=toolchain;hb=HEAD

>>
>> I would recommend you in case of uclibc to see if the problems still
>> exist with 0.9.33 GIT branch [1].
>> Bernhard said there will be soon a v0.9.33.3 release.
>>
>> Also, have a look at gcc-4.7.x and uclibc-0.9.33.x patches of
>> buildroot/openembedded/openwrt (or even Freetz) projects.
>>
>> Have fun!
>>
>> Regards,
>> - Sedat -
>>
>> [1] http://git.busybox.net/uClibc/log/?h=0.9.33
>>
>>> Regards
>>> Abhishek
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> uClibc mailing list
>>> uClibc at uclibc.org
>>> http://lists.busybox.net/mailman/listinfo/uclibc
>> _______________________________________________
>> uClibc mailing list
>> uClibc at uclibc.org
>> http://lists.busybox.net/mailman/listinfo/uclibc


More information about the uClibc mailing list