HOWTO: Compile boinc on linux

Message boards : Number crunching : HOWTO: Compile boinc on linux
Message board moderation

To post messages, you must log in.

Previous · 1 · 2 · 3

AuthorMessage
Metod, S56RKO
Volunteer tester

Send message
Joined: 27 Sep 02
Posts: 309
Credit: 113,221,277
RAC: 9
Slovenia
Message 76422 - Posted: 4 Feb 2005, 12:45:14 UTC - in response to Message 76341.  
Last modified: 4 Feb 2005, 12:46:48 UTC

Howdy!

> Do any of y'all know what the trick is to get boinc to compile statically
> linked instead of dynamically?

Actually it's quite simple the way I did it. I followed the basic path (./configure --disable-server; make) and when it all finished, I redid the last step done by 'make' process. However, I included an extra command line option: -static, so the command line I executed looked something like this:<br /><br />
gcc -static -g -Wall -O3 -fast -o boinc_client boinc_client-app.o etc.<br /><br />
This makes a completely staticaly linked client. Now I only have to find a way of doing the same using ICC version 8.0. Only including the '-static' doesn't do the trick.


Metod ...
ID: 76422 · Report as offensive
Ned Slider

Send message
Joined: 12 Oct 01
Posts: 668
Credit: 4,375,315
RAC: 0
United Kingdom
Message 76786 - Posted: 5 Feb 2005, 11:50:30 UTC - in response to Message 76341.  

> Do any of y'all know what the trick is to get boinc to compile statically
> linked instead of dynamically? I've been searching for an hour for this on
> various forums and how-tos. I know where to download precompiled statically
> linked boinc clients but nowhere can I find how to compile them statically.
>
> See, I can download and run the statically linked binaries that Ned Slider
> compiled with gcc 3.4 on various machines that only have gcc 3.3 installed and
> they work fine. But I have some machines that he doesn't have optimized
> binaries compiled for and was gonna compile 'em my self - old pentium and
> pentium-mmx boxes, basically.
>
> I compiled a client with shared libraries on a Linux box with gcc 3.4 that
> works but it only works on machines that I upgrade to gcc-3.4 and I don't want
> to upgrade gcc on the other machines that I want to run an optimized pentium
> or pentium-mmx boinc client on.
>
> I also read somewhere that there may be some DNS resolver issues linking glibc
> statically? What's that about?
>
> Thanks -
>
> Chuck Bell
>
>

Chuck,

Simply add the -static switch to your list of CFLAGS line. So, in my example, the following

export CFLAGS="-march=athlon-xp -O3 -fomit-frame-pointer -funroll-loops -fforce-addr -ffast-math -ftracer"

would become

export CFLAGS="-march=athlon-xp -O3 -static -fomit-frame-pointer -funroll-loops -fforce-addr -ffast-math -ftracer"

Regards,

Ned


*** My Guide to Compiling Optimised BOINC and SETI Clients ***
*** Download Optimised BOINC and SETI Clients for Linux Here ***
ID: 76786 · Report as offensive
Previous · 1 · 2 · 3

Message boards : Number crunching : HOWTO: Compile boinc on linux


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.