Build hangs at Creating new dotnet project
rubin55 opened this issue · 6 comments
When attempting to build netcoredbg 3.0.0-1018 I get a hang:
tar xf netcoredbg-3.0.0-1018.tar.gz
cd netcoredbg-3.0.0-1018
mkdir build
cd build
export CC=clang
export CXX=clang++
cmake ..
Output:
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is Clang 16.0.6
-- The CXX compiler identification is Clang 16.0.6
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Detected Linux x86_64
-- Found Git: /usr/bin/git (found version "2.43.0")
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
From https://github.com/dotnet/runtime
* branch release/7.0 -> FETCH_HEAD
Already on 'release/7.0'
Your branch is up to date with 'origin/release/7.0'.
dotnet-install: Note that the intended use of this script is for Continuous Integration (CI) scenarios, where:
dotnet-install: - The SDK needs to be installed without user interaction and without admin rights.
dotnet-install: - The SDK installation doesn't need to persist across multiple CI runs.
dotnet-install: To set up a development environment or to run apps, use installers rather than this script. Visit https://dotnet.microsoft.com/download to get the installer.
dotnet-install: Calling: machine_has curl
dotnet-install: Calling: calculate_vars
dotnet-install: Calling: get_normalized_architecture_from_architecture <auto>
dotnet-install: Calling: get_machine_architecture
dotnet-install: Normalized architecture: 'x64'.
dotnet-install: Calling: get_normalized_os
dotnet-install: Calling: get_current_os_name
dotnet-install: Calling: get_linux_platform_name
dotnet-install: Normalized OS: 'linux'.
dotnet-install: Calling: get_normalized_quality
dotnet-install: Normalized quality: ''.
dotnet-install: Calling: get_normalized_channel 7.0
dotnet-install: Normalized channel: '7.0'.
dotnet-install: Calling: get_normalized_product
dotnet-install: Normalized product: 'dotnet-sdk'.
dotnet-install: Calling: resolve_installation_path /home/rubin/Desktop/netcoredbg-3.0.0-1018/.dotnet
dotnet-install: InstallRoot: '/home/rubin/Desktop/netcoredbg-3.0.0-1018/.dotnet'.
dotnet-install: Calling: get_normalized_architecture_for_specific_sdk_version Latest 7.0 x64
dotnet-install: Calling: get_current_os_name
dotnet-install: Calling: get_linux_platform_name
dotnet-install: Calling: get_download_link_from_aka_ms
dotnet-install: Retrieving primary payload URL from aka.ms for channel: '7.0', quality: '', product: 'dotnet-sdk', os: 'linux', architecture: 'x64'.
dotnet-install: Constructed aka.ms link: 'https://aka.ms/dotnet/7.0/dotnet-sdk-linux-x64.tar.gz'.
dotnet-install: Calling: get_http_header https://aka.ms/dotnet/7.0/dotnet-sdk-linux-x64.tar.gz true
dotnet-install: Calling: machine_has curl
dotnet-install: Calling: get_http_header_curl https://aka.ms/dotnet/7.0/dotnet-sdk-linux-x64.tar.gz true
dotnet-install: Received response: HTTP/1.1 301 Moved Permanently
Server: Kestrel
Location: https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.405/dotnet-sdk-7.0.405-linux-x64.tar.gz
Request-Context: appId=cid-v1:26ef1154-5995-4d24-ad78-ef0b04f11587
X-Response-Cache-Status: True
Content-Length: 0
Expires: Mon, 05 Feb 2024 20:24:43 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Mon, 05 Feb 2024 20:24:43 GMT
Connection: keep-alive
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
HTTP/2 200
accept-ranges: bytes
age: 505442
content-md5: JT+YQ9G8KI8tPtnb6318JQ==
content-type: application/octet-stream
date: Mon, 05 Feb 2024 20:24:43 GMT
etag: 0x8DC11195C4AE3DD
last-modified: Tue, 09 Jan 2024 13:46:20 GMT
server: ECAcc (ama/48C0)
x-cache: HIT
x-ms-blob-type: BlockBlob
x-ms-lease-status: unlocked
x-ms-request-id: 43bebb2f-f01e-00b2-75d8-53c313000000
x-ms-version: 2009-09-19
content-length: 219140710
dotnet-install: The redirect location retrieved: 'https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.405/dotnet-sdk-7.0.405-linux-x64.tar.gz'.
dotnet-install: Retrieved primary payload URL from aka.ms link: 'https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.405/dotnet-sdk-7.0.405-linux-x64.tar.gz'.
dotnet-install: Downloading using legacy url will not be attempted.
dotnet-install: Version: '7.0.405'.
dotnet-install: Calling: get_specific_product_version 7.0.405 https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.405/dotnet-sdk-7.0.405-linux-x64.tar.gz
dotnet-install: Calling: get_specific_product_version_url 7.0.405 true https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.405/dotnet-sdk-7.0.405-linux-x64.tar.gz
dotnet-install: Constructed productVersion link: https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.405/sdk-productVersion.txt
dotnet-install: Calling: get_specific_product_version_url 7.0.405 false https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.405/dotnet-sdk-7.0.405-linux-x64.tar.gz
dotnet-install: Constructed productVersion link: https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.405/productVersion.txt
dotnet-install: Checking for the existence of https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.405/sdk-productVersion.txt
dotnet-install: Calling: machine_has curl
dotnet-install: Calling: is_dotnet_package_installed /home/rubin/Desktop/netcoredbg-3.0.0-1018/.dotnet sdk 7.0.405
dotnet-install: Calling: combine_paths /home/rubin/Desktop/netcoredbg-3.0.0-1018/.dotnet sdk
dotnet-install: combine_paths: root_path=/home/rubin/Desktop/netcoredbg-3.0.0-1018/.dotnet
dotnet-install: combine_paths: child_path=sdk
dotnet-install: Calling: combine_paths /home/rubin/Desktop/netcoredbg-3.0.0-1018/.dotnet/sdk 7.0.405
dotnet-install: combine_paths: root_path=/home/rubin/Desktop/netcoredbg-3.0.0-1018/.dotnet/sdk
dotnet-install: combine_paths: child_path=7.0.405
dotnet-install: is_dotnet_package_installed: dotnet_package_path=/home/rubin/Desktop/netcoredbg-3.0.0-1018/.dotnet/sdk/7.0.405
dotnet-install: .NET Core SDK with version '7.0.405' is already installed.
Building with 7.0.16 CoreCLR
CMake Deprecation Warning at third_party/linenoise-ng/CMakeLists.txt:3 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Warning (dev) at third_party/linenoise-ng/CMakeLists.txt:10 (set):
implicitly converting 'string' to 'STRING' type.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Build mode: Release
CMake Warning (dev) at third_party/linenoise-ng/CMakeLists.txt:16 (set):
implicitly converting 'path' to 'STRING' type.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Compiler type CLANG: /usr/bin/clang++
-- Configuring done (12.6s)
-- Generating done (0.0s)
-- Build files have been written to: /home/rubin/Desktop/netcoredbg-3.0.0-1018/build
After the above, the make
command is executed, but hangs after Creating new dotnet project
:
[ 1%] Building CXX object third_party/linenoise-ng/CMakeFiles/linenoise.dir/src/ConvertUTF.cpp.o
[ 2%] Building CXX object third_party/linenoise-ng/CMakeFiles/linenoise.dir/src/linenoise.cpp.o
[ 3%] Building CXX object third_party/linenoise-ng/CMakeFiles/linenoise.dir/src/wcwidth.cpp.o
[ 4%] Linking CXX static library liblinenoise.a
[ 4%] Built target linenoise
[ 6%] Building C object third_party/linenoise-ng/CMakeFiles/example.dir/tst/example.c.o
[ 7%] Linking CXX executable example
[ 7%] Built target example
[ 8%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/clrdata_i.cpp.o
[ 9%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/clrinternal_i.cpp.o
[ 11%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/clrprivappxhosting_i.cpp.o
[ 12%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/cordebug_i.cpp.o
[ 13%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/corprof_i.cpp.o
[ 14%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/corpub_i.cpp.o
[ 16%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/corsym_i.cpp.o
[ 17%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/sospriv_i.cpp.o
[ 18%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/xclrdata_i.cpp.o
[ 19%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/xcordebug_i.cpp.o
[ 20%] Linking CXX static library libcorguids.a
[ 20%] Built target corguids
[ 20%] Built target buildinfo
[ 22%] Creating new dotnet project
I've waited for 10+ minutes without result. top
does not indicate anything running or taking significant resources. Note that version 3.0.0-1012
builds without problems.
Mm, it seems to have to do with the .coreclr that's downloaded, it immediately hangs on my machine:
/home/rubin/Desktop/netcoredbg-3.0.0-1018/.dotnet/dotnet --version
Also never returns. Update: dotnet is not working normally on my desktop system (which is running an identical version of Arch Linux, as I'm running on my laptop. Desktop hangs, laptop doesn't). I think this is the upstream issue: dotnet/sdk#30455
@rubin55 you can try to pass -DDOTNET_CHANNEL=6.0
to cmake during build to replace used dotnet sdk with latest .net 6
@gbalykov thanks for the tip, but no dice unfortunately, 6.x hangs in the same way.
What machine do you have that this reproduces on? If there's an issues in both .net 6 and .net 7, you can also try .net 8. And also open issue in https://github.com/dotnet/sdk or https://github.com/dotnet/runtime.
I tested with 8.x also, see: dotnet/sdk#30455
This seems unrelated to netcoredbg, so closing. Feel free to reopen if you have any more questions.