RFR: 8307858: [REDO] JDK-8307194 Add make target for optionally building a complete set of all JDK and hotspot libjvm static libraries [v2]
Erik Joelsson
erikj at openjdk.org
Mon May 22 19:47:51 UTC 2023
On Mon, 22 May 2023 19:21:52 GMT, Jiangli Zhou <jiangli at openjdk.org> wrote:
>> Thanks @erikj79. Could you please help provide some more info on the build failure:
>>
>> Which macOs version ran into the build issue? My mac is on Ventura 13.3.1 (a). It builds successfully for the `static-libs-image` target.
>>
>> Does it fail when partially linking `libjvm_relocatable.o` only, or it fails when partially linking other native libraries as well on macosx? Could you please share the partial linking command, e.g. hotspot/variant-server/libjvm/gtest/objs/static/BUILD_GTEST_LIBJVM_partial_link.cmdline?
>
>> Thanks @erikj79. Could you please help provide some more info on the build failure:
>>
>> Which macOs version ran into the build issue? My mac is on Ventura 13.3.1 (a). It builds successfully for the `static-libs-image` target.
>>
>> Does it fail when partially linking `libjvm_relocatable.o` only, or it fails when partially linking other native libraries as well on macosx? Could you please share the partial linking command, e.g. hotspot/variant-server/libjvm/gtest/objs/static/BUILD_GTEST_LIBJVM_partial_link.cmdline?
>
> Additional info, following is the partial linking command from my `macosx-x86_64` build:
>
>
> /usr/bin/g++ -m64 -r -o /.../github/JDK-8307858/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/gtest/objs/static/libjvm_relocatable.o @/.../github/JDK-8307858/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/gtest/objs/static/_BUILD_GTEST_LIBJVM_objectfilenames.txt
It fails because we are using a "devkit" and not an installed Xcode. The SYSROOT flags must always be added to any compiler or link command lines.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14064#discussion_r1200973154
More information about the build-dev
mailing list