On 12/10/2010 03:55 PM, Dr Andrew John Hughes wrote: > On 07:24 Fri 10 Dec , Per Bothner wrote: >> On 12/10/2010 12:36 AM, Vikram Aroskar wrote: >>> not a hotspot or build issue. NFS problem in releasing file locks. >>> please move all your workspace and build output directory to local >>> machine harddisk and try again. >> >> I'm quite sure that's not it. I have never installed or setup NFS >> on this laptop - and I installed Fedora 14 from scratch on it recently. >> >> On 12/10/2010 07:10 AM, Dr Andrew John Hughes wrote: >>> Easiest thing to try is to set ALT_OUTPUTDIR to a directory on a local >>> disk. I've not had problems with having the source on NFS but I always >>> build to a local disk. >> >> The log file shows: >> ALT_OUTPUTDIR=/home/bothner/Java/jdk7/build/linux-i586/hotspot/outputdir >> which is local. >> > > Ah ok, I just went on Vikram's comment from the last mail without > actually studying any logs. > >> I'll try disabling SELinux and see if that makes a difference. > > I've built OpenJDK on Fedora in the past (and we regularly do to > create the RPMs). As I recall, SELinux was an issue previously > (Andrew Haley may know more on this), but AFAIK I have it turned on > and haven't experienced problems. In fact, there are SELinux > workarounds in hotspot/make/linux/makefiles/vm.make.
A minor point: I think that's not so much a workaround as correct behaviour. Also, all installed Java executables should be marked java_exec_t, like this: happy:~ $ ls --lcontext /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/java -rwxr-xr-x. 1 system_u:object_r:java_exec_t:s0 root root 41000 2010-10-13 13:33 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/java* This allows RWX mapping of memory pages. Andrew.