Bernd Schmidt <ber...@codesourcery.com> writes:

> On 11/03/11 14:12, Rainer Orth wrote:
>> Bernd Schmidt <ber...@codesourcery.com> writes:
>> 
>>> c6x-elf cross builds are also broken with failures in libgcc/. Rainer,
>>> can you investigate?
>> 
>> Can you provide details?  It probably would take quite some time for me
>> to set up a full cross environment, and perhaps I can spot what's amiss
>> without doing so.
>
> A cross environment for -elf targets typicaly just requires building up
> binutils/newlib, and that should be rather quick to set up. A set of

Maybe in theory, but for the case at hand, a c6x-elf configuration with
binutils from the top of the binutils 2.22 branch fails to configure
libgcc:

checking whether to use setjmp/longjmp exceptions... unknown
configure: error: unable to detect exception model
make[1]: *** [configure-target-libgcc] Error 1

The test fails like this:

configure:4514: checking whether to use setjmp/longjmp exceptions
configure:: /var/gcc/c6x-elf/obj/gcc/./gcc/xgcc 
-B/var/gcc/c6x-elf/obj/gcc/./gcc/ -B/usr/local/c6x-elf/bin/ 
-B/usr/local/c6x-elf/lib/ -isystem /usr/local/c6x-elf/include -isystem 
/usr/local/c6x-elf/sys-include    -c --save-temps -fexceptions  conftest.c >&5
conftest.s: Assembler messages:
conftest.s:63: Error: duplicate .personality directive
conftest.s:64: Error: unexpected .handlerdata directive
configure:: $? = 1

The assembler error seems bogus, the .s file has

.LFE0:
        .global __gcc_personality_v0
        .personality    __gcc_personality_v0
        .handlerdata
.LLSDA0:
        .byte   0xff

where the .personality directive is the first and only in the file.

        Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

Reply via email to