GCC cross build fails for ARCH=arc and ABI=elf32
Stanislav Sedov
stas at FreeBSD.org
Mon Sep 14 12:08:32 UTC 2009
On Mon, 14 Sep 2009 14:46:46 +0300
Krassimir Slavchev <krassi at bulinfo.net> mentioned:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I am trying to compile cross-gcc under 7.2 and build fails with:
>
> ...
> gmake[5]: Entering directory
> `/usr/ports/devel/cross-gcc/work/build/arc-elf32/newlib/libc'
> rm -f libc.a
> rm -rf tmp
> mkdir tmp
> cd tmp; \
> for i in argz/lib.a stdlib/lib.a ctype/lib.a search/lib.a
> stdio/lib.a string/lib.a signal/lib.a time/lib.a locale/lib.a
> reent/lib.a errno/lib.a misc/lib.a syscalls/lib.a sys/lib.a; do \
> /usr/local/arc-elf32/bin/ar x ../$i; \
> done; \
> /usr/local/arc-elf32/bin/ar rc ../libc.a *.o
> /usr/local/arc-elf32/bin/ar: ../search/lib.a: No such file or directory
> /usr/local/arc-elf32/bin/ranlib libc.a
> rm -rf tmp
> rm -f crt0.o
> ln sys/crt0.o crt0.o >/dev/null 2>/dev/null || cp sys/crt0.o crt0.o
> gmake[5]: Leaving directory
> `/usr/ports/devel/cross-gcc/work/build/arc-elf32/newlib/libc'
> gmake[4]: *** [all-recursive] Error 1
> gmake[4]: Leaving directory
> `/usr/ports/devel/cross-gcc/work/build/arc-elf32/newlib/libc'
> gmake[3]: *** [all-recursive] Error 1
> gmake[3]: Leaving directory
> `/usr/ports/devel/cross-gcc/work/build/arc-elf32/newlib'
> gmake[2]: *** [all] Error 2
> gmake[2]: Leaving directory
> `/usr/ports/devel/cross-gcc/work/build/arc-elf32/newlib'
> gmake[1]: *** [all-target-newlib] Error 2
> gmake[1]: Leaving directory `/usr/ports/devel/cross-gcc/work/build'
> gmake: *** [all] Error 2
> *** Error code 1
>
> Stop in /usr/ports/devel/cross-gcc.
> *** Error code 1
>
> Stop in /usr/ports/devel/cross-gcc.
> ** Command failed [exit code 1]: /usr/bin/script -qa
> /tmp/portinstall.1163.0 env TGTARCH=arc TGTABI=elf32 make
> ** Fix the problem and try again.
> ** Listing the failed packages (*:skipped / !:failed)
> ! devel/cross-gcc (compiler error)
> - ---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
>
> Trying to compile under -current:
>
> gmake[2]: Entering directory `/usr/ports/devel/cross-gcc/work/build/gcc'
> build/genrecog .././../gcc-4.3.2/gcc/config/arc/arc.md \
> insn-conditions.md > tmp-recog.c
> .././../gcc-4.3.2/gcc/config/arc/arc.md:156: warning: unknown predicate
> 'move_dest_operand'
> .././../gcc-4.3.2/gcc/config/arc/arc.md:156: warning: unknown predicate
> 'move_src_operand'
> .././../gcc-4.3.2/gcc/config/arc/arc.md:156: warning: unknown predicate
> 'move_dest_operand' in 'match_operand' expression
> .././../gcc-4.3.2/gcc/config/arc/arc.md:156: warning: unknown predicate
> 'move_src_operand' in 'match_operand' expression
> .././../gcc-4.3.2/gcc/config/arc/arc.md:171: warning: unknown predicate
> 'move_src_operand'
> .././../gcc-4.3.2/gcc/config/arc/arc.md:171: warning: unknown predicate
> 'move_dest_operand'
> .././../gcc-4.3.2/gcc/config/arc/arc.md:171: warning: unknown predicate
> 'move_src_operand' in 'match_operand' expression
> .././../gcc-4.3.2/gcc/config/arc/arc.md:171: warning: unknown predicate
> 'move_dest_operand' in 'match_operand' expression
> .././../gcc-4.3.2/gcc/config/arc/arc.md:194: warning: unknown predicate
> 'move_dest_operand'
> .././../gcc-4.3.2/gcc/config/arc/arc.md:194: warning: unknown predicate
> 'move_src_operand'
> .././../gcc-4.3.2/gcc/config/arc/arc.md:194: warning: unknown predicate
> 'move_dest_operand' in 'match_operand' expression
> .././../gcc-4.3.2/gcc/config/arc/arc.md:194: warning: unknown predicate
> 'move_src_operand' in 'match_operand' expression
> gmake[2]: *** [s-recog] Segmentation fault: 11 (core dumped)
> gmake[2]: Leaving directory `/usr/ports/devel/cross-gcc/work/build/gcc'
> gmake[1]: *** [all-gcc] Error 2
> gmake[1]: Leaving directory `/usr/ports/devel/cross-gcc/work/build'
> gmake: *** [all] Error 2
> *** Error code 1
>
> Stop in /usr/ports/devel/cross-gcc.
> *** Error code 1
>
> Stop in /usr/ports/devel/cross-gcc.
>
>
> Any help is appreciated
>
You need to pass it the ABI value that is supported both by gcc and newlib
c library which is used in this port. I don't have any knowledge about
the arc platform, but I belive that elf32 is not a valid ABI value. What
OS you trying to build this toolchain for?
--
Stanislav Sedov
ST4096-RIPE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20090914/1d11fa93/attachment.pgp
More information about the freebsd-ports
mailing list