Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 317295 - dev-libs/opensc-0.11.12 fails to cross-compile for arm
Summary: dev-libs/opensc-0.11.12 fails to cross-compile for arm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-26 11:33 UTC by Sergey Mironov
Modified: 2010-11-29 13:43 UTC (History)
1 user (show)

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


Attachments
Full build log (opensc-0.11.12-build.log,208.56 KB, text/plain)
2010-04-26 11:38 UTC, Sergey Mironov
Details
dev-libs/opensc/opensc-0.11.12 patch forces re-generating Makefiles (opensc-ebuild-eautoreconf.patch,521 bytes, patch)
2010-04-26 11:47 UTC, Sergey Mironov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Mironov 2010-04-26 11:33:17 UTC
Last error message:

libtool: link: arm-module2-linux-gnueabi-gcc -fno-strict-aliasing -Os -pipe -fomit-frame-pointer -I/usr/arm-module2-linux-gnueabi/usr/include/ -I/usr/arm-module2-linux-gnueabi/include/ -o .libs/lottery lottery.o sc-test.o  -L/usr/arm-module2-linux-gnueabi/lib -L/usr/arm-module2-linux-gnueabi/usr/lib ../../src/libopensc/.libs/libopensc.so ../../src/common/.libs/libcompat.a
/usr/libexec/gcc/arm-module2-linux-gnueabi/ld: warning: libscconf.so.2, needed by ../../src/libopensc/.libs/libopensc.so, not found (try using -rpath or -rpath-link)
../../src/libopensc/.libs/libopensc.so: undefined reference to `scconf_new'
../../src/libopensc/.libs/libopensc.so: undefined reference to `scconf_get_int'
../../src/libopensc/.libs/libopensc.so: undefined reference to `scconf_parse'
../../src/libopensc/.libs/libopensc.so: undefined reference to `scconf_find_list'
../../src/libopensc/.libs/libopensc.so: undefined reference to `scconf_free'
../../src/libopensc/.libs/libopensc.so: undefined reference to `scconf_get_bool'
../../src/libopensc/.libs/libopensc.so: undefined reference to `scconf_get_str'
../../src/libopensc/.libs/libopensc.so: undefined reference to `scconf_find_blocks'
collect2: ld returned 1 exit status
make[4]: *** [base64] Error 1
make[4]: *** Waiting for unfinished jobs....
/usr/libexec/gcc/arm-module2-linux-gnueabi/ld: warning: libscconf.so.2, needed by ../../src/libopensc/.libs/libopensc.so, not found (try using -rpath or -rpath-link)
../../src/libopensc/.libs/libopensc.so: undefined reference to `scconf_new'
../../src/libopensc/.libs/libopensc.so: undefined reference to `scconf_get_int'
../../src/libopensc/.libs/libopensc.so: undefined reference to `scconf_parse'
../../src/libopensc/.libs/libopensc.so: undefined reference to `scconf_find_list'
../../src/libopensc/.libs/libopensc.so: undefined reference to `scconf_free'
../../src/libopensc/.libs/libopensc.so: undefined reference to `scconf_get_bool'
../../src/libopensc/.libs/libopensc.so: undefined reference to `scconf_get_str'
../../src/libopensc/.libs/libopensc.so: undefined reference to `scconf_find_blocks'


Reproducible: Always

Steps to Reproduce:
1. emerge-arm-module2-linux-gnueabi opensc

where arm-module2-linux-gnueabi is name of my target system



This could be libtool-related problem. Libtool is known to be quite buggy when used for cross-compiling.

My build system's emerge --info

Portage 2.1.6.13 (default/linux/x86/10.0, gcc-4.1.2, glibc-2.10.1-r1, 2.6.31-gentoo-r6-my5 i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-my5-i686-Intel-R-_Pentium-R-_4_CPU_2.60GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 16 Apr 2010 01:45:02 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r2
dev-lang/python:     2.4.4-r13, 2.5.4-r2, 2.6.4
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       3.4.6-r2, 4.1.2, 4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
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="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en ru"
MAKEOPTS="-j2"
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="/usr/local/portage /home/smironov/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X acl acpi alsa audiofile bash-completion berkdb bzip2 cairo cli consolekit cracklib crypt cups cxx dbus djvu dri eselect fortran gdbm gif gnome gnome-keyring gnutls gpm gstreamer gtk hal iconv jpeg jpeg2k lame ldap mmx modplug modules mp3 mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre perl png pppd python qt4 readline reflection samba session sndfile spell spl sqlite sse sse2 ssl svg sysfs syslog tcpd tiff truetype unicode v4l2 vim-syntax vnc vorbis wavpack x86 xcb xft xorg xscreensaver zlib zsh-completion" 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv vesa intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Sergey Mironov 2010-04-26 11:35:20 UTC
My host (arm) system's emerge-arm-module2-linux-gnueabi --info

Portage 2.1.6.13 (embedded, gcc-4.4.0, glibc-2.8_p20080602-r1, 2.6.31-gentoo-r6-my5 i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-my5-i686-Intel-R-_Pentium-R-_4_CPU_2.60GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 16 Apr 2010 01:45:02 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r2
dev-lang/python:     2.4.4-r13, 2.5.4-r2, 2.6.4
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       3.4.6-r2, 4.1.2, 4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="arm"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -pipe  -fomit-frame-pointer -I/usr/arm-module2-linux-gnueabi/usr/include/ -I/usr/arm-module2-linux-gnueabi/include/"
CHOST="arm-module2-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
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="-Os -pipe  -fomit-frame-pointer -I/usr/arm-module2-linux-gnueabi/usr/include/ -I/usr/arm-module2-linux-gnueabi/include/"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks fixpackages nodoc noinfo noman parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-L/usr/arm-module2-linux-gnueabi/lib -L/usr/arm-module2-linux-gnueabi/usr/lib"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/arm-module2-linux-gnueabi/packages/"
PORTAGE_CONFIGROOT="/usr/arm-module2-linux-gnueabi/"
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="/usr/arm-module2-linux-gnueabi/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/smironov/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="arm bindist crypt kdrive loop-aes make-symlinks minimal modules multicall openct zlib" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse tslib" KERNEL="linux" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="fbdev dummy"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 2 Sergey Mironov 2010-04-26 11:38:17 UTC
Created attachment 229225 [details]
Full build log
Comment 3 Sergey Mironov 2010-04-26 11:47:00 UTC
Created attachment 229231 [details, diff]
dev-libs/opensc/opensc-0.11.12  patch forces re-generating Makefiles

Here is a patch which fixes the problem for me. Throw I can't understand exactly why does it works. Probably, eautoreconf triggers some libtool workaround for cross-compiling. Please, check.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-11-29 13:43:54 UTC
Please next time remember to set category as well.

Fixed (slightly differently) in -r1.