CHOST=mips-softfloat-linux-gnu CBUILD=x86_64-pc-linux-gnu USE="berkdb cracklib nls -audit -debug -nis (-selinux) {-test} -vim-syntax" ...stuff make[3]: Entering directory '/var/tmp/portage/sys-libs/pam-1.1.8-r1/work/pam-1.1.8_build/modules/pam_userdb' ...stuff libtool: link: mips-softfloat-linux-gnu-gcc -shared .libs/pam_userdb.o -Wl,-rpath -Wl,/var/tmp/portage/sys-libs/pam-1.1.8-r1/work/pam-1.1.8_build/libpam/.libs /usr/lib/libdb-4.8.so -lpthread -lcrypt -Wl,--as-needed ../../libpam/.libs/libpam.so -ldl -march=24kc -msoft-float -Wl,--version-script=/var/tmp/portage/sys-libs/pam-1.1.8-r1/work/Linux-PAM-1.1.8/modules/pam_userdb/../modules.map -Wl,-O1 -Wl,--as-needed -march=24kc -msoft-float -Wl,--no-undefined -Wl,-O1 -Wl,-soname -Wl,pam_userdb.so -o .libs/pam_userdb.so /usr/lib/libdb-4.8.so: error adding symbols: File in wrong format I'm working on a patch. Reproducible: Always
Forgot the following line of the build log: /bin/sh ../../libtool --tag=CC --mode=link mips-softfloat-linux-gnu-gcc -I/var/tmp/portage/sys-libs/pam-1.1.8-r1/work/Linux-PAM-1.1.8/libpam/include -I/var/tmp/portage/sys-libs/pam-1.1.8-r1/work/Linux-PAM-1.1.8/libpamc/include -O2 -march=24kc -msoft-float -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -Wwrite-strings -Winline -Wshadow -no-undefined -avoid-version -module -ldb-4.8 -lcrypt -Wl,--version-script=/var/tmp/portage/sys-libs/pam-1.1.8-r1/work/Linux-PAM-1.1.8/modules/pam_userdb/../modules.map -Wl,-O1,--as-needed -O2 -march=24kc -msoft-float -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -o pam_userdb.la -rpath /lib/security pam_userdb.lo ../../libpam/libpam.la libtool is run with -ldb-4.8 and translates that to /usr/lib/libdb-4.8.so. Turned out to happen because /usr/mips*/usr/lib/libdb-4.8.la has libdir="/usr/lib" What should be done in that case? P.S. sys-libs/db installs static libraries without USE="static-libs". This is a bug.
1) Please post your `(cross-)emerge --info' output in a comment. 2) Please attach the entire build log to this bug report.
Created attachment 377648 [details] build.log.xz 1) Relevant parts: CHOST=mips-softfloat-linux-gnu CBUILD=x86_64-pc-linux-gnu USE="berkdb cracklib nls -audit -debug -nis -vim-syntax cxx -doc -examples -java -tcl -static-libs" 2) Relevant parts: ... Nothing to see here make[3]: Entering directory '/var/tmp/portage/sys-libs/pam-1.1.8-r1/work/pam-1.1.8_build/modules/pam_userdb' ... Nothing to see here /bin/sh ../../libtool --tag=CC --mode=link mips-softfloat-linux-gnu-gcc -I/var/tmp/portage/sys-libs/pam-1.1.8-r1/work/Linux-PAM-1.1.8/libpam/include -I/var/tmp/portage/sys-libs/pam-1.1.8-r1/work/Linux-PAM-1.1.8/libpamc/include -O2 -march=24kc -msoft-float -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -Wwrite-strings -Winline -Wshadow -no-undefined -avoid-version -module -ldb-4.8 -lcrypt -Wl,--version-script=/var/tmp/portage/sys-libs/pam-1.1.8-r1/work/Linux-PAM-1.1.8/modules/pam_userdb/../modules.map -Wl,-O1,--as-needed -O2 -march=24kc -msoft-float -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -o pam_userdb.la -rpath /lib/security pam_userdb.lo ../../libpam/libpam.la /usr/lib/libdb-4.8.so: error adding symbols: File in wrong format Note that libtool chooses /usr/lib/libdb-4.8.so instead of /usr/mips-softfloat-linux-gnu/usr/lib/libdb-4.8.so when cross-compiling. The reason is that /usr/mips-softfloat-linux-gnu/usr/lib/libdb-4.8.la has libdir="/usr/lib". The fact that this causes the bug can be determined by careful inspection of libtool (script in the build directory).
(In reply to Jeroen Roovers from comment #2) > 1) Please post your `(cross-)emerge --info' output in a comment.
="/var/cache/edb/dep" PORTAGE_ELOG_CLASSES="log warn error" PORTAGE_ELOG_MAILFROM="portage@localhost" PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}" PORTAGE_ELOG_MAILURI="root" PORTAGE_ELOG_SYSTEM="save_summary:log,warn,error,qa echo" PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5" PORTAGE_FETCH_RESUME_MIN_SIZE="350K" PORTAGE_GID="250" PORTAGE_GPG_SIGNING_COMMAND="gpg --sign --digest-algo SHA256 --clearsign --yes --default-key "${PORTAGE_GPG_KEY}" --homedir "${PORTAGE_GPG_DIR}" "${FILE}"" PORTAGE_INST_GID="0" PORTAGE_INST_UID="0" PORTAGE_INTERNAL_CALLER="1" PORTAGE_OVERRIDE_EPREFIX="" PORTAGE_PYM_PATH="/usr/lib64/portage/pym" PORTAGE_PYTHONPATH="/usr/lib64/portage/pym" PORTAGE_REPOSITORIES="[DEFAULT] main-repo = gentoo [gentoo] location = /usr/portage masters = priority = 0 sync-type = rsync sync-uri = rsync://rsync.gentoo.org/gentoo-portage " PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_RSYNC_RETRIES="-1" PORTAGE_SYNC_STALE="30" PORTAGE_TMPDIR="/var/tmp" PORTAGE_VERBOSE="1" PORTAGE_WORKDIR_MODE="0700" PORTAGE_XATTR_EXCLUDE="security.* system.nfs4_acl" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" PORT_LOGDIR_CLEAN="find "${PORT_LOGDIR}" -type f ! -name "summary.log*" -mtime +7 -delete" PRELINK_PATH_MASK="/usr/lib64/libfreebl3.so:/usr/lib64/libnssdbm3.so:/usr/lib64/libsoftokn3.so:/opt/bin/skype" PROFILE_ARCH="mips" PROFILE_ONLY_VARIABLES="ARCH ELIBC IUSE_IMPLICIT KERNEL USERLAND USE_EXPAND_IMPLICIT USE_EXPAND_UNPREFIXED USE_EXPAND_VALUES_ARCH USE_EXPAND_VALUES_ELIBC USE_EXPAND_VALUES_KERNEL USE_EXPAND_VALUES_USERLAND" PWD="/home/hristo" PYTHONDONTWRITEBYTECODE="1" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python3_4" QT_GRAPHICSSYSTEM="raster" RESUMECOMMAND="wget -c -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}"" RESUMECOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}"" RESUMECOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec rsync --rsh=\"ssh -p\${port} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}"" ROOT="/usr/mips-softfloat-linux-gnu/" ROOTPATH="/opt/bin" RPMDIR="/usr/portage/rpm" RUBYOPT="-rauto_gem" RUBY_TARGETS="ruby19 ruby20" SESSION_MANAGER="local/hristo.venev.name:@/tmp/.ICE-unix/672,unix/hristo.venev.name:/tmp/.ICE-unix/672" SHELL="/bin/bash" SHLVL="1" SSH_AUTH_SOCK="/run/user/1000/keyring/ssh" SYNC=" rsync://rsync.de.gentoo.org/gentoo-portage rsync://rsync.cz.gentoo.org/gentoo-portage rsync://rsync.ro.gentoo.org/gentoo-portage " SYSROOT="/usr/mips-softfloat-linux-gnu" SYSTEMD_LESS="FRSM --shift 5" TERM="xterm" UNINSTALL_IGNORE="/lib/modules/*" USE="acl berkdb bzip2 cli cracklib crypt cxx gdbm gmp iconv ipv6 mips modules ncurses nls nptl pam pcre python readline session ssl tcpd unicode xattr zlib" ALSA_CARDS="au1x00" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 author" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev impact newport 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" USER="hristo" USERLAND="GNU" USE_EXPAND="ABI_MIPS ABI_PPC ABI_S390 ABI_X86 ALSA_CARDS APACHE2_MODULES APACHE2_MPMS CALLIGRA_FEATURES CAMERAS COLLECTD_PLUGINS CROSSCOMPILE_OPTS CURL_SSL DRACUT_MODULES DVB_CARDS ELIBC ENLIGHTENMENT_MODULES FCDSL_CARDS FFTOOLS FOO2ZJS_DEVICES FRITZCAPI_CARDS GPSD_PROTOCOLS GRUB_PLATFORMS INPUT_DEVICES KERNEL LCD_DEVICES LIBREOFFICE_EXTENSIONS LINGUAS LIRC_DEVICES MONKEYD_PLUGINS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL OFED_DRIVERS OFFICE_IMPLEMENTATION OPENMPI_FABRICS OPENMPI_OFED_FEATURES OPENMPI_RM PHP_TARGETS PYTHON_SINGLE_TARGET PYTHON_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS USERLAND UWSGI_PLUGINS VIDEO_CARDS VOICEMAIL_STORAGE XFCE_PLUGINS XTABLES_ADDONS" USE_EXPAND_HIDDEN="ABI_MIPS ABI_PPC ABI_S390 ABI_X86 CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND" USE_EXPAND_IMPLICIT="ARCH ELIBC KERNEL USERLAND" USE_EXPAND_UNPREFIXED="ARCH" USE_EXPAND_VALUES_ARCH="alpha amd64 amd64-fbsd amd64-linux arm arm-linux arm64 hppa hppa-hpux ia64 ia64-hpux ia64-linux m68k m68k-mint mips ppc ppc64 ppc64-linux ppc-aix ppc-macos ppc-openbsd s390 sh sparc sparc64-freebsd sparc64-solaris sparc-fbsd sparc-solaris x64-freebsd x64-macos x64-openbsd x64-solaris x86 x86-cygwin x86-fbsd x86-freebsd x86-interix x86-linux x86-macos x86-netbsd x86-openbsd x86-solaris x86-winnt" USE_EXPAND_VALUES_ELIBC="AIX Cygwin Darwin DragonFly FreeBSD glibc HPUX Interix mintlib musl NetBSD OpenBSD SunOS uclibc Winnt" USE_EXPAND_VALUES_KERNEL="AIX Cygwin Darwin FreeBSD freemint HPUX Interix linux NetBSD OpenBSD SunOS Winnt" USE_EXPAND_VALUES_USERLAND="BSD GNU" USE_ORDER="env:pkg:conf:defaults:pkginternal:repo:env.d" VIDEO_CARDS="fbdev impact newport dummy v4l" VTE_VERSION="3701" WINDOWID="39845895" XDG_CONFIG_DIRS="/etc/xdg" XDG_DATA_DIRS="/usr/local/share:/usr/share:/usr/share/gdm" XDG_MENU_PREFIX="gnome-" XDG_RUNTIME_DIR="/run/user/1000" XDG_SEAT="seat0" XDG_SESSION_CLASS="" XDG_SESSION_DESKTOP="" XDG_SESSION_ID="2" XDG_SESSION_LEADER="2809" XDG_SESSION_TYPE="" XDG_VTNR="2" 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"
stupid parcellite Portage 2.2.10_p23 (python 3.4.0-final-0, default/linux/mips/13.0, gcc-4.8.2, glibc-2.19, 3.15.0-rc6+ x86_64) ================================================================= System uname: Linux-3.15.0-rc6+-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2 KiB Mem: 16118864 total, 9415808 free KiB Swap: 0 total, 0 free Timestamp of tree: Sun, 25 May 2014 15:00:01 +0000 ld GNU ld (GNU Binutils) 2.24 app-shells/bash: 4.2_p47 dev-lang/python: 3.4.0 sys-apps/baselayout: 2.2 sys-devel/libtool: 2.4.2 sys-devel/make: 4.0-r1 sys-kernel/linux-headers: 3.14 (virtual/os-headers) sys-libs/glibc: 2.19 Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: 0 ACCEPT_KEYWORDS="mips ~mips" ACCEPT_LICENSE="* -@EULA" ACCEPT_PROPERTIES="*" ACCEPT_RESTRICT="*" ALSA_CARDS="au1x00" ANDROID_HOME="/opt/android-sdk-update-manager" ANDROID_SWT="/usr/share/swt-3.7/lib" ANT_HOME="/usr/share/ant" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" ARCH="mips" AUTOCLEAN="yes" BOOTSTRAP_USE="cxx unicode internal-glib python_targets_python3_3 python_targets_python2_7" BUILD_CFLAGS="-O2 -pipe -march=core-avx-i -mtune=core-avx-i -fomit-frame-pointer -ftree-vectorize -ftree-slp-vectorize -ftree-partial-pre -fvect-cost-model -fgcse-after-reload -fpredictive-commoning -ftrack-macro-expansion=0 -fno-diagnostics-show-caret" BUILD_CPPFLAGS="" BUILD_CXXFLAGS="-O2 -pipe -march=core-avx-i -mtune=core-avx-i -fomit-frame-pointer -ftree-vectorize -ftree-slp-vectorize -ftree-partial-pre -fvect-cost-model -fgcse-after-reload -fpredictive-commoning -ftrack-macro-expansion=0 -fno-diagnostics-show-caret -std=gnu++11" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" CBUILD="x86_64-pc-linux-gnu" CFLAGS=" -O2 -march=24kc -msoft-float" CHOST="mips-softfloat-linux-gnu" CLEAN_DELAY="5" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" COLLISION_IGNORE="/lib/modules/* *.py[co] *$py.class */dropin.cache" CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CPPFLAGS="" CTARGET="mips-softfloat-linux-gnu" CXXFLAGS=" -O2 -march=24kc -msoft-float -fabi-version=0 -std=gnu++11" DBUS_SESSION_BUS_ADDRESS="kernel:path=/dev/kdbus/1000-user/bus;unix:path=/run/user/1000/bus" DISPLAY=":0" DISTDIR="/var/lib/portage/distfiles" EDITOR="/usr/bin/vim" ELIBC="glibc" EMERGE_DEFAULT_OPTS="--ask --verbose --keep-going --quiet-build=n --jobs --buildpkg" EMERGE_WARNING_DELAY="10" EPREFIX="" EROOT="/usr/mips-softfloat-linux-gnu/" FCFLAGS="" FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FETCHCOMMAND="wget -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}"" FETCHCOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}"" FETCHCOMMAND_SFTP="bash -c "x=\${2#sftp://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; eval \"declare -a ssh_opts=(\${3})\" ; exec sftp -P \${port} \"\${ssh_opts[@]}\" \"\${host}:/\${x#*/}\" \"\$1\"" sftp "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}"" FETCHCOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec rsync --rsh=\"ssh -p\${port} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}"" FFLAGS="" GCC_SPECS="" GENTOO_MIRRORS=" http://distfiles.gentoo.bg/ http://mirrors.telepoint.bg/gentoo/ http://distfiles.gentoo.org/ http://localhost:3348/gentoo " GNOME_DESKTOP_SESSION_ID="this-is-deprecated" GPG_AGENT_INFO="/run/user/1000/keyring/gpg:0:1" 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 ublox ubx" GRUB_PLATFORMS="" GSETTINGS_BACKEND="dconf" GUILE_LOAD_PATH="/usr/share/guile/1.8" HG="/usr/bin/hg" HOME="/home/hristo" INFOPATH="/usr/share/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.0-pre9999/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.24/info" INPUT_DEVICES="keyboard mouse evdev" IUSE_IMPLICIT="prefix" JAVAC="/home/hristo/.gentoo/java-config-2/current-user-vm/bin/javac" JAVA_HOME="/home/hristo/.gentoo/java-config-2/current-user-vm" JDK_HOME="/home/hristo/.gentoo/java-config-2/current-user-vm" KERNEL="linux" LADSPA_PATH="/usr/lib64/ladspa" LANG="en_US.UTF-8" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LC_ALL="en_US.UTF-8" LC_MESSAGES="C" LDFLAGS="-Wl,-O1,--as-needed -O2 -march=24kc -msoft-float" LESS="-R -M --shift 5" LESSOPEN="|lesspipe %s" LIBDIR_n32="lib32" LIBDIR_n64="lib64" LIBDIR_o32="lib" LIBGL_DRIVERS_PATH="/usr/lib64/dri:/usr/lib32/dri" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LOGNAME="hristo" MAKEFLAGS="-j9" MANAGERPID="528" MANPATH="/home/hristo/.gentoo/java-config-2/current-user-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.0-pre9999/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.24/man:/etc/java-config-2/current-system-vm/man/" NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" NOCOLOR="true" OFFICE_IMPLEMENTATION="libreoffice" OPENCL_PROFILE="amd" OPENGL_PROFILE="ati" PAGER="/usr/bin/less" PATH="/home/hristo/.local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.0-pre9999:/usr/x86_64-pc-linux-gnu/mips-softfloat-linux-gnu/gcc-bin/4.8.2:/opt/android-ndk:/opt/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin:/opt/android-ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin:/opt/android-ndk/toolchains/llvm-3.3/prebuilt/linux-x86_64/bin:/opt/android-ndk/toolchains/llvm-3.4/prebuilt/linux-x86_64/bin:/opt/android-ndk/toolchains/mipsel-linux-android-4.6/prebuilt/linux-x86_64/bin:/opt/android-ndk/toolchains/mipsel-linux-android-4.8/prebuilt/linux-x86_64/bin:/opt/android-ndk/toolchains/renderscript/prebuilt/linux-x86_64/bin:/opt/android-ndk/toolchains/x86-4.6/prebuilt/linux-x86_64/bin:/opt/android-ndk/toolchains/x86-4.8/prebuilt/linux-x86_64/bin:/opt/android-sdk-update-manager/tools:/opt/android-sdk-update-manager/platform-tools:/usr/games/bin" PHP_TARGETS="php5-5" PKGDIR="/var/lib/portage/packages/mips-softfloat-linux-gnu" PORTAGE_ARCHLIST="arm sparc64-solaris x64-macos x86-solaris x86 sh ppc-openbsd sparc-fbsd ppc64 x64-solaris x86-fbsd x86-linux alpha ia64-hpux x86-cygwin ia64 hppa-hpux x86-openbsd x86-freebsd m68k-mint amd64 x86-netbsd s390 amd64-linux x64-freebsd sparc64-freebsd sparc ppc-aix x86-winnt ppc ppc-macos ia64-linux x64-openbsd arm-linux hppa m68k x86-macos sparc-solaris mips amd64-fbsd x86-interix arm64 ppc64-linux" PORTAGE_BIN_PATH="/usr/lib64/portage/bin" PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png" PORTAGE_CONFIGROOT="/usr/mips-softfloat-linux-gnu/" PORTAGE_DEBUG="0" PORTAGE_DEPCACHEDIR="/var/cache/edb/dep" PORTAGE_ELOG_CLASSES="log warn error" PORTAGE_ELOG_MAILFROM="portage@localhost" PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}" PORTAGE_ELOG_MAILURI="root" PORTAGE_ELOG_SYSTEM="save_summary:log,warn,error,qa echo" PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5" PORTAGE_FETCH_RESUME_MIN_SIZE="350K" PORTAGE_GID="250" PORTAGE_GPG_SIGNING_COMMAND="gpg --sign --digest-algo SHA256 --clearsign --yes --default-key "${PORTAGE_GPG_KEY}" --homedir "${PORTAGE_GPG_DIR}" "${FILE}"" PORTAGE_INST_GID="0" PORTAGE_INST_UID="0" PORTAGE_INTERNAL_CALLER="1" PORTAGE_OVERRIDE_EPREFIX="" PORTAGE_PYM_PATH="/usr/lib64/portage/pym" PORTAGE_PYTHONPATH="/usr/lib64/portage/pym" PORTAGE_REPOSITORIES="[DEFAULT] main-repo = gentoo [gentoo] location = /usr/portage masters = priority = 0 sync-type = rsync sync-uri = rsync://rsync.gentoo.org/gentoo-portage " PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_RSYNC_RETRIES="-1" PORTAGE_SYNC_STALE="30" PORTAGE_TMPDIR="/var/tmp" PORTAGE_VERBOSE="1" PORTAGE_WORKDIR_MODE="0700" PORTAGE_XATTR_EXCLUDE="security.* system.nfs4_acl" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" PORT_LOGDIR_CLEAN="find "${PORT_LOGDIR}" -type f ! -name "summary.log*" -mtime +7 -delete" PRELINK_PATH_MASK="/usr/lib64/libfreebl3.so:/usr/lib64/libnssdbm3.so:/usr/lib64/libsoftokn3.so:/opt/bin/skype" PROFILE_ARCH="mips" PROFILE_ONLY_VARIABLES="ARCH ELIBC IUSE_IMPLICIT KERNEL USERLAND USE_EXPAND_IMPLICIT USE_EXPAND_UNPREFIXED USE_EXPAND_VALUES_ARCH USE_EXPAND_VALUES_ELIBC USE_EXPAND_VALUES_KERNEL USE_EXPAND_VALUES_USERLAND" PWD="/home/hristo" PYTHONDONTWRITEBYTECODE="1" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python3_4" QT_GRAPHICSSYSTEM="raster" RESUMECOMMAND="wget -c -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}"" RESUMECOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}"" RESUMECOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec rsync --rsh=\"ssh -p\${port} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}"" ROOT="/usr/mips-softfloat-linux-gnu/" ROOTPATH="/opt/bin" RPMDIR="/usr/portage/rpm" RUBYOPT="-rauto_gem" RUBY_TARGETS="ruby19 ruby20" SESSION_MANAGER="local/hristo.venev.name:@/tmp/.ICE-unix/672,unix/hristo.venev.name:/tmp/.ICE-unix/672" SHELL="/bin/bash" SHLVL="1" SSH_AUTH_SOCK="/run/user/1000/keyring/ssh" SYNC=" rsync://rsync.de.gentoo.org/gentoo-portage rsync://rsync.cz.gentoo.org/gentoo-portage rsync://rsync.ro.gentoo.org/gentoo-portage " SYSROOT="/usr/mips-softfloat-linux-gnu" SYSTEMD_LESS="FRSM --shift 5" TERM="xterm" UNINSTALL_IGNORE="/lib/modules/*" USE="acl berkdb bzip2 cli cracklib crypt cxx gdbm gmp iconv ipv6 mips modules ncurses nls nptl pam pcre python readline session ssl tcpd unicode xattr zlib" ALSA_CARDS="au1x00" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 author" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev impact newport 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" USER="hristo" USERLAND="GNU" USE_EXPAND="ABI_MIPS ABI_PPC ABI_S390 ABI_X86 ALSA_CARDS APACHE2_MODULES APACHE2_MPMS CALLIGRA_FEATURES CAMERAS COLLECTD_PLUGINS CROSSCOMPILE_OPTS CURL_SSL DRACUT_MODULES DVB_CARDS ELIBC ENLIGHTENMENT_MODULES FCDSL_CARDS FFTOOLS FOO2ZJS_DEVICES FRITZCAPI_CARDS GPSD_PROTOCOLS GRUB_PLATFORMS INPUT_DEVICES KERNEL LCD_DEVICES LIBREOFFICE_EXTENSIONS LINGUAS LIRC_DEVICES MONKEYD_PLUGINS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL OFED_DRIVERS OFFICE_IMPLEMENTATION OPENMPI_FABRICS OPENMPI_OFED_FEATURES OPENMPI_RM PHP_TARGETS PYTHON_SINGLE_TARGET PYTHON_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS USERLAND UWSGI_PLUGINS VIDEO_CARDS VOICEMAIL_STORAGE XFCE_PLUGINS XTABLES_ADDONS" USE_EXPAND_HIDDEN="ABI_MIPS ABI_PPC ABI_S390 ABI_X86 CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND" USE_EXPAND_IMPLICIT="ARCH ELIBC KERNEL USERLAND" USE_EXPAND_UNPREFIXED="ARCH" USE_EXPAND_VALUES_ARCH="alpha amd64 amd64-fbsd amd64-linux arm arm-linux arm64 hppa hppa-hpux ia64 ia64-hpux ia64-linux m68k m68k-mint mips ppc ppc64 ppc64-linux ppc-aix ppc-macos ppc-openbsd s390 sh sparc sparc64-freebsd sparc64-solaris sparc-fbsd sparc-solaris x64-freebsd x64-macos x64-openbsd x64-solaris x86 x86-cygwin x86-fbsd x86-freebsd x86-interix x86-linux x86-macos x86-netbsd x86-openbsd x86-solaris x86-winnt" USE_EXPAND_VALUES_ELIBC="AIX Cygwin Darwin DragonFly FreeBSD glibc HPUX Interix mintlib musl NetBSD OpenBSD SunOS uclibc Winnt" USE_EXPAND_VALUES_KERNEL="AIX Cygwin Darwin FreeBSD freemint HPUX Interix linux NetBSD OpenBSD SunOS Winnt" USE_EXPAND_VALUES_USERLAND="BSD GNU" USE_ORDER="env:pkg:conf:defaults:pkginternal:repo:env.d" VIDEO_CARDS="fbdev impact newport dummy v4l" VTE_VERSION="3701" WINDOWID="39845895" XDG_CONFIG_DIRS="/etc/xdg" XDG_DATA_DIRS="/usr/local/share:/usr/share:/usr/share/gdm" XDG_MENU_PREFIX="gnome-" XDG_RUNTIME_DIR="/run/user/1000" XDG_SEAT="seat0" XDG_SESSION_CLASS="" XDG_SESSION_DESKTOP="" XDG_SESSION_ID="2" XDG_SESSION_LEADER="2809" XDG_SESSION_TYPE="" XDG_VTNR="2" 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"
This is a me too comment, I just had the same happen to me. Once upon a time one used to run cross-fix-root automatically but not anymore. Is cross-fix-root obsolete or should it be added back?
(In reply to Joakim Tjernlund from comment #7) > This is a me too comment, I just had the same happen to me. > > Once upon a time one used to run cross-fix-root automatically > but not anymore. Is cross-fix-root obsolete or should it be added back? Or perhaps libtools fairly new --with-sysroot configure option could be used? Is there a reason why not --with-sysroot is enabled in libtool now?
I played a litte and it turns out that one does not need the libdb*la files to build pam. Removing all libd*.la makes pam happy. apparently one only need *.la files if one builds static *.a libs. and there are dependencies on other libs too. More info at https://blog.flameeyes.eu/2008/04/what-about-those-la-files#gsc.tab=0 pam does not is happy without them. I think this bug should be reassigned to sys-libs/db
using sys-libs/pam-1.1.8-r2 and adding eautorconf to rebuild old libtool files and then to configure adding --with-sysroot=yes solved the issue. Hopefully one can add with-sysroot=xxx to econf, wrapping it proper cross compile guards?
Just to show exactly what I did(inline), could something like the below be aded to PAM ebuild? --- pam-1.1.8-r2.ebuild.org 2015-02-07 13:27:55.956949334 +0100 +++ pam-1.1.8-r2.ebuild 2015-02-07 13:30:05.171420033 +0100 @@ -4,7 +4,7 @@ EAPI=5 -inherit libtool multilib multilib-minimal eutils pam toolchain-funcs flag-o-matic db-use +inherit autotools libtool multilib multilib-minimal eutils pam toolchain-funcs flag-o-matic db-use MY_PN="Linux-PAM" MY_P="${MY_PN}-${PV}" @@ -92,7 +92,8 @@ src_prepare() { epatch "${FILESDIR}"/${PN}-1.1.8-doc-install.patch #473650 - elibtoolize + #Regenerate libtool files as it is too old for sysroot support + eautoreconf } multilib_src_configure() { @@ -115,6 +116,7 @@ $(use_enable nis) --with-db-uniquename=-$(db_findver sys-libs/db) --disable-prelude + --with-sysroot=yes )
*** Bug 541442 has been marked as a duplicate of this bug. ***
i can't reproduce this with pam-1.1.8-r3 and latest unstable system. building with berkdb & cracklib both work for a ppc target. is this still an issue for people ?
(In reply to SpanKY from comment #13) > i can't reproduce this with pam-1.1.8-r3 and latest unstable system. > building with berkdb & cracklib both work for a ppc target. is this still > an issue for people ? Not in a position to cross build ppc ATM but I cannot see what made pam cross build properly. There are no changes w.r.t *.la files or --sysroot support.
(In reply to SpanKY from comment #13) > i can't reproduce this with pam-1.1.8-r3 and latest unstable system. > building with berkdb & cracklib both work for a ppc target. is this still > an issue for people ? Now that sys-libs/pam-1.2.1 is stable I guess everything works if one just passes EXTRA_ECONF="--with-sysroot=yes" when building pam. I have not tested that though. sidenote, I compared diff -u pam-1.2.1.ebuild pam-1.2.1-r1.ebuild: - # Need to be suid - fperms 4711 /sbin/unix_chkpwd - docinto modules local dir for dir in modules/pam_*; do @@ -198,4 +195,8 @@ elog " chmod -x /var/log/tallylog" elog "" fi + + # The pam_unix module needs to check the password of the user which requires + # read access to /etc/shadow only. + fcaps cap_dac_override sbin/unix_chkpwd Should pam use fcaps here unconditionally here?
(In reply to Joakim Tjernlund from comment #15) it isn't unconditional -- check the fcaps eclass for its behavior
(In reply to SpanKY from comment #16) > (In reply to Joakim Tjernlund from comment #15) > > it isn't unconditional -- check the fcaps eclass for its behavior ahh, right. Sorry for the noise.
(In reply to SpanKY from comment #13) > i can't reproduce this with pam-1.1.8-r3 and latest unstable system. > building with berkdb & cracklib both work for a ppc target. is this still > an issue for people ? Just happens here while trying to cross-compile sys-libs/pam-1.2.1 with +berkdb for my armv7 stable box.
> multilib_src_configure() { > @@ -115,6 +116,7 @@ > $(use_enable nis) > --with-db-uniquename=-$(db_findver sys-libs/db) > --disable-prelude > + --with-sysroot=yes > ) After doing this it cross-compiles fine.
(In reply to Fab from comment #19) > > multilib_src_configure() { > > @@ -115,6 +116,7 @@ > > $(use_enable nis) > > --with-db-uniquename=-$(db_findver sys-libs/db) > > --disable-prelude > > + --with-sysroot=yes > > ) > > After doing this it cross-compiles fine. Does EXTRA_ECONF="--with-sysroot=yes" emerge =sys-libs/pam-1.2.1 work as well?
re-open if still actual (which I do not believe) :)