Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update llvm to 19.1.1. #5490

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Update llvm to 19.1.1. #5490

wants to merge 1 commit into from

Conversation

Guo-Shiyu
Copy link

@Guo-Shiyu Guo-Shiyu commented Oct 13, 2024

Update Package

update llvm to 19.1.1, release: https://github.com/llvm/llvm-project/releases/tag/llvmorg-19.1.1

but this is linux only, I did't add support of llvm-windows 19.1.1 in this PR. If it is required to update package llvm, I will do it later.

Local Test

$ xmake l scripts/test.lua -v --shallow llvm   
...
llvm-config --version
19.1.1
clang --version
clang version 19.1.1
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/shiyu/.xmake/packages/l/llvm/19.1.1/e9ea39a6aadd442286e4abea9304dc2a/bin
  => install llvm 19.1.1 .. ok

@luadebug luadebug mentioned this pull request Oct 13, 2024
@Guo-Shiyu
Copy link
Author

I noticed that both failure was caused by static library installation failed. What can I do to fix it? (Unfortunately I do not have either FreeBSD or MacOS environment.)

  • FreeBSD
2024-10-13T23:22:27.7802886Z [ 39%] Built target obj.clangCodeGen
2024-10-13T23:22:27.7863827Z gmake[1]: Leaving directory '/root/.xmake/cache/packages/2410/l/llvm/19.1.1/source/llvm/build_9f50e260'
2024-10-13T23:22:27.7910401Z gmake: *** [Makefile:156: all] Error 2
2024-10-13T23:22:27.8210122Z �[0m�[2;38;5;1;1merror: �[0m@programdir/core/sandbox/modules/os.lua:378: execv(gmake -j6 VERBOSE=1) failed(2)
2024-10-13T23:22:27.8211249Z stack traceback:
2024-10-13T23:22:27.8211797Z     [C]: in function 'error'
2024-10-13T23:22:27.8212373Z     [@programdir/core/base/os.lua:1004]:
2024-10-13T23:22:27.8213089Z     [@programdir/core/sandbox/modules/os.lua:378]:
2024-10-13T23:22:27.8213792Z     [@programdir/core/sandbox/modules/os.lua:291]: in function 'vrunv'
2024-10-13T23:22:27.8214766Z     [@programdir/modules/package/tools/cmake.lua:1111]: in function '_install_for_make'
2024-10-13T23:22:27.8216115Z     [@programdir/modules/package/tools/cmake.lua:1299]: in function 'install'
2024-10-13T23:22:27.8217497Z     [...ner/work/xmake-repo/xmake-repo/packages/l/llvm/xmake.lua:207]: in function 'script'
2024-10-13T23:22:27.8218883Z     [...dir/modules/private/action/require/impl/utils/filter.lua:114]: in function 'call'
2024-10-13T23:22:27.8219674Z     [.../modules/private/action/require/impl/actions/install.lua:392]:
2024-10-13T23:22:27.8220552Z �[0m
2024-10-13T23:22:27.8221236Z �[0m�[38;5;3m  => �[0minstall llvm 19.1.1 .. �[38;5;1;1mfailed�[0m
2024-10-13T23:22:28.2146695Z �[0m�[1;38;5;1;1merror: �[0m@programdir/core/main.lua:329: @programdir/modules/async/runjobs.lua:325: .../modules/private/action/require/impl/actions/install.lua:494: install failed!
2024-10-13T23:22:28.2148223Z stack traceback:
2024-10-13T23:22:28.2148655Z     [C]: in function 'error'
2024-10-13T23:22:28.2149143Z     [@programdir/core/base/os.lua:1004]:
2024-10-13T23:22:28.2150094Z     [.../modules/private/action/require/impl/actions/install.lua:494]: in function 'catch'
2024-10-13T23:22:28.2151212Z     [@programdir/core/sandbox/modules/try.lua:123]: in function 'try'
2024-10-13T23:22:28.2152368Z     [.../modules/private/action/require/impl/actions/install.lua:361]:
2024-10-13T23:22:28.2153562Z     [...modules/private/action/require/impl/install_packages.lua:496]: in function 'jobfunc'
2024-10-13T23:22:28.2154463Z     [@programdir/modules/async/runjobs.lua:241]:
2024-10-13T23:22:28.2154870Z 
2024-10-13T23:22:28.2154998Z stack traceback:
2024-10-13T23:22:28.2155384Z 	[C]: in function 'error'
2024-10-13T23:22:28.2156119Z 	@programdir/core/base/os.lua:1004: in function 'base/os.raiselevel'
2024-10-13T23:22:28.2156787Z 	(...tail calls...)
2024-10-13T23:22:28.2157293Z 	@programdir/core/main.lua:329: in upvalue 'cotask'
2024-10-13T23:22:28.2158375Z 	@programdir/core/base/scheduler.lua:406: in function <@programdir/core/base/scheduler.lua:399>�[0m
2024-10-13T23:22:28.2789425Z �[0m�[1;38;5;1;1merror: �[0mexecv(/usr/local/bin/xmake require -f -y --build -v -D --extra={configs={shared=false}} llvm "llvm 19.1.1") failed(255)�[0m
2024-10-13T23:22:28.5974305Z exec shell: bash run.sh showDebugInfo
  • MacOS
2024-10-13T23:53:13.2901970Z cd /Users/runner/.xmake/cache/packages/2410/l/llvm/19.1.1/source/llvm/build_28bf8c92/runtimes && /Users/runner/.xmake/packages/c/cmake/3.30.2/8ef6e179552143e896028fe8efa403e5/bin/cmake -E touch /Users/runner/.xmake/cache/packages/2410/l/llvm/19.1.1/source/llvm/build_28bf8c92/runtimes/runtimes-stamps/runtimes-done
2024-10-13T23:53:13.2905510Z [100%] Built target runtimes
2024-10-13T23:53:13.2905860Z 
2024-10-13T23:53:13.2906020Z stack traceback:
2024-10-13T23:53:13.2906520Z     [C]: in function 'error'
2024-10-13T23:53:13.2907070Z     [@programdir/core/base/os.lua:1004]:
2024-10-13T23:53:13.2907780Z     [@programdir/core/sandbox/modules/os.lua:273]:
2024-10-13T23:53:13.2908830Z     [@programdir/core/sandbox/modules/os.lua:291]: in function 'vrunv'
2024-10-13T23:53:13.2910370Z     [@programdir/modules/package/tools/cmake.lua:1129]: in function '_install_for_make'
2024-10-13T23:53:13.2911850Z     [@programdir/modules/package/tools/cmake.lua:1299]: in function 'install'
2024-10-13T23:53:13.2913480Z     [...ner/work/xmake-repo/xmake-repo/packages/l/llvm/xmake.lua:207]: in function 'script'
2024-10-13T23:53:13.2915070Z     [...dir/modules/private/action/require/impl/utils/filter.lua:114]: in function 'call'
2024-10-13T23:53:13.2916380Z     [.../modules/private/action/require/impl/actions/install.lua:392]:
2024-10-13T23:53:13.2917240Z �[0m
2024-10-13T23:53:13.2917840Z �[0m�[38;5;3m  => �[0minstall llvm 19.1.1 .. �[38;5;1;1mfailed�[0m
2024-10-13T23:53:13.2920020Z �[0m�[1;38;5;1;1merror: �[0m@programdir/core/main.lua:329: @programdir/modules/async/runjobs.lua:325: .../modules/private/action/require/impl/actions/install.lua:494: install failed!
2024-10-13T23:53:13.2922080Z stack traceback:
2024-10-13T23:53:13.2922570Z     [C]: in function 'error'
2024-10-13T23:53:13.2923130Z     [@programdir/core/base/os.lua:1004]:
2024-10-13T23:53:13.2924290Z     [.../modules/private/action/require/impl/actions/install.lua:494]: in function 'catch'
2024-10-13T23:53:13.2926070Z     [@programdir/core/sandbox/modules/try.lua:123]: in function 'try'
2024-10-13T23:53:13.2927220Z     [.../modules/private/action/require/impl/actions/install.lua:361]:
2024-10-13T23:53:13.2928660Z     [...modules/private/action/require/impl/install_packages.lua:496]: in function 'jobfunc'
2024-10-13T23:53:13.2929850Z     [@programdir/modules/async/runjobs.lua:241]:
2024-10-13T23:53:13.2930370Z 
2024-10-13T23:53:13.2930530Z stack traceback:
2024-10-13T23:53:13.2931010Z 	[C]: in function 'error'
2024-10-13T23:53:13.2931800Z 	@programdir/core/base/os.lua:1004: in function 'os.raiselevel'
2024-10-13T23:53:13.2932620Z 	(...tail calls...)
2024-10-13T23:53:13.2933350Z 	@programdir/core/main.lua:329: in upvalue 'cotask'
2024-10-13T23:53:13.2934740Z 	@programdir/core/base/scheduler.lua:406: in function <@programdir/core/base/scheduler.lua:399>�[0m
2024-10-13T23:53:13.2937470Z �[0m�[1;38;5;1;1merror: �[0mexecv(/Users/runner/work/xmake-repo/xmake-repo/.xmake-cache/bin/xmake require -f -y --build -D --extra={configs={shared=false}} llvm "llvm 19.1.1") failed(255)�[0m
2024-10-13T23:53:13.2950830Z ##[error]Process completed with exit code 255.
2024-10-13T23:53:13.3182660Z Cleaning up orphan processes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant