Seti@Home optimized science apps and information

Optimized Seti@Home apps => Linux => Topic started by: Shelnutt2 on 17 Sep 2009, 12:06:27 pm

Title: Gentoo Issues
Post by: Shelnutt2 on 17 Sep 2009, 12:06:27 pm
I'm running gentoo, and I setup boinc via portage. I am trying to install the optimized client (http://lunatics.kwsn.net/index.php?module=Downloads;sa=dlview;id=215 ). I have a conroe E6300. However I can't seem to find where to place the files. It says,
Quote
Copy all files in the "Files to install" directory to
   your "BOINC\projects\setiathome.berkeley.edu" directory. There is a file
   called "app_info.xml" included that will make BOINC use this application
   automatically.

However I can't find that directory. Google says it should be in /opt/boinc but it's not there. I'm searched for app_info.xml but couldn't find where it was installed in the system.

Code: [Select]
gentoo-64 opt # updatedb
gentoo-64 opt # locate app_info.xml
/mnt/windows/Documents and Settings/shelnutt/Desktop/KWSN-2.4-Windows32-SSE3-C2/Files to install/app_info.xml
/mnt/windows/Program Files/BOINC/projects/setiathome.berkeley.edu/app_info.xml
/home/shelnutt/.kde4/share/apps/RecentDocuments/app_info.xml.desktop
/home/shelnutt/seti/ap506_linux_x64_sse3/Files_to_install/app_info.xml
gentoo-64 opt # ls /opt
netscape  skype  sun-jdk-1.5.0.18  sun-jdk-1.6.0.13  sun-jre-bin-1.6.0.13

(note: the /home/shelnutt/seti folder is what I created it just has the downloaded optimized client and the svn trunk I downloaded)

Also I tried to initially compile my own app from the svn, but I've run into some trouble.

I'm running gentoo, and I've got gcc 4.3.2-r2 installed. I installed boinc via portage. It works fine, and I setup SETI, it downloaded the standard client and worked fine. I'm just trying to build my own fully optimized client.

I got the svn source,

Code: [Select]
shelnutt@gentoo-64:~/seti/$ svn checkout https://setisvn.ssl.berkeley.edu/svn/seti_boinc


Set it up
Code: [Select]
shelnutt@gentoo-64:~/seti/seti_boinc$ ./_autosetup

Configured it
Code: [Select]
shelnutt@gentoo-64:~/seti/seti_boinc$ BOINCDIR="/var/lib/boinc" ./configure --enable-sse3 --enable-fast-math  --enable-bitness=64 CFLAGS="-march=core2 -O2 -pipe" CXXFLAGS="-march=core2 -O2 -pipe"

And this is the output I got.
Code: [Select]
In file included from <command-line>:0:                                                     
./../sah_config.h:612:23: error: std_fixes.h: No such file or directory                     
In file included from vector/analyzeFuncs_fpu.cpp:16:                                       
../sah_config.h:612:23: error: std_fixes.h: No such file or directory                       
main.cpp:57:25: error: diagnostics.h: No such file or directory                             
main.cpp:58:18: error: util.h: No such file or directory                                   
In file included from vector/analyzeFuncs_vector.cpp:39:                                   
../sah_config.h:612:23: error: std_fixes.h: No such file or directory                       
In file included from ./analyzeFuncs.h:31,                                                 
                 from vector/analyzeFuncs_fpu.cpp:19:                                       
./seti.h:36:23: error: boinc_api.h: No such file or directory                               
vector/analyzeFuncs_vector.cpp:64:18: error: util.h: No such file or directory             
main.cpp:60:23: error: boinc_api.h: No such file or directory                               
vector/analyzeFuncs_vector.cpp:66:23: error: boinc_api.h: No such file or directory         
In file included from sah_gfx_main.h:29,                                                   
                 from main.cpp:62:                                                         
gdata.h:39:20: error: reduce.h: No such file or directory                                   
main.cpp:63:23: error: graphics2.h: No such file or directory                               
main.cpp:72:22: error: str_util.h: No such file or directory                               
main.cpp:73:25: error: str_replace.h: No such file or directory                             
In file included from ../db/sqlrow.h:28,                                                   
                 from ../db/db_table.h:27,                                                 
                 from ./seti_header.h:43,                                                   
                 from ./seti.h:44,                                                         
                 from ./analyzeFuncs.h:31,                                                 
                 from vector/analyzeFuncs_fpu.cpp:19:                                       
../db/xml_util.h:82:27: error: error_numbers.h: No such file or directory                   
In file included from ./sah_gfx_main.h:29,                                                 
                 from vector/analyzeFuncs_vector.cpp:68:                                   
