From areilly@bigpond.net.au  Fri May 14 01:46:19 2010
Return-Path: <areilly@bigpond.net.au>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 01ED31065672
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 14 May 2010 01:46:19 +0000 (UTC)
	(envelope-from areilly@bigpond.net.au)
Received: from nskntmtas03p.mx.bigpond.com (nskntmtas03p.mx.bigpond.com [61.9.168.143])
	by mx1.freebsd.org (Postfix) with ESMTP id 8C5D18FC1D
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 14 May 2010 01:46:18 +0000 (UTC)
Received: from nskntotgx01p.mx.bigpond.com ([124.188.161.100])
          by nskntmtas03p.mx.bigpond.com with ESMTP
          id <20100514014616.DPUM23327.nskntmtas03p.mx.bigpond.com@nskntotgx01p.mx.bigpond.com>
          for <FreeBSD-gnats-submit@freebsd.org>;
          Fri, 14 May 2010 01:46:16 +0000
Received: from duncan.reilly.home ([124.188.161.100])
          by nskntotgx01p.mx.bigpond.com with ESMTP
          id <20100514014616.KXGE1945.nskntotgx01p.mx.bigpond.com@duncan.reilly.home>
          for <FreeBSD-gnats-submit@freebsd.org>;
          Fri, 14 May 2010 01:46:16 +0000
Message-Id: <1273801576.97902@duncan.reilly.home>
Date: Fri, 14 May 2010 11:46:16 +1000
From: Andrew Reilly <areilly@bigpond.net.au>
Reply-To: Andrew Reilly <areilly@bigpond.net.au>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: devel/libdispatch doesn't build (on amd64 -CURRENT)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         146558
>Category:       ports
>Synopsis:       devel/binutils causes devel/libdispatch not to build (on amd64 -CURRENT)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mm
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 14 01:50:08 UTC 2010
>Closed-Date:    Mon Jun 06 14:22:04 UTC 2011
>Last-Modified:  Mon Jun 06 14:22:04 UTC 2011
>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@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:
Responsible-Changed-From-To: freebsd-ports-bugs->stas 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri May 14 01:50:19 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=146558 

From: Stanislav Sedov <stas@FreeBSD.org>
To: Andrew Reilly <areilly@bigpond.net.au>
Cc: bug-followup@FreeBSD.org, brooks@FreeBSD.org, mm@FreeBSD.org
Subject: Re: ports/146558: devel/libdispatch doesn't build (on amd64
 -CURRENT)
Date: Thu, 13 May 2010 19:07:02 -0700

 Hi!
 
 This is the bug in binutils and clang port actually.
 For some reason port's version of binutils fails to link
 PIC objects on amd64, and devel/clang picks up ld from
 the port if it installed insted of /usr/bin/ld.
 
 It will work if you deinstall devel/binutils.
 
 -- 
 Stanislav Sedov
 ST4096-RIPE

From: Andrew Reilly <areilly@bigpond.net.au>
To: Stanislav Sedov <stas@FreeBSD.org>
Cc: bug-followup@FreeBSD.org, brooks@FreeBSD.org, mm@FreeBSD.org
Subject: Re: ports/146558: devel/libdispatch doesn't build (on amd64 -CURRENT)
Date: Fri, 14 May 2010 13:15:12 +1000

 On Thu, May 13, 2010 at 07:07:02PM -0700, Stanislav Sedov wrote:
 > This is the bug in binutils and clang port actually.
 > For some reason port's version of binutils fails to link
 > PIC objects on amd64, and devel/clang picks up ld from
 > the port if it installed insted of /usr/bin/ld.
 > 
 > It will work if you deinstall devel/binutils.
 
 But the port version of binutils is required by a bunch of
 installed ports:
 
 ffmpeg-0.5.1_3,1
 gegl-0.1.2_1
 gimp-app-2.6.8_3,1
 x264-0.0.20100222_1
 ufraw-0.16_3
 xsane-0.996_3
 gcc-4.4.4.20100427
 
 Of those, I can't imagine why any of them besides gcc-4.4
 actually need it, but there it is.  I'll try to sort it out over
 the weekend.
 
 Cheers,
 
 -- 
 Andrew
 

From: Stanislav Sedov <stas@FreeBSD.org>
To: Andrew Reilly <areilly@bigpond.net.au>
Cc: bug-followup@FreeBSD.org, brooks@FreeBSD.org, mm@FreeBSD.org
Subject: Re: ports/146558: devel/libdispatch doesn't build (on amd64
 -CURRENT)
Date: Thu, 13 May 2010 20:23:30 -0700

 On Fri, 14 May 2010 13:15:12 +1000
 Andrew Reilly <areilly@bigpond.net.au> mentioned:
 
 > On Thu, May 13, 2010 at 07:07:02PM -0700, Stanislav Sedov wrote:
 > > This is the bug in binutils and clang port actually.
 > > For some reason port's version of binutils fails to link
 > > PIC objects on amd64, and devel/clang picks up ld from
 > > the port if it installed insted of /usr/bin/ld.
 > > 
 > > It will work if you deinstall devel/binutils.
 > 
 > But the port version of binutils is required by a bunch of
 > installed ports:
 > 
 > ffmpeg-0.5.1_3,1
 > gegl-0.1.2_1
 > gimp-app-2.6.8_3,1
 > x264-0.0.20100222_1
 > ufraw-0.16_3
 > xsane-0.996_3
 > gcc-4.4.4.20100427
 > 
 > Of those, I can't imagine why any of them besides gcc-4.4
 > actually need it, but there it is.  I'll try to sort it out over
 > the weekend.
 > 
 
 One of the solutions would be just to temporary move ld from /usr/local
 to somewhere else, build the libdispatch port, and put the 'ld' binary
 back.
 
 -- 
 Stanislav Sedov
 ST4096-RIPE

