ports/146558: devel/libdispatch doesn't build (on amd64 -CURRENT)
Andrew Reilly
areilly at bigpond.net.au
Fri May 14 01:50:09 UTC 2010
>Number: 146558
>Category: ports
>Synopsis: devel/libdispatch doesn't build (on amd64 -CURRENT)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri May 14 01:50:08 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Andrew Reilly
>Release: FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD duncan.reilly.home 9.0-CURRENT FreeBSD 9.0-CURRENT #4: Fri May 7 17:53:38 EST 2010 root at duncan.reilly.home:/nb/obj/nb/src/sys/DUNCAN amd64
In case it's relevant: I already have
llvm-devel-2.8.r103179_1 installed.
>Description:
After reading news of support for GCD on the mailing
lists, I followed Robert's instructions here:
http://wiki.freebsd.org/GCD
and fetched up here:
libtool: link: clang -shared .libs/libdispatch_la-apply.o .libs/libdispatch_la-benchmark.o .libs/libdispatch_la-object.o .libs/libdispatch_la-once.o .libs/libdispatch_la-queue.o .libs/libdispatch_la-queue_kevent.o .libs/libdispatch_la-semaphore.o .libs/libdispatch_la-source.o .libs/libdispatch_la-source_kevent.o .libs/libdispatch_la-time.o -Wl,--whole-archive ./.libs/libshims.a -Wl,--no-whole-archive -L/usr/local/lib -lpthread -lBlocksRuntime -Wl,-soname -Wl,libdispatch.so.0 -o .libs/libdispatch.so.0
/usr/local/bin/ld: error in /usr/lib/crtendS.o(.eh_frame); no .eh_frame_hdr table will be created.
/usr/local/bin/ld: .libs/libdispatch_la-apply.o: relocation R_X86_64_PC32 against symbol `_dispatch_hw_config' can not be used when making a shared object; recompile with -fPIC
/usr/local/bin/ld: final link failed: Bad value
clang: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1
Stop in /nb/ports/devel/libdispatch/work/libdispatch-r174/src.
I've encountered that R_X86_64_PC32 linker error before,
but can't remember how it was resolved...
>How-To-Repeat:
cd ports/devel/libdispatch; sudo make
>Fix:
No idea, yet. Looking into it.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list