![]() |
Error compiling 29.7b1 on Arch Linux
I am getting errors relating to HWLOC_OBJ_L4CACHE when building on Arch Linux as shown below. Any thoughts as to what I can do to circumvent?
I modified [b]linux64/makefile[/b] like [URL="https://gist.github.com/graysky2/a2351c5e71051f4dd8d6cf4c582cca0a"]this[/URL] in order to get the build to work... perhaps I am not quite there yet with it? [code] gcc -I.. -I../sqlite-amalgamation-3180000 -DX86_64 -Wno-unused-result -O2 -c cpuid.c gcc -I.. -I../sqlite-amalgamation-3180000 -DX86_64 -Wno-unused-result -O2 -c gwnum.c gcc -I.. -I../sqlite-amalgamation-3180000 -DX86_64 -Wno-unused-result -O2 -c gwtables.c gcc -I.. -I../sqlite-amalgamation-3180000 -DX86_64 -Wno-unused-result -O2 -c gwthread.c gcc -I.. -I../sqlite-amalgamation-3180000 -DX86_64 -Wno-unused-result -O2 -c gwini.c gcc -I.. -I../sqlite-amalgamation-3180000 -DX86_64 -Wno-unused-result -O2 -c gwbench.c gcc -I.. -I../sqlite-amalgamation-3180000 -DX86_64 -Wno-unused-result -O2 -c gwutil.c g++ -I.. -I../qd -DX86_64 -O2 -c gwdbldbl.cpp gcc -I.. -I../sqlite-amalgamation-3180000 -DX86_64 -Wno-unused-result -O2 -c giants.c gcc -I.. -I../sqlite-amalgamation-3180000 -DX86_64 -Wno-unused-result -O2 -c ecmstag1.c cp linux64/gwnum.a . ar -rs gwnum.a cpuid.o gwnum.o gwtables.o gwthread.o gwini.o gwbench.o gwutil.o gwdbldbl.o giants.o ecmstag1.o [ ! -e ../security.h ] && touch ../security.h || true gcc -I.. -I../gwnum -DX86_64 -march=x86-64 -O2 -Wno-unused-result -c prime.c gcc -I.. -I../gwnum -DX86_64 -march=x86-64 -O2 -Wno-unused-result -c menu.c [ ! -e ../security.c ] && touch ../security.c || true [ ! -e ../secure5.c ] && touch ../secure5.c || true In file included from prime.c:102: ../commonc.c: In function ‘getCpuInfo’: ../commonc.c:396:21: error: ‘HWLOC_OBJ_L1CACHE’ undeclared (first use in this function); did you mean ‘HWLOC_OBJ_CACHE’? if (obj->type == HWLOC_OBJ_L1CACHE) { ^~~~~~~~~~~~~~~~~ HWLOC_OBJ_CACHE ../commonc.c:396:21: note: each undeclared identifier is reported only once for each function it appears in ../commonc.c:402:26: error: ‘HWLOC_OBJ_L2CACHE’ undeclared (first use in this function); did you mean ‘HWLOC_OBJ_CACHE’? else if (obj->type == HWLOC_OBJ_L2CACHE) { ^~~~~~~~~~~~~~~~~ HWLOC_OBJ_CACHE ../commonc.c:410:26: error: ‘HWLOC_OBJ_L3CACHE’ undeclared (first use in this function); did you mean ‘HWLOC_OBJ_CACHE’? else if (obj->type == HWLOC_OBJ_L3CACHE) { ^~~~~~~~~~~~~~~~~ HWLOC_OBJ_CACHE ../commonc.c:418:26: error: ‘HWLOC_OBJ_L4CACHE’ undeclared (first use in this function); did you mean ‘HWLOC_OBJ_CACHE’? else if (obj->type == HWLOC_OBJ_L4CACHE) { ^~~~~~~~~~~~~~~~~ HWLOC_OBJ_CACHE make: *** [makefile:53: prime.o] Error 1 make: *** Waiting for unfinished jobs.... [/code] |
Are you attempting to compile [B]mprime[/B] v29.7b1? If so, are you unable to use the precompiled images available at [URL]https://www.mersenneforum.org/showpost.php?p=508841&postcount=1?[/URL]
(Why people routinely omit the name of the software they're asking about or other significant information is a continual puzzle. Or launch a new thread instead of posting in an existing thread about the software of interest, which would reduce the ambiguity.) |
[QUOTE=kriesel;513547]Are you attempting to compile [B]mprime[/B] v29.7b1? If so, are you unable to use the precompiled images available at [URL]https://www.mersenneforum.org/showpost.php?p=508841&postcount=1?[/URL][/QUOTE]
Yes, the URL to the source is: [url]http://www.mersenne.org/ftp_root/gimps/p95v297b1.source.zip[/url] The precompiled version works, but I maintain both the binary and from-source PKGBUILDs for Arch Linux. I'd like to offer users the option to run one they compile from source. |
Download hwloc 2.0.3
|
[QUOTE=Prime95;513574]Download hwloc 2.0.3[/QUOTE]
That fixed it, thank you. For whatever reason, Arch is currently shipping hwloc v1.11.11 :/ |
| All times are UTC. The time now is 01:27. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.