Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Bernhard Fischer <rep.dot.nop@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] pciutils-2.2.6 fails to build for powerpc  405
Date: Thu, 13 Sep 2007 11:26:15 +0200	[thread overview]
Message-ID: <20070913092615.GA15641@aon.at> (raw)
In-Reply-To: <D61182AC8012EA4EBC531B3AF23BE1093F1374@tranzeo-mail2.12stewart.tranzeo.com>

On Wed, Sep 12, 2007 at 10:53:17AM -0700, Darcy Watkins wrote:
>Hello,
>
>I tried to build the pciutils package for my powerpc 405 system, but it
>broke.
>
>i386-ports.c includes i386-io-linux.h which includes sys/io.h
>
>The error is: sys/io.h: No such file or directory.
>
>But the whole thing appears suspicious because I am building for powerpc
>405 not for i386 so I think that the package must really be broken in
>the make scripts since it shouldn't be building 1386 dependent files
>when cross compiling for powerpc.
>
>The problem appears to be line #23 of the pciutils-2.2.6/lib/configure
>script in the pciutils source.  Line #15 was patched to not have the
>"sys" variable be derived from the build host, but line #23 has:
>
>   cpu=`uname -m | sed ' ... black magic stuff ...'`
>
>The result is that pciutils is configured for i386 (my build host cpu
>type) and then it attempts to cross compile it for powerpc.
>
>I think that the short solution is to patch line #23 so that it derives
>cpu from architecture variables instead of the output of uname.

Sounds ok. Is this already fixed updstream? If not it would be nice if
you could make sure that we can inherit a working version from
upstream..

  reply	other threads:[~2007-09-13  9:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-12 17:53 [Buildroot] pciutils-2.2.6 fails to build for powerpc 405 Darcy Watkins
2007-09-13  9:26 ` Bernhard Fischer [this message]
2007-09-14 15:01   ` Darcy Watkins
2008-02-13 18:05     ` Darcy Watkins
2008-02-13 18:14       ` Darcy Watkins
     [not found]       ` <mj+md-20080213.180833.12781.albireo@ucw.cz>
2008-02-13 19:45         ` Darcy Watkins
  -- strict thread matches above, loose matches on Subject: below --
2008-02-14 21:57 Steve Calfee
2008-02-14 22:53 ` Darcy Watkins

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=20070913092615.GA15641@aon.at \
    --to=rep.dot.nop@gmail.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