Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 429994 - avr-ld cannot find crtcan32.o:
Summary: avr-ld cannot find crtcan32.o:
Status: RESOLVED DUPLICATE of bug 377039
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
Depends on:
Reported: 2012-08-05 12:12 UTC by Jean-Marc Beaune
Modified: 2012-08-10 04:24 UTC (History)
0 users

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

Makefile used to complie (Makefile,540 bytes, text/plain)
2012-08-05 17:57 UTC, Jean-Marc Beaune
simple main program compiled (main.c,475 bytes, text/plain)
2012-08-05 17:58 UTC, Jean-Marc Beaune

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Marc Beaune 2012-08-05 12:12:40 UTC
Using avr-gcc when compiling for proc at90can32 I got the following:

/usr/bin/avr-gcc -Os -Wl,-u,vfprintf -lprintf_flt -lm -mmcu=at90can32   -c -o main.o main.c
/usr/bin/avr-gcc -Os -Wl,-u,vfprintf -lprintf_flt -lm -mmcu=at90can32 main.o -o 
/usr/libexec/gcc/avr/ld: cannot find crtcan32.o: No such file or directory
collect2: ld returned 1 exit status
make: *** [main.obj] Error 1
rm main.o

The file is found here:

main.obj# locate crtcan32.o

The warkaround I have is to do:

ln -s /usr/avr/lib/avr5/crtcan32.o /usr/avr/lib/crtcan32.o

# avr-gcc --version
avr-gcc (Gentoo 4.6.3 p1.5, pie-0.5.2) 4.6.3

Thank you
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-08-05 14:05:49 UTC
1) Please attach the entire build log to this bug report.
2) Please post your `(cross-)emerge --info' output in a comment.
Comment 2 Jean-Marc Beaune 2012-08-05 16:45:50 UTC

Sorry but I'm not sure where to find the build log.
Also 'cross-emerge --info' says 'cross-emerge: CHOST is not set properly'

Comment 3 Jean-Marc Beaune 2012-08-05 16:46:36 UTC
Isn't this related to bug 147155?
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2012-08-05 17:10:06 UTC
What is it you are trying to compile? Do you use an ebuild for that?

Also, why didn't you try `emerge --info' without the "cross-" first?
Comment 5 Jean-Marc Beaune 2012-08-05 17:57:29 UTC
Created attachment 320470 [details]
Makefile used to complie
Comment 6 Jean-Marc Beaune 2012-08-05 17:58:03 UTC
Created attachment 320472 [details]
simple main program compiled
Comment 7 Jean-Marc Beaune 2012-08-05 17:59:03 UTC
emerge --info
Portage (default/linux/x86/10.0, gcc-4.5.3, glibc-2.14.1-r3, 3.3.8-gentoo i686)
System uname: Linux-3.3.8-gentoo-i686-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.1
Timestamp of tree: Sat, 04 Aug 2012 08:45:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.6
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo x-portage
CFLAGS="-march=prescott -O2 -fomit-frame-pointer -pipe"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=prescott -O2 -fomit-frame-pointer -pipe"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS=" rsync:// rsync:// rsync:// rsync:// rsync://"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
USE="X acl alsa berkdb bzip2 cdr cli cracklib crypt cups cxx dri dvd fortran gdbm gpm iconv ipv6 jpeg modules mudflap ncurses nls nptl openmp pam pcre pdf png pppd readline session ssl tcpd unicode v4l x86 zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport java javafx profiler websvccommon php" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Comment 8 SpanKY gentoo-dev 2012-08-10 04:24:49 UTC

*** This bug has been marked as a duplicate of bug 377039 ***