Hi,
according to
http://build-failures.rhaalovely.net//sparc64/2019-08-18/cad/qcad.log
cad/qcad compilation fails on sparc64 with
cc1plus: error: one or more PCH files were found, but they were invalid
cc1plus: error: use -Winvalid-pch for more information
cc1plus: fatal error: qcadecmaapi: No such file or directory
My guess (I do not have a sparc64 system for testing) is that following
diff (see below) might fix this.
PCH files are PreCompiled Headers in Qt-land
(https://doc.qt.io/qt-5/qmake-precompiledheaders.html) which work only
"on some platforms and build environments". As NetBSD and FreeBSD ports
have a similar patch I hope this is the right fix.
Anyone willing with a sparc64 to test this?
Best regards,
Ingo
Index: Makefile
===================================================================
RCS file: /cvs/ports/cad/qcad/Makefile,v
retrieving revision 1.34
diff -u -p -r1.34 Makefile
--- Makefile 14 Aug 2019 06:56:50 -0000 1.34
+++ Makefile 22 Aug 2019 10:27:47 -0000
@@ -5,6 +5,7 @@ COMMENT = Qt-based 2D CAD system
GH_ACCOUNT = qcad
GH_PROJECT = qcad
GH_TAGNAME = v3.23.0.0
+REVISION = 0
SO_VERSION = 0.0
QCAD_LIBS = qcadcore \
Index: patches/patch-src_scripting_ecmaapi_ecmaapi_pro
===================================================================
RCS file: patches/patch-src_scripting_ecmaapi_ecmaapi_pro
diff -N patches/patch-src_scripting_ecmaapi_ecmaapi_pro
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_scripting_ecmaapi_ecmaapi_pro 22 Aug 2019 10:27:47 -0000
@@ -0,0 +1,13 @@
+$OpenBSD$
+
+Index: src/scripting/ecmaapi/ecmaapi.pro
+--- src/scripting/ecmaapi/ecmaapi.pro.orig
++++ src/scripting/ecmaapi/ecmaapi.pro
+@@ -4,7 +4,6 @@ CONFIG += plugin
+ TARGET = $${RLIBNAME}ecmaapi
+ CONFIG -= warn_on
+ CONFIG += warn_off
+-CONFIG += precompile_header
+ PRECOMPILED_HEADER = stable.h
+ OTHER_FILES += ecmaapi.dox
+ DEFINES += QCADECMAAPI_LIBRARY
No comments:
Post a Comment