[LLVMbugs] [Bug 14716] New: libtool: link messes up '-mllvm -vectorize' to '-mllvm -Wl, ...'
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Dec 25 16:48:08 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=14716
Bug #: 14716
Summary: libtool: link messes up '-mllvm -vectorize' to '-mllvm
-Wl,...'
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: johannesobermayr at gmx.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Yes, it is actually a libtool issue but in the meantime clang should be able to
handle this.
/bin/sh ../../../libtool --tag=CC --mode=link clang -fvisibility=hidden
-Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes
-fno-strict-aliasing -fno-builtin-memcmp -g -O0 -fmessage-length=0 -O2 -Wall
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -g -mllvm -vectorize -version-number 1:0:0
-no-undefined -o libOpenVG.la -rpath /usr/lib64 entry.lo mapi.lo stub.lo
table.lo u_current.lo u_execmem.lo -lpthread
libtool: link: clang -shared -fPIC -DPIC .libs/entry.o .libs/mapi.o
.libs/stub.o .libs/table.o .libs/u_current.o .libs/u_execmem.o -lpthread -O0
-O2 -mllvm -Wl,-soname -Wl,libOpenVG.so.1 -o .libs/libOpenVG.so.1.0.0
clang-3: warning: argument unused during compilation: '-mllvm -Wl,-soname'
/usr/bin/ld: cannot find libOpenVG.so.1: No such file or directory
clang-3: error: linker command failed with exit code 1 (use -v to see
invocation)
Manually invoking it works (s:-mllvm:-mllvm -vectorize):
clang -shared -fPIC -DPIC .libs/entry.o .libs/mapi.o .libs/stub.o
.libs/table.o .libs/u_current.o .libs/u_execmem.o -lpthread -O0 -O2 -mllvm
-vectorize -Wl,-soname -Wl,libOpenVG.so.1 -o .libs/libOpenVG.so.1.0.0
clang-3: warning: argument unused during compilation: '-mllvm -vectorize'
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list