Repository navigation
Fix libs.tests build with gcc - #60757
Merged
Merged
Conversation
|
Tagging subscribers to this area: @Anipik, @safern, @ViktorHofer Issue DetailsAll calls to DNNE's default compiler on unix hit the hardcoded compiler at: https://github.com/AaronRobinsonMSFT/DNNE/blob/492a2bb/src/msbuild/DNNE.BuildTasks/macOS.cs#L78. This patch generalizes compiler selection based on what was passed to top-level script for regular builds (same as we do for cross builds). Build command that this fixes: $ DOCKER_URN=mcr.microsoft.com/dotnet-buildtools/prereqs:debian-11-gcc11-amd64-20210916125744-f42d766
$ docker run $DOCKER_URN -v $(pwd):/runtime \
/runtime/build.sh libs.tests -gcc
|
am11
marked this pull request as ready for review
October 22, 2021 06:49
Member
Author
|
cc @AaronRobinsonMSFT, @jkoritzinsky, the error during the tests build was: Building native export: "clang" -g -O0 -shared -fpic -D DNNE_ASSEMBLY_NAME=Microsoft.Interop.Tests.NativeExports -D DNNE_COMPILE_AS_SOURCE -I "/root/.nuget/packages/dnne/1.0.26/tools/platform" -I "/root/.nuget/packages/microsoft.netcore.app.host.linux-x64/6.0.0-rc.1.21411.2/runtimes/linux-x64/native" -o "/runtime/artifacts/obj/NativeExports/net7.0-Debug/linux-x64/dnne/bin/Microsoft.Interop.Tests.NativeExportsNE.so" "/runtime/artifacts/obj/NativeExports/net7.0-Debug/linux-x64/dnne/Microsoft.Interop.Tests.NativeExports.g.c" "/root/.nuget/packages/dnne/1.0.26/tools/platform/platform.c" -lstdc++ "/root/.nuget/packages/microsoft.netcore.app.host.linux-x64/6.0.0-rc.1.21411.2/runtimes/linux-x64/native/libnethost.a"
/bin/sh: 2: /tmp/tmp3bf184f10e254116a369717cc2929d55.exec.cmd: clang: not found
/root/.nuget/packages/dnne/1.0.26/build/DNNE.targets(145,5): error MSB3073: The command ""clang" -g -O0 -shared -fpic -D DNNE_ASSEMBLY_NAME=Microsoft.Interop.Tests.NativeExports -D DNNE_COMPILE_AS_SOURCE -I "/root/.nuget/packages/dnne/1.0.26/tools/platform" -I "/root/.nuget/packages/microsoft.netcore.app.host.linux-x64/6.0.0-rc.1.21411.2/runtimes/linux-x64/native" -o "/runtime/artifacts/obj/NativeExports/net7.0-Debug/linux-x64/dnne/bin/Microsoft.Interop.Tests.NativeExportsNE.so" "/runtime/artifacts/obj/NativeExports/net7.0-Debug/linux-x64/dnne/Microsoft.Interop.Tests.NativeExports.g.c" "/root/.nuget/packages/dnne/1.0.26/tools/platform/platform.c" -lstdc++ "/root/.nuget/packages/microsoft.netcore.app.host.linux-x64/6.0.0-rc.1.21411.2/runtimes/linux-x64/native/libnethost.a" " exited with code 127. [/runtime/src/libraries/System.Runtime.InteropServices/tests/TestAssets/NativeExports/NativeExports.csproj] |
jkoritzinsky
approved these changes
Oct 22, 2021
am11
force-pushed
the
feature/native/gcc-build
branch
4 times, most recently
from
October 26, 2021 16:34
1b0e2fe to
5a61b01
Compare
am11
force-pushed
the
feature/native/gcc-build
branch
from
October 26, 2021 17:38
5a61b01 to
9386796
Compare
Member
|
The only leg that failed was a staging leg with a timeout, so I'll merge this in. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
All calls to DNNE's default compiler on unix hit the hardcoded compiler at: https://github.com/AaronRobinsonMSFT/DNNE/blob/492a2bb/src/msbuild/DNNE.BuildTasks/macOS.cs#L78.
This patch generalizes compiler selection based on what was passed to top-level script for regular builds (same as we do for cross builds).
Build command that this fixes: