From owner-freebsd-ports-bugs@freebsd.org Fri Apr 15 00:04:45 2016 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 57693AEC3F0 for ; Fri, 15 Apr 2016 00:04:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4751910A5 for ; Fri, 15 Apr 2016 00:04:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u3F04jLx066034 for ; Fri, 15 Apr 2016 00:04:45 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 208811] Qmake-Qt5 uses clang for linking instead of gcc/g++ specified in Netbeans toolchain Date: Fri, 15 Apr 2016 00:04:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: info@dressmaker.ca X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Apr 2016 00:04:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208811 Bug ID: 208811 Summary: Qmake-Qt5 uses clang for linking instead of gcc/g++ specified in Netbeans toolchain Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: info@dressmaker.ca For some reason instead of using g++ specified in Netbeans toolchain for C++ qmake-qt5 uses clang and that breaks compilation if -lquadmath option is us= ed for gcc. Qmake should always use the specified tools. Here is a build log under Fedora 19 Linux - notice use of g++ for linking
cd '/home/user0/NetBeansProjects/MandelbrotQT'
/usr/bin/gmake -f Makefile CONF=3DDebug QMAKE=3D/bin/qmake-qt5
"/usr/bin/gmake" -f nbproject/Makefile-Debug.mk QMAKE=3D/bin/qmake-qt5
SUBPROJECTS=3D .build-conf
gmake[1]: Entering directory `/home/user0/NetBeansProjects/MandelbrotQT'
/bin/qmake-qt5 VPATH=3D. -o qttmp-Debug.mk nbproject/qt-Debug.pro
mv -f qttmp-Debug.mk nbproject/qt-Debug.mk
"/usr/bin/gmake" -f nbproject/qt-Debug.mk dist/Debug/GNU-Linux/MandelbrotQT
gmake[2]: Entering directory `/home/user0/NetBeansProjects/MandelbrotQT'
/usr/lib64/qt5/bin/uic newForm.ui -o ui_newForm.h
g++ -c -pipe -O3 -lquadmath -g -std=3Dc++0x -Wall -W -D_REENTRANT -fPIE
-DQT_WIDGETS_LIB -DQT_CONCURRENT_LIB -DQT_GUI_LIB -DQT_CORE_LIB
-I/usr/lib64/qt5/mkspecs/linux-g++ -Inbproject -isystem
/usr/local/include/qt5/QtConcurrent -isystem /usr/include/qt5 -isystem
/usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtConcurrent -isystem
/usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -I. -I. -I. -o
build/Debug/GNU-Linux/main.o main.cpp
g++ -c -pipe -O3 -lquadmath -g -std=3Dc++0x -Wall -W -D_REENTRANT -fPIE
-DQT_WIDGETS_LIB -DQT_CONCURRENT_LIB -DQT_GUI_LIB -DQT_CORE_LIB
-I/usr/lib64/qt5/mkspecs/linux-g++ -Inbproject -isystem
/usr/local/include/qt5/QtConcurrent -isystem /usr/include/qt5 -isystem
/usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtConcurrent -isystem
/usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -I. -I. -I. -o
build/Debug/GNU-Linux/newForm.cpp.o newForm.cpp.cc
newForm.cpp.cc:179:6: warning: unused parameter =E2=80=98pA=E2=80=99 [-Wunu=
sed-parameter]
 void newForm::handleRubberBandChanged(QRect r, QPointF pA, QPointF pB){
      ^
newForm.cpp.cc:179:6: warning: unused parameter =E2=80=98pB=E2=80=99 [-Wunu=
sed-parameter]
/usr/lib64/qt5/bin/moc -DQT_WIDGETS_LIB -DQT_CONCURRENT_LIB -DQT_GUI_LIB
-DQT_CORE_LIB -I/usr/lib64/qt5/mkspecs/linux-g++
-I/home/user0/NetBeansProjects/MandelbrotQT/nbproject
-I/usr/local/include/qt5/QtConcurrent -I/usr/include/qt5
-I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtConcurrent
-I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -I/usr/include/c++/4=
.8.3
-I/usr/include/c++/4.8.3/x86_64-redhat-linux -I/usr/include/c++/4.8.3/backw=
ard
-I/usr/lib/gcc/x86_64-redhat-linux/4.8.3/include -I/usr/local/include
-I/usr/include newForm.h -o moc_newForm.cpp
g++ -c -pipe -O3 -lquadmath -g -std=3Dc++0x -Wall -W -D_REENTRANT -fPIE
-DQT_WIDGETS_LIB -DQT_CONCURRENT_LIB -DQT_GUI_LIB -DQT_CORE_LIB
-I/usr/lib64/qt5/mkspecs/linux-g++ -Inbproject -isystem
/usr/local/include/qt5/QtConcurrent -isystem /usr/include/qt5 -isystem
/usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtConcurrent -isystem
/usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -I. -I. -I. -o
build/Debug/GNU-Linux/moc_newForm.o moc_newForm.cpp
g++  -o dist/Debug/GNU-Linux/MandelbrotQT build/Debug/GNU-Linux/main.o
build/Debug/GNU-Linux/newForm.cpp.o build/Debug/GNU-Linux/moc_newForm.o=20=
=20
-lQt5Widgets -lQt5Concurrent -lQt5Gui -lQt5Core -lGL -lpthread=20
gmake[2]: Leaving directory `/home/user0/NetBeansProjects/MandelbrotQT'
gmake[1]: Leaving directory `/home/user0/NetBeansProjects/MandelbrotQT'

BUILD SUCCESSFUL (total time: 957ms)

And here is the log from PCBSD - notice the use of clang for linking:

cd '/usr/home/leo/NetBeansProjects/QtApplication_1'
/usr/local/bin/gmake -f Makefile CONF=3DDebug QMAKE=3D/usr/local/lib/qt5/bi=
n/qmake
"/usr/local/bin/gmake" -f nbproject/Makefile-Debug.mk
QMAKE=3D/usr/local/lib/qt5/bin/qmake SUBPROJECTS=3D .build-conf
gmake[1]: Entering directory '/usr/home/leo/NetBeansProjects/QtApplication_=
1'
/usr/local/lib/qt5/bin/qmake VPATH=3D. -o qttmp-Debug.mk nbproject/qt-Debug=
.pro
mv -f qttmp-Debug.mk nbproject/qt-Debug.mk
"/usr/local/bin/gmake" -f nbproject/qt-Debug.mk
dist/Debug/GNU-Generic/QtApplication_1
gmake[2]: Entering directory '/usr/home/leo/NetBeansProjects/QtApplication_=
1'
/usr/local/lib/qt5/bin/uic newForm.ui -o ui_newForm.h
g++ -c -pipe -O3 -lquadmath -g -std=3Dc++11 -Wall -W -pthread -D_THREAD_SAFE
-fPIC -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB
-Inbproject -I. -I../../../../local/include/qt5/QtConcurrent
-I../../../../local/include/qt5 -I../../../../local/include/qt5/QtWidgets
-I../../../../local/include/qt5/QtGui -I../../../../local/include/qt5/QtCore
-I. -I../../../../local/include -I. -I../../../../local/include
-I../../../../local/lib/qt5/mkspecs/freebsd-clang -o
build/Debug/GNU-Generic/main.o main.cpp
g++ -c -pipe -O3 -lquadmath -g -std=3Dc++11 -Wall -W -pthread -D_THREAD_SAFE
-fPIC -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB
-Inbproject -I. -I../../../../local/include/qt5/QtConcurrent
-I../../../../local/include/qt5 -I../../../../local/include/qt5/QtWidgets
-I../../../../local/include/qt5/QtGui -I../../../../local/include/qt5/QtCore
-I. -I../../../../local/include -I. -I../../../../local/include
-I../../../../local/lib/qt5/mkspecs/freebsd-clang -o
build/Debug/GNU-Generic/newForm.cpp.o newForm.cpp.cc
newForm.cpp.cc:191:6: warning: unused parameter 'pA' [-Wunused-parameter]
 void newForm::handleRubberBandChanged(QRect r, QPointF pA, QPointF pB){
      ^
newForm.cpp.cc:191:6: warning: unused parameter 'pB' [-Wunused-parameter]
/usr/local/lib/qt5/bin/moc -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB
-DQT_CORE_LIB -I/usr/local/lib/qt5/mkspecs/freebsd-clang
-I/usr/home/leo/NetBeansProjects/QtApplication_1/nbproject
-I/usr/local/include/qt5/QtConcurrent -I/usr/local/include/qt5
-I/usr/local/include/qt5/QtWidgets -I/usr/local/include/qt5/QtGui
-I/usr/local/include/qt5/QtCore -I. -I/usr/include/c++/v1
-I/usr/include/clang/3.4.1 -I/usr/include newForm.h -o moc_newForm.cpp
g++ -c -pipe -O3 -lquadmath -g -std=3Dc++11 -Wall -W -pthread -D_THREAD_SAFE
-fPIC -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB
-Inbproject -I. -I../../../../local/include/qt5/QtConcurrent
-I../../../../local/include/qt5 -I../../../../local/include/qt5/QtWidgets
-I../../../../local/include/qt5/QtGui -I../../../../local/include/qt5/QtCore
-I. -I../../../../local/include -I. -I../../../../local/include
-I../../../../local/lib/qt5/mkspecs/freebsd-clang -o
build/Debug/GNU-Generic/moc_newForm.o moc_newForm.cpp
clang++ -pthread -Wl,-rpath,/usr/local/lib -o
dist/Debug/GNU-Generic/QtApplication_1 build/Debug/GNU-Generic/main.o
build/Debug/GNU-Generic/newForm.cpp.o build/Debug/GNU-Generic/moc_newForm.o=
=20=20
-L/usr/local/lib -lQt5Widgets -lQt5Gui -lQt5Concurrent -lQt5Core -lGL
/usr/bin/ld: Dwarf Error: found dwarf version '4', this reader only handles
version 2 information.
build/Debug/GNU-Generic/newForm.cpp.o: In function
`_ZN12QtConcurrent9MapKernelIPiZN7newForm18handleBtnCalculateEvEUlRiE_E12ru=
nIterationES1_iPv':
newForm.cpp.cc:(.text+0x157): undefined reference to `__extenddftf2'
newForm.cpp.cc:(.text+0x175): undefined reference to `__extenddftf2'
newForm.cpp.cc:(.text+0x1a9): undefined reference to `__gttf2'
newForm.cpp.cc:(.text+0x1c5): undefined reference to `__gttf2'
newForm.cpp.cc:(.text+0x1e7): undefined reference to `__multf3'
newForm.cpp.cc:(.text+0x202): undefined reference to `__multf3'
newForm.cpp.cc:(.text+0x211): undefined reference to `__subtf3'
newForm.cpp.cc:(.text+0x220): undefined reference to `__addtf3'
newForm.cpp.cc:(.text+0x239): undefined reference to `__addtf3'
newForm.cpp.cc:(.text+0x247): undefined reference to `__multf3'
newForm.cpp.cc:(.text+0x256): undefined reference to `__addtf3'
clang++: error: linker command failed with exit code 1 (use -v to see
invocation)
nbproject/qt-Debug.mk:224: recipe for target
'dist/Debug/GNU-Generic/QtApplication_1' failed
gmake[2]: *** [dist/Debug/GNU-Generic/QtApplication_1] Error 1
gmake[2]: Leaving directory '/usr/home/leo/NetBeansProjects/QtApplication_1'
nbproject/Makefile-Debug.mk:65: recipe for target '.build-conf' failed
gmake[1]: *** [.build-conf] Error 2
gmake[1]: Leaving directory '/usr/home/leo/NetBeansProjects/QtApplication_1'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
gmake: *** [.build-impl] Error 2
--=20 You are receiving this mail because: You are the assignee for the bug.=