mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2019-04-12, 17:34   #1
graysky
 
graysky's Avatar
 
Jul 2004

41 Posts
Default 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 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....
graysky is offline   Reply With Quote
Old 2019-04-12, 19:51   #2
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

12EB16 Posts
Default

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.)
kriesel is offline   Reply With Quote
Old 2019-04-12, 20:08   #3
graysky
 
graysky's Avatar
 
Jul 2004

41 Posts
Default

Quote:
Originally Posted by kriesel View Post
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?
Yes, the URL to the source is: http://www.mersenne.org/ftp_root/gim...7b1.source.zip

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.
graysky is offline   Reply With Quote
Old 2019-04-13, 01:21   #4
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

162058 Posts
Default

Download hwloc 2.0.3
Prime95 is online now   Reply With Quote
Old 2019-04-13, 10:16   #5
graysky
 
graysky's Avatar
 
Jul 2004

41 Posts
Default

Quote:
Originally Posted by Prime95 View Post
Download hwloc 2.0.3
That fixed it, thank you. For whatever reason, Arch is currently shipping hwloc v1.11.11 :/
graysky is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
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

All times are UTC. The time now is 20:48.

Tue Jan 19 20:48:29 UTC 2021 up 47 days, 16:59, 0 users, load averages: 2.20, 1.87, 1.97

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.