![]() |
![]() |
#1 |
Jul 2004
41 Posts |
![]()
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 linux64/makefile like this 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.... |
![]() |
![]() |
![]() |
#2 |
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
113538 Posts |
![]()
Are you attempting to compile mprime v29.7b1? If so, are you unable to use the precompiled images available at https://www.mersenneforum.org/showpo...1&postcount=1?
(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.) |
![]() |
![]() |
![]() |
#3 | |
Jul 2004
41 Posts |
![]() Quote:
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. |
|
![]() |
![]() |
![]() |
#4 |
P90 years forever!
Aug 2002
Yeehaw, FL
162058 Posts |
![]()
Download hwloc 2.0.3
|
![]() |
![]() |
![]() |
#5 |
Jul 2004
41 Posts |
![]() |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error compiling version 29.1 on Arch Linux | graysky | Software | 5 | 2017-03-22 18:20 |
Compiling ggnfs on linux | rmd | Software | 2 | 2015-11-08 15:38 |
compiling mprime on linux | graysky | Software | 6 | 2011-03-14 07:00 |
msieve linux compiling | Trevil | Msieve | 2 | 2009-12-06 19:49 |
compiling decomp under linux | James Heinrich | Data | 2 | 2006-08-27 15:59 |