climateprediction.net (CPDN) home page
Thread '*** Running 32bit CPDN from 64bit Linux - Discussion ***'

Thread '*** Running 32bit CPDN from 64bit Linux - Discussion ***'

Questions and Answers : Unix/Linux : *** Running 32bit CPDN from 64bit Linux - Discussion ***
Message board moderation

To post messages, you must log in.

Previous · 1 . . . 16 · 17 · 18 · 19

AuthorMessage
M0CZY

Send message
Joined: 13 Jun 24
Posts: 3
Credit: 44,804
RAC: 830
Message 71590 - Posted: 11 Oct 2024, 9:12:04 UTC

I've recently done a fresh install of Arch Linux, with the multilib repository enabled.
I don't know which packages need to be installed to make 32-bit workunits run correctly on Arch.
ID: 71590 · Report as offensive     Reply Quote
ProfileDave Jackson
Volunteer moderator

Send message
Joined: 15 May 09
Posts: 4541
Credit: 19,039,635
RAC: 18,944
Message 71591 - Posted: 11 Oct 2024, 9:30:29 UTC - in response to Message 71590.  
Last modified: 11 Oct 2024, 9:33:09 UTC

If you have the executables on another Linux machine, copy them over and run ldd on them. It will give you a list of dependencies and let you know which are unmet. Otherwise, when there is next 32bit work for Linux start downloading tasks, then suspend computation, then run
ldd filename
on them, install the dependencies, then resume computation.
Edit: I have never used arch linux so don't know the packaging system.
ID: 71591 · Report as offensive     Reply Quote
AndreyOR

Send message
Joined: 12 Apr 21
Posts: 318
Credit: 14,992,649
RAC: 9,858
Message 71592 - Posted: 12 Oct 2024, 9:22:11 UTC - in response to Message 71591.  

One could download the executables without having tasks but it seems like the name of the downloads page changed, probably during the recent changeovers.
ID: 71592 · Report as offensive     Reply Quote
AndreyOR

Send message
Joined: 12 Apr 21
Posts: 318
Credit: 14,992,649
RAC: 9,858
Message 71593 - Posted: 12 Oct 2024, 10:04:53 UTC - in response to Message 71590.  

I believe you need the following 2 packages to get all of the required libraries. Without the executables it's hard to be completely certain but it looks like those 2 packages provide all of the libraries missing from Ubuntu. I'm assuming Arch will have the same ones missing. I'd install them and wait for the work to show up.
lib32-glibc
lib32-gcc-libs
ID: 71593 · Report as offensive     Reply Quote
M0CZY

Send message
Joined: 13 Jun 24
Posts: 3
Credit: 44,804
RAC: 830
Message 71594 - Posted: 13 Oct 2024, 18:01:39 UTC - in response to Message 71593.  

I've installed those two packages, now I'll wait for the next batch of Linux tasks.
ID: 71594 · Report as offensive     Reply Quote
AndreyOR

Send message
Joined: 12 Apr 21
Posts: 318
Credit: 14,992,649
RAC: 9,858
Message 71615 - Posted: 15 Oct 2024, 7:55:39 UTC - in response to Message 71594.  

I've installed those two packages, now I'll wait for the next batch of Linux tasks.

Just to clarify, only the 3 types of Hadley models are 32-bit and need additional libraries. The various versions of OIFS are 64-bit so they don't need them. Glenn did mention recently that Hadley models are in the works and might be release in the next few months.

If those packages end up being sufficient, they could be added to the other thread for other Arch Linux users to be able to look up.
ID: 71615 · Report as offensive     Reply Quote
ProfileDave Jackson
Volunteer moderator

Send message
Joined: 15 May 09
Posts: 4541
Credit: 19,039,635
RAC: 18,944
Message 71617 - Posted: 15 Oct 2024, 9:42:09 UTC - in response to Message 71615.  

If those packages end up being sufficient, they could be added to the other thread for other Arch Linux users to be able to look up.
Thanks for the reminder. I will try and remember to check once the next Hadley tasks for Linux are released. If asked to guess I would say they are likely to come before the OIFS tasks.
ID: 71617 · Report as offensive     Reply Quote
M0CZY

