From: Stephen Hemminger <stephen@networkplumber.org>
To: Frank Wunderlich <frank-w@public-files.de>
Cc: netdev@vger.kernel.org
Subject: Re: Crosscompiling iproute2
Date: Mon, 17 May 2021 12:36:28 -0700 [thread overview]
Message-ID: <20210517123628.13624eeb@hermes.local> (raw)
In-Reply-To: <trinity-00d9e9f2-6c60-48b7-ad84-64fd50043001-1621237461808@3c-app-gmx-bap57>
On Mon, 17 May 2021 09:44:21 +0200
Frank Wunderlich <frank-w@public-files.de> wrote:
> > Gesendet: Sonntag, 16. Mai 2021 um 23:17 Uhr
> > Von: "Stephen Hemminger" <stephen@networkplumber.org>
>
> > It is possible to mostly do a cross build if you do:
> >
> > $ make CC="$CC" LD="$LD"
> > There are issues with netem local table generation
>
> Hi,
>
> thank you for your answer, but with this way i got this:
>
> ./normal > normal.dist
> ./normal: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory
>
> i guess it's the netem issue you've mentioned, imho i cannot install armhf-libs on ubuntu, so i disabled subdirs in Makefile beginning with netem
>
> -SUBDIRS=lib ip tc bridge misc netem genl tipc devlink rdma dcb man vdpa
> +SUBDIRS=lib ip tc bridge misc
> +#netem genl tipc devlink rdma dcb man vdpa
>
> it seems to did it now
>
> $ file ip/ip
> ip/ip: ELF 32-bit LSB executable, ARM, EABI5 version 1 (GNU/Linux), statically linked, BuildID[sha1]=b36e094bc8681713d91ffe3a085ad4d3c6a1c5ea, for GNU/Linux 3.2.0, not stripped
>
> thank you
>
> regards Frank
Cross compile needs to know the compiler for building non-cross tools as well.
This works for me:
make CC="$CC" LD="$LD" HOSTCC=gcc
next prev parent reply other threads:[~2021-05-17 19:36 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-16 14:51 Crosscompiling iproute2 Frank Wunderlich
2021-05-16 21:17 ` Stephen Hemminger
2021-05-17 7:44 ` Aw: " Frank Wunderlich
2021-05-17 19:36 ` Stephen Hemminger [this message]
2021-05-18 14:19 ` Frank Wunderlich
2021-05-24 19:06 ` Frank Wunderlich
2021-05-24 21:36 ` Stephen Hemminger
2021-05-25 15:56 ` Frank Wunderlich
2021-05-25 16:08 ` Stephen Hemminger
2021-05-25 18:18 ` Aw: " Frank Wunderlich
2021-05-25 21:37 ` Stephen Hemminger
2021-05-26 7:28 ` Aw: " Frank Wunderlich
2021-05-25 13:30 ` Frank Wunderlich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210517123628.13624eeb@hermes.local \
--to=stephen@networkplumber.org \
--cc=frank-w@public-files.de \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.