Cannot build OpenJDK8
Andrey Panasyuk
andrey.p.panasyuk at gmail.com
Tue Nov 19 12:53:46 UTC 2013
The issue is related to the folder name where OpenJDK is cloned. If the
folder has lower case "j" letter in it the build fails.
In my case I've got.
/usr/bin/make: invalid option -- '8'
/usr/bin/make: invalid option -- '/'
/usr/bin/make: invalid option -- 'c'
In the case if jdk is cloned to the jdk8 folder the make command looks like:
/usr/bin/make -s VERBOSE="-s" LOG_LEVEL="warn" -R
-I/home/andy/Sources/Mine/jdk8/common/makefiles -f adlc.make -r
`/data/Sources/Mine/jdk8/build/linux-x86_64-normal-server-release/hotspot/linux_amd64_compiler2/product/../generated/adjust-mflags
"-nrRs -I/home/andy/Sources/Mine/jdk8/common/makefiles
-I/home/andy/Sources/Mine/jdk8/common/makefiles
-I/home/andy/Sources/Mine/jdk8/common/makefiles
-I/home/andy/Sources/Mine/jdk8/common/makefiles
-I/home/andy/Sources/Mine/jdk8/common/makefiles --debug=basic" "7"`
The inner command
/data/Sources/Mine/jdk8/build/linux-x86_64-normal-server-release/hotspot/linux_amd64_compiler2/product/../generated/adjust-mflags
"-nrRs -I/home/andy/Sources/Mine/jdk8/common/makefiles
-I/home/andy/Sources/Mine/jdk8/common/makefiles
-I/home/andy/Sources/Mine/jdk8/common/makefiles
-I/home/andy/Sources/Mine/jdk8/common/makefiles
-I/home/andy/Sources/Mine/jdk8/common/makefiles --debug=basic" "7"
provides broken make parameters:
-nrRs -I/home/andy/Sources/Mine/ -j7 -dk8/common/makefiles
-I/home/andy/Sources/Mine/jdk8/common/makefiles
-I/home/andy/Sources/Mine/jdk8/common/makefiles
-I/home/andy/Sources/Mine/jdk8/common/makefiles
-I/home/andy/Sources/Mine/jdk8/common/makefiles --debug=basic
As you might see make parameters look like "-j7 -dk8". That's exactly
the source of the issue. After renaming folder to "test"the issue vanished.
More information about the build-dev
mailing list