Wind River Support Network


LIN6-11093 : Building bjam-native locks up build if an NFS dir is part of $PATH and NFS server is unavailable

Created: Apr 15, 2016    Updated: Mar 31, 2019
Resolved Date: Jun 7, 2018
Found In Version:
Fix Version:
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Userspace


Building bjam-native package locks up build if an NFS dir is part of $PATH and NFS server is unavailable.


Remove the non existant directory from $PATH

Steps to Reproduce

On the build host:
$ mkdir $HOME/bin
$ export PATH=$HOME/bin:$PATH
$ cd $HOME/bin/
$ ln -s /net/ala-cvl1-lx1/ala-cvl1-lx13/common/lx7
$ ll
lrwxrwxrwx 1 nmarguet users 43 Apr 16 02:06 lx7 -> /net/ala-cvl1-lx1/ala-cvl1-lx13/common/lx7/
$ mount|grep ala-cvl1-lx13
ala-cvl1-lx1:/ala-cvl1-lx13 on /net/ala-cvl1-lx1/ala-cvl1-lx13 type nfs (rw,nosuid,nodev,intr,sloppy,vers=4,addr=,clientaddr=

Note that the NFS directory ala-cvl1-lx1:/ala-cvl1-lx13 is mounted with default option 'hard', which will cause indefinite retries when accessed; 'man nfs' shows with option 'hard', requests are tried indefinitely:

       soft / hard    Determines the recovery behavior of the NFS client after
		      an NFS request times out.	 If neither option  is	speci-
		      fied  (or if the hard option is specified), NFS requests
		      are retried indefinitely.	

On the NFS server (ala-cvl1-lx1:/ala-cvl1-lx13)
$ cat /etc/exports
/ala-cvl1-lx13 *(rw,sync,no_subtree_check)
$ ls /ala-cvl1-lx13/common/lx7/
(this directory exists)
Stop the NFS server:
$ sudo service nfs-kernel-server stop

On the build host:
$ /lx6/wrlinux-6/wrlinux/configure --enable-reconfig --enable-board=intel-x86-64 --enable-kernel=standard --enable-rootfs=glibc_small --enable-bootimage=cpio.gz --enable-rm-work=yes --enable-rm-oldimgs=yes --enable-checkout-all-layers --with-layer=examples/lemon_layer --with-rcpl-version=0026
$ make -C build bjam-native.rebuild
(stuck in the compile task for ever)

Note that 'ls' also hangs listing the same directory:
$ ls
(hanging here)
(even Ctrl-C does not stop this)

Other Downloads

Live chat