We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When running make against test executables that link shared libraries, it fails. Example:
d:\src\llvm\tools\lldb\test\lang\c\shared_lib>make CC=d:\src\llvm\build\ninja\bin\clang.exe 'g++' is not recognized as an internal or external command, operable program or batch file. The system cannot find the file specified. The system cannot find the file specified. d:\src\llvm\build\ninja\bin\clang.exe -g -O0 -m32 -fPIC -Id:/src/llvm/tools/lldb/test/make/../../include -c -o main.o main.c d:\src\llvm\build\ninja\bin\clang.exe -g -O0 -m32 -fPIC -Id:/src/llvm/tools/lldb/test/make/../../include -c -o foo.o foo.c d:\src\llvm\build\ninja\bin\clang.exe -g -O0 -m32 -fPIC -Id:/src/llvm/tools/lldb/test/make/../../include -fuse-ld=lld foo.o -shared -o "libfoo.so" clang.exe: warning: argument unused during compilation: '-shared' Cannot infer subsystem; assuming /subsystem:console Undefined symbol: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\lib\libcmt.lib(f:\binaries\Intermediate\vctools\crt_bld\SELF_X86\crt\prebuild\build\INTEL\mt_obj\nativec\crt0.obj): _main symbol(s) not found clang.exe: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [libfoo.so] Error 1
The text was updated successfully, but these errors were encountered:
Fixed in r232220.
Sorry, something went wrong.
mentioned in issue #22140
No branches or pull requests
Extended Description
When running make against test executables that link shared libraries, it fails. Example:
d:\src\llvm\tools\lldb\test\lang\c\shared_lib>make CC=d:\src\llvm\build\ninja\bin\clang.exe
'g++' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the file specified.
The system cannot find the file specified.
d:\src\llvm\build\ninja\bin\clang.exe -g -O0 -m32 -fPIC -Id:/src/llvm/tools/lldb/test/make/../../include -c -o main.o main.c
d:\src\llvm\build\ninja\bin\clang.exe -g -O0 -m32 -fPIC -Id:/src/llvm/tools/lldb/test/make/../../include -c -o foo.o foo.c
d:\src\llvm\build\ninja\bin\clang.exe -g -O0 -m32 -fPIC -Id:/src/llvm/tools/lldb/test/make/../../include -fuse-ld=lld foo.o -shared -o "libfoo.so"
clang.exe: warning: argument unused during compilation: '-shared'
Cannot infer subsystem; assuming /subsystem:console
Undefined symbol: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\lib\libcmt.lib(f:\binaries\Intermediate\vctools\crt_bld\SELF_X86\crt\prebuild\build\INTEL\mt_obj\nativec\crt0.obj): _main
symbol(s) not found
clang.exe: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libfoo.so] Error 1
The text was updated successfully, but these errors were encountered: