GCC cross build fails for ARCH=arc and ABI=elf32

Krassimir Slavchev krassi at bulinfo.net
Mon Sep 14 12:02:32 UTC 2009


-----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


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFKri0mxJBWvpalMpkRAtYwAJ46fWbDtVJmadzJ9jgcIlcDpGfpmgCbBg8H
TVABA15dKYRbA4Nk0z9xlWo=
=n6E7
-----END PGP SIGNATURE-----


More information about the freebsd-ports mailing list