[llvm-bugs] [Bug 30960] New: FreeBSD: openal-soft-1.17.2 link fail with "error: cannot preempt symbol.." error

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Nov 9 06:38:10 PST 2016


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

            Bug ID: 30960
           Summary: FreeBSD: openal-soft-1.17.2 link fail with "error:
                    cannot preempt symbol.." error
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: grimar at accesssoftek.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 17573
  --> https://llvm.org/bugs/attachment.cgi?id=17573&action=edit
CPIO

When trying to link that port, lld fails with next errors:

/usr/bin/ld: error: cannot preempt symbol alIsExtensionPresent
/usr/bin/ld: error: cannot preempt symbol alcGetCurrentContext
/usr/bin/ld: error: cannot preempt symbol alcGetContextsDevice
/usr/bin/ld: error: cannot preempt symbol alcGetIntegerv
/usr/bin/ld: error: cannot preempt symbol alcGetError
/usr/bin/ld: error: cannot preempt symbol alGenBuffers
/usr/bin/ld: error: cannot preempt symbol alBufferData
/usr/bin/ld: error: cannot preempt symbol alGetError
....<more>

Original reproduce file is attached. 

While investigating reduced to:
dso.c:
__attribute__((visibility("protected"))) void foo() {}

main.c:
extern void foo();
int main() { foo(); return 0; }

root at freebsd:~/tests/3openal # clang dso.c -shared -o dso.so
root at freebsd:~/tests/3openal # clang main.c dso.so -o main
/usr/bin/ld: error: cannot preempt symbol foo
clang: error: linker command failed with exit code 1 (use -v to see invocation)

-- 
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/20161109/d5eaaf95/attachment.html>


More information about the llvm-bugs mailing list