Building on NetBSD 3.0 AMD64

Questions and Answers : Unix/Linux : Building on NetBSD 3.0 AMD64
Message board moderation

To post messages, you must log in.

AuthorMessage
sideband@seti.usa
Avatar

Send message
Joined: 19 Jun 99
Posts: 25
Credit: 2,774,864
RAC: 0
United States
Message 220782 - Posted: 24 Dec 2005, 7:40:00 UTC

Trying to build the core BOINC client (haven't even attempted to tackle the SETI client software yet!) and I keep running into a small issue...

Namely:
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -fPIC -DPIC -I../lib -I../api -I../db -I../client -I../tools -I../sched -I/usr/pkg/include/mysql -DUSE_OLD_FUNCTIONS -pthread -include ../config.h -I/usr/pkg/include -fPIC -DPIC -I../lib -I../api -I../db -I../client -I../tools -I../sched -I/usr/pkg/include/mysql -DUSE_OLD_FUNCTIONS -pthread -include ../config.h -g -O2 -I/usr/pkg/include -I/usr/pkg/include/openssl -pthread -MT sched_shmem.o -MD -MP -MF ".deps/sched_shmem.Tpo" -c -o sched_shmem.o sched_shmem.C; then mv -f ".deps/sched_shmem.Tpo" ".deps/sched_shmem.Po"; else rm -f ".deps/sched_shmem.Tpo"; exit 1; fi
In file included from ../db/db_base.h:23,
from ../db/boinc_db.h:33,
from sched_shmem.C:28:
../db/mysql.h:77: error: conflicting types for `typedef long long unsigned int
u_longlong_t'
/usr/include/sys/types.h:129: error: previous declaration as `typedef
__uint64_t u_longlong_t'
*** Error code 1

Stop.


Which of course, kills the build.. unless I build without the scheduler.. Not even sure if I need the scheduler.

What's the scoop here, and how can I fix it. I'm really not much of a programmer.

TIA, de AI8W, Chris
73 de AI8W, Chris

Abdico Concussio Fidens Servo Libertas Semper!

ID: 220782 · Report as offensive
Dotsch
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 2422
Credit: 919,393
RAC: 0
Germany
Message 220805 - Posted: 24 Dec 2005, 10:07:50 UTC

Chris, at the third party site (boinc.berkeley.edu/download_other.php) is a boinc client and seti app for NetBSD available.

I had some troubles to compile the boinc client on NetBSD.
But with the seti app I had a lot of troubles. The BSD libs has some problems with the math libs, which cause some heave differences (up to 10 to 500 times higher than in the reference result) in the computed results. With a lot of hours of testing I get it to run, and the science results are all vailid.
But now I have the same problem on NetBSD and OpenBSD on SPARC. All parameters and tricks I used for the i386 platfrom has no success. A solution is not in sight in the moment...

In cause of this problems, I recommend every OpenBSD i386 and NetBSD i386 to use the binaries on the third party site

Lars
ID: 220805 · Report as offensive
sideband@seti.usa
Avatar

Send message
Joined: 19 Jun 99
Posts: 25
Credit: 2,774,864
RAC: 0
United States
Message 220956 - Posted: 24 Dec 2005, 16:05:24 UTC - in response to Message 220805.  

Chris, at the third party site (boinc.berkeley.edu/download_other.php) is a boinc client and seti app for NetBSD available.

I had some troubles to compile the boinc client on NetBSD.
But with the seti app I had a lot of troubles. The BSD libs has some problems with the math libs, which cause some heave differences (up to 10 to 500 times higher than in the reference result) in the computed results. With a lot of hours of testing I get it to run, and the science results are all vailid.
But now I have the same problem on NetBSD and OpenBSD on SPARC. All parameters and tricks I used for the i386 platfrom has no success. A solution is not in sight in the moment...

In cause of this problems, I recommend every OpenBSD i386 and NetBSD i386 to use the binaries on the third party site

Lars



Lars.. There isn't one available (yet) for NetBSD 3.0 on AMD64.. and the i386 job won't run on my system.. So what's a guy to do?
73 de AI8W, Chris

Abdico Concussio Fidens Servo Libertas Semper!

ID: 220956 · Report as offensive
Dotsch
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 2422
Credit: 919,393
RAC: 0
Germany
Message 220989 - Posted: 24 Dec 2005, 18:12:06 UTC - in response to Message 220956.  

Lars.. There isn't one available (yet) for NetBSD 3.0 on AMD64.. and the i386 job won't run on my system.. So what's a guy to do?

Do you mean the NetBSD binaries from Stefan Urbats site ? - Why don't they run on your system ? - What errors produce the binaries ?

ID: 220989 · Report as offensive
sideband@seti.usa
Avatar

Send message
Joined: 19 Jun 99
Posts: 25
Credit: 2,774,864
RAC: 0
United States
Message 222000 - Posted: 27 Dec 2005, 15:12:29 UTC - in response to Message 220989.  

Lars.. There isn't one available (yet) for NetBSD 3.0 on AMD64.. and the i386 job won't run on my system.. So what's a guy to do?

Do you mean the NetBSD binaries from Stefan Urbats site ? - Why don't they run on your system ? - What errors produce the binaries ?


Binary file not executable.

It's a 64 bit system, with 64-bit libs and kernel... The sytem is completely 64 bit. The 32 bit binaries don't want to run.

Which was why I was trying to build a 64 bit client.
73 de AI8W, Chris

Abdico Concussio Fidens Servo Libertas Semper!

ID: 222000 · Report as offensive
Dotsch
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 2422
Credit: 919,393
RAC: 0
Germany
Message 222013 - Posted: 27 Dec 2005, 16:21:47 UTC - in response to Message 222000.  


Binary file not executable.

It's a 64 bit system, with 64-bit libs and kernel... The sytem is completely 64 bit. The 32 bit binaries don't want to run.

Which was why I was trying to build a 64 bit client.

Is there a way, to let 32 bit and 64 bit programms run on NetBSD 64 Bit, like on the other unixes ? - If it is posible, i recommend it to you.

If this would not will have success, you need to compile it. But I can not guarante you that the seti app will run successfull. I have sill not found any solution for the incorect math problem.

I have seen on your output from the compile, that you are compile the whole boinc, including the servers, too.
You can go into the different directories(api, lib and client), and start the make within.
Which gcc is on your system ? - I have still a lot of problems with NetBSD 3.0 on SPARC with gcc 3.3. With the gcc 3.4.5 looks better, but the seti app is still uncompilable...
ID: 222013 · Report as offensive
sideband@seti.usa
Avatar

Send message
Joined: 19 Jun 99
Posts: 25
Credit: 2,774,864
RAC: 0
United States
Message 222110 - Posted: 27 Dec 2005, 21:41:48 UTC - in response to Message 222013.  
Last modified: 27 Dec 2005, 21:54:30 UTC



Is there a way, to let 32 bit and 64 bit programms run on NetBSD 64 Bit, like on the other unixes ? - If it is posible, i recommend it to you.

If this would not will have success, you need to compile it. But I can not guarante you that the seti app will run successfull. I have sill not found any solution for the incorect math problem.

I have seen on your output from the compile, that you are compile the whole boinc, including the servers, too.
You can go into the different directories(api, lib and client), and start the make within.
Which gcc is on your system ? - I have still a lot of problems with NetBSD 3.0 on SPARC with gcc 3.3. With the gcc 3.4.5 looks better, but the seti app is still uncompilable...



Lars:

For clarity's sake, here are the steps I took when attempting to run the NetBSD x86 client you built..

1. download from site to /home/chris
2. tar -xvzpf [client name]
3. cd opt/boinc
4. attempt to execute the client with the following results:

-bash-3.00$ pwd
/home/chris/opt/boinc
-bash-3.00$ ./boinc_client --attach_project http://setiathome.berkeley.edu/ [mykeyherewithoutthebrackets]
-bash: ./boinc_client: cannot execute binary file
-bash-3.00$

I haven't dug into how to run 32 bit apps on this 64 bit system.. but it certainly would be nice to be able to do that.

Other info for you:

-bash-3.00$ uname -a
NetBSD rosie 3.0 NetBSD 3.0 (GENERIC) #0: Sun Dec 18 21:51:37 UTC 2005 builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/amd64/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/amd64/compile/GENERIC amd64

Again, this is not the x86 port. They're not directly compatible. This is the AMD64 port (Opteron, Sempron64, and Athlon64 compatible).

The other option would be to have you email to me (ai8w at ameritech dot net) the changes you made to the client and boinc sources to get them to build and run correctly, and do it myself. I could then tarball up the built binaries once I get it built and working on NetBSD 3.0 AMD64 (this is NOT the x86 release... it's quite different!) and mail them back to you.

I'm NOT a programmer.. shell scripting is about as deep as I get anymore.. but I'm willing to dig and learn and bang away until it's right... or until someone does it better than me, and before me.

Let me know how you'd like to proceed, because I have quite a few machines waiting on this particular binary.

Thanks.
73 de AI8W, Chris

Abdico Concussio Fidens Servo Libertas Semper!

ID: 222110 · Report as offensive
sideband@seti.usa
Avatar

Send message
Joined: 19 Jun 99
Posts: 25
Credit: 2,774,864
RAC: 0
United States
Message 222129 - Posted: 27 Dec 2005, 22:19:52 UTC - in response to Message 222110.  



Lars:

For clarity's sake, here are the steps I took when attempting to run the NetBSD x86 client you built..

1. download from site to /home/chris
2. tar -xvzpf [client name]
3. cd opt/boinc
4. attempt to execute the client with the following results:

-bash-3.00$ pwd
/home/chris/opt/boinc
-bash-3.00$ ./boinc_client --attach_project http://setiathome.berkeley.edu/ [mykeyherewithoutthebrackets]
-bash: ./boinc_client: cannot execute binary file
-bash-3.00$

I haven't dug into how to run 32 bit apps on this 64 bit system.. but it certainly would be nice to be able to do that.

Other info for you:

-bash-3.00$ uname -a
NetBSD rosie 3.0 NetBSD 3.0 (GENERIC) #0: Sun Dec 18 21:51:37 UTC 2005 builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/amd64/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/amd64/compile/GENERIC amd64

Again, this is not the x86 port. They're not directly compatible. This is the AMD64 port (Opteron, Sempron64, and Athlon64 compatible).

The other option would be to have you email to me (ai8w at ameritech dot net) the changes you made to the client and boinc sources to get them to build and run correctly, and do it myself. I could then tarball up the built binaries once I get it built and working on NetBSD 3.0 AMD64 (this is NOT the x86 release... it's quite different!) and mail them back to you.

I'm NOT a programmer.. shell scripting is about as deep as I get anymore.. but I'm willing to dig and learn and bang away until it's right... or until someone does it better than me, and before me.

Let me know how you'd like to proceed, because I have quite a few machines waiting on this particular binary.

Thanks.


Some more info.. from the configure script, after I run ./_autoconf:

./configure --without-server > configure.log
configure: WARNING: sys/mount.h: present but cannot be compiled
configure: WARNING: sys/mount.h: check for missing prerequisite headers?
configure: WARNING: sys/mount.h: see the Autoconf documentation
configure: WARNING: sys/mount.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/mount.h: proceeding with the preprocessor's result
configure: WARNING: sys/mount.h: in the future, the compiler will take precedence
configure: WARNING: ## -------------------------------- ##
configure: WARNING: ## Report this to the BOINC lists. ##
configure: WARNING: ## -------------------------------- ##
configure: WARNING: sys/sysctl.h: present but cannot be compiled
configure: WARNING: sys/sysctl.h: check for missing prerequisite headers?
configure: WARNING: sys/sysctl.h: see the Autoconf documentation
configure: WARNING: sys/sysctl.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/sysctl.h: proceeding with the preprocessor's result
configure: WARNING: sys/sysctl.h: in the future, the compiler will take precedence
configure: WARNING: ## -------------------------------- ##
configure: WARNING: ## Report this to the BOINC lists. ##
configure: WARNING: ## -------------------------------- ##


I don't know how to fix this. Might this have anything to do with my previously posted error? Is it important? Who needs to be told?

73 de AI8W, Chris

Abdico Concussio Fidens Servo Libertas Semper!

ID: 222129 · Report as offensive
Dotsch
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 2422
Credit: 919,393
RAC: 0
Germany
Message 222492 - Posted: 28 Dec 2005, 23:20:43 UTC - in response to Message 222110.  

The other option would be to have you email to me (ai8w at ameritech dot net) the changes you made to the client and boinc sources to get them to build and run correctly, and do it myself. I could then tarball up the built binaries once I get it built and working on NetBSD 3.0 AMD64 (this is NOT the x86 release... it's quite different!) and mail them back to you.

If you whish, I can mail you the entire boinc and seti sources (9 MBs) with my changes, or the files I have changed to get it run.
ID: 222492 · Report as offensive
sideband@seti.usa
Avatar

Send message
Joined: 19 Jun 99
Posts: 25
Credit: 2,774,864
RAC: 0
United States
Message 222862 - Posted: 29 Dec 2005, 18:20:17 UTC - in response to Message 222492.  

If you whish, I can mail you the entire boinc and seti sources (9 MBs) with my changes, or the files I have changed to get it run.



That would be good... Then I could see what was done, and maybe learn something.

I'd appreciate it. Thanks
73 de AI8W, Chris

Abdico Concussio Fidens Servo Libertas Semper!

ID: 222862 · Report as offensive
Dotsch
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 2422
Credit: 919,393
RAC: 0
Germany
Message 222969 - Posted: 29 Dec 2005, 21:54:33 UTC - in response to Message 222862.  

I have written you a email. Did you not recived it ?
ID: 222969 · Report as offensive
sideband@seti.usa
Avatar

Send message
Joined: 19 Jun 99
Posts: 25
Credit: 2,774,864
RAC: 0
United States
Message 224845 - Posted: 3 Jan 2006, 1:06:29 UTC - in response to Message 222969.  

I have written you a email. Did you not recived it ?



Not as of yet, no, I have not.

As far as the AMD64 port for NetBSD 3.0... I've given up. I put FC4 x86_64 on the machine, reconfigured some things (to get the mail and dns servers working again) and am running the Linux x86_64 third party client.

Thanks for all the help.

73 de AI8W, Chris

Abdico Concussio Fidens Servo Libertas Semper!

ID: 224845 · Report as offensive
Dotsch
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 2422
Credit: 919,393
RAC: 0
Germany
Message 225231 - Posted: 3 Jan 2006, 20:28:44 UTC - in response to Message 224845.  

I have written you a email. Did you not recived it ?


Not as of yet, no, I have not.

I have written you a mail again from a other email account. - Are my mails to you blocked by your spamfilter or provider ?


ID: 225231 · Report as offensive

Questions and Answers : Unix/Linux : Building on NetBSD 3.0 AMD64


 
©2025 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.