Samsung / netcoredbg

NetCoreDbg is a managed code debugger with GDB/MI, VSCode DAP and CLI interfaces for CoreCLR.
MIT License
836 stars 103 forks source link

make fails with change directory error #135

Closed lem102 closed 1 year ago

lem102 commented 1 year ago

Hey all,

I'm following the instructions to build for linux, when I run make from the build directory created during the configuration instructions, the makefile fails with the following output:

~/dev/netcoredbg/build $ make
[  1%] Building CXX object third_party/linenoise-ng/CMakeFiles/linenoise.dir/src/ConvertUTF.cpp.o
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[  2%] Building CXX object third_party/linenoise-ng/CMakeFiles/linenoise.dir/src/linenoise.cpp.o
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[  3%] Building CXX object third_party/linenoise-ng/CMakeFiles/linenoise.dir/src/wcwidth.cpp.o
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[  5%] Linking CXX static library liblinenoise.a
[  5%] Built target linenoise
[  6%] Building C object third_party/linenoise-ng/CMakeFiles/example.dir/tst/example.c.o
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[  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
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[ 10%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/clrinternal_i.cpp.o
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[ 11%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/clrprivappxhosting_i.cpp.o
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[ 12%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/cordebug_i.cpp.o
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[ 13%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/corprof_i.cpp.o
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[ 15%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/corpub_i.cpp.o
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[ 16%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/corsym_i.cpp.o
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[ 17%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/sospriv_i.cpp.o
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[ 18%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/xclrdata_i.cpp.o
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[ 20%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/xcordebug_i.cpp.o
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[ 21%] Linking CXX static library libcorguids.a
[ 21%] Built target corguids
[ 21%] Built target buildinfo
[ 22%] Creating new dotnet project
[ 23%] Compiling generrmsg/bin/generrmsg.dll
/bin/sh: 1: cd: can't cd to /home/jacob/dev/netcoredbg/build/src/generrmsg
make[2]: *** [src/CMakeFiles/netcoredbg.dir/build.make:80: src/generrmsg/bin/generrmsg.dll] Error 2
make[1]: *** [CMakeFiles/Makefile2:228: src/CMakeFiles/netcoredbg.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
~/dev/netcoredbg/build $ 

Please let me know what I'm doing wrong.

Cheers.

gbalykov commented 1 year ago

Please share cmake command that you used

lem102 commented 1 year ago

Thanks for the help :)

I used this command from the build directory as instructed:

CC=clang CXX=clang++ cmake ..

This is what I did in full:

~/dev/netcoredbg $ mkdir build
~/dev/netcoredbg $ cd build
~/dev/netcoredbg/build $ CC=clang CXX=clang++ cmake ..
-- The C compiler identification is Clang 11.1.0
-- The CXX compiler identification is Clang 11.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /nix/store/vrasqlxr2ylnc87csbv50wfh9xdm449c-clang-wrapper-11.1.0/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: /nix/store/vrasqlxr2ylnc87csbv50wfh9xdm449c-clang-wrapper-11.1.0/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Detected Linux x86_64
-- Found Git: /usr/bin/git (found version "2.34.1") 
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/jacob/dev/netcoredbg/.dotnet
dotnet-install: InstallRoot: '/home/jacob/dev/netcoredbg/.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.400/dotnet-sdk-7.0.400-linux-x64.tar.gz
Request-Context: appId=cid-v1:26ef1154-5995-4d24-ad78-ef0b04f11587
X-Response-Cache-Status: True
Content-Length: 0
Expires: Wed, 23 Aug 2023 17:55:23 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Wed, 23 Aug 2023 17:55:23 GMT
Connection: keep-alive
Strict-Transport-Security: max-age=31536000 ; includeSubDomains

HTTP/2 200 
accept-ranges: bytes
age: 439126
content-md5: VDpzpWtEjFngX0hULf4BlA==
content-type: application/octet-stream
date: Wed, 23 Aug 2023 17:55:28 GMT
etag: 0x8DB98088360F968
last-modified: Tue, 08 Aug 2023 12:10:53 GMT
server: ECAcc (lha/8D24)
x-cache: HIT
x-ms-blob-type: BlockBlob
x-ms-lease-status: unlocked
x-ms-request-id: 7ac3578c-001e-008e-77ec-d177c8000000
x-ms-version: 2009-09-19
content-length: 219369006

dotnet-install: The redirect location retrieved: 'https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.400/dotnet-sdk-7.0.400-linux-x64.tar.gz'.
dotnet-install: Retrieved primary payload URL from aka.ms link: 'https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.400/dotnet-sdk-7.0.400-linux-x64.tar.gz'.
dotnet-install: Downloading using legacy url will not be attempted.
dotnet-install: Version: '7.0.400'.
dotnet-install: Calling: get_specific_product_version  7.0.400 https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.400/dotnet-sdk-7.0.400-linux-x64.tar.gz
dotnet-install: Calling: get_specific_product_version_url  7.0.400 true https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.400/dotnet-sdk-7.0.400-linux-x64.tar.gz
dotnet-install: Constructed productVersion link: https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.400/sdk-productVersion.txt
dotnet-install: Calling: get_specific_product_version_url  7.0.400 false https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.400/dotnet-sdk-7.0.400-linux-x64.tar.gz
dotnet-install: Constructed productVersion link: https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.400/productVersion.txt
dotnet-install: Checking for the existence of https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.400/sdk-productVersion.txt
dotnet-install: Calling: machine_has curl
dotnet-install: Calling: is_dotnet_package_installed /home/jacob/dev/netcoredbg/.dotnet sdk 7.0.400
dotnet-install: Calling: combine_paths /home/jacob/dev/netcoredbg/.dotnet sdk
dotnet-install: combine_paths: root_path=/home/jacob/dev/netcoredbg/.dotnet
dotnet-install: combine_paths: child_path=sdk
dotnet-install: Calling: combine_paths /home/jacob/dev/netcoredbg/.dotnet/sdk 7.0.400
dotnet-install: combine_paths: root_path=/home/jacob/dev/netcoredbg/.dotnet/sdk
dotnet-install: combine_paths: child_path=7.0.400
dotnet-install: is_dotnet_package_installed: dotnet_package_path=/home/jacob/dev/netcoredbg/.dotnet/sdk/7.0.400
dotnet-install: .NET Core SDK with version '7.0.400' is already installed.
Building with 7.0.11 CoreCLR
CMake Deprecation Warning at third_party/linenoise-ng/CMakeLists.txt:3 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 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: /nix/store/vrasqlxr2ylnc87csbv50wfh9xdm449c-clang-wrapper-11.1.0/bin/clang++
-- Configuring done (14.1s)
-- Generating done (0.1s)
-- Build files have been written to: /home/jacob/dev/netcoredbg/build
~/dev/netcoredbg/build $ make
[  1%] Building CXX object third_party/linenoise-ng/CMakeFiles/linenoise.dir/src/ConvertUTF.cpp.o
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[  2%] Building CXX object third_party/linenoise-ng/CMakeFiles/linenoise.dir/src/linenoise.cpp.o
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[  3%] Building CXX object third_party/linenoise-ng/CMakeFiles/linenoise.dir/src/wcwidth.cpp.o
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[  5%] Linking CXX static library liblinenoise.a
[  5%] Built target linenoise
[  6%] Building C object third_party/linenoise-ng/CMakeFiles/example.dir/tst/example.c.o
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[  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
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[ 10%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/clrinternal_i.cpp.o
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[ 11%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/clrprivappxhosting_i.cpp.o
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[ 12%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/cordebug_i.cpp.o
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[ 13%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/corprof_i.cpp.o
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[ 15%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/corpub_i.cpp.o
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[ 16%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/corsym_i.cpp.o
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[ 17%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/sospriv_i.cpp.o
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[ 18%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/xclrdata_i.cpp.o
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[ 20%] Building CXX object src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/xcordebug_i.cpp.o
clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
[ 21%] Linking CXX static library libcorguids.a
[ 21%] Built target corguids
[ 21%] Built target buildinfo
[ 22%] Creating new dotnet project
[ 23%] Compiling generrmsg/bin/generrmsg.dll
/bin/sh: 1: cd: can't cd to /home/jacob/dev/netcoredbg/build/src/generrmsg
make[2]: *** [src/CMakeFiles/netcoredbg.dir/build.make:80: src/generrmsg/bin/generrmsg.dll] Error 2
make[1]: *** [CMakeFiles/Makefile2:228: src/CMakeFiles/netcoredbg.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
~/dev/netcoredbg/build $ 
gbalykov commented 1 year ago

Which cmake version do you use?

gbalykov commented 1 year ago

Also please share output of make VERBOSE=1

lem102 commented 1 year ago

cmake:

~/dev/netcoredbg/build $ cmake --version
cmake version 3.26.4

make VERBOSE=1:

~/dev/netcoredbg/build $ make VERBOSE=1
/nix/store/zhq7gd56lja5c4sxmsppbjx6k387c33v-cmake-3.26.4/bin/cmake -S/home/jacob/dev/netcoredbg -B/home/jacob/dev/netcoredbg/build --check-build-system CMakeFiles/Makefile.cmake 0
/nix/store/zhq7gd56lja5c4sxmsppbjx6k387c33v-cmake-3.26.4/bin/cmake -E cmake_progress_start /home/jacob/dev/netcoredbg/build/CMakeFiles /home/jacob/dev/netcoredbg/build//CMakeFiles/progress.marks
/nix/store/3l1hdz7xqyh1qhq9yn6cm8cfl3n1gyd3-gnumake-4.4.1/bin/make  -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/jacob/dev/netcoredbg/build'
/nix/store/3l1hdz7xqyh1qhq9yn6cm8cfl3n1gyd3-gnumake-4.4.1/bin/make  -f third_party/linenoise-ng/CMakeFiles/linenoise.dir/build.make third_party/linenoise-ng/CMakeFiles/linenoise.dir/depend
make[2]: Entering directory '/home/jacob/dev/netcoredbg/build'
cd /home/jacob/dev/netcoredbg/build && /nix/store/zhq7gd56lja5c4sxmsppbjx6k387c33v-cmake-3.26.4/bin/cmake -E cmake_depends "Unix Makefiles" /home/jacob/dev/netcoredbg /home/jacob/dev/netcoredbg/third_party/linenoise-ng /home/jacob/dev/netcoredbg/build /home/jacob/dev/netcoredbg/build/third_party/linenoise-ng /home/jacob/dev/netcoredbg/build/third_party/linenoise-ng/CMakeFiles/linenoise.dir/DependInfo.cmake --color=
Dependencies file "third_party/linenoise-ng/CMakeFiles/linenoise.dir/src/ConvertUTF.cpp.o.d" is newer than depends file "/home/jacob/dev/netcoredbg/build/third_party/linenoise-ng/CMakeFiles/linenoise.dir/compiler_depend.internal".
Dependencies file "third_party/linenoise-ng/CMakeFiles/linenoise.dir/src/linenoise.cpp.o.d" is newer than depends file "/home/jacob/dev/netcoredbg/build/third_party/linenoise-ng/CMakeFiles/linenoise.dir/compiler_depend.internal".
Dependencies file "third_party/linenoise-ng/CMakeFiles/linenoise.dir/src/wcwidth.cpp.o.d" is newer than depends file "/home/jacob/dev/netcoredbg/build/third_party/linenoise-ng/CMakeFiles/linenoise.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target linenoise
make[2]: Leaving directory '/home/jacob/dev/netcoredbg/build'
/nix/store/3l1hdz7xqyh1qhq9yn6cm8cfl3n1gyd3-gnumake-4.4.1/bin/make  -f third_party/linenoise-ng/CMakeFiles/linenoise.dir/build.make third_party/linenoise-ng/CMakeFiles/linenoise.dir/build
make[2]: Entering directory '/home/jacob/dev/netcoredbg/build'
make[2]: Nothing to be done for 'third_party/linenoise-ng/CMakeFiles/linenoise.dir/build'.
make[2]: Leaving directory '/home/jacob/dev/netcoredbg/build'
[  5%] Built target linenoise
/nix/store/3l1hdz7xqyh1qhq9yn6cm8cfl3n1gyd3-gnumake-4.4.1/bin/make  -f third_party/linenoise-ng/CMakeFiles/example.dir/build.make third_party/linenoise-ng/CMakeFiles/example.dir/depend
make[2]: Entering directory '/home/jacob/dev/netcoredbg/build'
cd /home/jacob/dev/netcoredbg/build && /nix/store/zhq7gd56lja5c4sxmsppbjx6k387c33v-cmake-3.26.4/bin/cmake -E cmake_depends "Unix Makefiles" /home/jacob/dev/netcoredbg /home/jacob/dev/netcoredbg/third_party/linenoise-ng /home/jacob/dev/netcoredbg/build /home/jacob/dev/netcoredbg/build/third_party/linenoise-ng /home/jacob/dev/netcoredbg/build/third_party/linenoise-ng/CMakeFiles/example.dir/DependInfo.cmake --color=
Dependencies file "third_party/linenoise-ng/CMakeFiles/example.dir/tst/example.c.o.d" is newer than depends file "/home/jacob/dev/netcoredbg/build/third_party/linenoise-ng/CMakeFiles/example.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target example
make[2]: Leaving directory '/home/jacob/dev/netcoredbg/build'
/nix/store/3l1hdz7xqyh1qhq9yn6cm8cfl3n1gyd3-gnumake-4.4.1/bin/make  -f third_party/linenoise-ng/CMakeFiles/example.dir/build.make third_party/linenoise-ng/CMakeFiles/example.dir/build
make[2]: Entering directory '/home/jacob/dev/netcoredbg/build'
make[2]: Nothing to be done for 'third_party/linenoise-ng/CMakeFiles/example.dir/build'.
make[2]: Leaving directory '/home/jacob/dev/netcoredbg/build'
[  7%] Built target example
/nix/store/3l1hdz7xqyh1qhq9yn6cm8cfl3n1gyd3-gnumake-4.4.1/bin/make  -f src/CMakeFiles/corguids.dir/build.make src/CMakeFiles/corguids.dir/depend
make[2]: Entering directory '/home/jacob/dev/netcoredbg/build'
cd /home/jacob/dev/netcoredbg/build && /nix/store/zhq7gd56lja5c4sxmsppbjx6k387c33v-cmake-3.26.4/bin/cmake -E cmake_depends "Unix Makefiles" /home/jacob/dev/netcoredbg /home/jacob/dev/netcoredbg/src /home/jacob/dev/netcoredbg/build /home/jacob/dev/netcoredbg/build/src /home/jacob/dev/netcoredbg/build/src/CMakeFiles/corguids.dir/DependInfo.cmake --color=
Dependencies file "src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/clrdata_i.cpp.o.d" is newer than depends file "/home/jacob/dev/netcoredbg/build/src/CMakeFiles/corguids.dir/compiler_depend.internal".
Dependencies file "src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/clrinternal_i.cpp.o.d" is newer than depends file "/home/jacob/dev/netcoredbg/build/src/CMakeFiles/corguids.dir/compiler_depend.internal".
Dependencies file "src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/clrprivappxhosting_i.cpp.o.d" is newer than depends file "/home/jacob/dev/netcoredbg/build/src/CMakeFiles/corguids.dir/compiler_depend.internal".
Dependencies file "src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/cordebug_i.cpp.o.d" is newer than depends file "/home/jacob/dev/netcoredbg/build/src/CMakeFiles/corguids.dir/compiler_depend.internal".
Dependencies file "src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/corprof_i.cpp.o.d" is newer than depends file "/home/jacob/dev/netcoredbg/build/src/CMakeFiles/corguids.dir/compiler_depend.internal".
Dependencies file "src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/corpub_i.cpp.o.d" is newer than depends file "/home/jacob/dev/netcoredbg/build/src/CMakeFiles/corguids.dir/compiler_depend.internal".
Dependencies file "src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/corsym_i.cpp.o.d" is newer than depends file "/home/jacob/dev/netcoredbg/build/src/CMakeFiles/corguids.dir/compiler_depend.internal".
Dependencies file "src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/sospriv_i.cpp.o.d" is newer than depends file "/home/jacob/dev/netcoredbg/build/src/CMakeFiles/corguids.dir/compiler_depend.internal".
Dependencies file "src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/xclrdata_i.cpp.o.d" is newer than depends file "/home/jacob/dev/netcoredbg/build/src/CMakeFiles/corguids.dir/compiler_depend.internal".
Dependencies file "src/CMakeFiles/corguids.dir/__/.coreclr/src/coreclr/pal/prebuilt/idl/xcordebug_i.cpp.o.d" is newer than depends file "/home/jacob/dev/netcoredbg/build/src/CMakeFiles/corguids.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target corguids
make[2]: Leaving directory '/home/jacob/dev/netcoredbg/build'
/nix/store/3l1hdz7xqyh1qhq9yn6cm8cfl3n1gyd3-gnumake-4.4.1/bin/make  -f src/CMakeFiles/corguids.dir/build.make src/CMakeFiles/corguids.dir/build
make[2]: Entering directory '/home/jacob/dev/netcoredbg/build'
make[2]: Nothing to be done for 'src/CMakeFiles/corguids.dir/build'.
make[2]: Leaving directory '/home/jacob/dev/netcoredbg/build'
[ 21%] Built target corguids
/nix/store/3l1hdz7xqyh1qhq9yn6cm8cfl3n1gyd3-gnumake-4.4.1/bin/make  -f src/CMakeFiles/buildinfo.dir/build.make src/CMakeFiles/buildinfo.dir/depend
make[2]: Entering directory '/home/jacob/dev/netcoredbg/build'
cd /home/jacob/dev/netcoredbg/build && /nix/store/zhq7gd56lja5c4sxmsppbjx6k387c33v-cmake-3.26.4/bin/cmake -E cmake_depends "Unix Makefiles" /home/jacob/dev/netcoredbg /home/jacob/dev/netcoredbg/src /home/jacob/dev/netcoredbg/build /home/jacob/dev/netcoredbg/build/src /home/jacob/dev/netcoredbg/build/src/CMakeFiles/buildinfo.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/jacob/dev/netcoredbg/build'
/nix/store/3l1hdz7xqyh1qhq9yn6cm8cfl3n1gyd3-gnumake-4.4.1/bin/make  -f src/CMakeFiles/buildinfo.dir/build.make src/CMakeFiles/buildinfo.dir/build
make[2]: Entering directory '/home/jacob/dev/netcoredbg/build'
cd /home/jacob/dev/netcoredbg/build/src && /nix/store/zhq7gd56lja5c4sxmsppbjx6k387c33v-cmake-3.26.4/bin/cmake -E touch /home/jacob/dev/netcoredbg/src/buildinfo.cpp
make[2]: Leaving directory '/home/jacob/dev/netcoredbg/build'
[ 21%] Built target buildinfo
/nix/store/3l1hdz7xqyh1qhq9yn6cm8cfl3n1gyd3-gnumake-4.4.1/bin/make  -f src/CMakeFiles/netcoredbg.dir/build.make src/CMakeFiles/netcoredbg.dir/depend
make[2]: Entering directory '/home/jacob/dev/netcoredbg/build'
[ 22%] Creating new dotnet project
cd /home/jacob/dev/netcoredbg/build/src && /nix/store/zhq7gd56lja5c4sxmsppbjx6k387c33v-cmake-3.26.4/bin/cmake -E env DOTNET_CLI_TELEMETRY_OPTOUT=1 DOTNET_NEW_LOCAL_SEARCH_FILE_ONLY=1 /home/jacob/dev/netcoredbg/.dotnet/dotnet new console --force -n generrmsg
[ 23%] Compiling generrmsg/bin/generrmsg.dll
cd /home/jacob/dev/netcoredbg/build/src/generrmsg && /nix/store/zhq7gd56lja5c4sxmsppbjx6k387c33v-cmake-3.26.4/bin/cmake -E copy /home/jacob/dev/netcoredbg/tools/generrmsg/GenErrMsg.cs Program.cs
/bin/sh: 1: cd: can't cd to /home/jacob/dev/netcoredbg/build/src/generrmsg
make[2]: *** [src/CMakeFiles/netcoredbg.dir/build.make:80: src/generrmsg/bin/generrmsg.dll] Error 2
make[2]: Leaving directory '/home/jacob/dev/netcoredbg/build'
make[1]: *** [CMakeFiles/Makefile2:228: src/CMakeFiles/netcoredbg.dir/all] Error 2
make[1]: Leaving directory '/home/jacob/dev/netcoredbg/build'
make: *** [Makefile:156: all] Error 2
~/dev/netcoredbg/build $ 
gbalykov commented 1 year ago

It seems that next command didn't work, try to run it manyally to see what's going on:

cd /home/jacob/dev/netcoredbg/build/src && /nix/store/zhq7gd56lja5c4sxmsppbjx6k387c33v-cmake-3.26.4/bin/cmake -E env DOTNET_CLI_TELEMETRY_OPTOUT=1 DOTNET_NEW_LOCAL_SEARCH_FILE_ONLY=1 /home/jacob/dev/netcoredbg/.dotnet/dotnet new console --force -n generrmsg

Or even just:

DOTNET_CLI_TELEMETRY_OPTOUT=1 DOTNET_NEW_LOCAL_SEARCH_FILE_ONLY=1 /home/jacob/dev/netcoredbg/.dotnet/dotnet new console --force -n generrmsg
lem102 commented 1 year ago

both of those commands have no output:

[nix-shell:~/dev/netcoredbg/build]$ cd /home/jacob/dev/netcoredbg/build/src && /nix/store/zhq7gd56lja5c4sxmsppbjx6k387c33v-cmake-3.26.4/bin/cmake -E env DOTNET_CLI_TELEMETRY_OPTOUT=1 DOTNET_NEW_LOCAL_SEARCH_FILE_ONLY=1 /home/jacob/dev/netcoredbg/.dotnet/dotnet new console --force -n generrmsg

[nix-shell:~/dev/netcoredbg/build/src]$ DOTNET_CLI_TELEMETRY_OPTOUT=1 DOTNET_NEW_LOCAL_SEARCH_FILE_ONLY=1 /home/jacob/dev/netcoredbg/.dotnet/dotnet new console --force -n generrmsg     

[nix-shell:~/dev/netcoredbg/build]$                                                   
gbalykov commented 1 year ago

Smth's wrong with dotnet, what will happen if you try to create new project in some other dir? Are files actually created or is dir empty?

mkdir nettest
cd nettest
/home/jacob/dev/netcoredbg/.dotnet/dotnet new console
lem102 commented 1 year ago
[nix-shell:~/dev/netcoredbg/build]$ mkdir nettest

[nix-shell:~/dev/netcoredbg/build]$ cd nettest

[nix-shell:~/dev/netcoredbg/build/nettest]$ /home/jacob/dev/netcoredbg/.dotnet/dotnet new console

[nix-shell:~/dev/netcoredbg/build/nettest]$ ls

[nix-shell:~/dev/netcoredbg/build/nettest]$ cd /home/jacob/dev/netcoredbg/.dotnet/    

[nix-shell:~/dev/netcoredbg/.dotnet]$ ls
LICENSE.txt  ThirdPartyNotices.txt  dotnet  host  packs  sdk  sdk-manifests  shared  templates

[nix-shell:~/dev/netcoredbg/.dotnet]$ ./dotnet

[nix-shell:~/dev/netcoredbg/.dotnet]$ ls -l
total 24
-rw-r--r-- 1 jacob jacob    0 Aug 22 22:35 LICENSE.txt
-rw-r--r-- 1 jacob jacob    0 Aug 22 22:35 ThirdPartyNotices.txt
-rwxr-xr-x 1 jacob jacob    0 Aug 22 22:35 dotnet
drwxr-xr-x 3 jacob jacob 4096 Aug 22 22:35 host
drwxr-xr-x 6 jacob jacob 4096 Aug 22 22:35 packs
drwxr-xr-x 3 jacob jacob 4096 Aug 22 22:35 sdk
drwxr-xr-x 3 jacob jacob 4096 Aug 22 22:35 sdk-manifests
drwxr-xr-x 4 jacob jacob 4096 Aug 22 22:35 shared
drwxr-xr-x 3 jacob jacob 4096 Aug 22 22:35 templates

[nix-shell:~/dev/netcoredbg/.dotnet]$ ./dotnet

[nix-shell:~/dev/netcoredbg/.dotnet]$ ./dotnet --list-sdks

[nix-shell:~/dev/netcoredbg/.dotnet]$ 

yeah you are right, there is no output at all from dotnet

gbalykov commented 1 year ago

Try to remove /home/jacob/dev/netcoredbg/.dotnet/ and rerun cmake

lem102 commented 1 year ago

I removed the directory and reran it. I get a lot of errors saying "No space left on device" but I have 400 GB free... cmakeFail.txt

lem102 commented 1 year ago

Managed to build it, I used a separate installation of dotnet as the dotnet install script was failing due to hardware issues on my ancient laptop :)

Thanks @gbalykov for all your help!