Ok, I am answering myself. I reread the README of devkitcube, and I put
alias:
alias powerpc-eabi-elf-gcc = 'powerpc-eabi-elf-gcc
-I/cygdrive/c/devkitcube/powerpc-eabi-elf/include'
alias powerpc-eabi-elf-gcc = 'powerpc-eabi-elf-gcc
-L/cygdrive/c/devkitcube/powerpc-eabi-elf/lib'
But still the makefile is using gcc (I turn Verbose on) and I get:
make -f scripts/Makefile.build obj=scripts
gcc -Wp,-MD,scripts/.fixdep.d -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -o scripts/fixdep scripts/fixdep.c
make -f scripts/Makefile.build obj=scripts/genksyms
gcc -o scripts/genksyms/genksyms scripts/genksyms/genksyms.o
scripts/genksyms/parse.o scripts/genksyms/lex.o
gcc -Wp,-MD,scripts/.split-include.d -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -o scripts/split-include scripts/split-include.c
gcc -Wp,-MD,scripts/.conmakehash.d -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -o scripts/conmakehash scripts/conmakehash.c
gcc -Wp,-MD,scripts/.docproc.d -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -o scripts/docproc scripts/docproc.c
gcc -Wp,-MD,scripts/.kallsyms.d -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -o scripts/kallsyms scripts/kallsyms.c
powerpc-eabi-elf-gcc -Wp,-MD,scripts/.empty.o.d -nostdinc
-iwithprefix include -D__KERNEL__ -Iinclude -Iarch/ppc -D__KERNEL__
-Iinclude -Iarch/ppc -Wall -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -fno-common -Iarch/ppc -msoft-float -pipe
-ffixed-r2 -Wno-uninitialized -mmultiple -mstring -O2
-fomit-frame-pointer -DKBUILD_BASENAME=empty -DKBUILD_MODNAME=empty
-c -o scripts/.tmp_empty.o scripts/empty.c
gcc -Wp,-MD,scripts/.mk_elfconfig.d -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -o scripts/mk_elfconfig scripts/mk_elfconfig.c
scripts/mk_elfconfig.c:4:17: elf.h: No such file or directory
scripts/mk_elfconfig.c: In function `main':
scripts/mk_elfconfig.c:9: error: `EI_NIDENT' undeclared (first use in
this function)
scripts/mk_elfconfig.c:9: error: (Each undeclared identifier is reported
only once
scripts/mk_elfconfig.c:9: error: for each function it appears in.)
scripts/mk_elfconfig.c:19: error: `ELFMAG' undeclared (first use in this
function)
scripts/mk_elfconfig.c:19: error: `SELFMAG' undeclared (first use in
this function)
scripts/mk_elfconfig.c:23: error: `EI_CLASS' undeclared (first use in
this function)
scripts/mk_elfconfig.c:24: error: `ELFCLASS32' undeclared (first use in
this function)
scripts/mk_elfconfig.c:27: error: `ELFCLASS64' undeclared (first use in
this function)
scripts/mk_elfconfig.c:33: error: `EI_DATA' undeclared (first use in
this function)
scripts/mk_elfconfig.c:34: error: `ELFDATA2LSB' undeclared (first use in
this function)
scripts/mk_elfconfig.c:37: error: `ELFDATA2MSB' undeclared (first use in
this function)
scripts/mk_elfconfig.c:9: warning: unused variable `ei'
make[1]: *** [scripts/mk_elfconfig] Error 1
make: *** [scripts] Error 2
any trick very welcome...
thanks
mathieu
Mathieu wrote:
> Hi,
>
> I have just download devkitcube-r1.zip,
> 1. set PATH to /home/mathieu/GameCube/devkitcube/bin.
> 2. download linux261
> 3. cvs up gc-linux
> 4. copy gc-linux cvs over linux261
> 5 copy arch/ppc/configs/gamecube_defconfig to linux-2.6.1/.config
> 6 cd linux-2.6.1, and then I type make
>
> Here is what I get:
>
> HOSTCC scripts/fixdep
> HOSTLD scripts/genksyms/genksyms
> HOSTCC scripts/split-include
> HOSTCC scripts/conmakehash
> HOSTCC scripts/docproc
> HOSTCC scripts/kallsyms
> CC scripts/empty.o
> HOSTCC scripts/mk_elfconfig
> scripts/mk_elfconfig.c:4:17: elf.h: No such file or directory
> scripts/mk_elfconfig.c: In function `main':
> scripts/mk_elfconfig.c:9: error: `EI_NIDENT' undeclared (first use in
> this function)
> scripts/mk_elfconfig.c:9: error: (Each undeclared identifier is reported
> only once
> scripts/mk_elfconfig.c:9: error: for each function it appears in.)
> scripts/mk_elfconfig.c:19: error: `ELFMAG' undeclared (first use in this
> function)
> scripts/mk_elfconfig.c:19: error: `SELFMAG' undeclared (first use in
> this function)
> scripts/mk_elfconfig.c:23: error: `EI_CLASS' undeclared (first use in
> this function)
> scripts/mk_elfconfig.c:24: error: `ELFCLASS32' undeclared (first use in
> this function)
> scripts/mk_elfconfig.c:27: error: `ELFCLASS64' undeclared (first use in
> this function)
> scripts/mk_elfconfig.c:33: error: `EI_DATA' undeclared (first use in
> this function)
> scripts/mk_elfconfig.c:34: error: `ELFDATA2LSB' undeclared (first use in
> this function)
> scripts/mk_elfconfig.c:37: error: `ELFDATA2MSB' undeclared (first use in
> this function)
> scripts/mk_elfconfig.c:9: warning: unused variable `ei'
> make[1]: *** [scripts/mk_elfconfig] Error 1
> make: *** [scripts] Error 2
>
>
> What am I doing wrong
>
> Thanks a bunch
> Mathieu
> Ps: I had to remove the cygwin1.dll that come with the devkitcube,
> otherwise I get:
> cygheap version mismatch detected - 0x61600000/0x615F0000 ...
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
|