OSX/CI system: libalkimia framework misses dependency to gmp

Marko Käning mk-lists at email.de
Mon Jul 14 18:49:21 UTC 2014


Hi Ben,

while trying to build libalkimia on the OSX/CI system I noticed that the framework misses GMP, without pointing it out to the user as a required package!

Though, one notices it later on during the build:

---
...
[ 28%] Built target alkimia_automoc
Scanning dependencies of target alkimia
[ 35%] [ 42%] [ 57%] [ 57%] Building CXX object libalkimia/CMakeFiles/alkimia.dir/alkimia_automoc.cpp.o
Building CXX object libalkimia/CMakeFiles/alkimia.dir/alkquoteitem.cpp.o
In file included from /Users/marko/WC/KDECI-builds/alkimia/libalkimia/alkvalue.cpp:20:
/Users/marko/WC/KDECI-builds/alkimia/libalkimia/alkvalue.h:23:10: fatal error: 'gmpxx.h' file not found
#include <gmpxx.h>                 // krazy:exclude=camelcase
         ^
In file included from /Users/marko/WC/KDECI-builds/alkimia/libalkimia/alkquoteitem.cpp:20:
In file included from /Users/marko/WC/KDECI-builds/alkimia/libalkimia/alkquoteitem.h:24:
/Users/marko/WC/KDECI-builds/alkimia/libalkimia/alkvalue.h:23:10: fatal error: 'gmpxx.h' file not found
#include <gmpxx.h>                 // krazy:exclude=camelcase
         ^
1 error generated.
make[2]: *** [libalkimia/CMakeFiles/alkimia.dir/alkvalue.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /Users/marko/WC/KDECI-builds/alkimia/build/libalkimia/alkimia_automoc.cpp:3:
In file included from /Users/marko/WC/KDECI-builds/alkimia/build/libalkimia/moc_alkquoteitem.cpp:9:
In file included from /Users/marko/WC/KDECI-builds/alkimia/build/libalkimia/../../libalkimia/alkquoteitem.h:24:
/Users/marko/WC/KDECI-builds/alkimia/libalkimia/alkvalue.h:23:10: fatal error: 'gmpxx.h' file not found
#include <gmpxx.h>                 // krazy:exclude=camelcase
         ^
1 error generated.
make[2]: *** [libalkimia/CMakeFiles/alkimia.dir/alkimia_automoc.cpp.o] Error 1
1 error generated.
make[2]: *** [libalkimia/CMakeFiles/alkimia.dir/alkquoteitem.cpp.o] Error 1
make[1]: *** [libalkimia/CMakeFiles/alkimia.dir/all] Error 2
make: *** [all] Error 2

KDE Continuous Integration Build
== Building Project: alkimia - Branch frameworks
---



So I installed port gmp on the CI system and added this to the CI system configuration:

---
$ cat /Users/marko/scripts/config/build/alkimia/darwin-mavericks.cfg 
[DEFAULT]
configureExtraArgs=-I/opt/local/include -L/opt/local/lib
---

but this only configures it correctly:

---
-- Found KF5: success (found version "5.0.0") found components:  CoreAddons KDELibs4Support
-- Found GMP: /opt/local/include
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
---

and although it gets found now, the build still throws the same compile errors (as already shown above)!

Why is that?


Greets,
Marko


More information about the Kde-frameworks-devel mailing list