[llvm-bugs] [Bug 31919] New: using unsupported flags for ld on osx

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 9 06:59:58 PST 2017


https://llvm.org/bugs/show_bug.cgi?id=31919

            Bug ID: 31919
           Summary: using unsupported flags for ld on osx
           Product: Build scripts
           Version: trunk
          Hardware: PC
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: cmake
          Assignee: unassignedbugs at nondot.org
          Reporter: ralph_kube at gmx.net
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Trying to compile clang from svn, revision 294583.

# cd ~/local/llvm_build
# cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/Users/ralph/local 
DCMAKE_BUILD_TYPE=release ../llvm
# make -j4

Compilation stops with 

[ 10%] Linking CXX shared library ../../../lib/libomptarget.dylib
ld: warning: directory not found for option '-L/opt/local/lib:'
ld: unknown option:
--version-script=/Users/ralph/local/src/llvm/projects/openmp/libomptarget/exports
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libomptarget.dylib] Error 1
make[1]: *** [projects/openmp/libomptarget/CMakeFiles/omptarget.dir/all] Error
2
make[1]: *** Waiting for unfinished jobs....

According to google and man ld, the osx version does not support
--version-script.

-- 
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/llvm-bugs/attachments/20170209/dccfd0d8/attachment-0001.html>


More information about the llvm-bugs mailing list