* Building the kernel with Cygwin
@ 2005-08-25 15:27 Chris du Quesnay
2005-08-25 15:42 ` linux-os (Dick Johnson)
0 siblings, 1 reply; 9+ messages in thread
From: Chris du Quesnay @ 2005-08-25 15:27 UTC (permalink / raw)
To: linux-kernel
Hi. I am newbie at GNU/linux.
I am trying to build a kernel (2.6.12) for a powerpc target using cygwin on
my i686 machine. I have
Windows 2000 as my operating system.
I have recent versions of cygwin (with GNU make 3.80), binutils for the
powerpc (gcc v 3.3.1, ld v 2.14)
I set
ARCH=ppc
CROSS_COMPILE= powerpc-ibm-eabi-
and I add the cross compiler/build directory to my path.
After untaring the kernel, I issue the
make mrproper, which appears to work.
Then I issue
make menuconfig
and I get the following error, which I can't seem to get around:
HOSTCC scripts/basic/fixdep
fixdep: no such file or directory
make[1]:*** [scripts/basic/fixdep] Error 2
make[1] Leaving directory /cygdrive/c/Linux_amcc/linux-2.6.12
Can you suggest what the problem might be? Should I be able to build the
kernel
with cygwin?
_________________________________________________________________
Don't just Search. Find! http://search.sympatico.msn.ca/default.aspx The new
MSN Search! Check it out!
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Building the kernel with Cygwin
2005-08-25 15:27 Building the kernel with Cygwin Chris du Quesnay
@ 2005-08-25 15:42 ` linux-os (Dick Johnson)
2005-08-25 16:54 ` Chris du Quesnay
0 siblings, 1 reply; 9+ messages in thread
From: linux-os (Dick Johnson) @ 2005-08-25 15:42 UTC (permalink / raw)
To: Chris du Quesnay; +Cc: linux-kernel
On Thu, 25 Aug 2005, Chris du Quesnay wrote:
> Hi. I am newbie at GNU/linux.
>
> I am trying to build a kernel (2.6.12) for a powerpc target using cygwin on
> my i686 machine. I have
> Windows 2000 as my operating system.
>
> I have recent versions of cygwin (with GNU make 3.80), binutils for the
> powerpc (gcc v 3.3.1, ld v 2.14)
>
> I set
> ARCH=ppc
> CROSS_COMPILE= powerpc-ibm-eabi-
>
> and I add the cross compiler/build directory to my path.
>
> After untaring the kernel, I issue the
> make mrproper, which appears to work.
>
> Then I issue
> make menuconfig
>
> and I get the following error, which I can't seem to get around:
>
> HOSTCC scripts/basic/fixdep
> fixdep: no such file or directory
> make[1]:*** [scripts/basic/fixdep] Error 2
> make[1] Leaving directory /cygdrive/c/Linux_amcc/linux-2.6.12
>
>
> Can you suggest what the problem might be? Should I be able to build the
> kernel
> with cygwin?
>
Try this temporary work-around:
cd /cygdrive/c/Linux_amcc/linux-2.6.12/scripts/basic
gcc -O2 -o fixdep fixdep.c
You may also have to do the same thing for docproc, i.e.,
gcc -O2 -o docproc docproc.c
Others may tell you what's wrong, but at least this should get
you started.
Cheers,
Dick Johnson
Penguin : Linux version 2.6.12.5 on an i686 machine (5537.79 BogoMips).
Warning : 98.36% of all statistics are fiction.
.
I apologize for the following. I tried to kill it with the above dot :
****************************************************************
The information transmitted in this message is confidential and may be privileged. Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to DeliveryErrors@analogic.com - and destroy all copies of this information, including any attachments, without reading or disclosing them.
Thank you.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Building the kernel with Cygwin
2005-08-25 15:42 ` linux-os (Dick Johnson)
@ 2005-08-25 16:54 ` Chris du Quesnay
2005-08-25 17:05 ` linux-os (Dick Johnson)
2005-08-25 17:14 ` Dmitry Torokhov
0 siblings, 2 replies; 9+ messages in thread
From: Chris du Quesnay @ 2005-08-25 16:54 UTC (permalink / raw)
To: linux-os; +Cc: linux-kernel
Hi Dick. Thanks for your suggestion.
I tried it, however, and attempted the make again, and got the same error.
The scripts/basic directory contains a fixdep.exe after the make is run.
There is
no fixdep file. I tried renaming the fixdep.exe to fixdep, but that also
resulted in
the same make error.
Any further suggestions?
Thx,
Chris.
>From: "linux-os (Dick Johnson)" <linux-os@analogic.com>
>Reply-To: "linux-os (Dick Johnson)" <linux-os@analogic.com>
>To: "Chris du Quesnay" <duquesnay@hotmail.com>
>CC: <linux-kernel@vger.kernel.org>
>Subject: Re: Building the kernel with Cygwin
>Date: Thu, 25 Aug 2005 11:42:46 -0400
>
>
>On Thu, 25 Aug 2005, Chris du Quesnay wrote:
>
> > Hi. I am newbie at GNU/linux.
> >
> > I am trying to build a kernel (2.6.12) for a powerpc target using
>cygwin on
> > my i686 machine. I have
> > Windows 2000 as my operating system.
> >
> > I have recent versions of cygwin (with GNU make 3.80), binutils for the
> > powerpc (gcc v 3.3.1, ld v 2.14)
> >
> > I set
> > ARCH=ppc
> > CROSS_COMPILE= powerpc-ibm-eabi-
> >
> > and I add the cross compiler/build directory to my path.
> >
> > After untaring the kernel, I issue the
> > make mrproper, which appears to work.
> >
> > Then I issue
> > make menuconfig
> >
> > and I get the following error, which I can't seem to get around:
> >
> > HOSTCC scripts/basic/fixdep
> > fixdep: no such file or directory
> > make[1]:*** [scripts/basic/fixdep] Error 2
> > make[1] Leaving directory /cygdrive/c/Linux_amcc/linux-2.6.12
> >
> >
> > Can you suggest what the problem might be? Should I be able to build
>the
> > kernel
> > with cygwin?
> >
>
>Try this temporary work-around:
>
>cd /cygdrive/c/Linux_amcc/linux-2.6.12/scripts/basic
>gcc -O2 -o fixdep fixdep.c
>
>You may also have to do the same thing for docproc, i.e.,
>gcc -O2 -o docproc docproc.c
>
>Others may tell you what's wrong, but at least this should get
>you started.
>
>
>Cheers,
>Dick Johnson
>Penguin : Linux version 2.6.12.5 on an i686 machine (5537.79 BogoMips).
>Warning : 98.36% of all statistics are fiction.
>.
>I apologize for the following. I tried to kill it with the above dot :
>
>****************************************************************
>The information transmitted in this message is confidential and may be
>privileged. Any review, retransmission, dissemination, or other use of
>this information by persons or entities other than the intended recipient
>is prohibited. If you are not the intended recipient, please notify
>Analogic Corporation immediately - by replying to this message or by
>sending an email to DeliveryErrors@analogic.com - and destroy all copies of
>this information, including any attachments, without reading or disclosing
>them.
>
>Thank you.
_________________________________________________________________
Take advantage of powerful junk e-mail filters built on patented Microsoft®
SmartScreen Technology.
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
Start enjoying all the benefits of MSN® Premium right now and get the
first two months FREE*.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Building the kernel with Cygwin
2005-08-25 16:54 ` Chris du Quesnay
@ 2005-08-25 17:05 ` linux-os (Dick Johnson)
2005-08-25 18:45 ` Christopher Faylor
2005-08-25 17:14 ` Dmitry Torokhov
1 sibling, 1 reply; 9+ messages in thread
From: linux-os (Dick Johnson) @ 2005-08-25 17:05 UTC (permalink / raw)
To: Chris du Quesnay; +Cc: linux-kernel
On Thu, 25 Aug 2005, Chris du Quesnay wrote:
> Hi Dick. Thanks for your suggestion.
>
> I tried it, however, and attempted the make again, and got the same error.
>
> The scripts/basic directory contains a fixdep.exe after the make is run.
> There is
> no fixdep file. I tried renaming the fixdep.exe to fixdep, but that also
> resulted in
> the same make error.
>
> Any further suggestions?
> Thx,
> Chris.
>
Ah yes! The Makefile will not execute 'fixdep.exe` it executes
'fixdep' --hard coded. I don't know how well cygwin emulates
a Unix environment, but maybe you can use an alias???
.. Like...
alias fixdep='fixdep.exe'
If that doesn't work, you will probably find other problems
also, like the "*.o" files become "*.obj", etc. It might be
a lost cause. If it was my system, I'd get another hard-disk,
have a "regular" distribution install Linux on it, and set up
to dual-boot.
>
>> From: "linux-os (Dick Johnson)" <linux-os@analogic.com>
>> Reply-To: "linux-os (Dick Johnson)" <linux-os@analogic.com>
>> To: "Chris du Quesnay" <duquesnay@hotmail.com>
>> CC: <linux-kernel@vger.kernel.org>
>> Subject: Re: Building the kernel with Cygwin
>> Date: Thu, 25 Aug 2005 11:42:46 -0400
>>
>>
>> On Thu, 25 Aug 2005, Chris du Quesnay wrote:
>>
>>> Hi. I am newbie at GNU/linux.
>>>
>>> I am trying to build a kernel (2.6.12) for a powerpc target using
>> cygwin on
>>> my i686 machine. I have
>>> Windows 2000 as my operating system.
>>>
>>> I have recent versions of cygwin (with GNU make 3.80), binutils for the
>>> powerpc (gcc v 3.3.1, ld v 2.14)
>>>
>>> I set
>>> ARCH=ppc
>>> CROSS_COMPILE= powerpc-ibm-eabi-
>>>
>>> and I add the cross compiler/build directory to my path.
>>>
>>> After untaring the kernel, I issue the
>>> make mrproper, which appears to work.
>>>
>>> Then I issue
>>> make menuconfig
>>>
>>> and I get the following error, which I can't seem to get around:
>>>
>>> HOSTCC scripts/basic/fixdep
>>> fixdep: no such file or directory
>>> make[1]:*** [scripts/basic/fixdep] Error 2
>>> make[1] Leaving directory /cygdrive/c/Linux_amcc/linux-2.6.12
>>>
>>>
>>> Can you suggest what the problem might be? Should I be able to build
>> the
>>> kernel
>>> with cygwin?
>>>
>>
>> Try this temporary work-around:
>>
>> cd /cygdrive/c/Linux_amcc/linux-2.6.12/scripts/basic
>> gcc -O2 -o fixdep fixdep.c
>>
>> You may also have to do the same thing for docproc, i.e.,
>> gcc -O2 -o docproc docproc.c
>>
>> Others may tell you what's wrong, but at least this should get
>> you started.
>>
>>
>> Cheers,
>> Dick Johnson
>> Penguin : Linux version 2.6.12.5 on an i686 machine (5537.79 BogoMips).
>> Warning : 98.36% of all statistics are fiction.
>> .
>> I apologize for the following. I tried to kill it with the above dot :
>>
>> ****************************************************************
>> The information transmitted in this message is confidential and may be
>> privileged. Any review, retransmission, dissemination, or other use of
>> this information by persons or entities other than the intended recipient
>> is prohibited. If you are not the intended recipient, please notify
>> Analogic Corporation immediately - by replying to this message or by
>> sending an email to DeliveryErrors@analogic.com - and destroy all copies of
>> this information, including any attachments, without reading or disclosing
>> them.
>>
>> Thank you.
>
> _________________________________________________________________
> Take advantage of powerful junk e-mail filters built on patented Microsoft®
> SmartScreen Technology.
> http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
> Start enjoying all the benefits of MSN® Premium right now and get the
> first two months FREE*.
>
>
Cheers,
Dick Johnson
Penguin : Linux version 2.6.12.5 on an i686 machine (5537.79 BogoMips).
Warning : 98.36% of all statistics are fiction.
****************************************************************
The information transmitted in this message is confidential and may be privileged. Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to DeliveryErrors@analogic.com - and destroy all copies of this information, including any attachments, without reading or disclosing them.
Thank you.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Building the kernel with Cygwin
2005-08-25 16:54 ` Chris du Quesnay
2005-08-25 17:05 ` linux-os (Dick Johnson)
@ 2005-08-25 17:14 ` Dmitry Torokhov
1 sibling, 0 replies; 9+ messages in thread
From: Dmitry Torokhov @ 2005-08-25 17:14 UTC (permalink / raw)
To: Chris du Quesnay; +Cc: linux-os, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 577 bytes --]
On 8/25/05, Chris du Quesnay <duquesnay@hotmail.com> wrote:
> Hi Dick. Thanks for your suggestion.
>
> I tried it, however, and attempted the make again, and got the same error.
>
> The scripts/basic directory contains a fixdep.exe after the make is run.
> There is
> no fixdep file. I tried renaming the fixdep.exe to fixdep, but that also
> resulted in
> the same make error.
>
> Any further suggestions?
> Thx,
> Chris.
>
I use the following "cross" script to build for i386 on Cygwin. And
you need a patch, otherwise it won't build.
--
Dmitry
[-- Attachment #2: cygwin-warnings.patch --]
[-- Type: application/octet-stream, Size: 5493 bytes --]
Subject: Fix some warnings when copmpile on cygwin
When compiling on Cygwin there aere some warnings.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
---
lib/gen_crc32table.c | 4 ++--
scripts/kconfig/Makefile | 2 ++
scripts/mod/file2alias.c | 34 +++++++++++++++++-----------------
scripts/mod/sumversion.c | 2 +-
4 files changed, 22 insertions(+), 20 deletions(-)
Index: linux-2.6.12/scripts/mod/sumversion.c
===================================================================
--- linux-2.6.12.orig/scripts/mod/sumversion.c
+++ linux-2.6.12/scripts/mod/sumversion.c
@@ -218,7 +218,7 @@ static void md4_final_ascii(struct md4_c
cpu_to_le32_array(mctx->hash, sizeof(mctx->hash) / sizeof(uint32_t));
snprintf(out, len, "%08X%08X%08X%08X",
- mctx->hash[0], mctx->hash[1], mctx->hash[2], mctx->hash[3]);
+ (unsigned)mctx->hash[0], (unsigned)mctx->hash[1], (unsigned)mctx->hash[2], (unsigned)mctx->hash[3]);
}
static inline void add_char(unsigned char c, struct md4_ctx *md)
Index: linux-2.6.12/scripts/mod/file2alias.c
===================================================================
--- linux-2.6.12.orig/scripts/mod/file2alias.c
+++ linux-2.6.12/scripts/mod/file2alias.c
@@ -170,13 +170,13 @@ static int do_ieee1394_entry(const char
strcpy(alias, "ieee1394:");
ADD(alias, "ven", id->match_flags & IEEE1394_MATCH_VENDOR_ID,
- id->vendor_id);
+ (unsigned)id->vendor_id);
ADD(alias, "mo", id->match_flags & IEEE1394_MATCH_MODEL_ID,
- id->model_id);
+ (unsigned)id->model_id);
ADD(alias, "sp", id->match_flags & IEEE1394_MATCH_SPECIFIER_ID,
- id->specifier_id);
+ (unsigned)id->specifier_id);
ADD(alias, "ver", id->match_flags & IEEE1394_MATCH_VERSION,
- id->version);
+ (unsigned)id->version);
return 1;
}
@@ -197,10 +197,10 @@ static int do_pci_entry(const char *file
id->class_mask = TO_NATIVE(id->class_mask);
strcpy(alias, "pci:");
- ADD(alias, "v", id->vendor != PCI_ANY_ID, id->vendor);
- ADD(alias, "d", id->device != PCI_ANY_ID, id->device);
- ADD(alias, "sv", id->subvendor != PCI_ANY_ID, id->subvendor);
- ADD(alias, "sd", id->subdevice != PCI_ANY_ID, id->subdevice);
+ ADD(alias, "v", id->vendor != PCI_ANY_ID, (unsigned)id->vendor);
+ ADD(alias, "d", id->device != PCI_ANY_ID, (unsigned)id->device);
+ ADD(alias, "sv", id->subvendor != PCI_ANY_ID, (unsigned)id->subvendor);
+ ADD(alias, "sd", id->subdevice != PCI_ANY_ID, (unsigned)id->subdevice);
baseclass = (id->class) >> 16;
baseclass_mask = (id->class_mask) >> 16;
@@ -214,7 +214,7 @@ static int do_pci_entry(const char *file
|| (interface_mask != 0 && interface_mask != 0xFF)) {
fprintf(stderr,
"*** Warning: Can't handle masks in %s:%04X\n",
- filename, id->class_mask);
+ filename, (unsigned) id->class_mask);
return 0;
}
@@ -236,13 +236,13 @@ static int do_ccw_entry(const char *file
strcpy(alias, "ccw:");
ADD(alias, "t", id->match_flags&CCW_DEVICE_ID_MATCH_CU_TYPE,
- id->cu_type);
+ (unsigned)id->cu_type);
ADD(alias, "m", id->match_flags&CCW_DEVICE_ID_MATCH_CU_MODEL,
- id->cu_model);
+ (unsigned)id->cu_model);
ADD(alias, "dt", id->match_flags&CCW_DEVICE_ID_MATCH_DEVICE_TYPE,
- id->dev_type);
+ (unsigned)id->dev_type);
ADD(alias, "dm", id->match_flags&CCW_DEVICE_ID_MATCH_DEVICE_TYPE,
- id->dev_model);
+ (unsigned)id->dev_model);
return 1;
}
@@ -313,10 +313,10 @@ static int do_pcmcia_entry(const char *f
id->function);
ADD(alias, "pfn", id->match_flags & PCMCIA_DEV_ID_MATCH_DEVICE_NO,
id->device_no);
- ADD(alias, "pa", id->match_flags & PCMCIA_DEV_ID_MATCH_PROD_ID1, id->prod_id_hash[0]);
- ADD(alias, "pb", id->match_flags & PCMCIA_DEV_ID_MATCH_PROD_ID2, id->prod_id_hash[1]);
- ADD(alias, "pc", id->match_flags & PCMCIA_DEV_ID_MATCH_PROD_ID3, id->prod_id_hash[2]);
- ADD(alias, "pd", id->match_flags & PCMCIA_DEV_ID_MATCH_PROD_ID4, id->prod_id_hash[3]);
+ ADD(alias, "pa", id->match_flags & PCMCIA_DEV_ID_MATCH_PROD_ID1, (unsigned)id->prod_id_hash[0]);
+ ADD(alias, "pb", id->match_flags & PCMCIA_DEV_ID_MATCH_PROD_ID2, (unsigned)id->prod_id_hash[1]);
+ ADD(alias, "pc", id->match_flags & PCMCIA_DEV_ID_MATCH_PROD_ID3, (unsigned)id->prod_id_hash[2]);
+ ADD(alias, "pd", id->match_flags & PCMCIA_DEV_ID_MATCH_PROD_ID4, (unsigned)id->prod_id_hash[3]);
return 1;
}
Index: linux-2.6.12/lib/gen_crc32table.c
===================================================================
--- linux-2.6.12.orig/lib/gen_crc32table.c
+++ linux-2.6.12/lib/gen_crc32table.c
@@ -55,9 +55,9 @@ static void output_table(uint32_t table[
for (i = 0; i < len - 1; i++) {
if (i % ENTRIES_PER_LINE == 0)
printf("\n");
- printf("%s(0x%8.8xL), ", trans, table[i]);
+ printf("%s(0x%8.8xL), ", trans, (unsigned)table[i]);
}
- printf("%s(0x%8.8xL)\n", trans, table[len - 1]);
+ printf("%s(0x%8.8xL)\n", trans, (unsigned)table[len - 1]);
}
int main(int argc, char** argv)
Index: linux-2.6.12/scripts/kconfig/Makefile
===================================================================
--- linux-2.6.12.orig/scripts/kconfig/Makefile
+++ linux-2.6.12/scripts/kconfig/Makefile
@@ -108,6 +108,8 @@ clean-files := lkc_defs.h qconf.moc .tmp
HOSTCFLAGS_lex.zconf.o := -I$(src)
HOSTCFLAGS_zconf.tab.o := -I$(src)
+HOSTLOADLIBES_conf = -lintl
+
HOSTLOADLIBES_qconf = -L$(QTLIBPATH) -Wl,-rpath,$(QTLIBPATH) -l$(QTLIB) -ldl
HOSTCXXFLAGS_qconf.o = -I$(QTDIR)/include -D LKC_DIRECT_LINK
[-- Attachment #3: cross --]
[-- Type: text/plain, Size: 329 bytes --]
#!/bin/sh
export ARCH=i386
export CROSS_COMPILE=i686-unknown-linux-gnu-
W=/usr/local/crosstool/i686-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.2/bin
MAKE="make"
if [ -z "$1" ]
then
WHAT="vmlinux"
else
WHAT="$1"
fi
MAKE_ARGS="ARCH=i386 CROSS_COMPILE=$W/i686-unknown-linux-gnu-"
$MAKE $MAKE_ARGS CC="$W/$CROSS_COMPILE""gcc" $WHAT
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Building the kernel with Cygwin
2005-08-25 17:05 ` linux-os (Dick Johnson)
@ 2005-08-25 18:45 ` Christopher Faylor
2005-08-25 19:01 ` linux-os (Dick Johnson)
2005-08-27 0:45 ` Christopher Faylor
0 siblings, 2 replies; 9+ messages in thread
From: Christopher Faylor @ 2005-08-25 18:45 UTC (permalink / raw)
To: linux-kernel, linux-os (Dick Johnson), Chris du Quesnay
On Thu, Aug 25, 2005 at 01:05:24PM -0400, linux-os (Dick Johnson) wrote:
>On Thu, 25 Aug 2005, Chris du Quesnay wrote:
>>The scripts/basic directory contains a fixdep.exe after the make is
>>run. There is no fixdep file. I tried renaming the fixdep.exe to
>>fixdep, but that also resulted in the same make error.
>
>Ah yes! The Makefile will not execute 'fixdep.exe` it executes 'fixdep'
>--hard coded. I don't know how well cygwin emulates a Unix
>environment, but maybe you can use an alias??? .. Like... alias
>fixdep='fixdep.exe'
How about a symlink?
ln -s fixdep.exe fixdep
cgf
--
Christopher Faylor spammer? -> aaaspam@sourceware.org
Cygwin Co-Project Leader aaaspam@duffek.com
TimeSys, Inc.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Building the kernel with Cygwin
2005-08-25 18:45 ` Christopher Faylor
@ 2005-08-25 19:01 ` linux-os (Dick Johnson)
2005-08-27 0:45 ` Christopher Faylor
1 sibling, 0 replies; 9+ messages in thread
From: linux-os (Dick Johnson) @ 2005-08-25 19:01 UTC (permalink / raw)
To: Christopher Faylor; +Cc: linux-kernel, Chris du Quesnay
On Thu, 25 Aug 2005, Christopher Faylor wrote:
> On Thu, Aug 25, 2005 at 01:05:24PM -0400, linux-os (Dick Johnson) wrote:
>> On Thu, 25 Aug 2005, Chris du Quesnay wrote:
>>> The scripts/basic directory contains a fixdep.exe after the make is
>>> run. There is no fixdep file. I tried renaming the fixdep.exe to
>>> fixdep, but that also resulted in the same make error.
>>
>> Ah yes! The Makefile will not execute 'fixdep.exe` it executes 'fixdep'
>> --hard coded. I don't know how well cygwin emulates a Unix
>> environment, but maybe you can use an alias??? .. Like... alias
>> fixdep='fixdep.exe'
>
> How about a symlink?
>
> ln -s fixdep.exe fixdep
>
Maybe I don't know.
I have Cygwin on my laptop, but never put the kernel on it so
I haven't tried.
> cgf
> --
> Christopher Faylor spammer? -> aaaspam@sourceware.org
> Cygwin Co-Project Leader aaaspam@duffek.com
> TimeSys, Inc.
>
Cheers,
Dick Johnson
Penguin : Linux version 2.6.12.5 on an i686 machine (5537.79 BogoMips).
Warning : 98.36% of all statistics are fiction.
.
I apologize for the following. I tried to kill it with the above dot :
****************************************************************
The information transmitted in this message is confidential and may be privileged. Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to DeliveryErrors@analogic.com - and destroy all copies of this information, including any attachments, without reading or disclosing them.
Thank you.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Building the kernel with Cygwin
@ 2005-08-26 11:37 vadirajcs
0 siblings, 0 replies; 9+ messages in thread
From: vadirajcs @ 2005-08-26 11:37 UTC (permalink / raw)
To: linux-os (Dick Johnson); +Cc: Chris du Quesnay, linux-kernel
----- Original Message -----
From: "linux-os (Dick Johnson)" <linux-os@analogic.com>
Date: Thursday, August 25, 2005 9:12 pm
Subject: Re: Building the kernel with Cygwin
>
> On Thu, 25 Aug 2005, Chris du Quesnay wrote:
>
> > Hi. I am newbie at GNU/linux.
> >
> > I am trying to build a kernel (2.6.12) for a powerpc target
> using cygwin on
> > my i686 machine. I have
> > Windows 2000 as my operating system.
> >
> > I have recent versions of cygwin (with GNU make 3.80), binutils
> for the
> > powerpc (gcc v 3.3.1, ld v 2.14)
> >
> > I set
> > ARCH=ppc
> > CROSS_COMPILE= powerpc-ibm-eabi-
> >
> > and I add the cross compiler/build directory to my path.
> >
> > After untaring the kernel, I issue the
> > make mrproper, which appears to work.
> >
> > Then I issue
> > make menuconfig
> >
> > and I get the following error, which I can't seem to get around:
> >
> > HOSTCC scripts/basic/fixdep
> > fixdep: no such file or directory
> > make[1]:*** [scripts/basic/fixdep] Error 2
> > make[1] Leaving directory /cygdrive/c/Linux_amcc/linux-2.6.12
> >
> >
> > Can you suggest what the problem might be? Should I be able to
> build the
> > kernel
> > with cygwin?
I'm not sure if this is the issue. Usually the cross compilers on MS windows
expects windows file path "c:\" where as the cygwin makefile uses unix path "/".
You can verify that with verbose output of the commmand line of your cross
compiler to see what path is been used to fetch the file fixdep.
You could try giving windows absolute path.
> >
>
> Try this temporary work-around:
>
> cd /cygdrive/c/Linux_amcc/linux-2.6.12/scripts/basic
> gcc -O2 -o fixdep fixdep.c
>
> You may also have to do the same thing for docproc, i.e.,
> gcc -O2 -o docproc docproc.c
>
> Others may tell you what's wrong, but at least this should get
> you started.
Regards,
Vadiraj
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Building the kernel with Cygwin
2005-08-25 18:45 ` Christopher Faylor
2005-08-25 19:01 ` linux-os (Dick Johnson)
@ 2005-08-27 0:45 ` Christopher Faylor
1 sibling, 0 replies; 9+ messages in thread
From: Christopher Faylor @ 2005-08-27 0:45 UTC (permalink / raw)
To: linux-kernel, Chris du Quesnay
On Thu, Aug 25, 2005 at 02:45:51PM -0400, Christopher Faylor wrote:
>On Thu, Aug 25, 2005 at 01:05:24PM -0400, linux-os (Dick Johnson) wrote:
>>On Thu, 25 Aug 2005, Chris du Quesnay wrote:
>>>The scripts/basic directory contains a fixdep.exe after the make is
>>>run. There is no fixdep file. I tried renaming the fixdep.exe to
>>>fixdep, but that also resulted in the same make error.
>>
>>Ah yes! The Makefile will not execute 'fixdep.exe` it executes 'fixdep'
>>--hard coded. I don't know how well cygwin emulates a Unix
>>environment, but maybe you can use an alias??? .. Like... alias
>>fixdep='fixdep.exe'
>
>How about a symlink?
>
>ln -s fixdep.exe fixdep
FWIW, I've just built a linux kernel on my cygwin system using a ppc cross
compiler.
Here's roughly what I did (this is not verbatim what I did but it should
serve as a rough guide):
c:\>c:\cygwin\bin\bash
bash$ export PATH=/bin:$PATH
bash$ cd /tmp
bash$ wget http://cygwin.com/snapshots/cygwin-inst-20050826.tar.bz2
bash$ wget http://cygwin.com/snapshots/cygwin1-20050826.dll.bz2
bash$ wget ftp://ftp.kernel.org:/pub/linux/kernel/v2.6/linux-2.6.12.tar.bz2
bash$ bzip2 -d cygwin1-20050826.dll.bz2
bash$ cd /
bash$ # expect some errors about being unable to overwrite
bash$ # cygwin1.dll below
bash$ tar xjf /tmp/cygwin-inst-20050826.tar.bz2
bash$ # exit from the running cygwin process so that the cygwin DLL can
bash$ # be overwritten
bash$ exit
c:\>copy c:\cygwin\tmp\cygwin1-20050826.dll c:\cygwin\bin\cygwin1.dll
c:\>c:\cygwin\bin\bash
bash$ export PATH=/bin:/path-to-cross/compiler:$PATH
bash$ mkdir /cygdrive/c/managed /managed
bash$ mount -b -o managed c:/managed /managed
bash$ cd /managed
bash$ tar xjf /tmp/linux-2.6.12.tar.bz2
bash$ cd linux-2.6.12
bash$ make ARCH=ppc HOST_LOADLIBES=-lintl defconfig
bash$ make ARCH=ppc CROSS_COMPILE=ppc-linux-
Note that I have recently added the elf.h header files to cygwin so this
should allow the kernel to be built without any addition steps. But,
you need to download a cygwin snapshot to get this because the headers
aren't part of the latest version of cygwin yet. You also need to
specify HOST_LOADLIBES on the command line because it's required for
cygwin. Using a "managed" mount also allows the creation of files with
mixed case.
I haven't yet checked that the kernel produced from these steps works
but the make does seem to complete without error.
cgf
--
Christopher Faylor spammer? -> aaaspam@sourceware.org
Cygwin Co-Project Leader aaaspam@duffek.com
TimeSys, Inc.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2005-08-27 0:45 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-25 15:27 Building the kernel with Cygwin Chris du Quesnay
2005-08-25 15:42 ` linux-os (Dick Johnson)
2005-08-25 16:54 ` Chris du Quesnay
2005-08-25 17:05 ` linux-os (Dick Johnson)
2005-08-25 18:45 ` Christopher Faylor
2005-08-25 19:01 ` linux-os (Dick Johnson)
2005-08-27 0:45 ` Christopher Faylor
2005-08-25 17:14 ` Dmitry Torokhov
-- strict thread matches above, loose matches on Subject: below --
2005-08-26 11:37 vadirajcs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox