+- +-
Say hello if visiting :) by Mike
23 Apr 2021, 08:55:37 am

Seti is down again by Mike
09 Aug 2017, 10:02:44 am

Some considerations regarding OpenCL MultiBeam app tuning from algorithm view by Raistmer
11 Dec 2016, 06:30:56 am

Loading APU to the limit: performance considerations by Mike
05 Nov 2016, 06:49:26 am

Better sleep on Windows - new round by Raistmer
26 Aug 2016, 02:02:31 pm

Author Topic: Gentoo Issues  (Read 4752 times)

Shelnutt2

  • Guest
Gentoo Issues
« 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.
« Last Edit: 17 Sep 2009, 12:12:16 pm by Shelnutt2 »

pp

  • Guest
Re: Gentoo Issues
« Reply #1 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... :-)

Offline sunu

  • Alpha Tester
  • Knight who says 'Ni!'
  • ***
  • Posts: 771
Re: Gentoo Issues
« Reply #2 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.

 

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?
Members
Total Members: 97
Latest: ToeBee
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 59558
Total Topics: 1672
Most Online Today: 12
Most Online Ever: 983
(20 Jan 2020, 03:17:55 pm)
Users Online
Members: 0
Guests: 7
Total: 7
Powered by EzPortal