Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384605 - dev-embedded/avr-libc-1.6.2: .size expression for strlcat_P does not evaluate to a constant
Summary: dev-embedded/avr-libc-1.6.2: .size expression for strlcat_P does not evaluate...
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 3 votes (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-27 06:16 UTC by Christopher Head
Modified: 2012-08-28 22:13 UTC (History)
6 users (show)

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


Attachments
avr-libc-1.6.2 build.log (build.log,63.31 KB, text/plain)
2011-10-17 09:58 UTC, renato gallo
Details
/var/log/portage/cross-avr-info.log (cross-avr-avr-libc.log,64.71 KB, text/plain)
2011-10-17 10:01 UTC, renato gallo
Details
/var/log/portage/cross-avr-avr-libc.log (cross-avr-info.log,15.94 KB, text/plain)
2011-10-17 10:01 UTC, renato gallo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Head 2011-09-27 06:16:08 UTC
When trying to compile avr-libc-1.6.2 with avr-gcc-4.5.3-r1 (by means of the ebuild generated by crossdev), I get this error along with the last line of build output:

avr-gcc -I/tmp/portage/cross-avr/avr-libc-1.6.2/work/avr-libc-1.6.2/common -I/tmp/portage/cross-avr/avr-libc-1.6.2/work/avr-libc-1.6.2/include -x assembler-with-cpp -Wa,-gstabs -mmcu=avr2 -D__COMPILING_AVR_LIBC__   -c /tmp/portage/cross-avr/avr-libc-1.6.2/work/avr-libc-1.6.2/libc/pmstring/strlcat_P.S
/tmp/portage/cross-avr/avr-libc-1.6.2/temp/ccXpNLFu.s: Assembler messages:
/tmp/portage/cross-avr/avr-libc-1.6.2/temp/ccXpNLFu.s: Error: .size expression for strlcat_P does not evaluate to a constant

Reproducible: Always

Steps to Reproduce:
# crossdev -S -s4 -t avr



# emerge --info cross-avr/avr-libc
Portage 2.1.10.11 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.12.2-r0, 2.6.39-gentoo-r3 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.39-gentoo-r3-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_720_@_1.60GHz-with-gentoo-2.0.3
Timestamp of tree: Sat, 24 Sep 2011 18:15:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.5, 4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo kruskal-local sunrise bitcoin hawk777
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 skype-eula sun-bcla-java-vm AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -msse4 -mcx16 -mpopcnt -msahf -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -msse4 -mcx16 -mpopcnt -msahf -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 3 --load-average 8"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms sign splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo ftp://gentoo.arcticnetwork.ca/pub/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_CA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_CA"
MAKEOPTS="--jobs 8 --load-average 8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog --delete-excluded"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/sunrise /var/lib/layman/bitcoin /home/chead/portage"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="X a52 aac acpi aio alsa amd64 archive bluetooth bzip2 cairo caps cdda cddb cdinstall cdio cli css cups custom-optimization cvs cxx dbus dillo double-precision dri dvd faac faad fat ffmpeg fftw flac fontconfig fortran gcrypt gif gimp glade glibc-omitfp gmp gnutls gtk hou hpn idn imap iphone java java6 jce joystick jpeg laptop libnotify libsamplerate mercurial mikmod mmx modules mp3 mpeg multilib multiuser ncurses nls nntp nowin nptl nptlonly ntfs ntp offensive ogg opengl openmp pam pdf plotutils png pppd readline scanner sdl session sou sparse spell sse sse2 ssse3 startup-notification stream subversion svg symlink sysfs taglib theora thunar tiff timidity truetype unicode usb v4l2 vdpau videos vim-syntax vorbis xattr xinerama xorg xscreensaver xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 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" LINGUAS="en en_CA" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="nvidia" XFCE_PLUGINS="logout menu" 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"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

=================================================================
                        Package Settings
=================================================================

cross-avr/avr-libc-1.6.2 was built with the following:
USE="multilib nls -doc"
CFLAGS="-O2 -pipe"
CXXFLAGS="-march=native -O2 -pipe"
Comment 1 Christopher Head 2011-09-27 06:22:53 UTC
Version 1.6.4 has the same problem. Version 1.6.8 does not have this problem. Perhaps it or one of the 1.7 series could be stabilized?
Comment 2 Aydin Tarik Zengin 2011-09-30 05:35:39 UTC
Confirmed on X86 too.
Comment 3 Aydin Tarik Zengin 2011-10-06 09:56:52 UTC
The following configuration worked for me (for ATMega2560)
But the "stable" versions comes with the -S flag still won't work.

USE="-openmp" crossdev  --target avr --gcc 4.4.4-r2 --binutils 2.19.1-r1 --libc 1.6.8 -s1 --without-headers
USE="-openmp" crossdev  --target avr --gcc 4.4.4-r2 --binutils 2.19.1-r1 --libc 1.6.8 -s4 --without-headers
ln -s /usr/i686-pc-linux-gnu/avr/lib/ldscripts /usr/avr/lib/ldscripts
ln -s /usr/avr/lib/avr6/crtm2560.o /usr/avr/lib/crtm2560.o
ln -s /usr/avr/lib/avr6/crtm2561.o /usr/avr/lib/crtm2561.o
Comment 4 Aydin Tarik Zengin 2011-10-10 08:39:47 UTC
Correction!

That configuration seemed working but unfortunately won't.
It generates faulty codes for serial functions and more others.
Comment 5 renato gallo 2011-10-17 09:56:32 UTC
confirmed here too

emerge --info
Portage 2.1.10.11 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.12.2-r0, 3.0.4-gentoo x86_64)
=================================================================
System uname: Linux-3.0.4-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_M_640_@_2.80GHz-with-gentoo-2.0.3
Timestamp of tree: Wed, 05 Oct 2011 12:00:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo vmware kde ardunio
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /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/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="it"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/vmware /var/lib/layman/kde /var/lib/layman/arduino"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl alsa amd64 amr apache2 apng archive atmo avx bash-completion berkdb bidi bl blueray bluetooth bluray bs2b bsf bzip2 cairo cdda cddb cdparanoia cdr cli consolekit cpudetection cracklib crypt cups curl cvs cxx daap dbus dcc_video declarative dga dirac directfb djvu dri dts dv dvb dvd eds emacs emovix encode esd exif extras faac faad facedetect fbcon ffmpeg flac fluidsynth fontconfig foomaticdb fortran frei0r ftp fuse gd gdbm gdu ggi gif gimp glade gme gnome gnome-keyring gphoto2 gpm gsm gstreamer gtk hal hpijs httpd iconv id3tag ieee1394 imagemagick imlib iodbc ios ipod ipv6 java jce joystick jpeg jpeg2k kate kde ladspa lame lcms ldap lfd libass libcaca libnotify libproxy libsamplerate libtiger libv4l2 lirc live lua mad matroska md5sum mmx mmxext mng modplug modules mp3 mpeg mpi msn mtp mudflap multilib musepack musicbrainz mysql mythtv nas nautilus ncurses network networkmanager nls nptl nptlonly nsplugin nut odbc odk ogg opengl ovftool pam pcmcia pcre pdf perl phonon php pic playlist png pnm policykit ppds pppd projectm pvr python qt-faststart qt3support qt4 radio rar readline remote-access remoteosd romio rtmp rtsp run-as-root samba scale0tilt schroedinger sdl sdl-image session shine shout skins slp smp sndfile snmp sox speex sql sqlite sse sse2 ssl ssse3 startup-notification static-ppds stream subversion svg sysfs taglib tcl tcpd templates tga theora threads tiff tk truetype twolame udev unicode upnp usb utils v4l2 vaapi vcd vcdx vdpau vix vlm vmware-tools vmware_guest_windows vnc vorbis vpx wavpack webkit wifi wma-fixed wmf x264 xanim xine xinerama xml xorg xosd xv xvid xvmc zlib zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 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 keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" 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"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 renato gallo 2011-10-17 09:58:27 UTC
Created attachment 290043 [details]
avr-libc-1.6.2 build.log

