From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Dec 10 22:20:09 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E82AE1065673 for ; Fri, 10 Dec 2010 22:20:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 43EEF8FC1B for ; Fri, 10 Dec 2010 22:20:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oBAMK8CC070975 for ; Fri, 10 Dec 2010 22:20:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oBAMK81O070974; Fri, 10 Dec 2010 22:20:08 GMT (envelope-from gnats) Resent-Date: Fri, 10 Dec 2010 22:20:08 GMT Resent-Message-Id: <201012102220.oBAMK81O070974@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Matthias Andree Received: from apollo.emma.line.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id A961B106564A; Fri, 10 Dec 2010 22:19:03 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from mandree by apollo.emma.line.org with local (Exim 4.72 (FreeBSD)) (envelope-from ) id 1PRBIe-000MSW-Ub; Fri, 10 Dec 2010 23:18:48 +0100 Message-Id: Date: Fri, 10 Dec 2010 23:18:48 +0100 From: Matthias Andree To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Brooks Davis Subject: ports/153008: clang/binutils incompatibility X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Andree List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Dec 2010 22:20:09 -0000 >Number: 153008 >Category: ports >Synopsis: clang/binutils incompatibility >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 Dec 10 22:20:07 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Matthias Andree >Release: FreeBSD 8.2-PRERELEASE amd64 >Organization: >Environment: System: FreeBSD apollo.emma.line.org 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #43: Fri Dec 10 16:02:18 CET 2010 toor@apollo.emma.line.org:/usr/obj/usr/src/sys/GENERIC amd64 >Description: When compiling stuff with clang, and binutils-2.20 is installed, ld may fail to create a eh_frame_hdr table (see last line in script below). The system ld 2.15 does not complain. Uninstalling binutils helps against getting the error message, but since it's a dependency for gcc44/45/46 that I need for other purposes, this isn't so easy. Overriding PATH=/usr/bin:$PATH doesn't help. $ clang -v -O2 -ggdb3 -Wall -Wextra -pedantic -I/usr/kerberos/include -L/usr/lib -o fetchmail socket.o getpass.o fetchmail.o env.o idle.o options.o daemon.o driver.o transact.o sink.o smtp.o idlist.o uid.o mxget.o md5ify.o cram.o gssapi.o opie.o interface.o netrc.o unmime.o conf.o checkalias.o lock.o rcfile_l.o rcfile_y.o norm_charmap.o pop3.o imap.o etrn.o odmr.o libfm.a /usr/local/lib/libintl.so -L/usr/local/lib /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib -lcrypt -lmd -lkvm -lcom_err -lssl -lcrypto -L/usr/lib -lgssapi -lheimntlm -lkrb5 -lhx509 -lcom_err -lcrypto -lasn1 -lroken -lcrypt clang version 2.8 (branches/release_28) Target: x86_64-portbld-freebsd8.1 Thread model: posix clang: warning: argument unused during compilation: '-ggdb3' "/usr/local/bin/ld" --eh-frame-hdr -dynamic-linker /libexec/ld-elf.so.1 -o fetchmail /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/lib -L/usr/local/lib -L/usr/lib socket.o getpass.o fetchmail.o env.o idle.o options.o daemon.o driver.o transact.o sink.o smtp.o idlist.o uid.o mxget.o md5ify.o cram.o gssapi.o opie.o interface.o netrc.o unmime.o conf.o checkalias.o lock.o rcfile_l.o rcfile_y.o norm_charmap.o pop3.o imap.o etrn.o odmr.o libfm.a /usr/local/lib/libintl.so /usr/local/lib/libiconv.so -rpath /usr/local/lib -lcrypt -lmd -lkvm -lcom_err -lssl -lcrypto -lgssapi -lheimntlm -lkrb5 -lhx509 -lcom_err -lcrypto -lasn1 -lroken -lcrypt -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/crtend.o /usr/lib/crtn.o /usr/local/bin/ld: error in /usr/lib/crtend.o(.eh_frame); no .eh_frame_hdr table will be created. >How-To-Repeat: Run these commands: # Install prerequisites portmaster devel/binutils lang/clang devel/git devel/autotools # Reproduce problem: cd /var/tmp git clone git://gitorious.org/fetchmail/fetchmail.git cd fetchmail autoreconf -isv ./configure '-C' '--with-ssl' '--with-gssapi' \ 'CFLAGS=-O2 -ggdb3 -Wall -Wextra -pedantic' 'CC=clang' make -sj $(sysctl -n kern.smp.cpus) rm fetchmail make # this should trigger the problem >Fix: >Release-Note: >Audit-Trail: >Unformatted: