Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68688 - avr-binutils-2.15 does not install /usr/avr/bin/{as,ld}, as avr-gcc expects
Summary: avr-binutils-2.15 does not install /usr/avr/bin/{as,ld}, as avr-gcc expects
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Embedded Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-24 04:01 UTC by Klaus S. Madsen
Modified: 2004-10-31 19:10 UTC (History)
0 users

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 Klaus S. Madsen 2004-10-24 04:01:52 UTC
The ebuild for avr-binutils-2.15 does not install the binutils for the avr-platform in /usr/avr/bin as avr-gcc expects. The result is that avr-gcc will try to run /usr/bin/as and /usr/bin/ld when it compiles code for the avr-platform.

The easy fix is to remove the line that says "rm ${D}/usr/avr/bin" from the ebuild (but why was this inserted in the first place?)

Reproducible: Always
Steps to Reproduce:
1. echo -e "int main()\n{\n  return 0;\n}\n" > test.c
2. avr-gcc -v -o test.elf test.c

Actual Results:  
Reading specs from /usr/lib/gcc-lib/avr/3.3/specs 
Configured with: ./configure --prefix=/usr --host=i686-pc-linux-gnu 
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share 
--sysconfdir=/etc --localstatedir=/var/lib --target=avr --enable-languages=c 
--enable-nls 
Thread model: single 
gcc version 3.3 
 /usr/lib/gcc-lib/avr/3.3/cc1 -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=3 
-D__GNUC_PATCHLEVEL__=0 test.c -quiet -dumpbase test.c -auxbase test -version 
-o /tmp/ccxYMsjm.s 
GNU C version 3.3 (avr) 
        compiled by GNU C version 3.3.3 20040412 (Gentoo Linux 3.3.3-r3, 
ssp-3.3-7, pie-8.5.3). 
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64426 
ignoring nonexistent directory "/usr/avr/sys-include" 
#include "..." search starts here: 
#include <...> search starts here: 
 /usr/lib/gcc-lib/avr/3.3/include 
 /usr/avr/include 
End of search list. 
 as -o /tmp/ccytBHEB.o /tmp/ccxYMsjm.s 
/tmp/ccxYMsjm.s: Assembler messages: 
/tmp/ccxYMsjm.s:2: Error: no such architecture: `avr2' 
/tmp/ccxYMsjm.s:15: Error: no such instruction: `ldi r28,lo8(__stack - 0)' 
/tmp/ccxYMsjm.s:16: Error: no such instruction: `ldi r29,hi8(__stack - 0)' 
/tmp/ccxYMsjm.s:17: Error: too many memory references for `out' 
/tmp/ccxYMsjm.s:18: Error: too many memory references for `out' 
/tmp/ccxYMsjm.s:20: Error: no such instruction: `ldi r24,lo8(0)' 
/tmp/ccxYMsjm.s:21: Error: no such instruction: `ldi r25,hi8(0)' 
/tmp/ccxYMsjm.s:23: Error: no such instruction: `rjmp exit' 
 

Expected Results:  
Reading specs from /usr/lib/gcc-lib/avr/3.3/specs 
Configured with: ./configure --prefix=/usr --host=i686-pc-linux-gnu 
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share 
--sysconfdir=/etc --localstatedir=/var/lib --target=avr --enable-languages=c 
--enable-nls 
Thread model: single 
gcc version 3.3 
 /usr/lib/gcc-lib/avr/3.3/cc1 -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=3 
-D__GNUC_PATCHLEVEL__=0 test.c -quiet -dumpbase test.c -auxbase test -version 
-o /tmp/cc3OaygV.s 
GNU C version 3.3 (avr) 
        compiled by GNU C version 3.3.3 20040412 (Gentoo Linux 3.3.3-r3, 
ssp-3.3-7, pie-8.5.3). 
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64426 
ignoring nonexistent directory "/usr/avr/sys-include" 
#include "..." search starts here: 
#include <...> search starts here: 
 /usr/lib/gcc-lib/avr/3.3/include 
 /usr/avr/include 
End of search list. 
 /usr/lib/gcc-lib/avr/3.3/../../../../avr/bin/as 
-o /tmp/ccYmnWQJ.o /tmp/cc3OaygV.s 
 /usr/lib/gcc-lib/avr/3.3/../../../../avr/bin/ld -m avr2 -o 
test.elf /usr/lib/gcc-lib/avr/3.3/../../../../avr/lib/crts8515.o 
-L/usr/lib/gcc-lib/avr/3.3 -L/usr/lib/gcc/avr/3.3 
-L/usr/lib/gcc-lib/avr/3.3/../../../../avr/lib /tmp/ccYmnWQJ.o -lgcc -lc -lgcc 
 

Portage 2.0.51-r2 (default-x86-2004.0, gcc-3.4.2, glibc-2.3.4.20041006-r0, 
2.6.7 i686) 
================================================================= 
System uname: 2.6.7 i686 AMD Athlon(tm) Processor 
Gentoo Base System version 1.5.3 
distcc 2.18 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
ccache version 2.3 [enabled] 
Autoconf: sys-devel/autoconf-2.59-r5 
Automake: sys-devel/automake-1.8.5-r1 
Binutils: sys-devel/binutils-2.15.92.0.2-r1 
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1 
Libtools: sys-devel/libtool-1.5.2-r5 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-mtune=athlon-tbird -O3 -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-mtune=athlon-tbird -O3 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache distlocks sandbox" 
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ 
ftp://mirror.pudas.net/gentoo http://mirror.pudas.net/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="3dnow X Xaw3d aalib acl alsa apm arts avi berkdb bitmap-fonts bluetooth 
bonobo cdparanoiai cdr crypt cups dvd emacs encode esd evo f77 foomaticdb gdbm 
gif gnome gpm gstreamer gtk gtk2 gtkhtml imlib irmc java jpeg kde libg++ 
libwww lirc mad maildir mikmod mmx motif mozilla mpeg nas ncurses network nls 
nptl offensive oggvorbis opengl oss pam pda pdflib perl png python qt 
quicktime readline ruby samba sdl slang spell ssl svga tcltk tcpd tetex 
truetype unicode x86 xine xml xml2 xmms xprint xv zlib"
Comment 1 Daniel Black (RETIRED) gentoo-dev 2004-10-31 19:10:39 UTC
fixed - sorry it took so long