From: Andrew Reilly <areilly@bigpond.net.au>
To: Stanislav Sedov <stas@freebsd.org>
Cc: bug-followup@FreeBSD.org,
 brooks@FreeBSD.org,
 mm@FreeBSD.org
Subject: Re: ports/146558: devel/libdispatch doesn't build (on amd64 -CURRENT)
Date: Fri, 14 May 2010 14:43:30 +1000

 Hi there,
 
 On 14/05/2010, at 13:23, Stanislav Sedov wrote:
 
 > One of the solutions would be just to temporary move ld from =
 /usr/local
 > to somewhere else, build the libdispatch port, and put the 'ld' binary
 > back.
 
 That worked.  I need to keep /usr/local/ld moved out of the way, =
 otherwise clang (and, presumably others) just keep using it, and =
 failing.
 
 Cheers,
 
 Andrew
 
 

From: Martin Matuska <mm@FreeBSD.org>
To: Andrew Reilly <areilly@bigpond.net.au>
Cc: Stanislav Sedov <stas@freebsd.org>, bug-followup@FreeBSD.org, 
 brooks@FreeBSD.org
Subject: Re: ports/146558: devel/libdispatch doesn't build (on amd64 -CURRENT)
Date: Fri, 14 May 2010 09:35:27 +0200

 x264 needs binutils from ports at build time - the as from our binutils
 doesn't support alle the symbols recent x264 needs
 
 Dňa 14. 5. 2010 6:43, Andrew Reilly wrote / napísal(a):
 > Hi there,
 >
 > On 14/05/2010, at 13:23, Stanislav Sedov wrote:
 >
 >   
 >> One of the solutions would be just to temporary move ld from /usr/local
 >> to somewhere else, build the libdispatch port, and put the 'ld' binary
 >> back.
 >>     
 > That worked.  I need to keep /usr/local/ld moved out of the way, otherwise clang (and, presumably others) just keep using it, and failing.
 >
 > Cheers,
 >
 > Andrew
 >
 >
 >   

From: Stanislav Sedov <stas@FreeBSD.org>
To: Martin Matuska <mm@FreeBSD.org>
Cc: Andrew Reilly <areilly@bigpond.net.au>, Stanislav Sedov
 <stas@freebsd.org>, bug-followup@FreeBSD.org, brooks@FreeBSD.org
Subject: Re: ports/146558: devel/libdispatch doesn't build (on amd64
 -CURRENT)
Date: Fri, 14 May 2010 13:33:35 -0700

 On Fri, 14 May 2010 09:35:27 +0200
 Martin Matuska <mm@FreeBSD.org> mentioned:
 
 > x264 needs binutils from ports at build time - the as from our binutils
 > doesn't support alle the symbols recent x264 needs
 >=20
 > D=C5=88a 14. 5. 2010 6:43, Andrew Reilly wrote / nap=C3=ADsal(a):
 > > Hi there,
 > >
 > > On 14/05/2010, at 13:23, Stanislav Sedov wrote:
 > >
 > >  =20
 > >> One of the solutions would be just to temporary move ld from /usr/local
 > >> to somewhere else, build the libdispatch port, and put the 'ld' binary
 > >> back.
 > >>    =20
 > > That worked.  I need to keep /usr/local/ld moved out of the way, otherw=
 ise clang (and, presumably others) just keep using it, and failing.
 > >
 
 Martin,
 can you look at the devel/binutils PIC linking problems on HEAD?
 
 Thanks!
 
 --=20
 Stanislav Sedov
 ST4096-RIPE
Responsible-Changed-From-To: stas->mm 
Responsible-Changed-By: stas 
Responsible-Changed-When: Fri Oct 15 03:26:29 UTC 2010 
Responsible-Changed-Why:  
Binutils problem actually. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=146558 
State-Changed-From-To: open->feedback 
State-Changed-By: mm 
State-Changed-When: Mon Jun 6 11:50:36 UTC 2011 
State-Changed-Why:  
Awaiting feedback from submitter. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=146558 

From: Martin Matuska <mm@FreeBSD.org>
To: bug-followup@FreeBSD.org, areilly@bigpond.net.au
Cc:  
Subject: Re: ports/146558: devel/binutils causes devel/libdispatch not to
 build (on amd64 -CURRENT)
Date: Mon, 06 Jun 2011 13:50:30 +0200

 Is the problem still there with the latest version?
 
 -- 
 Martin Matuska
 FreeBSD committer
 http://blog.vx.sk
 

From: Andrew Reilly <areilly@bigpond.net.au>
To: Martin Matuska <mm@FreeBSD.org>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/146558: devel/binutils causes devel/libdispatch not to build (on amd64 -CURRENT)
Date: Mon, 6 Jun 2011 22:00:31 +1000

 Hi Martin,
 
 On 06/06/2011, at 21:50 , Martin Matuska wrote:
 
 > Is the problem still there with the latest version?
 
 I can't tell: my -CURRENT box died a couple of months ago and I haven't =
 been able to resurrect it yet.  I don't remember there being any =
 particular problems the last few times I did a portmaster upgrade, but =
 that would only have caused a problem if the port had been updated...  =
 If you can't reproduce the problem I'd say close the PR and if I ever =
 trip over it again I'll create a new one or re-open this one.
 
 Cheers,
 
 --=20
 Andrew
 
State-Changed-From-To: feedback->closed 
State-Changed-By: mm 
State-Changed-When: Mon Jun 6 14:22:03 UTC 2011 
State-Changed-Why:  
Closed on submitter request. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=146558 
>Unformatted:
