From: Krassimir Slavchev on
-----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-----
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"
From: Stanislav Sedov on
--Signature=_Mon__14_Sep_2009_16_08_24_+0400_iCXAENbOK28wVjDD
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, 14 Sep 2009 14:46:46 +0300
Krassimir Slavchev <krassi(a)bulinfo.net> mentioned:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>=20
> Hi,
>=20
> I am trying to compile cross-gcc under 7.2 and build fails with:
>=20
> ...
> 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
>=20
> Stop in /usr/ports/devel/cross-gcc.
> *** Error code 1
>=20
> Stop in /usr/ports/devel/cross-gcc.
> ** Command failed [exit code 1]: /usr/bin/script -qa
> /tmp/portinstall.1163.0 env TGTARCH=3Darc TGTABI=3Delf32 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
>=20
> Trying to compile under -current:
>=20
> 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
>=20
> Stop in /usr/ports/devel/cross-gcc.
> *** Error code 1
>=20
> Stop in /usr/ports/devel/cross-gcc.
>=20
>=20
> Any help is appreciated
>=20

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?

--=20
Stanislav Sedov
ST4096-RIPE

--Signature=_Mon__14_Sep_2009_16_08_24_+0400_iCXAENbOK28wVjDD
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iQIcBAEBAgAGBQJKrjI9AAoJEKN82nOYvCd0rRsP/ie9ee3yvkDfp9JMf1dWAhSF
DM2pHEmWP+sOmUjThjyVVuNZRMi4gK+Iz6AIfc7IcdujWcyUym1J/iaFwJ8Qpg6R
ieLld47vYyDPbfuanSqx2xGWGEDyG8xGauQelyIdhMPrHM0k8FFqvo6t00AfYwoC
IC804UBpDo6jnBXbANuHoaz7dGBBLUdZW9vsyfmY/JMMCVVtFUPhG8ljjX9jrvAK
Qzj0i9jOiC1/9dOcLkXFv9X8PIMcaDV7O8/DB65Npr3EtFl3e8FRvsGlZiom7VE3
21rm173ThIgBpvHnLM6+DldsCabCYHRKyUFl3ghfDPV/BmbpJRhdMYXkAllS2KDz
CmrnfETQw0hJZrhf6040aqJgpaVpdf1Q73mObC9Je/gCCRVmXhZ/00T+dn063mmF
aDiH6PGMavTFQtw+DJppddoEfb7VYs4vvwRjm1Dsc4TK85LNJgtuH7ashj2Poh4E
WWRPoYLD93CdBOTwS5RVbqX0K8c+3IkAtfGuw1BuQiiCpPwb4ypVOY12iWzGKzxd
MY6ION+0n+xiiYZ8IHF2ZOut0mcwHHna9tEjHlDI9gCRp6qMr480SWsWGF8Izbdj
ovmGLBC54i/v6uImHmerU2vln4t/BvRBcfY21z7u4JPMwGyzp8wC6t4aDQaMaHjP
54oc6tqFhesOlszwUHII
=xn4n
-----END PGP SIGNATURE-----

--Signature=_Mon__14_Sep_2009_16_08_24_+0400_iCXAENbOK28wVjDD--