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

skipping incompatible /usr/lib/x86_64-linux-gnu/libcrypt.so when searching for -lcrypt #48290

Closed
neilnelson mannequin opened this issue Jan 29, 2021 · 3 comments
Closed
Labels
bugzilla Issues migrated from bugzilla

Comments

@neilnelson
Copy link
Mannequin

neilnelson mannequin commented Jan 29, 2021

Bugzilla Link 48946
Resolution FIXED
Resolved on Jul 27, 2021 20:44
Version 11.0
OS Linux
Blocks #48661
CC @MaskRay,@tstellar

Extended Description

Obtain these errors on the 12.0.0-rc1 release run.

I looked around on https://packages.ubuntu.com/ for a different libcrypt or location and did not find any.
https://packages.ubuntu.com/search?searchon=contents&keywords=libcrypt&mode=filename&suite=groovy&arch=any

locate libcrypt
/usr/lib/x86_64-linux-gnu/libcrypt.a
/usr/lib/x86_64-linux-gnu/libcrypt.so
/usr/lib/x86_64-linux-gnu/libcrypt.so.1
/usr/lib/x86_64-linux-gnu/libcrypt.so.1.1.0

FAIL: SanitizerCommon-asan-i386-Linux :: Linux/crypt_r.cpp (78329 of 87856)
******************** TEST 'SanitizerCommon-asan-i386-Linux :: Linux/crypt_r.cpp' FAILED ********************
Script:

: 'RUN: at line 1'; /home/nnelson/Documents/llvm-project/llvm/utils/release/rc1/Phase3/Release+Asserts/llvmCore-12.0.0-rc1.obj/./bin/clang --driver-mode=g++ -gline-tables-only -fsanitize=address -m32 -ldl -O0 -g /home/nnelson/Documents/llvm-project/llvm/utils/release/rc1/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp -lcrypt -o /home/nnelson/Documents/llvm-project/llvm/utils/release/rc1/Phase3/Release+Asserts/llvmCore-12.0.0-rc1.obj/projects/compiler-rt/test/sanitizer_common/asan-i386-Linux/Linux/Output/crypt_r.cpp.tmp && /home/nnelson/Documents/llvm-project/llvm/utils/release/rc1/Phase3/Release+Asserts/llvmCore-12.0.0-rc1.obj/projects/compiler-rt/test/sanitizer_common/asan-i386-Linux/Linux/Output/crypt_r.cpp.tmp

Exit Code: 1

Command Output (stderr):

/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libcrypt.so when searching for -lcrypt
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libcrypt.a when searching for -lcrypt
/usr/bin/ld: cannot find -lcrypt
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libcrypt.so when searching for -lcrypt
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)

--


Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80..
FAIL: SanitizerCommon-asan-i386-Linux :: Posix/crypt.cpp (78403 of 87856)
******************** TEST 'SanitizerCommon-asan-i386-Linux :: Posix/crypt.cpp' FAILED ********************
Script:

: 'RUN: at line 1'; /home/nnelson/Documents/llvm-project/llvm/utils/release/rc1/Phase3/Release+Asserts/llvmCore-12.0.0-rc1.obj/./bin/clang --driver-mode=g++ -gline-tables-only -fsanitize=address -m32 -ldl -O0 -g /home/nnelson/Documents/llvm-project/llvm/utils/release/rc1/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp -o /home/nnelson/Documents/llvm-project/llvm/utils/release/rc1/Phase3/Release+Asserts/llvmCore-12.0.0-rc1.obj/projects/compiler-rt/test/sanitizer_common/asan-i386-Linux/Posix/Output/crypt.cpp.tmp -lcrypt && /home/nnelson/Documents/llvm-project/llvm/utils/release/rc1/Phase3/Release+Asserts/llvmCore-12.0.0-rc1.obj/projects/compiler-rt/test/sanitizer_common/asan-i386-Linux/Posix/Output/crypt.cpp.tmp

Exit Code: 1

Command Output (stderr):

/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libcrypt.so when searching for -lcrypt
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libcrypt.a when searching for -lcrypt
/usr/bin/ld: cannot find -lcrypt
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libcrypt.so when searching for -lcrypt
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)

--


Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80..
FAIL: SanitizerCommon-lsan-i386-Linux :: Linux/crypt_r.cpp (78668 of 87856)
******************** TEST 'SanitizerCommon-lsan-i386-Linux :: Linux/crypt_r.cpp' FAILED ********************
Script:

: 'RUN: at line 1'; /home/nnelson/Documents/llvm-project/llvm/utils/release/rc1/Phase3/Release+Asserts/llvmCore-12.0.0-rc1.obj/./bin/clang --driver-mode=g++ -gline-tables-only -fsanitize=leak -m32 -ldl -O0 -g /home/nnelson/Documents/llvm-project/llvm/utils/release/rc1/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp -lcrypt -o /home/nnelson/Documents/llvm-project/llvm/utils/release/rc1/Phase3/Release+Asserts/llvmCore-12.0.0-rc1.obj/projects/compiler-rt/test/sanitizer_common/lsan-i386-Linux/Linux/Output/crypt_r.cpp.tmp && /home/nnelson/Documents/llvm-project/llvm/utils/release/rc1/Phase3/Release+Asserts/llvmCore-12.0.0-rc1.obj/projects/compiler-rt/test/sanitizer_common/lsan-i386-Linux/Linux/Output/crypt_r.cpp.tmp

Exit Code: 1

Command Output (stderr):

