Welcome to MilkyWay@home

Compile Error

Message boards : Application Code Discussion : Compile Error
Message board moderation

To post messages, you must log in.

AuthorMessage
Lucas

Send message
Joined: 11 Mar 09
Posts: 6
Credit: 352,439
RAC: 0
Message 28862 - Posted: 4 Aug 2009, 8:22:04 UTC

Hi, so I'm having an issue trying to compile MW and was wondering if anyone had some advice. I'm a pretty big noob, but I'm trying to compile MW on a ppc64 system (probably irrelevant) for kicks. I've built boinc form source and linked to the proper api and lib directories in the MW make file. When I run "make app_ppc64" (using the modified ppc64 makefile created by another user), I get:


g++ -L/usr/local/include/boinc_core_release_6_3_14/lib -L/usr/local/include/boinc_core_release_6_3_14/api -m64 -O2 -ftree-vectorize -funroll-loops -DGMLE_BOINC -DBOINC_APP_VERSION=0.18 -DBOINC_APP_NAME='"milky_ps3_nonspe"' -g -I/usr/local/include/boinc_core_release_6_3_14c -Wl -static -static-libgcc -o milkyway_0.18_powerpc64-unknown-linux-gnu ../astronomy/boinc_astronomy.o ../astronomy/atSurveyGeometry.o ../astronomy/numericalIntegration.o ../astronomy/parameters.o ../astronomy/probability.o ../astronomy/stCoords.o ../astronomy/stCnum.o ../astronomy/stMath.o ../astronomy/stVector.o ../astronomy/star_points.o ../astronomy/evaluation_optimized.o ../astronomy/evaluation_state.o ../searches/search_parameters.o ../util/io_util.o ../util/settings.o -lm -lboinc_api -lboinc -pthread
/usr/bin/ld: skipping incompatible /usr/local/include/boinc_core_release_6_3_14/api/libboinc_api.a when searching for -lboinc_api
/usr/bin/ld: cannot find -lboinc_api
collect2: ld returned 1 exit status
make: *** [app_ppc64] Error 1


Is this an issue stemming from an error in building boinc? Incompatible version of boinc (I got the 6.3.14 release via svn)? Any other insights? Thanks much in advance!
ID: 28862 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
jedirock
Avatar

Send message
Joined: 8 Nov 08
Posts: 178
Credit: 6,140,854
RAC: 0
Message 28904 - Posted: 5 Aug 2009, 3:21:47 UTC - in response to Message 28862.  

Is this an issue stemming from an error in building boinc? Incompatible version of boinc (I got the 6.3.14 release via svn)? Any other insights? Thanks much in advance!

Yeah, looks like you'll have to recompile the BOINC libraries from source. Did the libboinc_api.a file come with the svn checkout, or did you get that from a configure run yourself?
ID: 28904 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Lucas

Send message
Joined: 11 Mar 09
Posts: 6
Credit: 352,439
RAC: 0
Message 28941 - Posted: 5 Aug 2009, 18:09:02 UTC - in response to Message 28904.  

Is this an issue stemming from an error in building boinc? Incompatible version of boinc (I got the 6.3.14 release via svn)? Any other insights? Thanks much in advance!

Yeah, looks like you'll have to recompile the BOINC libraries from source. Did the libboinc_api.a file come with the svn checkout, or did you get that from a configure run yourself?


I'm pretty sure libboinc_api.a was built by me. There was no lib or api directories prior to running the configure script and running make.

I've tried a few different versions in the 5.xx and 6.xx realms with no success. The method I'm using is from source...

./_autosetup
./configure --with-boinc-platform=powerpc64-ps3-linux-gnu
make
sudo make install

Is this wrong in any way?
ID: 28941 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
jedirock
Avatar

Send message
Joined: 8 Nov 08
Posts: 178
Credit: 6,140,854
RAC: 0
Message 28963 - Posted: 6 Aug 2009, 3:39:19 UTC - in response to Message 28941.  

Is this an issue stemming from an error in building boinc? Incompatible version of boinc (I got the 6.3.14 release via svn)? Any other insights? Thanks much in advance!

Yeah, looks like you'll have to recompile the BOINC libraries from source. Did the libboinc_api.a file come with the svn checkout, or did you get that from a configure run yourself?


I'm pretty sure libboinc_api.a was built by me. There was no lib or api directories prior to running the configure script and running make.

I've tried a few different versions in the 5.xx and 6.xx realms with no success. The method I'm using is from source...

./_autosetup
./configure --with-boinc-platform=powerpc64-ps3-linux-gnu
make
sudo make install

Is this wrong in any way?

I've never used --with-boinc-platform for my configure. For BOINC, I use
./configure --disable-server --disable-client --disable-manager
along with some custom compiler flags, as I usually build on an OS X system.
ID: 28963 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Lucas

Send message
Joined: 11 Mar 09
Posts: 6
Credit: 352,439
RAC: 0
Message 29020 - Posted: 8 Aug 2009, 4:46:21 UTC - in response to Message 28963.  

Sadly the issue persists. I'm going for bare bones here, no optimizations, but, I shouldn't need any compiler flags right?
ID: 29020 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
jedirock
Avatar

Send message
Joined: 8 Nov 08
Posts: 178
Credit: 6,140,854
RAC: 0
Message 29068 - Posted: 9 Aug 2009, 1:11:45 UTC - in response to Message 29020.  

Sadly the issue persists. I'm going for bare bones here, no optimizations, but, I shouldn't need any compiler flags right?

No, probably not. The compiler flags I was using were OS X specific.
CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -mmacosx-version-min=10.4" \
CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -mmacosx-version-min=10.4" \
OBJCFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -mmacosx-version-min=10.4" \
LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4"

ID: 29068 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote

Message boards : Application Code Discussion : Compile Error

©2024 Astroinformatics Group