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

Fix test Makefiles to support linking shared libraries on Windows. #22101

Closed
llvmbot opened this issue Dec 3, 2014 · 2 comments
Closed

Fix test Makefiles to support linking shared libraries on Windows. #22101

llvmbot opened this issue Dec 3, 2014 · 2 comments
Labels
bugzilla Issues migrated from bugzilla lldb

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Dec 3, 2014

Bugzilla Link 21727
Resolution FIXED
Resolved on Mar 13, 2015 16:51
Version unspecified
OS Windows NT
Depends On #22095
Blocks #22140
Reporter LLVM Bugzilla Contributor

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

@llvmbot
Copy link
Collaborator Author

llvmbot commented Mar 13, 2015

Fixed in r232220.

@llvmbot
Copy link
Collaborator Author

llvmbot commented Nov 26, 2021

mentioned in issue #22140

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 9, 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 lldb
Projects
None yet
Development

No branches or pull requests

1 participant