Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 416987 - net-analyzer/nmap-6.00 - x86_64-pc-linux-gnu-gcc: error: ../nbase/libnbase.a: No such file or directory
Summary: net-analyzer/nmap-6.00 - x86_64-pc-linux-gnu-gcc: error: ../nbase/libnbase.a:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michal Januszewski (RETIRED)
URL:
Whiteboard:
Keywords:
: 418543 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-05-21 22:08 UTC by Markus Walter
Modified: 2012-06-22 15:44 UTC (History)
6 users (show)

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


Attachments
build log (build.log,59.34 KB, text/plain)
2012-05-21 22:08 UTC, Markus Walter
Details
emerge --info (info.txt,5.38 KB, text/plain)
2012-05-21 22:08 UTC, Markus Walter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Walter 2012-05-21 22:08:05 UTC
Created attachment 312605 [details]
build log

On my hardened ~amd64 box nmap-6.00 fails to build.

The first error is as follows. This somehow does not break the compile phase, but the install phase.

x86_64-pc-linux-gnu-gcc: error: ../nbase/libnbase.a: No such file or directory
make[1]: *** [nmap-update] Error 1
Comment 1 Markus Walter 2012-05-21 22:08:48 UTC
Created attachment 312607 [details]
emerge --info
Comment 2 Nikos Chantziaras 2012-05-22 00:18:46 UTC
Same error here.
Comment 3 Patrick Lauer gentoo-dev 2012-05-22 03:26:59 UTC
>>> Install nmap-6.00 into /chroot/build/portage/net-analyzer/nmap-6.00/image/ category net-analyzer
make -j6 DESTDIR=/chroot/build/portage/net-analyzer/nmap-6.00/image/ -j1 STRIP=: nmapdatadir=/usr/share/nmap install 
make: *** No rule to make target `nsock/src/libnsock.a', needed by `nmap'.  Stop.
emake failed
 * ERROR: net-analyzer/nmap-6.00 failed (install phase):
 *   (no error message)
Comment 4 Patrick Lauer gentoo-dev 2012-05-22 03:39:43 UTC
+  22 May 2012; Patrick Lauer <patrick@gentoo.org> nmap-6.00.ebuild:
+  Fix parallel build failure #416987

MAKEOPTS="-j1" makes this error disappear reliably, so it's a parallel make failure. Ebuild fix committed.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-22 15:31:04 UTC
For me it builds fine with -j10 (repeatedly) after simply removing the entire src_compile() - `emake makefile.dep' appears to be unneeded.
Comment 6 Serge Plyukhin 2012-05-22 21:43:33 UTC
confirm as Patrick Lauer error

Portage 2.1.10.62 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.15-r2, 3.4.0-gentoo x86_64)
=================================================================
System uname: Linux-3.4.0-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9650_@_3.00GHz-with-gentoo-2.1
Timestamp of tree: Tue, 22 May 2012 00:45:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     1.3.7-r1, 2.1.11-r3
dev-lang/python:          2.5.4-r4, 2.6.6-r1, 2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.8-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.3.6-r1, 4.4.7, 4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/bind /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=y --autounmask-write=y --quiet-build=n --keep-going=y"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X accessibility acl alsa amd64 berkdb bzip2 cleartype cli consolekit cracklib crypt cups cxx dbus doc dri dvd examples foomaticdb fortran gpm htmlhandbook iconv java jpeg jpeg2k kde latex lm_sensors mbox mmx modules mudflap multilib ncurses nls nptl nsplugin nvidia opengl openmp pam pcre png policykit pppd qt qt3support qt4 readline rtc sdl semantic-desktop session slang sound spell sse sse2 sse3 sse4.1 ssl ssse3 symlink tcpd truetype ttf type1 udev unicode usb vim-syntax xinerama xorg xulrunner zlib" ALSA_CARDS="hda-intel" 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="alias negotiation auth_basic auth_digest cgi cgid headers unique_id authz_host authn_file dir mime env filter ext_filter setenvif usertrack speling revrite access log_config" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2 canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" FOO2ZJS_DEVICES="hp1020" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 7 Khayyam 2012-05-26 09:42:45 UTC
The pentoo nmap-6.00.ebuild, which doesn't have the 'src_compile()', and which I've built with -j3, seems to confirm Comment #5
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-26 16:46:32 UTC
Fixed in CVS.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-05 13:21:11 UTC
*** Bug 418543 has been marked as a duplicate of this bug. ***
Comment 10 David Heidelberg (okias) 2012-06-10 09:14:43 UTC
for today, but is still here.
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-15 15:33:46 UTC
Another thing is that this happens in nmap-update/ while the tool itself is built but isn't installed, *and* has an automagical dependency on dev-vcs/subversion.

I have reinstated forcing -j1 for now, but this is hardly optimal for a build system this size.
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-20 16:30:46 UTC
I see this problem only when building in the nmap-update/ subdir, so setting a requirement on nbase_build in the Makefile should probably do the trick. Testing again...
Comment 13 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-20 17:35:12 UTC
Please test this parallel make issue again with 6.0.1.

By testing, I do really really mean: build it at least a couple dozen times with as many make jobs as possible (I used MAKEOPTS=-j10). Reporting that it works *once* or is fixed is not enough. Let's have some numbers.
Comment 14 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-20 17:43:02 UTC
(In reply to comment #13)
> Please test this parallel make issue again with 6.0.1.
> 
> By testing, I do really really mean: build it at least a couple dozen times
> with as many make jobs as possible (I used MAKEOPTS=-j10). Reporting that it
> works *once* or is fixed is not enough. Let's have some numbers.

Also, if you can use distcc to speed up compilation, this will usually trip up parallel make a lot quicker, so having it enabled helps find problems such as this one.
Comment 15 Markus Walter 2012-06-21 17:52:59 UTC
I burned some CPU-cycles with -j16 and had 752 successful merges and no failure.
Comment 16 Martin Mokrejš 2012-06-21 20:56:13 UTC
I tried locally with -j10 about 30x and about half an hour using distcc in pump mode to TWO remote hosts.
Comment 17 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-22 15:06:33 UTC
I'll reluctantly close as fixed again, then.
Comment 18 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-22 15:44:11 UTC
For the record: I ran 66 builds with distcc, MAKEOPTS=-j10 and USE="gtk lua ncat ndiff nmap-update nping ssl" with no errors.