[jdk8u-dev] RFR: 8286989: Build failure on macOS after 8281814 [v2]

Andrew John Hughes andrew at openjdk.java.net
Wed May 25 16:33:06 UTC 2022


On Thu, 19 May 2022 12:34:31 GMT, zzambers <duke at openjdk.java.net> wrote:

>> This fixes wrong paths to debuginfo files passed to zip command, causing build failure on MacOS in github workflow. Problem was introduced by JDK-8281814 [1] (integrated, while github workflow PR was still in progress). 
>> 
>> I have done some experiments [2] and found out, that on macos, debuginfo files are stored in additional directories, relative to directory where object files are stored. Removing all directory components is therefore not correct on macos. Two seemingly equivalent fixes were were considered in JDK-8281814 (using notdir and using subst), but chosen one was not the correct one.
>> 
>> Follows example which illustrates difference of different variants of said zip command:
>> 
>> **Prior to JDK-8281814:**
>> `$(ZIP) -q $$@ $$($1_DEBUGINFO_FILES)`
>> - macos:
>
> zzambers has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Removed unnecessary space

Yes, I identified the same thing here: https://github.com/openjdk/jdk8u-dev/pull/26#issuecomment-1125614736

I thought we might need more of the NativeCompilation.gmk changes from https://hg.openjdk.java.net/jdk9/jdk9/rev/278f9a9e9329 (https://bugs.openjdk.java.net/browse/JDK-8150736) but it seems most of it was integrated in https://bugs.openjdk.java.net/browse/JDK-8262730

Anyway, thanks for getting this in. I was worried this wasn't going to be fixed before rampdown.

-------------

PR: https://git.openjdk.java.net/jdk8u-dev/pull/61


More information about the jdk8u-dev mailing list