MultiArch?

Hello.

Is it possible to have MultiArch in FreeBSD 64 ?
If yes, what must be installed ?

Thanks.

Fre;D
 
Are you asking if you can run 32bit applications on a 64bit FreeBSD system? If so, yes you can. Select the lib32 option from the installer when installing FreeBSD.
 
Yep, perfect. Hum, where/when can iI find lib32 option from the installer ?
Many thanks.
 
Re-hello.
Is it possible enable lib32 option when fFreeBSD 64 is already installed ?
Thanks.
 
Sure. Which version of FreeBSD do you have installed?

Edit: You can fetch and install it from the command line.
  1. fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/[B]10.1[/B]-RELEASE/lib32.txz
  2. # tar -xvpJf lib32.txz -C /
If you're using another supported release version just change 10.1 to that release number.
 
Hello and thanks for answer.

I have install FreeBSD 64 +
fetch [URL]ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/[/URL][B]10.1[/B]-RELEASE/lib32.txz
tar -xvpJf lib32.txz -C /

=> perfect and out of the box.
icon_e_wink.gif


Before that I have compiled/tested a hyper simple GUI application on FreeBSD 32.

Sadly, when I try to run it on FreeBSD 64 =>
Code:
Shared object "libX11.so.6" not found, required by "simple_test".

Huh, could it be possible that FreeBSD does the same than Linux Mint and Fedora that are real multiarch os?

With Mint64 and Fedora64 you may run all 32 bit applications...

Does FreeBSD have plan to became a real multiarch os ?

Many thanks.

Fre;D
 
The trouble is that you'd have to cross-compile the X11 libraries for i386 and have them installed somehow alongside the amd64 versions on the same system. This is not supported at the moment, the 32-bit compatibility libraries cover only the base system. You could create an i386 jail and use that for compiling and running i386 software, that shouldn't be too hard.
 
kpa => many thanks for clarification.

You could create an i386 jail and use that for compiling and running i386 software, that shouldn't be too hard.

Not sure I understood...
"create an i386 jail"? Huh, do you mean create a i386 directory with all the needed 32 bit libraries?

But how will FreeBSD know what libraries to use (32 or 64 bit)? Adding a path with LD_LIBRARY_PATH=?

Thanks.

Fre;D
 
Hello.

Thanks for your light.
After lot of thinking, i decide to create a new fFreeBSD distro, that will be real MultiArch 64/32 OS and focused on cross-compiling development.
That distro will include all the tools for developers (C, Java, Python and Pascal).

https://github.com/fredvs/polydev

PS: Actually, polYdev is only a fork from FreeBSD 10.1.

Advices are hypra welcome.

Fre;D
 
Back
Top