Re: Static compilation: segmentation fault in execution [host=x86_64, target: ia64]

Jonathan Nieder <[email protected]>
Newsgroups gmane.linux.debian.devel.embedded
Message-ID <[email protected]>
José Luis García Pallero wrote:

> The example I pasted is very simple. I need to compile programs that
> link with recent libraries that are not installed in the ia64 machine.
> For example, libgomp for OpenMP or modern versions of Lapack, PLASMA,
> etc. And install lolaccly all dependencies from source is not an
> option. This is the reason for the static link with the libraries in
> the host machine in which I compile

Can't you install the libraries you use in binary form in some
directory that is in LD_LIBRARY_PATH when you run the "hello" program?

If you have the space for it, another way is to use debootstrap to
make a small Debian installation on the machine where you need to
deploy and chroot in to run your program.

A less extreme approach is to use the LSB toolchain to ensure your
program makes minimal demands on the operating system where it is
deployed, as described here:
http://www.linuxfoundation.org/collaborate/workgroups/lsb/build-lsb-compliant-application
I'm not sure if there are LSB cross-compilers available.

Jonathan


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.