From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thompson, David" Subject: Re: avr-gcc Date: Tue, 12 Apr 2016 14:21:17 -0400 Message-ID: References: <87wptgmyv1.fsf@elephly.net> <87twoks459.fsf@gnu.org> <87a8qbr2mb.fsf@gnu.org> <87ziy8g3bp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=94eb2c06aaa82bf96105304dba05 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43613) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aq2wD-0005qf-0q for guix-devel@gnu.org; Tue, 12 Apr 2016 14:21:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aq2wB-0005ba-Ft for guix-devel@gnu.org; Tue, 12 Apr 2016 14:21:20 -0400 Received: from mail-yw0-x236.google.com ([2607:f8b0:4002:c05::236]:33333) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aq2wB-0005bA-BO for guix-devel@gnu.org; Tue, 12 Apr 2016 14:21:19 -0400 Received: by mail-yw0-x236.google.com with SMTP id t10so35920103ywa.0 for ; Tue, 12 Apr 2016 11:21:18 -0700 (PDT) In-Reply-To: <87ziy8g3bp.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: "guix-devel@gnu.org" --94eb2c06aaa82bf96105304dba05 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Revitalizing this old thread. On Fri, Nov 20, 2015 at 9:20 AM, Ludovic Court=C3=A8s wrote: > "Thompson, David" skribis: > >> Not quite. The avr-gcc build only provides a single version of >> libgcc.a, whereas Debian's avr-gcc provides a separate libgcc.a for >> each supported AVR family (avr2, avr3, avr35, etc.) Mark thought it >> might be the fault of the --disable-multilib configure flag, so I >> removed it but it didn't solve anything. I'm not sure what to do now. >> I have no idea what flag or patch could be signalling to the gcc build >> system that it shouldn't try to compile libraries for all of the >> various AVR models. > > Are you sure the removal of --disable-multilib was effective? > > Otherwise no specific idea. :-/ We=E2=80=99ll have to thoroughly study t= he > (avr-)gcc doc. With much help from Manolis, we were finally able to overcome the multilib issue! But there's another roadblock: avr-libc doesn't build: avr-gcc -DHAVE_CONFIG_H -I. -I../../../../avr-libc-2.0.0/avr/lib/avr2 -I../../.. -I../../../../avr-libc-2.0.0/common -I../../../../avr-libc-2.0.0/include -I../../../include -I../../../../avr-libc-2.0.0/common -I../../../../avr-libc-2.0.0/include -I../../../include -x assembler-with-cpp -mmcu=3Davr2 -D__COMPILING_AVR_LIBC__ -MT abort.o -MD -MP -MF .deps/abort.Tpo -c -o abort.o ../../../../avr-libc-2.0.0/libc/stdlib/abort.S In file included from /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/include/features.h:3= 89:0, from /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/include/limits.h:25, from ../../../../avr-libc-2.0.0/libc/stdlib/strtol.c:33: /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/include/gnu/stubs.h:= 7:27: fatal error: gnu/stubs-32.h: No such file or directory # include ^ compilation terminated. I don't know why it's including headers from the host system's libc. Manolis was able to get past it by including a cross-libc built for i686. Does this seem wrong to anyone else? Any thoughts on what might be going on here? We're closer than ever to having a working AVR toolchain. I hope we can iron out these last wrinkles. Attached is the WIP code for the toolchain. - Dave --94eb2c06aaa82bf96105304dba05 Content-Type: text/x-patch; charset=US-ASCII; name="0001-wip-AVR-stuff.patch" Content-Disposition: attachment; filename="0001-wip-AVR-stuff.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_imxr74aq0 RnJvbSA5NzczZWY0YzAxM2Y3YTIyM2VhMTEyNTU5ZjUxN2MzYWQ5YzEwYW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wdWJsaWMgYXZyLWJpbnV0aWxzCisgIChwYWNrYWdlCisgICAgKGluaGVyaXQgKGNyb3NzLWJp bnV0aWxzICJhdnIiKSkKKyAgICAobmFtZSAiYXZyLWJpbnV0aWxzIikKKyAgICAoYXJndW1lbnRz CisgICAgICcoIzpjb25maWd1cmUtZmxhZ3MgJygiLS10YXJnZXQ9YXZyIgorICAgICAgICAgICAg ICAgICAgICAgICAgICAgIi0tZGlzYWJsZS1ubHMiKSkpKSkKKworKGRlZmluZS1wdWJsaWMgYXZy LWdjYworICAobGV0ICgoeGdjYyAoY3Jvc3MtZ2NjICJhdnIiIGF2ci1iaW51dGlscykpKQorICAg IChwYWNrYWdlCisgICAgICAoaW5oZXJpdCB4Z2NjKQorICAgICAgKG5hbWUgImF2ci1nY2MiKQor ICAgICAgKGFyZ3VtZW50cworICAgICAgIChzdWJzdGl0dXRlLWtleXdvcmQtYXJndW1lbnRzIChw YWNrYWdlLWFyZ3VtZW50cyB4Z2NjKQorICAgICAgICAgKCgjOnBoYXNlcyBwaGFzZXMpCisgICAg ICAgICAgYChtb2RpZnktcGhhc2VzICxwaGFzZXMKKyAgICAgICAgICAgICA7OyBXaXRob3V0IGEg d29ya2luZyBtdWx0aWxpYiBidWlsZCwgdGhlIHJlc3VsdGluZyBHQ0MgbGFja3MKKyAgICAgICAg ICAgICA7OyBzdXBwb3J0IGZvciBuZWFybHkgZXZlcnkgQVZSIGNoaXAuCisgICAgICAgICAgICAg KGFkZC1hZnRlciAndW5wYWNrICdmaXgtZ2VubXVsdGlsaWIKKyAgICAgICAgICAgICAgIChsYW1i ZGEgXworICAgICAgICAgICAgICAgICAoc3Vic3RpdHV0ZSogImdjYy9nZW5tdWx0aWxpYiIKKyAg ICAgICAgICAgICAgICAgICAoKCIjIS9iaW4vc2giKSAoc3RyaW5nLWFwcGVuZCAiIyEiICh3aGlj aCAic2giKSkpKQorICAgICAgICAgICAgICAgICAjdCkpKSkKKyAgICAgICAgICgoIzpjb25maWd1 cmUtZmxhZ3MgZmxhZ3MpCisgICAgICAgICAgJyhsaXN0ICItLXRhcmdldD1hdnIiCisgICAgICAg ICAgICAgICAgICItLWVuYWJsZS1sYW5ndWFnZXM9YyxjKysiCisgICAgICAgICAgICAgICAgICIt LWRpc2FibGUtbmxzIgorICAgICAgICAgICAgICAgICAiLS1kaXNhYmxlLWxpYnNzcCIKKyAgICAg ICAgICAgICAgICAgIi0td2l0aC1kd2FyZjIiKSkpKQorICAgICAgKG5hdGl2ZS1zZWFyY2gtcGF0 aHMKKyAgICAgICAobGlzdCAoc2VhcmNoLXBhdGgtc3BlY2lmaWNhdGlvbgorICAgICAgICAgICAg ICAodmFyaWFibGUgIkNST1NTX0NQQVRIIikKKyAgICAgICAgICAgICAgKGZpbGVzICcoImF2ci9p bmNsdWRlIikpKQorICAgICAgICAgICAgIChzZWFyY2gtcGF0aC1zcGVjaWZpY2F0aW9uCisgICAg ICAgICAgICAgICh2YXJpYWJsZSAiQ1JPU1NfTElCUkFSWV9QQVRIIikKKyAgICAgICAgICAgICAg KGZpbGVzICcoImF2ci9saWIiKSkpKSkpKSkKKwogKGRlZmluZS1wdWJsaWMgYXZyLWxpYmMKICAg KHBhY2thZ2UKICAgICAobmFtZSAiYXZyLWxpYmMiKQotICAgICh2ZXJzaW9uICIxLjguMSIpCisg ICAgKHZlcnNpb24gIjIuMC4wIikKICAgICAoc291cmNlIChvcmlnaW4KICAgICAgICAgICAgICAg KG1ldGhvZCB1cmwtZmV0Y2gpCi0gICAgICAgICAgICAgICh1cmkgKHN0cmluZy1hcHBlbmQKLSAg ICAgICAgICAgICAgICAgICAgIm1pcnJvcjovL3NhdmFubmFoLy9hdnItbGliYy9hdnItbGliYy0i Ci0gICAgICAgICAgICAgICAgICAgIHZlcnNpb24gIi50YXIuYnoyIikpCisgICAgICAgICAgICAg ICh1cmkgKHN0cmluZy1hcHBlbmQgIm1pcnJvcjovL3NhdmFubmFoLy9hdnItbGliYy9hdnItbGli Yy0iCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmVyc2lvbiAiLnRhci5iejIi KSkKICAgICAgICAgICAgICAgKHNoYTI1NgogICAgICAgICAgICAgICAgKGJhc2UzMgotICAgICAg ICAgICAgICAgICIwc2Q5cWt2aG1rOWF2NGcxZjhkc2p3YzMwOWhmMWcwNzMxYmh2aWNuamIzYjNk NDJsMW4zIikpKSkKKyAgICAgICAgICAgICAgICAiMTVzdnIyZng4ajZwcnFsMmlsMmZjMHBwd2x2 NTBycG15Y2theHgzOGQzZ3h4djk3enBkaiIpKSkpCiAgICAgKGJ1aWxkLXN5c3RlbSBnbnUtYnVp bGQtc3lzdGVtKQogICAgIChhcmd1bWVudHMKLSAgICAgYCgjOm91dC1vZi1zb3VyY2U/ICN0Cisg ICAgICcoIzpvdXQtb2Ytc291cmNlPyAjdAogICAgICAgICM6Y29uZmlndXJlLWZsYWdzICcoIi0t aG9zdD1hdnIiKSkpCi0KLSAgICAobmF0aXZlLWlucHV0cyBgKCgiY3Jvc3MtYmludXRpbHMiICwo Y3Jvc3MtYmludXRpbHMgImF2ciIpKQotICAgICAgICAgICAgICAgICAgICAgKCJjcm9zcy1nY2Mi ICx4Z2NjLWF2cikpKQorICAgIChuYXRpdmUtaW5wdXRzIGAoKCJhdnItYmludXRpbHMiICxhdnIt YmludXRpbHMpCisgICAgICAgICAgICAgICAgICAgICAoImF2ci1nY2MiICxhdnItZ2NjKQorICAg ICAgICAgICAgICAgICAgICAgOzsoImxpYmMiICwoY3Jvc3MtbGliYyAiaTY4Ni1saW51eCIpKQor ICAgICAgICAgICAgICAgICAgICAgKSkKICAgICAoaG9tZS1wYWdlICJodHRwOi8vd3d3Lm5vbmdu dS5vcmcvYXZyLWxpYmMvIikKICAgICAoc3lub3BzaXMgIlRoZSBBVlIgQyBMaWJyYXJ5IikKICAg ICAoZGVzY3JpcHRpb24KICAgICAgIkFWUiBMaWJjIGlzIGEgcHJvamVjdCB3aG9zZSBnb2FsIGlz IHRvIHByb3ZpZGUgY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