avr-libc-1.6.2 build.log
Comment 7 renato gallo 2011-10-17 10:01:03 UTC
Created attachment 290045 [details]
/var/log/portage/cross-avr-info.log
Comment 8 renato gallo 2011-10-17 10:01:48 UTC
Created attachment 290047 [details]
/var/log/portage/cross-avr-avr-libc.log
Comment 9 Emmanuel Lepage Vallee 2012-04-11 03:29:04 UTC
I am affected too, I tried using older versions of GCC, no luck


 all in at90s2343
Making all in at90s4433
Making all in at90s4414
Making all in at90s4434
Making all in at90s8515
Making all in at90s8535
Making all in at90c8534
Making all in attiny22
Making all in attiny26
Making all in at86rf401
Making all in attiny25
Making all in attiny45
Making all in attiny85
Making all in attiny24
Making all in attiny44
Making all in attiny84
Making all in attiny261
Making all in attiny461
Making all in attiny861
/var/tmp/portage/cross-avr/avr-libc-1.6.2/work/avr-libc-1.6.2/libc/stdlib/qsort.c: In function 'qsort':
/var/tmp/portage/cross-avr/avr-libc-1.6.2/work/avr-libc-1.6.2/libc/stdlib/qsort.c:143:6: warning: comparison between signed and unsigned integer expressions
/var/tmp/portage/cross-avr/avr-libc-1.6.2/work/avr-libc-1.6.2/libc/stdlib/qsort.c:143:6: warning: signed and unsigned type in conditional expression
/var/tmp/portage/cross-avr/avr-libc-1.6.2/work/avr-libc-1.6.2/libc/stdlib/qsort.c:145:20: warning: comparison between signed and unsigned integer expressions
/var/tmp/portage/cross-avr/avr-libc-1.6.2/work/avr-libc-1.6.2/libc/stdlib/qsort.c:147:20: warning: comparison between signed and unsigned integer expressions
/var/tmp/portage/cross-avr/avr-libc-1.6.2/temp/ccyCfLoW.s: Assembler messages:
/var/tmp/portage/cross-avr/avr-libc-1.6.2/temp/ccyCfLoW.s: Error: .size expression for strlcat_P does not evaluate to a constant
make[5]: *** [strlcat_P.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
emake failed
 * ERROR: cross-avr/avr-libc-1.6.2 failed (compile phase):
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line  85:  Called src_compile
 *   environment, line 2183:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =cross-avr/avr-libc-1.6.2',
 * the complete build log and the output of 'emerge -pqv =cross-avr/avr-libc-1.6.2'.
 * This ebuild is from a repository named 'Mythtv-Ebuilds'
 * The complete build log is located at '/var/tmp/portage/cross-avr/avr-libc-1.6.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/cross-avr/avr-libc-1.6.2/temp/environment'.
 * S: '/var/tmp/portage/cross-avr/avr-libc-1.6.2/work/avr-libc-1.6.2'

>>> Failed to emerge cross-avr/avr-libc-1.6.2, Log file:

>>>  '/var/tmp/portage/cross-avr/avr-libc-1.6.2/temp/build.log'

 * Messages for package cross-avr/avr-libc-1.6.2:

 * ERROR: cross-avr/avr-libc-1.6.2 failed (compile phase):
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line  85:  Called src_compile
 *   environment, line 2183:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =cross-avr/avr-libc-1.6.2',
 * the complete build log and the output of 'emerge -pqv =cross-avr/avr-libc-1.6.2'.
 * This ebuild is from a repository named 'Mythtv-Ebuilds'
 * The complete build log is located at '/var/tmp/portage/cross-avr/avr-libc-1.6.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/cross-avr/avr-libc-1.6.2/temp/environment'.
 * S: '/var/tmp/portage/cross-avr/avr-libc-1.6.2/work/avr-libc-1.6.2'

 * IMPORTANT: 7 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


 * avr-libc failed :(
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-avr-info.log
 * /var/log/portage/cross-avr-avr-libc.log.xz
 * /var/tmp/portage/cross-avr/avr-libc*/temp/avr-libc-config.logs.tar.xz
Comment 10 SpanKY gentoo-dev 2012-04-11 04:25:31 UTC
use a newer version