Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] nasm package error installing to target
Date: Mon, 14 Jul 2014 07:59:50 +0200	[thread overview]
Message-ID: <53C371D6.4060404@mind.be> (raw)
In-Reply-To: <CABDNR14V6t+yxJN9-y5ZdU+iwpx+wM0e5Sb+gq1S48Q4Yq=8LQ@mail.gmail.com>

On 11/07/14 19:58, Michael Sumulong wrote:
> I'm trying to install the nasm package to my target but I get the following
> error when buildroot 2014.05 tries to compile it:
> 
>>>> nasm 2.11.02 Installing to target
> PATH="/home/mbs/Desktop/testing/staging/buildroot-2014.05/output/host/bin:/home/mbs/Desktop/testing/staging/buildroot-2014.05/output/host/sbin:/home/mbs/Desktop/testing/staging/buildroot-2014.05/output/host/usr/bin:/home/mbs/Desktop/testing/staging/buildroot-2014.05/output/host/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" 
> /usr/bin/make -j5
> DESTDIR=/home/mbs/Desktop/testing/staging/buildroot-2014.05/output/target 
> install -C
> /home/mbs/Desktop/testing/staging/buildroot-2014.05/output/build/nasm-2.11.02/
> make[1]: Entering directory
> `/home/mbs/Desktop/testing/staging/buildroot-2014.05/output/build/nasm-2.11.02'
> mkdir -p /usr/bin
> /usr/bin/install -c nasm /usr/bin/nasm
> /usr/bin/install: cannot remove ?/usr/bin/nasm?: Permission denied
> make[1]: *** [install] Error 1
> make[1]: Leaving directory
> `/home/mbs/Desktop/testing/staging/buildroot-2014.05/output/build/nasm-2.11.02'
> make: ***
> [/home/mbs/Desktop/testing/staging/buildroot-2014.05/output/build/nasm-2.11.02/.stamp_target_installed]
> Error 2
> 

 Actually, we don't support nasm for the target. Since we don't have a compiler
on the target, nasm is quite useless. It is not possible to select nasm in the
menuconfig - that you can build it with 'make nasm' is an oversight on our part
which I'll fix shortly.

 That said, the issue is that nasm is not a proper autotools package: it uses
autoconf but not automake. And in its handwritten Makefile.in, it uses
INSTALLROOT instead of DESTDIR. For the host variant, it works because we don't
use DESTDIR there, just --prefix.

 So if you would want nasm on the target (but you don't want that!), you should
add the following to nasm.mk:

NASM_INSTALL_TARGET_OPT = INSTALLROOT=$$(TARGET_DIR) install


 Regards,
 Arnout

> 
> I'm fairly new to buildroot and I'm not entirely sure what's going on here. I've
> tried looking at nasm.mk <http://nasm.mk> file but its pretty much just relying
> on the autotools-package to perform the build.
> 
> Mike
> 
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
> 


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

      reply	other threads:[~2014-07-14  5:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-11 17:58 [Buildroot] nasm package error installing to target Michael Sumulong
2014-07-14  5:59 ` Arnout Vandecappelle [this message]

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=53C371D6.4060404@mind.be \
    --to=arnout@mind.be \
    --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