JuliaLang / julia

The Julia Programming Language
https://julialang.org/
MIT License
45.42k stars 5.45k forks source link

ITTAPI installation broken on Windows #50034

Open topolarity opened 1 year ago

topolarity commented 1 year ago

This error message is encountered when building with WITH_ITTAPI = 1 in Cygwin (on Windows 11):

-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/x86_64-w64-mingw32-gcc - 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/x86_64-w64-mingw32-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    ITT_API_FORTRAN_SUPPORT
    LIB_INSTALL_DIR

-- Build files have been written to: /home/cody/julia/deps/scratch/ittapi-0014aec56fea2f30c1374f40861e1bccdd53d0cb
[ 16%] Building C object CMakeFiles/ittnotify.dir/src/ittnotify/ittnotify_static.c.obj
[ 33%] Building C object CMakeFiles/ittnotify.dir/src/ittnotify/jitprofiling.c.obj
[ 50%] Linking C static library bin/liblibittnotify.a
[ 50%] Built target ittnotify
[ 66%] Linking C static library bin/liblibadvisor.a
[ 66%] Built target advisor
[ 83%] Building C object CMakeFiles/jitprofiling.dir/src/ittnotify/jitprofiling.c.obj
[100%] Linking C static library bin/liblibjitprofiling.a
[100%] Built target jitprofiling
cp: cannot stat 'scratch/ittapi-0014aec56fea2f30c1374f40861e1bccdd53d0cb/bin/libittnotify.a': No such file or directory
make[1]: *** [/home/cody/julia/deps/ittapi.mk:35: /home/cody/julia/usr-staging/ittapi-0014aec56fea2f30c1374f40861e1bccdd53d0cb.tar] Error 1
make: *** [Makefile:75: julia-deps] Error 2
topolarity commented 1 year ago

cc @pchintalapudi

vchuravy commented 1 year ago

Never tested on Windows. Only OS with verified support is Linux.

vchuravy commented 1 year ago

I should add that the first place to turn it on would be https://github.com/JuliaPackaging/Yggdrasil/blob/5616611e1562530d51973da4153854f24c88289b/L/LLVM/common.jl#L223 otherwise you won't get JIT frames in VTunes.