/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libcrypt.so when searching for -lcrypt
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libcrypt.a when searching for -lcrypt
/usr/bin/ld: cannot find -lcrypt
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libcrypt.so when searching for -lcrypt
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)

--


Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80..
FAIL: SanitizerCommon-lsan-i386-Linux :: Posix/crypt.cpp (78734 of 87856)
******************** TEST 'SanitizerCommon-lsan-i386-Linux :: Posix/crypt.cpp' FAILED ********************
Script:

: 'RUN: at line 1'; /home/nnelson/Documents/llvm-project/llvm/utils/release/rc1/Phase3/Release+Asserts/llvmCore-12.0.0-rc1.obj/./bin/clang --driver-mode=g++ -gline-tables-only -fsanitize=leak -m32 -ldl -O0 -g /home/nnelson/Documents/llvm-project/llvm/utils/release/rc1/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp -o /home/nnelson/Documents/llvm-project/llvm/utils/release/rc1/Phase3/Release+Asserts/llvmCore-12.0.0-rc1.obj/projects/compiler-rt/test/sanitizer_common/lsan-i386-Linux/Posix/Output/crypt.cpp.tmp -lcrypt && /home/nnelson/Documents/llvm-project/llvm/utils/release/rc1/Phase3/Release+Asserts/llvmCore-12.0.0-rc1.obj/projects/compiler-rt/test/sanitizer_common/lsan-i386-Linux/Posix/Output/crypt.cpp.tmp

Exit Code: 1

Command Output (stderr):

/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libcrypt.so when searching for -lcrypt
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libcrypt.a when searching for -lcrypt
/usr/bin/ld: cannot find -lcrypt
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libcrypt.so when searching for -lcrypt
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)

--


Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80..
FAIL: SanitizerCommon-ubsan-i386-Linux :: Linux/crypt_r.cpp (79348 of 87856)
******************** TEST 'SanitizerCommon-ubsan-i386-Linux :: Linux/crypt_r.cpp' FAILED ********************
Script:

: 'RUN: at line 1'; /home/nnelson/Documents/llvm-project/llvm/utils/release/rc1/Phase3/Release+Asserts/llvmCore-12.0.0-rc1.obj/./bin/clang --driver-mode=g++ -gline-tables-only -fsanitize=undefined -m32 -ldl -O0 -g /home/nnelson/Documents/llvm-project/llvm/utils/release/rc1/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp -lcrypt -o /home/nnelson/Documents/llvm-project/llvm/utils/release/rc1/Phase3/Release+Asserts/llvmCore-12.0.0-rc1.obj/projects/compiler-rt/test/sanitizer_common/ubsan-i386-Linux/Linux/Output/crypt_r.cpp.tmp && /home/nnelson/Documents/llvm-project/llvm/utils/release/rc1/Phase3/Release+Asserts/llvmCore-12.0.0-rc1.obj/projects/compiler-rt/test/sanitizer_common/ubsan-i386-Linux/Linux/Output/crypt_r.cpp.tmp

Exit Code: 1

Command Output (stderr):

/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libcrypt.so when searching for -lcrypt
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libcrypt.a when searching for -lcrypt
/usr/bin/ld: cannot find -lcrypt
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libcrypt.so when searching for -lcrypt
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)

--


Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80..
FAIL: SanitizerCommon-ubsan-i386-Linux :: Posix/crypt.cpp (79422 of 87856)
******************** TEST 'SanitizerCommon-ubsan-i386-Linux :: Posix/crypt.cpp' FAILED ********************
Script:

: 'RUN: at line 1'; /home/nnelson/Documents/llvm-project/llvm/utils/release/rc1/Phase3/Release+Asserts/llvmCore-12.0.0-rc1.obj/./bin/clang --driver-mode=g++ -gline-tables-only -fsanitize=undefined -m32 -ldl -O0 -g /home/nnelson/Documents/llvm-project/llvm/utils/release/rc1/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp -o /home/nnelson/Documents/llvm-project/llvm/utils/release/rc1/Phase3/Release+Asserts/llvmCore-12.0.0-rc1.obj/projects/compiler-rt/test/sanitizer_common/ubsan-i386-Linux/Posix/Output/crypt.cpp.tmp -lcrypt && /home/nnelson/Documents/llvm-project/llvm/utils/release/rc1/Phase3/Release+Asserts/llvmCore-12.0.0-rc1.obj/projects/compiler-rt/test/sanitizer_common/ubsan-i386-Linux/Posix/Output/crypt.cpp.tmp

Exit Code: 1

Command Output (stderr):

/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libcrypt.so when searching for -lcrypt
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libcrypt.a when searching for -lcrypt
/usr/bin/ld: cannot find -lcrypt
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libcrypt.so when searching for -lcrypt
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)

--

@tstellar
Copy link
Collaborator

This bug was not resolved in time for the 12.0.0 release, so it will have to wait for 12.0.1.

If you feel this is a high-priority bug that should be fixed for 12.0.0, please re-add release-12.0.0 to the Blocks field and add a comment explaining why this is high-priority.

@MaskRay
Copy link
Member

MaskRay commented Jul 28, 2021

clang -m32 -v a.c |& sed -E 's/ "?-[LiIr]/\n&/g'

clang 13.0.0 doesn't have strange -L/usr/lib/gcc/x86_64-linux-gnu

@tstellar
Copy link
Collaborator

mentioned in issue #48661

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 11, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla
Projects
None yet
Development

No branches or pull requests

2 participants