From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8893 Path: news.gmane.org!not-for-mail From: Frieder Berthold Newsgroups: gmane.linux.lib.musl.general Subject: How to cross-compiling Date: Wed, 18 Nov 2015 11:28:04 +0100 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1133c626f9b1940524ce1895 X-Trace: ger.gmane.org 1447842520 32366 80.91.229.3 (18 Nov 2015 10:28:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Nov 2015 10:28:40 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8906-gllmg-musl=m.gmane.org@lists.openwall.com Wed Nov 18 11:28:29 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1ZyzyT-0004Jo-9j for gllmg-musl@m.gmane.org; Wed, 18 Nov 2015 11:28:25 +0100 Original-Received: (qmail 30325 invoked by uid 550); 18 Nov 2015 10:28:22 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 30264 invoked from network); 18 Nov 2015 10:28:16 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=t887jc4etK1LaHqN+UF/Ltl52+27sbGmu5+DEiqnQOs=; b=GpI6PkSqwbXD4KIVdgQsLYWIOrA5WZlDQoiQX1nPy6zP28S4JEv5Et2EF9wZicHq0q YYAMF7JDhDW30HBBXNKLE73VghdOKyhvAk0UrVcTqN8IAthNXT/wi/g0wMri58fXp4ho yjE6lckKNSXNm5+jaN8EAsn4q8iI1t6uzGV+CVwutERh/+q46NRqdLiK2oABPcB+ll71 3gdDpfL/VeiZAou0MPY8JZR7L7339/bEWfL/6Ez0+Lip0AoIU/DNTKD6nPw6Ve5B/gBy +15I9UDiqLHJ6Wbya9wYS9Dc5SAJ3eR920KMbwU6R/Z4jnss+wPSki5BpmWtmnN9c7xz EcHg== X-Received: by 10.50.150.100 with SMTP id uh4mr2079561igb.23.1447842484431; Wed, 18 Nov 2015 02:28:04 -0800 (PST) Xref: news.gmane.org gmane.linux.lib.musl.general:8893 Archived-At: --001a1133c626f9b1940524ce1895 Content-Type: text/plain; charset=UTF-8 Hey to all, after some hints on this list I tried out the cross-compiling scripts from Gregor (https://bitbucket.org/GregorR/musl-cross/). They worked and I got a folder /opt/cross/x86_64-linux-musl . I symlinked the ld-musl-$ARCH.so to /bin/ldd: ll /bin/ldd lrwxrwxrwx 1 root root 24 Nov 16 17:04 /bin/ldd -> /lib/ld-musl-x86_64.so.1 With this cross compiler I configured zlib (which has no other dependencies than libc) as follows: CC=/opt/cross/x86_64-linux-musl/bin/x86_64-linux-musl-gcc ./configure If I use this ldd on my newly build zlib it tells me, that it is itself the libc.so: /bin/ldd libz.so.1 /bin/ldd (0x7fa6ab41d000) libc.so => /bin/ldd (0x7fa6ab41d000) I assume this is the correct way and therefore tried to build jamVM ( http://jamvm.sourceforge.net/) with musl and my zlib (build with musl). I copied the zlib into /opt/cross/x86_64-linux-mus/x86_64-linux-musl/lib and run configure on jamVM: CC=/opt/cross/x86_64-linux-musl/bin/x86_64-linux-musl-gcc ./autogen.sh --with-java-runtime-library=openjdk8 It tells me, that it can't find the libz.so. So my question is: Is this the right way to configure and where does it look for the libz.so if not in the corresponding lib folder of the cross-compiler? Thanks in advance! Frieder --001a1133c626f9b1940524ce1895 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hey to all,

after some hi= nts on this list I tried out the cross-compiling scripts from Gregor (https://bitbucket.org/Greg= orR/musl-cross/).
They worked and I got a folder /opt/cross/x8= 6_64-linux-musl .
I symlinked the ld-musl-$ARCH.so to /bin/ld= d:

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= ll /bin/ldd
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 lrwx= rwxrwx 1 root root 24 Nov 16 17:04 /bin/ldd -> /lib/ld-musl-x86_64.so.1<= br>

With this cross compiler I configured zlib (which has no o= ther dependencies than libc) as follows:
CC=3D/opt/cross/x86_64-linux-mu= sl/bin/x86_64-linux-musl-gcc ./configure

If I use this ldd on m= y newly build zlib it tells me, that it is itself the libc.so:
=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /bin/ldd libz.so.1
=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 /bin/ldd (0x7fa6ab41d000)
=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0=C2=A0 libc.so =3D> /bin/ldd (0x7fa6ab41d000)
I assume this is the correct way and therefore tried to build jamVM = (http://jamvm.sourceforge.net/) with musl and my zlib (build with musl).

--001a1133c626f9b1940524ce1895--