Send message
Joined: 13 Jun 24
Posts: 3
Credit: 44,804
RAC: 830
Message 71620 - Posted: 15 Oct 2024, 16:35:44 UTC

In case it helps: now that I have installed
lib32-glibc
lib32-gcc-libs
onto my fresh Arch Linux installation, I have run ldd on three files, with the following output:
$ ldd hadam4_8.52_i686-pc-linux-gnu
	linux-gate.so.1 (0xf3746000)
	libpthread.so.0 => /usr/lib32/libpthread.so.0 (0xf371a000)
	libdl.so.2 => /usr/lib32/libdl.so.2 (0xf3715000)
	libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf349d000)
	libm.so.6 => /usr/lib32/libm.so.6 (0xf33c5000)
	libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf3390000)
	libc.so.6 => /usr/lib32/libc.so.6 (0xf315b000)
	/lib/ld-linux.so.2 => /usr/lib/ld-linux.so.2 (0xf3748000)
$ ldd hadam4_um_8.52_i686-pc-linux-gnu
	linux-gate.so.1 (0xf65d8000)
	libdl.so.2 => /usr/lib32/libdl.so.2 (0xf65ac000)
	libm.so.6 => /usr/lib32/libm.so.6 (0xf64d4000)
	libpthread.so.0 => /usr/lib32/libpthread.so.0 (0xf64cf000)
	libc.so.6 => /usr/lib32/libc.so.6 (0xf629a000)
	/lib/ld-linux.so.2 => /usr/lib/ld-linux.so.2 (0xf65da000)
$ ldd hadam4_se_8.52_i686-pc-linux-gnu.so
ldd: warning: you do not have execution permission for `./hadam4_se_8.52_i686-pc-linux-gnu.so'
	linux-gate.so.1 (0xec70b000)
	libnsl.so.1 => /usr/lib32/libnsl.so.1 (0xec5ab000)
	libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xec333000)
	libm.so.6 => /usr/lib32/libm.so.6 (0xec25b000)
	libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xec226000)
	libc.so.6 => /usr/lib32/libc.so.6 (0xebff1000)
	/usr/lib/ld-linux.so.2 (0xec70d000)

I don't know how to interpret this output to know whether these executables will run correctly or not.
ID: 71620 · Report as offensive     Reply Quote
Glenn Carver

Send message
Joined: 29 Oct 17
Posts: 1051
Credit: 16,649,638
RAC: 12,396
Message 71622 - Posted: 15 Oct 2024, 19:41:24 UTC - in response to Message 71620.  

I don't know how to interpret this output to know whether these executables will run correctly or not.
Yes, they will run. All the dynamic libraries can be found according to the output of ldd (ignore the warning for the .so file).
---
CPDN Visiting Scientist
ID: 71622 · Report as offensive     Reply Quote
AndreyOR

Send message
Joined: 12 Apr 21
Posts: 318
Credit: 14,992,649
RAC: 9,858
Message 71632 - Posted: 16 Oct 2024, 6:16:13 UTC - in response to Message 71620.  

$ ldd hadam4_8.52_i686-pc-linux-gnu
	linux-gate.so.1 (0xf3746000)
	libpthread.so.0 => /usr/lib32/libpthread.so.0 (0xf371a000)
	libdl.so.2 => /usr/lib32/libdl.so.2 (0xf3715000)
	libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf349d000)
	libm.so.6 => /usr/lib32/libm.so.6 (0xf33c5000)
	libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf3390000)
	libc.so.6 => /usr/lib32/libc.so.6 (0xf315b000)
	/lib/ld-linux.so.2 => /usr/lib/ld-linux.so.2 (0xf3748000)

I don't know how to interpret this output to know whether these executables will run correctly or not.

How you read it is, the name of the required library is on the left of the arrow sign (=>) and the location of it on your system is on the right. So if you have a location specified for all of the libraries for a given executable, than that executable will run.

To see what it looks like if you're missing something, uninstall those packages and run ldd again. Don't forget to reinstall them afterwards.
ID: 71632 · Report as offensive     Reply Quote
Previous · 1 . . . 16 · 17 · 18 · 19

Questions and Answers : Unix/Linux : *** Running 32bit CPDN from 64bit Linux - Discussion ***

©2024 cpdn.org