Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102103 - [PATCH] avr-libc-1.2.5 does not compile for amd64
Summary: [PATCH] avr-libc-1.2.5 does not compile for amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Embedded Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-11 04:00 UTC by Ludek Stepan
Modified: 2005-08-11 14:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ludek Stepan 2005-08-11 04:00:29 UTC
Hello

When I try to update from cross-avr/avr-libc-1.2.3 to 1.2.5 on AMD64, I get the
following error:

...
Making all in crt1
make[3]: Entering directory
`/var/tmp/portage/avr-libc-1.2.5/work/avr-libc-1.2.5/avr3/obj-avr/crt1'
avr-gcc  -I../../../include -I../../../common    -mmcu=avr3 -x
assembler-with-cpp -Wa,-gstabs -mmcu=atmega103 -c ../../../crt1/gcrt1.S -o crtm103.o
cc1: error: invalid option '64'
make[3]: *** [crtm103.o] Error 1
...

I think it's because of ABI stuff, so I offer this patch which works for me:

--- /root/avr_fix/avr-libc-1.2.5.ebuild 2005-08-11 11:43:02.000000000 +0200
+++ avr-libc/avr-libc-1.2.5.ebuild      2005-08-11 12:09:06.000000000 +0200
@@ -26,6 +26,7 @@

 src_compile() {
        export CC=avr-gcc
+       export CFLAGS_$ABI=
        strip-flags
        strip-unsupported-flags
Comment 1 SpanKY gentoo-dev 2005-08-11 05:28:47 UTC
re-emerge crossdev and try again ... i added fake ABI support to it but dont
recall if i rev bumped it or not
Comment 2 Ludek Stepan 2005-08-11 07:21:56 UTC
Yes, you are right.

I did the following

1. # emerge crossdev                          >>> did solve nothing
2. # emerge =cross-avr/avr-libc-1.2.5         >>> cc1: error: invalid option'64'
3. # crossdev --libc 1.2.5 -t avr             >>> updated fine

Does it mean that I can emerge avr-libc only through crossdev program?
I can simply #emerge cross-dev/gcc without any problems, is there any way how to
include ABI support into avr-libc ebuild like it is done in gcc ebuild and
toolchain eclass so people can easily emerge cross-avr/avr-libc ?
Comment 3 SpanKY gentoo-dev 2005-08-11 08:03:53 UTC
personally i think the current state of the ABI var is screwed up, it just
breaks crap like this

we should add ABI to the avr-libc ebuild too though since it is possible to
upgrade avr-libc once you've installed it with crossdev ...
Comment 4 Ludek Stepan 2005-08-11 12:28:32 UTC
yeah, that's exactly what i think... I'll try to look into it :)
Comment 5 SpanKY gentoo-dev 2005-08-11 14:47:46 UTC
force setting of ABI to a bogus value since i doubt we'll get the ABI crap fixed
anytime soon