[kde-freebsd] qmake vs gcc from ports

Andriy Gapon avg at FreeBSD.org
Thu Jan 9 09:32:31 UTC 2014


I have a head system with clang as a base compiler and no gcc in the base.
On the other hand, for reasons of my own, I have lang/gcc48 installed and use it
to build ports.  This used to work quite well until r338902.

Previously, there were spec files for freebsd-g++XY, e.g. freebsd-g++48.
Setting CXX to g++48 was sufficient to get the correct spec file.

Now I see that there are only freebsd-g++ and freebsd-clang.
Then, for example, the following happens:
$ cd /usr/ports/devel/qt4-corelib
$ make -V CXX
g++48
$ make -V QMAKE_COMPILER
$(ccver="$(g++48 --version)"; case "$ccver" in *clang*) echo clang ;; *) echo
g++ ;; esac)
$ echo $(ccver="$(g++48 --version)"; case "$ccver" in *clang*) echo clang ;; *)
echo g++ ;; esac)
g++
$ make -V QMAKESPEC
/usr/local/share/qt4/mkspecs/freebsd-$(ccver="$(g++48 --version)"; case "$ccver"
in *clang*) echo clang ;; *) echo g++ ;; esac)
$ make -V CONFIGURE_ARGS
-no-nas-sound -no-gtkstyle -opensource -confirm-license  -platform
/usr/local/share/qt4/mkspecs/freebsd-$(ccver="$(g++48 --version)"; case "$ccver"
in *clang*) echo clang ;; *) echo g++ ;; esac)  -no-pch  -prefix /usr/local
-bindir /usr/local/bin  -headerdir /usr/local/include/qt4  -libdir
/usr/local/lib/qt4  -plugindir /usr/local/lib/qt4/plugins  -importdir
/usr/local/lib/qt4/imports  -datadir /usr/local/share/qt4  -docdir
/usr/local/share/doc/qt4  -translationdir /usr/local/share/qt4/translations
-sysconfdir /usr/local/etc/xdg -fast  -system-libjpeg -system-libpng
-system-libmng -system-libtiff -system-zlib  -no-phonon-backend  -examplesdir
/usr/local/share/examples/qt4/examples  -demosdir
/usr/local/share/examples/qt4/demos -release -no-separate-debug-info
$ make -V CONFIGURE_ENV
QTDIR=/usr/obj/ports/usr/ports/devel/qt4-corelib/work/qt-everywhere-opensource-src-4.8.5
PATH=/usr/obj/ports/usr/ports/devel/qt4-corelib/work/qt-everywhere-opensource-src-4.8.5/bin:$PATH
MAKE="make" PKG_CONFIG=pkgconf SHELL=/bin/sh CONFIG_SHELL=/bin/sh
$ make configure WANT_QT_VERBOSE_CONFIGURE=yes
...
floatmath auto-detection... ()
g++ -c -pipe -O2 -Wall -W  -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I.
-I/usr/local/include/qt4 -I/usr/local/include -o floatmath.o floatmath.cpp
make[1]: exec(g++) failed (No such file or directory)
*** Error code 1
...

How to make this work again?
Thank you.
-- 
Andriy Gapon


More information about the kde-freebsd mailing list