From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8895 Path: news.gmane.org!not-for-mail From: Frieder Berthold Newsgroups: gmane.linux.lib.musl.general Subject: Re: How to cross-compiling Date: Wed, 18 Nov 2015 12:19:26 +0100 Message-ID: References: <20151118110304.GL18372@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bdc15b2a7ffb60524ced093 X-Trace: ger.gmane.org 1447845596 16866 80.91.229.3 (18 Nov 2015 11:19:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Nov 2015 11:19:56 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8908-gllmg-musl=m.gmane.org@lists.openwall.com Wed Nov 18 12:19:48 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 1Zz0m4-0001gz-EW for gllmg-musl@m.gmane.org; Wed, 18 Nov 2015 12:19:40 +0100 Original-Received: (qmail 23978 invoked by uid 550); 18 Nov 2015 11:19:38 -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 23960 invoked from network); 18 Nov 2015 11:19:38 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=qdYtleJeTJ8sCy65lzFcvjCPvGqom6fnYgcDWYxsupc=; b=rdx1NXOn2jnYy3ssNcZlZMixlGsEN8+gpeKdQvA67647SE3nN3VBfJ4lF3m8b5fhvu 5Ljc5S/kb+Tw5Quum4gDFhg+XcNKnOkFehuXNq2DDBdo7r19s1rYahLYLBeuGCz9e1VX SLtfSxC/CYl4tIe9bdhpnbU7JpvNXrR/239zn46wryMxfN9bxxE6ZTimWvISHrY56O2F 3a+xyoUetHpKyGxpGJLoJmcnEgaLkpiKmwiRoJuQowctmRLqObepADNTX3AJ9L5Jyq02 hZxYnvvVfxMIKyoQ3BMW/lYTfq9Oj54Z4ekBdwID4JgiG3Jf03OIWotKd2ZI5giM+WkN LVwQ== X-Received: by 10.50.66.179 with SMTP id g19mr7582104igt.20.1447845566085; Wed, 18 Nov 2015 03:19:26 -0800 (PST) In-Reply-To: <20151118110304.GL18372@port70.net> Xref: news.gmane.org gmane.linux.lib.musl.general:8895 Archived-At: --047d7bdc15b2a7ffb60524ced093 Content-Type: text/plain; charset=UTF-8 I copied also the headers. I know passed --target=x86_64-linux-musl --build=x86_64-linux-musl --host=x86_64-linux-musl to configure as well. In configure it states that it can't find the libz.so, which is the reason for termination. There is also a folder lib in /opt/cross/x86_64-linux-musl/ (so one level higher) do i have to copy the lib in there as well? 2015-11-18 12:03 GMT+01:00 Szabolcs Nagy : > * Frieder Berthold [2015-11-18 11:28:04 > +0100]: > > I copied the zlib into /opt/cross/x86_64-linux-mus/x86_64-linux-musl/lib > > i assume you also copied the headers to include/ > > > 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 > > > > you may need to pass --target=x86_64-linux-musl somewhere > > > 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? > > > > autogen.sh can fail for any reason, you should look at > the failing command (e.g. in configure.log), most > likely the failure is completely unrelated to libz.so > --047d7bdc15b2a7ffb60524ced093 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I copied also the headers.
I = know passed --target=3Dx86_64-linux-musl --build=3Dx86_64-linux-musl --host= =3Dx86_64-linux-musl
to configure as well.
In configure i= t states that it can't find the libz.so, which is the reason for termin= ation.

There is also a folder lib in /opt/cross/x86_64-linux-m= usl/ (so one level higher) do i have to copy the lib in there as well?
<= /div>

2015-11-18 1= 2:03 GMT+01:00 Szabolcs Nagy <nsz@port70.net>:
* Frieder Berthold <berthold.frieder@googlemail.com> [2015-11-18 11:28:= 04 +0100]:
> I copied the zlib into /opt/cross/x86_64-linux-mus/x8= 6_64-linux-musl/lib

i assume you also copied the headers to include/

> and run configure on jamVM:
> CC=3D/opt/cross/x86_64-linux-musl/bin/x86_64-linux-musl-gcc ./autogen.= sh
> --with-java-runtime-library=3Dopenjdk8
>

you may need to pass --target=3Dx86_64-linux-musl somewhere

> 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 i= t
> look for the libz.so if not in the corresponding lib folder of the
> cross-compiler?
>

autogen.sh can fail for any reason, you should look at
the failing command (e.g. in configure.log), most
likely the failure is completely unrelated to libz.so

--047d7bdc15b2a7ffb60524ced093--