From nobody@FreeBSD.org  Sun Oct 13 18:27:23 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 00782172
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 13 Oct 2013 18:27:22 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id E189720BD
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 13 Oct 2013 18:27:22 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r9DIRMQ4064689
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 13 Oct 2013 18:27:22 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r9DIRMug064683;
	Sun, 13 Oct 2013 18:27:22 GMT
	(envelope-from nobody)
Message-Id: <201310131827.r9DIRMug064683@oldred.freebsd.org>
Date: Sun, 13 Oct 2013 18:27:22 GMT
From: dt71 <dt71@gmx.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: databases/py-sqlite3: compilation error with Clang
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         182951
>Category:       ports
>Synopsis:       databases/py-sqlite3: compilation error with Clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-python
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 13 18:30:00 UTC 2013
>Closed-Date:    Mon Apr 21 12:27:15 UTC 2014
>Last-Modified:  Mon Apr 21 12:27:15 UTC 2014
>Originator:     dt71
>Release:        -CURRENT
>Organization:
>Environment:
FreeBSD  11.0-CURRENT FreeBSD 11.0-CURRENT #0 r256311M: Fri Oct 11 16:42:56 CEST 2013     root@:/usr/obj/usr/src/sys/CUSTOM  i386
>Description:
With a very recent version of Clang (r192389), compilation of the databases/py-sqlite3 port fails:

/path/to/clang -shared -O2 -pipe -march=native -fno-strict-aliasing build/temp.freebsd-11.0-CURRENT-i386-2.7/_sqlite/cache.o build/temp.freebsd-11.0-CURRENT-i386-2.7/_sqlite/connection.o build/temp.freebsd-11.0-CURRENT-i386-2.7/_sqlite/cursor.o build/temp.freebsd-11.0-CURRENT-i386-2.7/_sqlite/microprotocols.o build/temp.freebsd-11.0-CURRENT-i386-2.7/_sqlite/module.o build/temp.freebsd-11.0-CURRENT-i386-2.7/_sqlite/prepare_protocol.o build/temp.freebsd-11.0-CURRENT-i386-2.7/_sqlite/row.o build/temp.freebsd-11.0-CURRENT-i386-2.7/_sqlite/statement.o build/temp.freebsd-11.0-CURRENT-i386-2.7/_sqlite/util.o -L/usr/local/lib -R/usr/local/lib -lsqlite3 -o build/lib.freebsd-11.0-CURRENT-i386-2.7/_sqlite3.so
clang: error: unknown argument: '-R/usr/local/lib'
error: command '/path/to/clang' failed with exit status 1
*** Error code 1

-R/usr/local/bin should have been -Wl,-R/usr/local/bin (or such an argument should not have been specified, or whatever). Previously, Clang gave only a warning, now it gives an error. Illustration:

$ r188103-clang -R/usr/local/bin somefile.c
clang: warning: argument unused during compilation: '-R/usr/local/bin'
$ echo $?
0

$ r192389-clang -R/usr/local/bin somefile.c
clang: error: unknown argument: '-R/usr/local/bin'
$ echo $?
1

>How-To-Repeat:
Check out, build and install Clang/LLVM r192389, and with that, try to build the port.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-python 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Oct 13 18:30:07 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

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

From: Kubilay Kocak <koobs.freebsd@gmail.com>
To: bug-followup@FreeBSD.org, dt71@gmx.com
Cc: Dimitry Andric <dim@freebsd.org>
Subject: Re: ports/182951: databases/py-sqlite3: compilation error with Clang
Date: Wed, 23 Oct 2013 23:41:46 +1100

 dim@ mentions the following thread that provides a little insight into
 what's happening:
 
 http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-October/032750.html
 
 At this point I'm hesitant to suggest or apply workarounds, as the
 behaviour may change in the near future, and the symptoms are likely to
 impact a wider number of ports.
 
 Having said that, dim@ mentions he's planning a 3.4 snapshot import
 soon, that your report has served well as a canary in the mine, and that
 an exp-run is likely warranted.
State-Changed-From-To: open->analyzed 
State-Changed-By: koobs 
State-Changed-When: Wed Oct 23 21:27:03 UTC 2013 
State-Changed-Why:  


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

From: Kubilay Kocak <koobs.freebsd@gmail.com>
To: bug-followup@FreeBSD.org, dt71@gmx.com
Cc:  
Subject: Re: ports/182951: databases/py-sqlite3: compilation error with Clang
Date: Mon, 21 Apr 2014 22:19:42 +1000

 The following two commits resolve the reported issue in all python ports:
 
 https://svnweb.freebsd.org/ports?view=revision&revision=346428
 https://svnweb.freebsd.org/ports?view=revision&revision=351610
 
 Additionally reported upstream:
 
 http://bugs.python.org/issue20767
State-Changed-From-To: analyzed->closed 
State-Changed-By: koobs 
State-Changed-When: Mon Apr 21 12:27:14 UTC 2014 
State-Changed-Why:  
Committed. Thank you for your report! 

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