Cannot build OpenJDK8

David Holmes david.holmes at oracle.com
Tue Nov 19 15:58:16 UTC 2013


Hi Andrey,

This is a known issue that I thought had been fixed - probably in build 
forest and perhaps not in jdk8 master yet. It is an issue with the 
adjust_flags.sh file and the specific version of make as I recall.

David

On 19/11/2013 10:53 PM, Andrey Panasyuk wrote:
> 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