./gdata.h:39:20: error: reduce.h: No such file or directory                                 
vector/analyzeFuncs_vector.cpp:70:25: error: diagnostics.h: No such file or directory       
In file included from ../db/sqlrow.h:28,                                                   
                 from ../db/db_table.h:27,                                                 
                 from seti_header.h:43,                                                     
                 from seti.h:44,                                                           
                 from analyzeFuncs.h:31,                                                   
                 from main.cpp:75:                                                         
../db/xml_util.h:82:27: error: error_numbers.h: No such file or directory                   
In file included from ./analyzeFuncs.h:31,                                                 
                 from vector/analyzeFuncs_fpu.cpp:19:                                       
./seti.h:183:20: error: reduce.h: No such file or directory                                 
./seti.h:184:23: error: graphics2.h: No such file or directory                             
In file included from ../db/sqlrow.h:28,                                                   
                 from ../db/db_table.h:27,                                                 
                 from ./seti_header.h:43,                                                   
                 from ./seti.h:44,                                                         
                 from ./analyzeFuncs.h:31,                                                 
                 from vector/analyzeFuncs_vector.cpp:73:                                   
../db/xml_util.h:82:27: error: error_numbers.h: No such file or directory                   
In file included from ./analyzeFuncs.h:31,                                                 
                 from vector/analyzeFuncs_vector.cpp:73:                                   
./seti.h:184:23: error: graphics2.h: No such file or directory                             
In file included from ./analyzeFuncs.h:31,                                                 
                 from vector/analyzeFuncs_fpu.cpp:19:                                       
./seti.h:40: error: 'APP_INIT_DATA' does not name a type                                   
In file included from sah_gfx_main.h:29,                                                   
                 from main.cpp:62:                                                         
gdata.h:148: error: 'REDUCED_ARRAY_DATA' does not name a type                               
In file included from main.cpp:62:                                                         
sah_gfx_main.h:33: error: 'REDUCED_ARRAY_GEN' does not name a type                         
In file included from ./sah_gfx_main.h:29,                                                 
                 from vector/analyzeFuncs_vector.cpp:68:                                   
./gdata.h:148: error: 'REDUCED_ARRAY_DATA' does not name a type                             
In file included from vector/analyzeFuncs_vector.cpp:68:                                   
./sah_gfx_main.h:33: error: 'REDUCED_ARRAY_GEN' does not name a type                       
sah_gfx_main.h:43: warning: 'sah_graphics_init' initialized and declared 'extern'           
sah_gfx_main.h:43: error: variable or field 'sah_graphics_init' declared void               
sah_gfx_main.h:43: error: 'APP_INIT_DATA' was not declared in this scope                   
sah_gfx_main.h:43: error: expected primary-expression before ')' token                     
In file included from analyzeFuncs.h:31,                                                   
                 from main.cpp:75:                                                         
seti.h:40: error: 'APP_INIT_DATA' does not name a type                                     
./sah_gfx_main.h:43: warning: 'sah_graphics_init' initialized and declared 'extern'         
./sah_gfx_main.h:43: error: variable or field 'sah_graphics_init' declared void             
./sah_gfx_main.h:43: error: 'APP_INIT_DATA' was not declared in this scope                 
./sah_gfx_main.h:43: error: expected primary-expression before ')' token                   
In file included from ./analyzeFuncs.h:31,                                                 
                 from vector/analyzeFuncs_vector.cpp:73:                                   
./seti.h:40: error: 'APP_INIT_DATA' does not name a type                                   
In file included from ../db/sqlrow.h:28,                                                   
                 from ../db/db_table.h:27,                                                 
                 from ./seti_header.h:43,                                                   
                 from ./seti.h:44,                                                         
                 from ./analyzeFuncs.h:31,                                                 
                 from vector/analyzeFuncs_vector.cpp:73:                                   
../db/xml_util.h: In function 'std::vector<T, std::allocator<_CharT> > xml_decode_field(const std::string&, const char*)':                                                             
../db/xml_util.h:888: error: 'ERR_XML_PARSE' was not declared in this scope                 
In file included from ../db/sqlrow.h:28,                                                   
                 from ../db/db_table.h:27,                                                 
                 from seti_header.h:43,                                                     
                 from seti.h:44,                                                           
                 from analyzeFuncs.h:31,                                                   
                 from main.cpp:75:                                                         
../db/xml_util.h: In function 'std::string base64_encode(const T*, size_t)':               
../db/xml_util.h:278: warning: array subscript has type 'char'                             
../db/xml_util.h: In function 'std::string base85_encode(const T*, size_t)':               
../db/xml_util.h:373: warning: array subscript has type 'char'                             
../db/xml_util.h: In function 'std::vector<T, std::allocator<_CharT> > xml_decode_field(const std::string&, const char*)':                                                             
../db/xml_util.h:888: error: 'ERR_XML_PARSE' was not declared in this scope                 
In file included from ../db/sqlrow.h:28,                                                   
                 from ../db/db_table.h:27,                                                 
                 from ./seti_header.h:43,                                                   
                 from ./seti.h:44,                                                         
                 from ./analyzeFuncs.h:31,                                                 
                 from vector/analyzeFuncs_fpu.cpp:19:                                       
