LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-05-2013, 07:22 AM   #1
Melbourne, FL
LQ Newbie
 
Registered: Dec 2013
Posts: 2

Rep: Reputation: Disabled
Question Problem with compiling on unusal distribution


Hello,

I'm pretty much a Linux Newbie in particular when it comes to compiling software...so I guess I'm right here. I'm trying to compile a Primecoin miner on my machine and the main problem is that I'm using a rather uncommon distribution (Clustervison OS which is dervied from Scientific Linux). I already installed a few packages with yum so that it is producing a file...however with many errors:

Code:
$ make
g++ -c -mtune=native -O3 -Wall -Wextra -std=c++0x -fomit-frame-pointer -I/usr/local/include -I/usr/include src/primecoinMiner/stats.cpp -o src/primecoinMiner/stats.o
src/primecoinMiner/stats.cpp: In function ‚void notifyStats()‚:
src/primecoinMiner/stats.cpp:39: warning: format ‚%llu‚ expects type ‚long long unsigned int‚, but argument 6 has type ‚uint64‚
src/primecoinMiner/stats.cpp:39: warning: format ‚%llu‚ expects type ‚long long unsigned int‚, but argument 7 has type ‚uint64‚
src/primecoinMiner/stats.cpp:39: warning: format ‚%llu‚ expects type ‚long long unsigned int‚, but argument 8 has type ‚uint64_t‚
src/primecoinMiner/stats.cpp: In function ‚void NEWnotifyStats()‚:
src/primecoinMiner/stats.cpp:84: warning: deprecated conversion from string constant to ‚char*‚
src/primecoinMiner/stats.cpp:85: warning: deprecated conversion from string constant to ‚char*‚
src/primecoinMiner/stats.cpp:86: warning: deprecated conversion from string constant to ‚char*‚
src/primecoinMiner/stats.cpp:87: warning: deprecated conversion from string constant to ‚char*‚
src/primecoinMiner/stats.cpp:88: warning: deprecated conversion from string constant to ‚char*‚
src/primecoinMiner/stats.cpp:89: warning: deprecated conversion from string constant to ‚char*‚
src/primecoinMiner/stats.cpp:90: warning: deprecated conversion from string constant to ‚char*‚
src/primecoinMiner/stats.cpp:91: warning: deprecated conversion from string constant to ‚char*‚
src/primecoinMiner/stats.cpp:92: warning: deprecated conversion from string constant to ‚char*‚
src/primecoinMiner/stats.cpp:93: warning: deprecated conversion from string constant to ‚char*‚
src/primecoinMiner/stats.cpp:95: warning: deprecated conversion from string constant to ‚char*‚
src/primecoinMiner/stats.cpp:98: warning: deprecated conversion from string constant to ‚char*‚
src/primecoinMiner/stats.cpp:108: warning: deprecated conversion from string constant to ‚char*‚
src/primecoinMiner/stats.cpp:117: warning: deprecated conversion from string constant to ‚char*‚
src/primecoinMiner/stats.cpp: In function ‚void NEWnotifyCentralServerofShare(unsigned int, float, char*)‚:
src/primecoinMiner/stats.cpp:222: warning: deprecated conversion from string constant to ‚char*‚
src/primecoinMiner/stats.cpp:224: warning: deprecated conversion from string constant to ‚char*‚
src/primecoinMiner/stats.cpp:233: warning: deprecated conversion from string constant to ‚char*‚
src/primecoinMiner/stats.cpp:235: warning: deprecated conversion from string constant to ‚char*‚
src/primecoinMiner/stats.cpp:238: warning: deprecated conversion from string constant to ‚char*‚
src/primecoinMiner/stats.cpp:240: warning: deprecated conversion from string constant to ‚char*‚
src/primecoinMiner/stats.cpp:242: warning: deprecated conversion from string constant to ‚char*‚
src/primecoinMiner/stats.cpp:250: warning: deprecated conversion from string constant to ‚char*‚
src/primecoinMiner/stats.cpp:252: warning: format ‚%s‚ expects type ‚char*‚, but argument 2 has type ‚fStr_t*‚
src/primecoinMiner/stats.cpp:256: warning: deprecated conversion from string constant to ‚char*‚
src/primecoinMiner/stats.cpp:264: warning: deprecated conversion from string constant to ‚char*‚
src/primecoinMiner/stats.cpp:217: warning: unused variable ‚primesPerSecond‚
g++ -c -mtune=native -O3 -Wall -Wextra -std=c++0x -fomit-frame-pointer -I/usr/local/include -I/usr/include src/primecoinMiner/ripemd160.cpp -o src/primecoinMiner/ripemd160.o
g++ -c -mtune=native -O3 -Wall -Wextra -std=c++0x -fomit-frame-pointer -I/usr/local/include -I/usr/include src/primecoinMiner/sha256.cpp -o src/primecoinMiner/sha256.o
g++ -c -mtune=native -O3 -Wall -Wextra -std=c++0x -fomit-frame-pointer -I/usr/local/include -I/usr/include src/primecoinMiner/xptClient.cpp -o src/primecoinMiner/xptClient.o
src/primecoinMiner/xptClient.cpp: In function ‚void xptClient_sendWorkerLogin(xptClient_t*)‚:
src/primecoinMiner/xptClient.cpp:108: warning: unused variable ‚usernameLength‚
src/primecoinMiner/xptClient.cpp:109: warning: unused variable ‚passwordLength‚
g++ -c -mtune=native -O3 -Wall -Wextra -std=c++0x -fomit-frame-pointer -I/usr/local/include -I/usr/include src/primecoinMiner/xptClientPacketHandler.cpp -o src/primecoinMiner/xptClientPacketHandler.o
g++ -c -mtune=native -O3 -Wall -Wextra -std=c++0x -fomit-frame-pointer -I/usr/local/include -I/usr/include src/primecoinMiner/xptPacketbuffer.cpp -o src/primecoinMiner/xptPacketbuffer.o
src/primecoinMiner/xptPacketbuffer.cpp: In function ‚void xptPacketbuffer_finalizeWritePacket(xptPacketbuffer_t*)‚:
src/primecoinMiner/xptPacketbuffer.cpp:228: warning: suggest parentheses around arithmetic in operand of |
g++ -c -mtune=native -O3 -Wall -Wextra -std=c++0x -fomit-frame-pointer -I/usr/local/include -I/usr/include src/primecoinMiner/xptServer.cpp -o src/primecoinMiner/xptServer.o
src/primecoinMiner/xptServer.cpp: In function ‚bool xptServer_receiveData(xptServer_t*, xptServerClient_t*)‚:
src/primecoinMiner/xptServer.cpp:100: warning: comparison between signed and unsigned integer expressions
src/primecoinMiner/xptServer.cpp: At global scope:
src/primecoinMiner/xptServer.cpp:137: warning: unused parameter ‚xptServer‚
src/primecoinMiner/xptServer.cpp: In function ‚void xptServer_sendNewBlockToAll(xptServer_t*, unsigned int)‚:
src/primecoinMiner/xptServer.cpp:166: warning: format ‚%u‚ expects type ‚unsigned int‚, but argument 4 has type ‚uint64‚
g++ -c -mtune=native -O3 -Wall -Wextra -std=c++0x -fomit-frame-pointer -I/usr/local/include -I/usr/include src/primecoinMiner/xptServerPacketHandler.cpp -o src/primecoinMiner/xptServerPacketHandler.o
src/primecoinMiner/xptServerPacketHandler.cpp:67: warning: unused parameter ‚xptServer‚
src/primecoinMiner/xptServerPacketHandler.cpp:67: warning: unused parameter ‚xptServerClient‚
g++ -c -mtune=native -O3 -Wall -Wextra -std=c++0x -fomit-frame-pointer -I./src/primecoinMiner/jhlib src/primecoinMiner/jhlib/customBuffer.cpp -o src/primecoinMiner/jhlib/customBuffer.o
g++ -c -mtune=native -O3 -Wall -Wextra -std=c++0x -fomit-frame-pointer -I./src/primecoinMiner/jhlib src/primecoinMiner/jhlib/fastString_eprintf.cpp -o src/primecoinMiner/jhlib/fastString_eprintf.o
src/primecoinMiner/jhlib/fastString_eprintf.cpp:11: warning: unused parameter ‚padRight‚
src/primecoinMiner/jhlib/fastString_eprintf.cpp:11: warning: unused parameter ‚padZero‚
src/primecoinMiner/jhlib/fastString_eprintf.cpp:11: warning: unused parameter ‚width‚
src/primecoinMiner/jhlib/fastString_eprintf.cpp:24: warning: unused parameter ‚padRight‚
src/primecoinMiner/jhlib/fastString_eprintf.cpp:24: warning: unused parameter ‚padZero‚
src/primecoinMiner/jhlib/fastString_eprintf.cpp:24: warning: unused parameter ‚width‚
src/primecoinMiner/jhlib/fastString_eprintf.cpp:39: warning: unused parameter ‚padRight‚
src/primecoinMiner/jhlib/fastString_eprintf.cpp:39: warning: unused parameter ‚padZero‚
src/primecoinMiner/jhlib/fastString_eprintf.cpp:39: warning: unused parameter ‚width‚
src/primecoinMiner/jhlib/fastString_eprintf.cpp:56: warning: unused parameter ‚padRight‚
src/primecoinMiner/jhlib/fastString_eprintf.cpp:128: warning: unused parameter ‚padRight‚
src/primecoinMiner/jhlib/fastString_eprintf.cpp:284: warning: unused parameter ‚padRight‚
src/primecoinMiner/jhlib/fastString_eprintf.cpp:284: warning: unused parameter ‚padZero‚
src/primecoinMiner/jhlib/fastString_eprintf.cpp:284: warning: unused parameter ‚width‚
src/primecoinMiner/jhlib/fastString_eprintf.cpp:293: warning: unused parameter ‚padRight‚
src/primecoinMiner/jhlib/fastString_eprintf.cpp:293: warning: unused parameter ‚padZero‚
src/primecoinMiner/jhlib/fastString_eprintf.cpp:293: warning: unused parameter ‚width‚
src/primecoinMiner/jhlib/fastString_eprintf.cpp:303: warning: unused parameter ‚padRight‚
src/primecoinMiner/jhlib/fastString_eprintf.cpp:375: warning: unused parameter ‚padRight‚
src/primecoinMiner/jhlib/fastString_eprintf.cpp:428: warning: unused parameter ‚padRight‚
src/primecoinMiner/jhlib/fastString_eprintf.cpp:484: warning: ‚cdecl‚ attribute ignored
src/primecoinMiner/jhlib/fastString_eprintf.cpp:484: warning: unused parameter ‚out‚
src/primecoinMiner/jhlib/fastString_eprintf.cpp:484: warning: unused parameter ‚format‚
src/primecoinMiner/jhlib/fastString_eprintf.cpp:484: warning: unused parameter ‚lengthOut‚
src/primecoinMiner/jhlib/fastString_eprintf.cpp: In function ‚void esprintf(char*, char*, ...)‚:
src/primecoinMiner/jhlib/fastString_eprintf.cpp:600: warning: ‚char‚ is promoted to ‚int‚ when passed through ‚...‚
src/primecoinMiner/jhlib/fastString_eprintf.cpp:600: note: (so you should pass ‚int‚ not ‚char‚ to ‚va_arg‚)
src/primecoinMiner/jhlib/fastString_eprintf.cpp:600: note: if this code is reached, the program will abort
src/primecoinMiner/jhlib/fastString_eprintf.cpp:608: warning: ‚bool‚ is promoted to ‚int‚ when passed through ‚...‚
src/primecoinMiner/jhlib/fastString_eprintf.cpp:608: note: if this code is reached, the program will abort
src/primecoinMiner/jhlib/fastString_eprintf.cpp:624: warning: ‚float‚ is promoted to ‚double‚ when passed through ‚...‚
src/primecoinMiner/jhlib/fastString_eprintf.cpp:624: note: if this code is reached, the program will abort
g++ -c -mtune=native -O3 -Wall -Wextra -std=c++0x -fomit-frame-pointer -I./src/primecoinMiner/jhlib src/primecoinMiner/jhlib/packetBuffer.cpp -o src/primecoinMiner/jhlib/packetBuffer.o
g++ -c -mtune=native -O3 -Wall -Wextra -std=c++0x -fomit-frame-pointer -I./src/primecoinMiner/jhlib src/primecoinMiner/jhlib/fastString.cpp -o src/primecoinMiner/jhlib/fastString.o
src/primecoinMiner/jhlib/fastString.cpp: In function ‚char** fStrTokenize(char*, char*)‚:
src/primecoinMiner/jhlib/fastString.cpp:502: warning: array subscript has type ‚char‚
g++ -c -mtune=native -O3 -Wall -Wextra -std=c++0x -fomit-frame-pointer -I./src/primecoinMiner/jhlib src/primecoinMiner/jhlib/hashTable_uint32.cpp -o src/primecoinMiner/jhlib/hashTable_uint32.o
g++ -c -mtune=native -O3 -Wall -Wextra -std=c++0x -fomit-frame-pointer -I./src/primecoinMiner/jhlib src/primecoinMiner/jhlib/simpleList.cpp -o src/primecoinMiner/jhlib/simpleList.o
g++ -c -mtune=native -O3 -Wall -Wextra -std=c++0x -fomit-frame-pointer -I./src/primecoinMiner/jhlib src/primecoinMiner/jhlib/simpleHTTP.cpp -o src/primecoinMiner/jhlib/simpleHTTP.o
g++ -mtune=native -O3 -Wall -Wextra -std=c++0x -fomit-frame-pointer -L/usr/local/lib -L/usr/lib -I/usr/local/include -I/usr/include -o jhprimeminer src/primecoinMiner/bn2.o src/primecoinMiner/bn2_div.o src/primecoinMiner/ticker.o src/primecoinMiner/jsonBuilder.o src/primecoinMiner/jsonClient.o src/primecoinMiner/jsonObject.o src/primecoinMiner/jsonParser.o src/primecoinMiner/jsonrpc.o src/primecoinMiner/prime.o src/primecoinMiner/main.o src/primecoinMiner/miner.o src/primecoinMiner/stats.o src/primecoinMiner/ripemd160.o src/primecoinMiner/sha256.o src/primecoinMiner/xptClient.o src/primecoinMiner/xptClientPacketHandler.o src/primecoinMiner/xptPacketbuffer.o src/primecoinMiner/xptServer.o src/primecoinMiner/xptServerPacketHandler.o src/primecoinMiner/jhlib/customBuffer.o src/primecoinMiner/jhlib/fastString_eprintf.o src/primecoinMiner/jhlib/packetBuffer.o src/primecoinMiner/jhlib/fastString.o src/primecoinMiner/jhlib/hashTable_uint32.o src/primecoinMiner/jhlib/simpleList.o src/primecoinMiner/jhlib/simpleHTTP.o -lgmp -lgmpxx -lcrypto -lssl -pthread -lcurl -lrt
/usr/bin/ld: skipping incompatible /usr/lib/libgmp.so when searching for -lgmp
/usr/bin/ld: skipping incompatible /usr/lib/libgmp.a when searching for -lgmp
/usr/bin/ld: skipping incompatible /usr/lib/libgmpxx.so when searching for -lgmpxx
/usr/bin/ld: skipping incompatible /usr/lib/libgmpxx.a when searching for -lgmpxx
/usr/bin/ld: skipping incompatible /usr/lib/libcrypto.so when searching for -lcrypto
/usr/bin/ld: skipping incompatible /usr/lib/libcrypto.a when searching for -lcrypto
/usr/bin/ld: skipping incompatible /usr/lib/libssl.so when searching for -lssl
/usr/bin/ld: skipping incompatible /usr/lib/libssl.a when searching for -lssl
/usr/bin/ld: skipping incompatible /usr/lib/libcurl.so when searching for -lcurl
/usr/bin/ld: skipping incompatible /usr/lib/libcurl.a when searching for -lcurl
/usr/bin/ld: skipping incompatible /usr/lib/librt.so when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib/librt.a when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
When I try to start the file this is the result:

