Cannot build OpenJDK8

Tim Bell tim.bell at oracle.com
Tue Nov 19 16:31:40 UTC 2013


The bug number for this 'j' issue in the hotspot adjust-mflags.sh script 
is JDK-8028407
    https://bugs.openjdk.java.net/browse/JDK-8028407

The email thread is here:
http://mail.openjdk.java.net/pipermail/build-dev/2013-November/010941.html

Tim


On 11/19/13 07:58 AM, David Holmes wrote:
> 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