Re: Building the kernel with Cygwin
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? -> [EMAIL PROTECTED] Cygwin Co-Project Leader[EMAIL PROTECTED] TimeSys, Inc. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: Building the kernel with Cygwin
- Original Message - From: "linux-os (Dick Johnson)" <[EMAIL PROTECTED]> 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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: Building the kernel with Cygwin
- Original Message - From: linux-os (Dick Johnson) [EMAIL PROTECTED] 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 - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: Building the kernel with Cygwin
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? - [EMAIL PROTECTED] Cygwin Co-Project Leader[EMAIL PROTECTED] TimeSys, Inc. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: Building the kernel with Cygwin
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 Faylorspammer? -> [EMAIL PROTECTED] > Cygwin Co-Project Leader [EMAIL PROTECTED] > 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 [EMAIL PROTECTED] - and destroy all copies of this information, including any attachments, without reading or disclosing them. Thank you. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: Building the kernel with Cygwin
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? -> [EMAIL PROTECTED] Cygwin Co-Project Leader[EMAIL PROTECTED] TimeSys, Inc. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: Building the kernel with Cygwin
On 8/25/05, Chris du Quesnay <[EMAIL PROTECTED]> 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 cygwin-warnings.patch Description: Binary data #!/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
Re: Building the kernel with Cygwin
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)" <[EMAIL PROTECTED]> >> Reply-To: "linux-os (Dick Johnson)" <[EMAIL PROTECTED]> >> To: "Chris du Quesnay" <[EMAIL PROTECTED]> >> CC: >> 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 [EMAIL PROTECTED] - 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=byoa/prem=1994=1034=http://hotmail.com/enca=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 [EMAIL PROTECTED] - and destroy all copies of this information, including any attachments, without reading or disclosing them. Thank you. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: Building the kernel with Cygwin
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)" <[EMAIL PROTECTED]> Reply-To: "linux-os (Dick Johnson)" <[EMAIL PROTECTED]> To: "Chris du Quesnay" <[EMAIL PROTECTED]> CC: 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 [EMAIL PROTECTED] - 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=byoa/prem=1994=1034=http://hotmail.com/enca=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
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? > 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 [EMAIL PROTECTED] - and destroy all copies of this information, including any attachments, without reading or disclosing them. Thank you. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Building the kernel with Cygwin
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! - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Building the kernel with Cygwin
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! - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
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? 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 [EMAIL PROTECTED] - and destroy all copies of this information, including any attachments, without reading or disclosing them. Thank you. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: Building the kernel with Cygwin
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) [EMAIL PROTECTED] Reply-To: linux-os (Dick Johnson) [EMAIL PROTECTED] To: Chris du Quesnay [EMAIL PROTECTED] 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 [EMAIL PROTECTED] - 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-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: Building the kernel with Cygwin
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) [EMAIL PROTECTED] Reply-To: linux-os (Dick Johnson) [EMAIL PROTECTED] To: Chris du Quesnay [EMAIL PROTECTED] 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 [EMAIL PROTECTED] - 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-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=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 [EMAIL PROTECTED] - and destroy all copies of this information, including any attachments, without reading or disclosing them. Thank you. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: Building the kernel with Cygwin
On 8/25/05, Chris du Quesnay [EMAIL PROTECTED] 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 cygwin-warnings.patch Description: Binary data #!/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_COMPILEgcc $WHAT
Re: Building the kernel with Cygwin
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? - [EMAIL PROTECTED] Cygwin Co-Project Leader[EMAIL PROTECTED] TimeSys, Inc. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: Building the kernel with Cygwin
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 Faylorspammer? - [EMAIL PROTECTED] Cygwin Co-Project Leader [EMAIL PROTECTED] 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 [EMAIL PROTECTED] - and destroy all copies of this information, including any attachments, without reading or disclosing them. Thank you. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/