Code:
$ ./jhprimeminer
./jhprimeminer: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by ./jhprimeminer)
I already tried to install glibc and libstdc++ but yum says that it is already installed:

Code:
Setting up Install Process
Package glibc-2.5-118.el5_10.2.x86_64 already installed and latest version
Package glibc-2.5-118.el5_10.2.i686 already installed and latest version
Package libstdc++-4.1.2-54.el5.x86_64 already installed and latest version
Package libstdc++-4.1.2-54.el5.i386 already installed and latest version
Nothing to do
I guess my versions are too old. When I try to install a newer rpm I get the following errors:

Code:
$ rpm -U libstdc++-4.3.2-7.x86_64.rpm
warning: libstdc++-4.3.2-7.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 4ebfc273
error: Failed dependencies:
        libstdc++ < 4.2.0 is needed by (installed) compat-gcc-34-c++-3.4.6-4.1.x86_64
        libstdc++ = 4.1.2 is needed by (installed) libstdc++44-devel-4.4.7-1.el5.x86_64
        libstdc++ = 4.1.2-54.el5 is needed by (installed) libstdc++-devel-4.1.2-54.el5.x86_64
        libstdc++ = 4.1.2-54.el5 is needed by (installed) libstdc++-devel-4.1.2-54.el5.i386
        libstdc++ = 4.1.2-54.el5 is needed by (installed) gcc-c++-4.1.2-54.el5.x86_64
