try to install nginx-1.4.7-r1 on my loongson box (MIPS base, using multilib/n32 profile), got following error. as I inspecting the ebuild file, it's hardcoded with --with-ld-opt="-L${EROOT}usr/lib". as I change to --with-ld-opt="-L${EROOT}usr/$(get_libdir)" get the problem fixed. >>> Source unpacked in /var/tmp/portage/www-servers/nginx-1.4.7-r1/work >>> Preparing source in /var/tmp/portage/www-servers/nginx-1.4.7-r1/work/nginx-1.4.7 ... * Applying nginx-1.4.1-fix-perl-install-path.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/www-servers/nginx-1.4.7-r1/work/nginx-1.4.7 ... checking for OS + Linux 3.13.3+ mips64 checking for C compiler ... found + using GNU C compiler checking for --with-ld-opt="-L/usr/lib" ... not found ./configure: error: the invalid value in --with-ld-opt="-L/usr/lib" * ERROR: www-servers/nginx-1.4.7-r1::gentoo failed (configure phase): * configure failed * * Call stack: * ebuild.sh, line 93: Called src_configure * environment, line 3719: Called die * The specific snippet of code: * ./configure --prefix="${EPREFIX}"/usr --conf-path="${EPREFIX}"/etc/${PN}/${PN}.conf --error-log-path="${EPREFIX}"/var/log/${PN}/error_log --pid-path="${EPREFIX}"/run/${PN}.pid --lock-path="${EPREFIX}"/run/lock/${PN}.lock --with-cc-opt="-I${EROOT}usr/include" --with-ld-opt="-L${EROOT}usr/lib" --http-log-path="${EPREFIX}"/var/log/${PN}/access_log --http-client-body-temp-path="${EPREFIX}/${NGINX_HOME_TMP}"/client --http-proxy-temp-path="${EPREFIX}/${NGINX_HOME_TMP}"/proxy --http-fastcgi-temp-path="${EPREFIX}/${NGINX_HOME_TMP}"/fastcgi --http-scgi-temp-path="${EPREFIX}/${NGINX_HOME_TMP}"/scgi --http-uwsgi-temp-path="${EPREFIX}/${NGINX_HOME_TMP}"/uwsgi ${myconf} || die "configure failed" * * If you need support, post the output of `emerge --info '=www-servers/nginx-1.4.7-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=www-servers/nginx-1.4.7-r1::gentoo'`. * The complete build log is located at '/var/tmp/portage/www-servers/nginx-1.4.7-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/www-servers/nginx-1.4.7-r1/temp/environment'. * Working directory: '/var/tmp/portage/www-servers/nginx-1.4.7-r1/work/nginx-1.4.7' * S: '/var/tmp/portage/www-servers/nginx-1.4.7-r1/work/nginx-1.4.7' Reproducible: Always Portage 2.2.10 (default/linux/mips/13.0/mipsel/multilib/n32, gcc-4.8.2, glibc-2.19, 3.13.3+ mips64) ================================================================= System uname: Linux-3.13.3+-mips64-ICT_Loongson-2_V0.3_FPU_V0.1-with-gentoo-2.2 KiB Mem: 507632 total, 106032 free KiB Swap: 2097136 total, 2071040 free Timestamp of tree: Sun, 04 May 2014 11:45:01 +0000 ld GNU ld (GNU Binutils) 2.24 app-shells/bash: 4.2_p47 dev-lang/python: 2.7.6-r1, 3.2.5-r3, 3.3.5, 3.4.0 dev-util/cmake: 2.8.12 dev-util/pkgconfig: 0.28-r1 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.6, 1.12.4, 1.13.4, 1.14.1 sys-devel/binutils: 2.24-r2 sys-devel/gcc: 4.6.3, 4.8.2 sys-devel/gcc-config: 1.8 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 yeeloong enlightenment-dlan dlan ACCEPT_KEYWORDS="mips ~mips" ACCEPT_LICENSE="* -@EULA" CBUILD="mips64el-unknown-linux-gnu" CFLAGS="-O2 -march=loongson2f -Wa,-mfix-loongson2f-nop -pipe" CHOST="mips64el-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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=loongson2f -Wa,-mfix-loongson2f-nop -pipe" DISTDIR="/mnt/data/gentoo/locals" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://mirrors.163.com/gentoo http://mirrors.aliyun.com/gentoo http://mirrors.xmu.edu.cn/gentoo" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3 -l3" PKGDIR="/mnt/data/gentoo/packages" PORTAGE_CONFIGROOT="/" 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_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/yeeloong /var/lib/layman/enlightenment-dlan /var/lib/layman/dlan" SYNC="rsync://mirrors.xmu.edu.cn/gentoo-portage" USE="X acl alsa artworkextra avahi berkdb bindist bzip2 cairo cli consolekit cracklib crypt cups cxx dbus exif ffmpeg flac gdbm gdu glchess gtk gtk3 gudev hwdb iconv id3tag ipv6 jpeg latex lcms libsamplerate lock math midi mips modules mp3 multilib ncurses nls nptl openxml ots pam pcre pic png policykit python readline session soundtouch spell ssl startup-notification tcpd threads thunar tiff twolame udev udisks unicode vamp vorbis wmf wordperfect zlib" ABI_MIPS="n32" 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="evdev keyboard mouse" 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="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev" 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, USE_PYTHON
Created attachment 376716 [details, diff] multilib patch
also, I'd like to request to keyword for MIPS arch, can you help this? or am I granted to add this myself?
(In reply to Yixun Lan from comment #2) > also, I'd like to request to keyword for MIPS arch, can you help this? or am > I granted to add this myself? Usually you can add unstable keywords for all archs you've tested it on. But you may ask the respective arch team before still.
Done in bump to 1.7.2, thanks to jbergstroem.