Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] traceroute: fix 'no rule to make target -lm' error
Date: Sun, 4 Nov 2018 11:45:14 +0100	[thread overview]
Message-ID: <20181104114514.523365ee@windsurf> (raw)
In-Reply-To: <1539902241-10211-1-git-send-email-sergio.prado@e-labworks.com>

Hello,

On Thu, 18 Oct 2018 19:37:21 -0300, Sergio Prado wrote:
> Fix the following build error:
> 
> make[3]: *** No rule to make target '-lm', needed by 'traceroute'.
> 
> Fixes:
> http://autobuild.buildroot.org/results/dde63672e1de1d4ba036331ab127ccc8ff044444
> http://autobuild.buildroot.org/results/4efb67e6a29c3dd784676d30a1051f9f0c2a6c80
> http://autobuild.buildroot.org/results/7ac23a3959aec22297695899c0f76dbbc4e114d3
> And many more...
> 
> Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
> ---
>  package/traceroute/traceroute.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/package/traceroute/traceroute.mk b/package/traceroute/traceroute.mk
> index 192197498df7..a02982a6b5f0 100644
> --- a/package/traceroute/traceroute.mk
> +++ b/package/traceroute/traceroute.mk
> @@ -11,7 +11,7 @@ TRACEROUTE_LICENSE = GPL-2.0+, LGPL-2.1+
>  TRACEROUTE_LICENSE_FILES = COPYING COPYING.LIB
>  
>  define TRACEROUTE_BUILD_CMDS
> -	$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
> +	$(TARGET_MAKE_ENV) VPATH=$(STAGING_DIR)/usr/lib $(MAKE) $(TARGET_CONFIGURE_OPTS) \
>  		CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" -C $(@D)

We briefly discussed this patch during the Buildroot Developers
meeting, and setting VPATH clearly cannot be the right solution, it's a
big hack. A better solution needs to be found :)

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2018-11-04 10:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-18 22:37 [Buildroot] [PATCH] traceroute: fix 'no rule to make target -lm' error Sergio Prado
2018-11-04 10:45 ` Thomas Petazzoni [this message]
2018-11-04 11:26   ` Thomas Petazzoni
2018-11-05 15:25     ` Arnout Vandecappelle
2018-11-05 23:40       ` Arnout Vandecappelle
2018-11-06 10:07         ` Peter Korsgaard
2018-11-06 10:32           ` Arnout Vandecappelle
2018-11-07 21:08         ` Peter Korsgaard
2018-11-07 21:02 ` Peter Korsgaard
2018-11-25 20:51 ` Peter Korsgaard

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=20181104114514.523365ee@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox