-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[llvm-libgcc] Fix symlink path for libcc when LLVM_ENABLE_PER_TARGET_… #165487
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
Open
kraj
wants to merge
2
commits into
main
Choose a base branch
from
users/kraj/llvm-libgcc-symlink-fixes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+21
−5
Conversation
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
The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well.
4204fd1 to
d21ab66
Compare
…UNTIME_DIR=OFF The llvm-libgcc installation was creating incorrect symlinks for libgcc.a when built with LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF, particularly seen with Yocto cross-compilation environments. Issues seen: - Absolute path in symlink: The previous code didn't handle absolute paths returned by get_compiler_rt_install_dir() in staging/sysroot environments, resulting in symlinks like: libgcc.a -> /absolute/path/to/sysroot/usr/lib/clang/.../libclang_rt.builtins.a - Missing architecture suffix: When the install path contained "clang", the code would skip setting builtins_suffix, creating: libgcc.a -> clang/21.1.4/lib/linux/libclang_rt.builtins.a instead of: libgcc.a -> clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a - Incorrect relative path calculation: The original regex stripped too much or too little of the path, either creating symlinks pointing to non-existent locations or stripping the clang/ directory prefix entirely. Solution: - Extract the relative path starting from 'clang/' when present in absolute paths, ensuring the symlink points to the correct location within the installation hierarchy - Always append the architecture suffix to the builtins library name - Only prepend '../' to the path when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR is enabled, as this is when the builtins are in a different directory level The symlink now correctly points to the existing compiler-rt builtins library without creating duplicate copies. Tested with LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF in cross-compilation environments (aarch64 target).
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 5, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 5, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 5, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 6, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 6, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 6, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 8, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 8, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 9, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 10, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 10, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 13, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 14, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 14, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 14, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 16, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 16, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 16, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 17, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 19, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 20, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 20, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 20, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 20, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 21, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 21, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 22, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 22, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 24, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 24, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 24, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 24, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 25, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 25, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 25, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 27, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 27, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 27, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 28, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 29, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 30, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Nov 30, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Dec 1, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Dec 1, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Dec 1, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Dec 2, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Dec 2, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Dec 3, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to kraj/llvm-project
that referenced
this pull request
Dec 3, 2025
…UNTIME_DIR is unset current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g. libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a the real library is at ../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a The relative path is incorrect and its missing to add -arch suffix as well. So we make checks a bit more explicit to cover this case. The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well. Upstream-Status: Submitted [llvm#165487] Signed-off-by: Khem Raj <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
…RUNTIME_DIR is unset
current logic fails when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR = OFF and it ends up with symlinks e.g.
libgcc.a -> ..//usr/lib/clang/21.1.4/lib/linux/libclang_rt.builtins.a
the real library is at
../lib/clang/21.1.4/lib/linux/libclang_rt.builtins-aarch64.a
The relative path is incorrect and its missing to add -arch suffix as well.
So we make checks a bit more explicit to cover this case.
The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency
create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well.