Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2013-03

[OT] fpcup+FreeBSD/PC-BSD: getting linux compat binutils/libs for cross compiling

6 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Reinier Olislagers

Hi all,

Looked into getting an fpcup FreeBSD x64=>Linux x86 cross compiler module going on PC-BSD 9/FreeBSD 9.1.

Although the /compat/linux library is there, it misses binutils like as, ld etc and I presume it misses a lot of libraries, too.

Tried installing
/usr/ports/emulators/linux_dist-gentoo-stage3
which failed: got an error saying it was broken.

My questions:
1. An alternative could be to get Linux binaries/libs from a Linux install and put them in /compat/linux... Is this useful? Which binaries should I use - or IOW what Linux is FreeBSD trying to emulate - RHEL 6?
2. Is there another port that I could install/an easier way of doing things?

Thanks,
Reinier

Reply by email

Graeme Geldenhuys
to Reinier Olislagers
Reinier Olislagers wrote
what Linux is FreeBSD trying to emulate - RHEL 6?

Fedora 10 as far as I can see.

I've installed the emulators/linux_base-f10/ and x11/linux-xorg-libs/ (as recommended in FreeBSD Handbook) without problems, and can run 32-bit Linux apps with no problem.

I don't know if 64-bit Linux apps are supported though.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Graeme Geldenhuys
to Reinier Olislagers: Looked into getting an fpcup FreeBSD x64=>Linux x86 cross compiler module going on PC-BSD…
Reinier Olislagers wrote
Tried installing /usr/ports/emulators/linux_dist-gentoo-stage3 which failed: got an error saying it was broken.

Did you do a ports update before you tried to install it? Always update ports first, and read the UPDATING file for any possible nasty surprises (normally not many).

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Reinier Olislagers
to Graeme Geldenhuys
Graeme Geldenhuys wrote 9 lines
On 2013-03-17 08:59, Reinier Olislagers wrote: > Tried installing > /usr/ports/emulators/linux_dist-gentoo-stage3 > which failed: got an error saying it was broken. Did you do a ports update before you tried to install it? Always update ports first, and read the UPDATING file for any possible nasty surprises (normally not many).

Heh, naively thought a release from December 2012 would be up to date enough :)
Did
su -
portsnap fetch
portsnap extract
for good measure
portsnap fetch update

cd /usr/ports/emulators/linux_dist-gentoo-stage3
make -DBATCH install clean

Nope:
===> linux_dist-gentoo-stage3-20120710 is marked as broken: does not fetch. *** [install] Error code 1

On other fronts: I seem to have got mingw32 bin/libs installed ok, now working on a FreeBSD=>win32 crosscompiler module.

Thanks,
Reinier

Reply by email

Marco van de Voort
to Reinier Olislagers: Looked into getting an fpcup FreeBSD x64=>Linux x86 cross compiler module going on PC-BSD…

In our previous episode, Reinier Olislagers said:

Show quoted text 15 lines
Looked into getting an fpcup FreeBSD x64=>Linux x86 cross compiler module going on PC-BSD 9/FreeBSD 9.1. Although the /compat/linux library is there, it misses binutils like as, ld etc and I presume it misses a lot of libraries, too. Tried installing /usr/ports/emulators/linux_dist-gentoo-stage3 which failed: got an error saying it was broken. My questions: 1. An alternative could be to get Linux binaries/libs from a Linux install and put them in /compat/linux... Is this useful? Which binaries should I use - or IOW what Linux is FreeBSD trying to emulate - RHEL 6? 2. Is there another port that I could install/an easier way of doing things?

I always considered compat/ a run-its-binaries environment only, not a development-for-it environment.

What is in compat/ differs with major version, and I haven't kept up. As long as adobe reader works with it, it was always fine with me.

I've never tried this the proper way. I always used the scripts that I later put in (fpcbuild/)install/cross to build myself, and then manually fetched libraries from whatever target.

Bootstrapping the compiler iirc works without crossbinutils.

Reply by email

Reinier Olislagers
to Marco van de Voort
Marco van de Voort wrote 26 lines
In our previous episode, Reinier Olislagers said: > Looked into getting an fpcup FreeBSD x64=>Linux x86 cross compiler > module going on PC-BSD 9/FreeBSD 9.1. > > Although the /compat/linux library is there, it misses binutils like as, > ld etc and I presume it misses a lot of libraries, too. > > Tried installing > /usr/ports/emulators/linux_dist-gentoo-stage3 > which failed: got an error saying it was broken. > > My questions: > 1. An alternative could be to get Linux binaries/libs from a Linux > install and put them in /compat/linux... Is this useful? Which binaries > should I use - or IOW what Linux is FreeBSD trying to emulate - RHEL 6? > 2. Is there another port that I could install/an easier way of doing things? I always considered compat/ a run-its-binaries environment only, not a development-for-it environment. What is in compat/ differs with major version, and I haven't kept up. As long as adobe reader works with it, it was always fine with me. I've never tried this the proper way. I always used the scripts that I later put in (fpcbuild/)install/cross to build myself, and then manually fetched libraries from whatever target.

Ok, thanks, I suppose that's the easier way.

Reply by email