From owner-freebsd-ports@FreeBSD.ORG Mon Sep 14 12:08:32 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 28886106566B for ; Mon, 14 Sep 2009 12:08:32 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from mx0.deglitch.com (backbone.deglitch.com [IPv6:2001:16d8:fffb:4::abba]) by mx1.freebsd.org (Postfix) with ESMTP id 8E5C28FC17 for ; Mon, 14 Sep 2009 12:08:31 +0000 (UTC) Received: from stasss.yandex.ru (dhcp170-227-red.yandex.net [95.108.170.227]) by mx0.deglitch.com (Postfix) with ESMTPSA id 3B03B8FC45; Mon, 14 Sep 2009 16:08:30 +0400 (MSD) Date: Mon, 14 Sep 2009 16:08:24 +0400 From: Stanislav Sedov To: Krassimir Slavchev Message-Id: <20090914160824.956fd282.stas@FreeBSD.org> In-Reply-To: <4AAE2D26.3030006@bulinfo.net> References: <4AAE2D26.3030006@bulinfo.net> Organization: The FreeBSD Project X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Mon__14_Sep_2009_16_08_24_+0400_iCXAENbOK28wVjDD" Cc: freebsd-ports@freebsd.org Subject: Re: GCC cross build fails for ARCH=arc and ABI=elf32 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Sep 2009 12:08:32 -0000 --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 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--