The problem is that I don't want to break gcc or any other software which is installed. Is there any way to install serveral versions of libstdc++ at the same time? Any idea is very welcome.

Thanks a lot,

Alexander
 
Old 12-05-2013, 07:27 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,104

Rep: Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267
the first thing I found is -I/usr/include must not be entered. Also -L/usr/lib. Probably -I/usr/local/include and -L/usr/local/lib is not a problem, but probably those dirs are empty.
So try to remove them and recompile everything.
 
2 members found this post helpful.
Old 12-05-2013, 08:32 AM   #3
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,037

Rep: Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099
(edit) glad you got it working!

Last edited by snowpine; 12-05-2013 at 08:46 AM.
 
1 members found this post helpful.
Old 12-05-2013, 08:44 AM   #4
Melbourne, FL
LQ Newbie
 
Registered: Dec 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
the first thing I found is -I/usr/include must not be entered. Also -L/usr/lib. Probably -I/usr/local/include and -L/usr/local/lib is not a problem, but probably those dirs are empty.
So try to remove them and recompile everything.
That did it! Thank you so much...never would have gotten that idea. Strange thing is that other people report that it compiles fine without those changes on Ubuntu.

Best regards,

Alexander

Edit: Also thanks to snowpine for his reply! The thing is that the cluster was designed for a specific purpose and all applications I usually use on the cluster run fine...and I don't want to change a running system. Also it is a rather complex one (compute nodes with Infiniband network) and I would have to ask very many questions on this forum to get it working again.

Last edited by Melbourne, FL; 12-05-2013 at 08:47 AM.
 
Old 12-06-2013, 02:36 AM   #5
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,104

Rep: Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267
Glad to help you. In some cases /usr/include and /usr/lib are the directories of the system itself. The compiler knows where to find those files therefore you need not specify them. In some other cases the system includes/libs located somewhere else - inserting those parameters will lead to an error.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling a distribution unspecific kernel on two different distributions TheIndependentAquarius Linux - Kernel 4 01-27-2012 09:02 AM
LXer: 5 unusal games for Linux LXer Syndicated Linux News 4 11-21-2010 11:59 PM
Problem in my Distribution el@ Linux - Desktop 1 02-02-2007 11:20 AM
unusal Modem -Motorola!! chilibowl Linux - Hardware 4 11-24-2002 12:47 AM


All times are GMT -5. The time now is 04:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration