Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 415705 - dev-libs/nspr-4.9: native-nsinstall: cannot access nspr-config (error installations by cross compilations)
Summary: dev-libs/nspr-4.9: native-nsinstall: cannot access nspr-config (error install...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-13 06:38 UTC by thunder367
Modified: 2013-03-19 22:34 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,76.04 KB, text/plain)
2012-05-13 07:01 UTC, thunder367
Details

Note You need to log in before you can comment on or make changes to this bug.
Description thunder367 2012-05-13 06:38:56 UTC
thunder367 / # armv7a-hardfloat-linux-gnueabi-emerge -b nspr

...<skip>...

make[1]: Leaving directory `/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9/work/nspr-4.9/build/lib'
>>> Source compiled.
>>> Test phase [not enabled]: dev-libs/nspr-4.9

>>> Install nspr-4.9 into /usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9/image/ category dev-libs
make -j3 DESTDIR=/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9/image/ install
make -C config install
make[1]: Entering directory `/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9/work/nspr-4.9/build/config'
../config/./native-nsinstall -t -m 0755 nspr-config /usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9/image//usr/bin
../config/./native-nsinstall: cannot access nspr-config: Invalid argument
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9/work/nspr-4.9/build/config'
make: *** [install] Error 2
emake failed
 * ERROR: dev-libs/nspr-4.9 failed (install phase):
 *   emake install failed
 *
 * Call stack:
 *     ebuild.sh, line  85:  Called src_install
 *   environment, line 2623:  Called die
 * The specific snippet of code:
 *       emake DESTDIR="${D}" install || die "emake install failed";
 *
 * If you need support, post the output of 'emerge --info =dev-libs/nspr-4.9',
 * the complete build log and the output of 'emerge -pqv =dev-libs/nspr-4.9'.
 * The complete build log is located at '/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9/temp/build.log'.
 * The ebuild environment file is located at '/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9/temp/environment'.
 * S: '/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9/work/nspr-4.9'

>>> Failed to emerge dev-libs/nspr-4.9 for /usr/armv7a-hardfloat-linux-gnueabi/, Log file:

>>>  '/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9/temp/build.log'


Reproducible: Always




thunder367 / # emerge -pqv =dev-libs/nspr-4.9
[ebuild   R   ] dev-libs/nspr-4.9  USE="-debug"

thunder367 / # armv7a-hardfloat-linux-gnueabi-emerge --info =dev-libs/nspr-4.9
Portage 2.1.10.49 (default/linux/arm, gcc-4.5.3, unavailable, 2.6.32-5-amd64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-2.6.32-5-amd64-x86_64-Intel-R-_Core-TM-_i5_CPU_661_@_3.33GHz-with-gentoo-2.0.3
Timestamp of tree: Sat, 12 May 2012 00:45:01 +0000
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
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.5-r2
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
ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -pipe  -fomit-frame-pointer -I/usr/armv7a-hardfloat-linux-gnueabi/usr/include/ -I/usr/armv7a-hardfloat-linux-gnueabi/include/"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc"
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"
CXXFLAGS="-Os -pipe  -fomit-frame-pointer -I/usr/armv7a-hardfloat-linux-gnueabi/usr/include/ -I/usr/armv7a-hardfloat-linux-gnueabi/include/"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg distlocks ebuild-locks fixlafiles news nodoc noinfo noman parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-L/usr/armv7a-hardfloat-linux-gnueabi/lib -L/usr/armv7a-hardfloat-linux-gnueabi/usr/lib"
MAKEOPTS="-j3"
PKGDIR="/usr/armv7a-hardfloat-linux-gnueabi/packages/"
PORTAGE_CONFIGROOT="/usr/armv7a-hardfloat-linux-gnueabi/"
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"
PORTAGE_TMPDIR="/usr/armv7a-hardfloat-linux-gnueabi/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apng arm berkdb bindist cli cracklib crypt cxx fortran iconv ipv6 make-symlinks minimal modules mudflap ncurses nls openmp pam pcre pppd readline session ssl tcpd xorg zlib" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev omapfb 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, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

thunder367 config # strace ../config/./native-nsinstall -t -m 0755 nspr-config /usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9/image//usr/bin
execve("../config/./native-nsinstall", ["../config/./native-nsinstall", "-t", "-m", "0755", "nspr-config", "/usr/armv7a-hardfloat-linux-gnue"...], [/* 28 vars */]) = 0
brk(0) = 0x13c2000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4447204000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=35240, ...}) = 0
mmap(NULL, 35240, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f44471fb000
close(3) = 0
open("/lib64/libpthread.so.0", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@l\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=135548, ...}) = 0
mmap(NULL, 2212768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f4446dc8000
mprotect(0x7f4446de0000, 2093056, PROT_NONE) = 0
mmap(0x7f4446fdf000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7f4446fdf000
mmap(0x7f4446fe1000, 13216, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f4446fe1000
close(3) = 0
open("/lib64/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300#\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1621200, ...}) = 0
mmap(NULL, 3730440, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f4446a39000
mprotect(0x7f4446bbe000, 2097152, PROT_NONE) = 0
mmap(0x7f4446dbe000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x185000) = 0x7f4446dbe000
mmap(0x7f4446dc3000, 19464, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f4446dc3000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f44471fa000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f44471f9000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f44471f8000
arch_prctl(ARCH_SET_FS, 0x7f44471f9700) = 0
mprotect(0x7f4446dbe000, 16384, PROT_READ) = 0
mprotect(0x7f4446fdf000, 4096, PROT_READ) = 0
mprotect(0x602000, 4096, PROT_READ) = 0
mprotect(0x7f4447205000, 4096, PROT_READ) = 0
munmap(0x7f44471fb000, 35240) = 0
set_tid_address(0x7f44471f99d0) = 2152
set_robust_list(0x7f44471f99e0, 0x18) = 0
futex(0x7fff4419f8ac, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x7fff4419f8ac, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, 7f44471f9700) = -1 EAGAIN (Resource temporarily unavailable)
rt_sigaction(SIGRTMIN, {0x7f4446dce6b0, [], SA_RESTORER|SA_SIGINFO, 0x7f4446dd8420}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x7f4446dce740, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7f4446dd8420}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
mkdir("/usr", 0777) = -1 EEXIST (File exists)
mkdir("/usr/armv7a-hardfloat-linux-gnueabi", 0777) = -1 EEXIST (File exists)
mkdir("/usr/armv7a-hardfloat-linux-gnueabi/tmp", 0777) = -1 EEXIST (File exists)
mkdir("/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage", 0777) = -1 EEXIST (File exists)
mkdir("/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs", 0777) = -1 EEXIST (File exists)
mkdir("/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9", 0777) = -1 EEXIST (File exists)
mkdir("/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9/image", 0777) = -1 EEXIST (File exists)
mkdir("/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9/image//usr", 0777) = -1 EEXIST (File exists)
mkdir("/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9/image//usr/bin", 0777) = -1 EEXIST (File exists)
brk(0) = 0x13c2000
brk(0x13e4000) = 0x13e4000
getcwd("/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9/work/nspr-4.9/build/config", 4096) = 93
chdir("/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9/image//usr/bin") = 0
getcwd("/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9/image/usr/bin", 4096) = 80
chdir("/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9/work/nspr-4.9/build/config") = 0
open("nspr-config", O_RDONLY) = 3
write(2, "../config/./native-nsinstall: ", 30../config/./native-nsinstall: ) = 30
write(2, "cannot access nspr-config", 25cannot access nspr-config) = 25
write(2, ": Invalid argument", 18: Invalid argument) = 18
write(2, "\n", 1
) = 1
exit_group(1) = ?
Comment 1 thunder367 2012-05-13 07:01:36 UTC
Created attachment 311587 [details]
build.log
Comment 2 Jory A. Pratt gentoo-dev 2012-05-17 12:28:10 UTC
I take it your using crossdev, if this is the case you failed to setup a wrapper script for pkg-config which would point to the appropriate files for the toolchain your are cross compiling for.
Comment 3 thunder367 2012-05-17 12:43:06 UTC
(In reply to comment #2)
> I take it your using crossdev, if this is the case you failed to setup a
> wrapper script for pkg-config which would point to the appropriate files for
> the toolchain your are cross compiling for.

The wrapper script pkg-config for crossdev on armv7a install in my system.

miheev / # which armv7a-hardfloat-linux-gnueabi-pkg-config
/usr/bin/armv7a-hardfloat-linux-gnueabi-pkg-config
miheev / # ls -la /usr/bin/armv7a-hardfloat-linux-gnueabi-pkg-config
lrwxrwxrwx 1 root root 16 мая   17 12:35 /usr/bin/armv7a-hardfloat-linux-gnueabi-pkg-config -> cross-pkg-config
Comment 4 thunder367 2012-05-18 04:35:57 UTC
/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs/nspr-4.9/work/nspr-4.9/build/config/nspr.pc


prefix=/usr
exec_prefix=${prefix}
libdir=/usr/lib
includedir=${prefix}/include/nspr

Name: NSPR
Description: The Netscape Portable Runtime
Version: 4.9.0
Libs: -L/usr/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl 
Cflags: -I${prefix}/include/nspr
Comment 5 SpanKY gentoo-dev 2013-03-19 22:34:43 UTC
latest version of nss & nspr should cross-compile fine