phantomjs build failure system/compiler not supported.
Johan Hendriks
joh.hendriks at gmail.com
Thu Feb 2 14:46:23 UTC 2017
Op 01/02/2017 om 16:56 schreef Volodymyr Kostyrko:
> Johan Hendriks wrote:
>> Hello I try to build grafana3 which has phantomjs as a dependency, but i
>> get a system compiler error.
>
> Yeah, grafana is getting the hype.
>
> I think gcc++49 line at files/patch-src_qt_qtbase_configure is causing
> the breakage:
>
> Index: files/patch-src_qt_qtbase_configure
> ===================================================================
> --- files/patch-src_qt_qtbase_configure (revision 432991)
> +++ files/patch-src_qt_qtbase_configure (working copy)
> @@ -8,7 +8,7 @@
>
> # find out which awk we want to use, prefer gawk, then nawk, then
> regular awk
> AWK=
> -@@ -2791,11 +2792,19 @@ if [ -z "$PLATFORM" ]; then
> +@@ -2791,11 +2792,18 @@ if [ -z "$PLATFORM" ]; then
> ULTRIX:*)
> PLATFORM=ultrix-g++
> ;;
> @@ -25,11 +25,10 @@
> + type g++ >/dev/null && PLATFORM=freebsd-g++
> + type g++46 >/dev/null && PLATFORM=freebsd-g++46
> + type g++48 >/dev/null && PLATFORM=freebsd-g++48
> -+ type g++49 >/dev/null && PLATFORM=freebsd-g++49
> ;;
> OpenBSD:*)
> PLATFORM=openbsd-g++
> -@@ -6359,7 +6368,7 @@ case "$XPLATFORM" in
> +@@ -6358,7 +6367,7 @@ case "$XPLATFORM" in
> ;;
> *-g++*)
> # Check gcc's version
>
Hello, thanks for your answer.
I changed the file to the following, but the error remains.
--- src/qt/qtbase/configure.orig 2015-12-12 12:58:05 UTC
+++ src/qt/qtbase/configure
@@ -51,6 +51,7 @@ mactests="$relpath/config.tests/mac"
WHICH="$unixtests/which.test"
PERL=`$WHICH perl 2>/dev/null`
+export CXX=${CXX}
# find out which awk we want to use, prefer gawk, then nawk, then
regular awk
AWK=
@@ -2791,11 +2792,18 @@ if [ -z "$PLATFORM" ]; then
ULTRIX:*)
PLATFORM=ultrix-g++
;;
+# FreeBSD:10.[0-9]*)
+# echo "=== ($UNAME_RELEASE) ==="
+# PLATFORM=freebsd-clang
+# ;;
FreeBSD:*)
- PLATFORM=freebsd-g++
+ PLATFORM=freebsd-clang
PLATFORM_NOTES="
- Also available for FreeBSD: freebsd-icc
"
+ type g++ >/dev/null && PLATFORM=freebsd-g++
+ type g++46 >/dev/null && PLATFORM=freebsd-g++46
+ type g++48 >/dev/null && PLATFORM=freebsd-g++48
;;
OpenBSD:*)
PLATFORM=openbsd-g++
@@ -6358,7 +6367,7 @@ case "$XPLATFORM" in
;;
*-g++*)
# Check gcc's version
- case "$(${QMAKE_CONF_COMPILER} -dumpversion)" in
+ case "$(${TEST_COMPILER} -dumpversion)" in
4*|3.4*)
;;
3.3*)
Is it that I am on FreeBSD 11-STABLE?
It did build on a FreeBSD 11.0 server and that did install without a
problem. This is a 11.0 poudriere jail running on the 11-stable host.
regards
Johan Hendriks
More information about the freebsd-ports
mailing list