ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Before compiling from source, I'd try rebuilding Fedora Rawhide source RPM package.
This would require some adjustments to the spec file. E.g. readline-devel in CentOS 7 doesn't provide a pkg-config .pc file, so you'll have to BR readline-devel rather than pkgconfig(readline). For some builds, I had to redefine %__cmake_configure as well.
In file included from /usr/local/src/swipl-8.4.1/src/pl-incl.h:576,
from /usr/local/src/swipl-8.4.1/src/pl-atom.h:36,
from /usr/local/src/swipl-8.4.1/src/pl-atom.c:38:
/usr/local/src/swipl-8.4.1/src/pl-vmi.h:86:1: error: macro "_M_TEMPLATE1" requires 4 arguments, but only 2 given
86 | ),
| ^ ~~
vmi-metadata.h:
Code:
7 Note: this file is generated by ./mkvmi from pl-vmi.c. DO NOT EDIT....
15 #define FOREACH_VMI_CALL(sep,f,...) f(D_BREAK, ## __VA_ARGS__) sep() <another 7915 bytes>
Calling only cpp doesn't help much either:
vmi-metadata.h:
Code:
7 Note: this file is generated by ./mkvmi from pl-vmi.c. DO NOT EDIT....
15 #define FOREACH_VMI_CALL(sep,f,...) f(D_BREAK, ## __VA_ARGS__) sep() <another 7915 bytes>
## __VA_ARGS__ is a GNU specific extension and you passed -std=c17. Maybe -std=gnu17 or similar would work?
Thank you guys for your help. Still, I'm about going down to version 7.6.4 -- it compiles out of the box, also it doesn't use cmake. [Don't get me wrong, I know cmake is a great software. Or perhaps `large` is the right term.]
Edit: -std=gnu17 did help though, the compilation stopped elsewhere.
I'll admit, I didn't try it
I prefer to compile programs for source without distribution modifications... Also I need SWI-prolog only for one purpose, which is running this: https://github.com/fnogatz/xsd2json -- and version 7.6.4 is perfectly able to run it.
I prefer to compile programs for source without distribution modifications...
Interesting. My preferences are the opposite. I create a DEB / an RPM whenever I can, so that all installed software could be managed with distribution package management tools.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.