* Compile error with make bootpfile (2.6.25.4)
@ 2008-05-26 19:07 Wakko Warner
2008-05-27 18:24 ` Rakib Mullick
0 siblings, 1 reply; 2+ messages in thread
From: Wakko Warner @ 2008-05-26 19:07 UTC (permalink / raw)
To: linux-kernel
I'm cross compiling a kernel for my alpha on x86. I'm seeing this:
gcc -Wp,-MD,arch/alpha/boot/tools/.objstrip.d -Iarch/alpha/boot -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o arch/alpha/boot/tools/objstrip /usr/src/linux/dist/2.6.25.4/arch/alpha/boot/tools/objstrip.c
/usr/src/linux/dist/2.6.25.4/arch/alpha/boot/tools/objstrip.c: In function 'main':
/usr/src/linux/dist/2.6.25.4/arch/alpha/boot/tools/objstrip.c:189: warning: format '%#016lx' expects type 'long unsigned int', but argument 5 has type 'Elf32_Addr'
/usr/src/linux/dist/2.6.25.4/arch/alpha/boot/tools/objstrip.c:196: error: 'struct exec' has no member named 'fh'
/usr/src/linux/dist/2.6.25.4/arch/alpha/boot/tools/objstrip.c:202: error: 'struct exec' has no member named 'fh'
/usr/src/linux/dist/2.6.25.4/arch/alpha/boot/tools/objstrip.c:202: error: 'struct exec' has no member named 'ah'
/usr/src/linux/dist/2.6.25.4/arch/alpha/boot/tools/objstrip.c:214: error: 'struct exec' has no member named 'ah'
/usr/src/linux/dist/2.6.25.4/arch/alpha/boot/tools/objstrip.c:214: error: 'struct exec' has no member named 'ah'
/usr/src/linux/dist/2.6.25.4/arch/alpha/boot/tools/objstrip.c:215: error: 'struct exec' has no member named 'ah'
/usr/src/linux/dist/2.6.25.4/arch/alpha/boot/tools/objstrip.c:219: error: 'struct exec' has no member named 'ah'
/usr/src/linux/dist/2.6.25.4/arch/alpha/boot/tools/objstrip.c:220: error: 'struct exec' has no member named 'ah'
/usr/src/linux/dist/2.6.25.4/arch/alpha/boot/tools/objstrip.c:263: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'size_t'
make[2]: *** [arch/alpha/boot/tools/objstrip] Error 1
make[1]: *** [bootpfile] Error 2
make: *** [sub-make] Error 2
make: Leaving directory `/usr/src/linux/dist/2.6.25.4'
I called make like this:
make -C /usr/src/linux/dist/2.6.25.4 O=$PWD ARCH=alpha V=1 CROSS_COMPILE=alpha-linux-gnu- bootpfile
My host gcc is:
gcc (GCC) 4.1.3 20070514 (prerelease) (Debian 4.1.2-7)
My target gcc is:
alpha-linux-gnu-gcc (GCC) 4.1.3 20070514 (prerelease) (Debian 4.1.2-7)
I decided to just copy over the sources so that I wouldn't need the -C and
O= on the make line. I also modified the Make file so that I didn't need to
specify ARCH and CROSS_COMPILE. I removed support for a.out in objstrip. I
was finally able to get it to compile, but it still didn't work. Not sure
if it was due to the fact it's using x86 headers instead of alpha headers or
what.
I tried asking on linux-alpha, but that list seems to be fairly dead.
--
Lab tests show that use of micro$oft causes cancer in lab animals
Got Gas???
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Compile error with make bootpfile (2.6.25.4)
2008-05-26 19:07 Compile error with make bootpfile (2.6.25.4) Wakko Warner
@ 2008-05-27 18:24 ` Rakib Mullick
0 siblings, 0 replies; 2+ messages in thread
From: Rakib Mullick @ 2008-05-27 18:24 UTC (permalink / raw)
To: linux-kernel
On 5/27/08, Wakko Warner <wakko@animx.eu.org> wrote:
> I'm cross compiling a kernel for my alpha on x86. I'm seeing this:
> gcc -Wp,-MD,arch/alpha/boot/tools/.objstrip.d -Iarch/alpha/boot -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o arch/alpha/boot/tools/objstrip /usr/src/linux/dist/2.6.25.4/arch/alpha/boot/tools/objstrip.c
> /usr/src/linux/dist/2.6.25.4/arch/alpha/boot/tools/objstrip.c: In function 'main':
> /usr/src/linux/dist/2.6.25.4/arch/alpha/boot/tools/objstrip.c:189: warning: format '%#016lx' expects type 'long unsigned int', but argument 5 has type 'Elf32_Addr'
> /usr/src/linux/dist/2.6.25.4/arch/alpha/boot/tools/objstrip.c:196: error: 'struct exec' has no member named 'fh'
> /usr/src/linux/dist/2.6.25.4/arch/alpha/boot/tools/objstrip.c:202: error: 'struct exec' has no member named 'fh'
> /usr/src/linux/dist/2.6.25.4/arch/alpha/boot/tools/objstrip.c:202: error: 'struct exec' has no member named 'ah'
> /usr/src/linux/dist/2.6.25.4/arch/alpha/boot/tools/objstrip.c:214: error: 'struct exec' has no member named 'ah'
> /usr/src/linux/dist/2.6.25.4/arch/alpha/boot/tools/objstrip.c:214: error: 'struct exec' has no member named 'ah'
> /usr/src/linux/dist/2.6.25.4/arch/alpha/boot/tools/objstrip.c:215: error: 'struct exec' has no member named 'ah'
> /usr/src/linux/dist/2.6.25.4/arch/alpha/boot/tools/objstrip.c:219: error: 'struct exec' has no member named 'ah'
> /usr/src/linux/dist/2.6.25.4/arch/alpha/boot/tools/objstrip.c:220: error: 'struct exec' has no member named 'ah'
> /usr/src/linux/dist/2.6.25.4/arch/alpha/boot/tools/objstrip.c:263: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'size_t'
> make[2]: *** [arch/alpha/boot/tools/objstrip] Error 1
> make[1]: *** [bootpfile] Error 2
> make: *** [sub-make] Error 2
> make: Leaving directory `/usr/src/linux/dist/2.6.25.4'
>
> I called make like this:
> make -C /usr/src/linux/dist/2.6.25.4 O=$PWD ARCH=alpha V=1 CROSS_COMPILE=alpha-linux-gnu- bootpfile
>
> My host gcc is:
> gcc (GCC) 4.1.3 20070514 (prerelease) (Debian 4.1.2-7)
>
> My target gcc is:
> alpha-linux-gnu-gcc (GCC) 4.1.3 20070514 (prerelease) (Debian 4.1.2-7)
>
> I decided to just copy over the sources so that I wouldn't need the -C and
> O= on the make line. I also modified the Make file so that I didn't need to
> specify ARCH and CROSS_COMPILE. I removed support for a.out in objstrip. I
> was finally able to get it to compile, but it still didn't work. Not sure
> if it was due to the fact it's using x86 headers instead of alpha headers or
> what.
>
> I tried asking on linux-alpha, but that list seems to be fairly dead.
>
> --
> Lab tests show that use of micro$oft causes cancer in lab animals
> Got Gas???
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
In u'r .config file , have u enable for both ELF & a.out support.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-27 18:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-26 19:07 Compile error with make bootpfile (2.6.25.4) Wakko Warner
2008-05-27 18:24 ` Rakib Mullick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®