ports/182951: databases/py-sqlite3: compilation error with Clang

dt71 dt71 at gmx.com
Sun Oct 13 18:30:00 UTC 2013


>Number:         182951
>Category:       ports
>Synopsis:       databases/py-sqlite3: compilation error with Clang
>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:   Sun Oct 13 18:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


More information about the freebsd-ports-bugs mailing list