From: Pavel Roskin <proski@gnu.org>
To: PAN Sunny S K <sunnypan@ust.hk>
Cc: linux-wireless@vger.kernel.org
Subject: Re: Building of compat-wireless-old in 2.6.25 BSP kernel for PowerPC architecture
Date: Wed, 27 Jan 2010 17:02:21 -0500 [thread overview]
Message-ID: <1264629741.19648.25.camel@mj> (raw)
In-Reply-To: <47088.143.89.144.207.1264589300.squirrel@sqmail.ust.hk>
On Wed, 2010-01-27 at 18:48 +0800, PAN Sunny S K wrote:
> So what I did to build the driver is to provide the KLIB and KLIB_BUILD
> with the path of 2.6.25 source and modified the CROSS_COMPILE variable in
> the .config of the kernel to make sure it uses the MPC8377 toolchain to
> compile the source. However, the following error occurred (With my latest
> trial of the bleeding edge compat-wireless-2.6):
>
> make -C /MyProject/ltib-mpc8377ewlan-20090922/rpm/BUILD/linux-2.6.25
> M=/root/Desktop/compat-wireless-2009-12-11 modules
> make[1]: Entering directory
> `/MyProject/ltib-mpc8377ewlan-20090922/rpm/BUILD/linux-2.6.25'
> CC [M]
> /root/Desktop/compat-wireless-2009-12-11/drivers/misc/eeprom/eeprom_93cx6.o
> cc1: error: unrecognized command line option "-mno-red-zone"
> cc1: error: unrecognized command line option "-mcmodel=kernel"
> cc1: error: unrecognized command line option "-maccumulate-outgoing-args"
> /root/Desktop/compat-wireless-2009-12-11/drivers/misc/eeprom/eeprom_93cx6.c:1:
> error: -m64 not supported in this configuration
It looks like the compiler just cannot compile the kernel code.
-maccumulate-outgoing-args is only used on the x86 architecture, so I
assume the build system is picking up x86 makefiles while using a
PowerPC compiler.
I think ARCH should be specified on the make command line in addition to
other arguments:
make ARCH=powerpc
--
Regards,
Pavel Roskin
prev parent reply other threads:[~2010-01-27 22:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-26 6:44 Building of compat-wireless-old in 2.6.25 BSP kernel for PowerPC architecture PAN Sunny S K
2010-01-26 7:28 ` Pavel Roskin
2010-01-26 16:31 ` X Xiao
2010-01-26 16:53 ` Luis R. Rodriguez
2010-01-27 10:48 ` PAN Sunny S K
2010-01-27 18:06 ` Luis R. Rodriguez
2010-01-29 6:41 ` PAN Sunny S K
2010-01-29 17:35 ` Pavel Roskin
2010-02-01 4:06 ` PAN Sunny S K
2010-02-01 4:14 ` Gábor Stefanik
2010-02-01 4:29 ` PAN Sunny S K
2010-02-01 18:03 ` Gábor Stefanik
2010-02-02 12:15 ` Sunny Pan
2010-01-27 22:02 ` Pavel Roskin [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=1264629741.19648.25.camel@mj \
--to=proski@gnu.org \
--cc=linux-wireless@vger.kernel.org \
--cc=sunnypan@ust.hk \
/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