[lldb-dev] [Bug 21727] New: Fix test Makefiles to support linking shared libraries on Windows.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Dec 3 09:44:28 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=21727

            Bug ID: 21727
           Summary: Fix test Makefiles to support linking shared libraries
                    on Windows.
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: zturner at google.com
          Reporter: zturner at google.com
                CC: lldb-dev at cs.uiuc.edu
        Depends on: 21721
    Classification: Unclassified

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20141203/503e6ffd/attachment.html>


More information about the lldb-dev mailing list