../db/xml_util.h: In function 'std::vector<T, std::allocator<_Tp1> > xml_decode_field(const std::string&, const char*)':                                                               
../db/xml_util.h:888: error: 'ERR_XML_PARSE' was not declared in this scope                 
vector/analyzeFuncs_vector.cpp: At global scope:                                           
vector/analyzeFuncs_vector.cpp:779: warning: deprecated conversion from string constant to 'char*'                                                                                     
In file included from ./sah_gfx_main.h:29,                                                 
                 from vector/analyzeFuncs_fpu.cpp:22:                                       
./gdata.h: At global scope:                                                                 
./gdata.h:148: error: 'REDUCED_ARRAY_DATA' does not name a type                             
In file included from vector/analyzeFuncs_fpu.cpp:22:                                       
./sah_gfx_main.h:33: error: 'REDUCED_ARRAY_GEN' does not name a type                       
./sah_gfx_main.h:43: warning: 'sah_graphics_init' initialized and declared 'extern'
./sah_gfx_main.h:43: error: variable or field 'sah_graphics_init' declared void
./sah_gfx_main.h:43: error: 'APP_INIT_DATA' was not declared in this scope
./sah_gfx_main.h:43: error: expected primary-expression before ')' token
main.cpp: At global scope:
main.cpp:161: error: 'APP_INIT_DATA' does not name a type
main.cpp: In function 'int main(int, char**)':
main.cpp:215: error: 'BOINC_DIAG_DUMPCALLSTACKENABLED' was not declared in this scope
main.cpp:216: error: 'BOINC_DIAG_HEAPCHECKENABLED' was not declared in this scope
main.cpp:217: error: 'BOINC_DIAG_TRACETOSTDERR' was not declared in this scope
main.cpp:218: error: 'BOINC_DIAG_REDIRECTSTDERR' was not declared in this scope
main.cpp:220: error: 'boinc_init_diagnostics' was not declared in this scope
main.cpp:239: error: 'boinc_parse_init_data_file' was not declared in this scope
main.cpp:240: error: 'app_init_data' was not declared in this scope
main.cpp:240: error: 'boinc_get_init_data' was not declared in this scope
main.cpp:242: error: 'sah_graphics_init' was not declared in this scope
main.cpp:244: error: 'boinc_init' was not declared in this scope
make[2]: *** [seti_boinc-analyzeFuncs_fpu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [seti_boinc-main.o] Error 1
make[2]: *** [seti_boinc-analyzeFuncs_vector.o] Error 1
make[2]: Leaving directory `/home/shelnutt/seti/seti_boinc/client'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/shelnutt/seti/seti_boinc'
make: *** [all] Error 2
shelnutt@gentoo-64:~/seti/seti_boinc$


I know it's not finding the headers, but the headers are there. They are in the directories, but the ./configure didn't link the make files to them. I could manually go in and link each one of them, but if this is wrong, maybe I didn't configure it all right? Also I had to add the CFlags and CXX Flags to the ./configure because it ignored the preset environmental ones unless I gave it to it directly.

Running Gentoo I've compiled my fair share of programs, so this isn't new to me, but the configuration of this one seems sloppy. Thats why I opted to try the prebuilt optimized client, but soon ran into trouble too.
Title: Re: Gentoo Issues
Post by: pp on 17 Sep 2009, 02:46:22 pm
The Gentoo ebuild puts the files in /var/lib/boinc by default, creates a user/group called boinc and changes the ownership of the files to it. The Portage version of Boinc is still 6.4.5 and unfortunately it doesn't work well (or not at all) if you want to run GPU and CPU simultaneously. The source code you downloaded for sah is the stock source code, not the optimized. I don't know where to get the optimized code but I run the precompiled optimized applications and a selfcompiled Boinc from trunk, it works extremely well. If you're interested in that solution I could always take some time to write down an instruction. It does involve a few steps... :-)
Title: Re: Gentoo Issues
Post by: sunu on 17 Sep 2009, 08:15:36 pm
Shelnutt2, forget portage (for boinc) and download it from http://boinc.berkeley.edu/download_all.php or http://boinc.berkeley.edu/dl/ . You don't need to compile it from source unless you have problems that might have been fixed in trunk.

I think it's better to install boinc in your home directory, not system directories. When you're installing fresh, inside BOINC directory create a new directory named "projects" and inside that create another one named "setiathome.berkeley.edu". There you'll put the "Files to install" from the optimized package you've downloaded.