* MIPS kernel!
@ 2000-11-08 15:46 Nicu Popovici
2000-11-08 9:53 ` Kevin D. Kissell
0 siblings, 1 reply; 9+ messages in thread
From: Nicu Popovici @ 2000-11-08 15:46 UTC (permalink / raw)
To: linux-mips
[-- Attachment #1: Type: text/plain, Size: 2766 bytes --]
Hello ,
I tried to cross compile the kernel from ftp.embedix.com, meaning that
I found that this embedix Linux is made to work on any platform . I have
an Atlas board and a QED processsor ( a mips one ) and I fail in trying
to cross compile the linux-2.2.13. I get the following errors.
/home/nicu/Kituri/Lineo/linux-2.2.13/scripts/mkdep amigaffs.c bitmap.c
di
/home/nicu/Kituri/Lineo/linux-2.2.13/include/asm/atomic.h:47: invalid
operands to binary +
/home/nicu/Kituri/Lineo/linux-2.2.13/include/asm/atomic.h: In function
`atomic_sub':
/home/nicu/Kituri/Lineo/linux-2.2.13/include/asm/atomic.h:57: invalid
operands to binary -
/home/nicu/Kituri/Lineo/linux-2.2.13/include/asm/atomic.h: In function
`atomic_add_return':
/home/nicu/Kituri/Lineo/linux-2.2.13/include/asm/atomic.h:67:
incompatible types in assignment
/home/nicu/Kituri/Lineo/linux-2.2.13/include/asm/atomic.h:69:
incompatible types in assignment
/home/nicu/Kituri/Lineo/linux-2.2.13/include/asm/atomic.h: In function
`atomic_sub_return':
/home/nicu/Kituri/Lineo/linux-2.2.13/include/asm/atomic.h:81:
incompatible types in assignment
/home/nicu/Kituri/Lineo/linux-2.2.13/include/asm/atomic.h:83:
incompatible types in assignment
/home/nicu/Kituri/Lineo/linux-2.2.13/include/asm/timex.h: In function
`get_cycles':
In file included from
/home/nicu/Kituri/Lineo/linux-2.2.13/include/linux/timex.h:138,
from
/home/nicu/Kituri/Lineo/linux-2.2.13/include/linux/sched.h:14,
from
/home/nicu/Kituri/Lineo/linux-2.2.13/include/linux/mm.h:4,
from
/home/nicu/Kituri/Lineo/linux-2.2.13/include/linux/slab.h:14,
from
/home/nicu/Kituri/Lineo/linux-2.2.13/include/linux/malloc.h:4,
from
/home/nicu/Kituri/Lineo/linux-2.2.13/include/linux/proc_fs.h:5,
from init/main.c:15:
/home/nicu/Kituri/Lineo/linux-2.2.13/include/asm/timex.h:36: warning:
implicit declaration of function `read_32bit_cp0_register'
/home/nicu/Kituri/Lineo/linux-2.2.13/include/asm/timex.h:36: `CP0_COUNT'
undeclared (first use this function)
/home/nicu/Kituri/Lineo/linux-2.2.13/include/asm/timex.h:36: (Each
undeclared identifier is reported only once
/home/nicu/Kituri/Lineo/linux-2.2.13/include/asm/timex.h:36: for each
function it appears in.)
make: *** [init/main.o] Error 1
Another weird thing . When I received my Atlas board I gqt a CD with the
kernel sources and binaries. I installed the binaries on the Atlas board
and it works fine but when I tried to cross compile the kernel I get
some stupid errors like the one above. I realy do not understand
anything , does anyone cross compiled a kernele for MIPS processors and
Atlas boards ? The version is linux 2.2.12.( the Hard Hat Linux ).
Thak you for all your help.
Regards,
Nicu
[-- Attachment #2: Card for Nicu Popovici --]
[-- Type: text/x-vcard, Size: 259 bytes --]
begin:vcard
n:POPOVICI;Nicolae Octavian
tel;cell:+40 93 605020
x-mozilla-html:FALSE
org:SC Silicon Service SRL;Software
adr:;;;;;;
version:2.1
email;internet:octavp@isratech.ro
title:Software engineer
x-mozilla-cpt:;0
fn:Nicolae Octavian POPOVICI
end:vcard
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: MIPS kernel!
2000-11-08 15:46 MIPS kernel! Nicu Popovici
@ 2000-11-08 9:53 ` Kevin D. Kissell
2000-11-08 9:53 ` Kevin D. Kissell
2000-11-08 14:10 ` Ralf Baechle
0 siblings, 2 replies; 9+ messages in thread
From: Kevin D. Kissell @ 2000-11-08 9:53 UTC (permalink / raw)
To: Nicu Popovici, linux-mips
> I tried to cross compile the kernel from ftp.embedix.com, meaning that
> I found that this embedix Linux is made to work on any platform . I have
> an Atlas board and a QED processsor ( a mips one ) and I fail in trying
> to cross compile the linux-2.2.13. I get the following errors.
...
[errors snipped]
...
> Another weird thing . When I received my Atlas board I gqt a CD with the
> kernel sources and binaries. I installed the binaries on the Atlas board
> and it works fine but when I tried to cross compile the kernel I get
> some stupid errors like the one above. I realy do not understand
> anything , does anyone cross compiled a kernele for MIPS processors and
> Atlas boards ? The version is linux 2.2.12.( the Hard Hat Linux ).
In general, at MIPS, we generally build native or semi-native
(mipsel on mipseb machines and vice versa). In cross-builds
of other components, however, I have observed that problems
such as those you describe can result from include files
on the host platform being erroneously pulled in to the cross-build.
Cross-gcc and the makefiles have been known to be set up such
that, if the needed include file can be found neither in the explicitly
requested directories nor in the cross-compiler's default includes,
it will silently search the host /usr/include directories.
One quick-and-dirty way to test this would be to temporarily rename
/usr/include on your host platform to /usr/include.native or whatever,
and then make your /usr/include a symbolic link to the include
directory of your MIPS Linux tree. This should either let you build
correctly or give you a more useful error message telling you which
include file is missing from your cross-environment or MIPS kernel
distribution. Just don't forget to put things back the way they were!
Regards,
Kevin K.
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: MIPS kernel!
2000-11-08 9:53 ` Kevin D. Kissell
@ 2000-11-08 9:53 ` Kevin D. Kissell
2000-11-08 14:10 ` Ralf Baechle
1 sibling, 0 replies; 9+ messages in thread
From: Kevin D. Kissell @ 2000-11-08 9:53 UTC (permalink / raw)
To: Nicu Popovici, linux-mips
> I tried to cross compile the kernel from ftp.embedix.com, meaning that
> I found that this embedix Linux is made to work on any platform . I have
> an Atlas board and a QED processsor ( a mips one ) and I fail in trying
> to cross compile the linux-2.2.13. I get the following errors.
...
[errors snipped]
...
> Another weird thing . When I received my Atlas board I gqt a CD with the
> kernel sources and binaries. I installed the binaries on the Atlas board
> and it works fine but when I tried to cross compile the kernel I get
> some stupid errors like the one above. I realy do not understand
> anything , does anyone cross compiled a kernele for MIPS processors and
> Atlas boards ? The version is linux 2.2.12.( the Hard Hat Linux ).
In general, at MIPS, we generally build native or semi-native
(mipsel on mipseb machines and vice versa). In cross-builds
of other components, however, I have observed that problems
such as those you describe can result from include files
on the host platform being erroneously pulled in to the cross-build.
Cross-gcc and the makefiles have been known to be set up such
that, if the needed include file can be found neither in the explicitly
requested directories nor in the cross-compiler's default includes,
it will silently search the host /usr/include directories.
One quick-and-dirty way to test this would be to temporarily rename
/usr/include on your host platform to /usr/include.native or whatever,
and then make your /usr/include a symbolic link to the include
directory of your MIPS Linux tree. This should either let you build
correctly or give you a more useful error message telling you which
include file is missing from your cross-environment or MIPS kernel
distribution. Just don't forget to put things back the way they were!
Regards,
Kevin K.
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: MIPS kernel!
2000-11-08 9:53 ` Kevin D. Kissell
2000-11-08 9:53 ` Kevin D. Kissell
@ 2000-11-08 14:10 ` Ralf Baechle
2000-11-08 20:07 ` Kevin D. Kissell
[not found] ` <3A09D68C.AF1D5AAA@isratech.ro>
1 sibling, 2 replies; 9+ messages in thread
From: Ralf Baechle @ 2000-11-08 14:10 UTC (permalink / raw)
To: Kevin D. Kissell; +Cc: Nicu Popovici, linux-mips
On Wed, Nov 08, 2000 at 10:53:14AM +0100, Kevin D. Kissell wrote:
> In general, at MIPS, we generally build native or semi-native
> (mipsel on mipseb machines and vice versa). In cross-builds
> of other components, however, I have observed that problems
> such as those you describe can result from include files
> on the host platform being erroneously pulled in to the cross-build.
> Cross-gcc and the makefiles have been known to be set up such
> that, if the needed include file can be found neither in the explicitly
> requested directories nor in the cross-compiler's default includes,
> it will silently search the host /usr/include directories.
This is either a bug in the version that you're using, a wrongly installed
compiled or simply wrong -I directives passed to the compiler. The
crosscompiler rpms as distributed on oss will only search:
/usr/lib/gcc-lib/mips-linux/egcs-2.91.66/include
/usr/mips-linux/include
by default. I just tried, egcs-1.1.2-2 also doesn't search silently in
other directories. So it's not a problem of gcc itself which leaves the
makefiles. If you find any instance of the wrong directories being
searched, please tell me. Or better, include a patch :-)
Ralf
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: MIPS kernel!
2000-11-08 14:10 ` Ralf Baechle
@ 2000-11-08 20:07 ` Kevin D. Kissell
2000-11-08 20:11 ` Ralf Baechle
[not found] ` <3A09D68C.AF1D5AAA@isratech.ro>
1 sibling, 1 reply; 9+ messages in thread
From: Kevin D. Kissell @ 2000-11-08 20:07 UTC (permalink / raw)
To: Ralf Baechle; +Cc: Nicu Popovici, linux-mips
Ralf Baechle wrote:
>
> On Wed, Nov 08, 2000 at 10:53:14AM +0100, Kevin D. Kissell wrote:
>
> > In general, at MIPS, we generally build native or semi-native
> > (mipsel on mipseb machines and vice versa). In cross-builds
> > of other components, however, I have observed that problems
> > such as those you describe can result from include files
> > on the host platform being erroneously pulled in to the cross-build.
> > Cross-gcc and the makefiles have been known to be set up such
> > that, if the needed include file can be found neither in the explicitly
> > requested directories nor in the cross-compiler's default includes,
> > it will silently search the host /usr/include directories.
>
> This is either a bug in the version that you're using, a wrongly installed
> compiled or simply wrong -I directives passed to the compiler.
Obviously. And my thought was that Nicu may well be being
bit by one or the other.
> The crosscompiler rpms as distributed on oss will only search:
>
> /usr/lib/gcc-lib/mips-linux/egcs-2.91.66/include
> /usr/mips-linux/include
>
> by default. I just tried, egcs-1.1.2-2 also doesn't search silently in
> other directories. So it's not a problem of gcc itself which leaves the
> makefiles. If you find any instance of the wrong directories being
> searched, please tell me. Or better, include a patch :-)
I saw an instance of this on the order of a year ago. I don't
remember which compiler I was using, nor where I got it. I have
no ability nor really much desire to try to reconstruct the
environment to reproduce the problem!
Kevin K.
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: MIPS kernel!
2000-11-08 20:07 ` Kevin D. Kissell
@ 2000-11-08 20:11 ` Ralf Baechle
0 siblings, 0 replies; 9+ messages in thread
From: Ralf Baechle @ 2000-11-08 20:11 UTC (permalink / raw)
To: Kevin D. Kissell; +Cc: Ralf Baechle, Nicu Popovici, linux-mips
On Wed, Nov 08, 2000 at 12:07:04PM -0800, Kevin D. Kissell wrote:
> > by default. I just tried, egcs-1.1.2-2 also doesn't search silently in
> > other directories. So it's not a problem of gcc itself which leaves the
> > makefiles. If you find any instance of the wrong directories being
> > searched, please tell me. Or better, include a patch :-)
>
> I saw an instance of this on the order of a year ago. I don't
> remember which compiler I was using, nor where I got it. I have
> no ability nor really much desire to try to reconstruct the
> environment to reproduce the problem!
It think you can missconfigure a compiler to do something like that on a
i386-linux host by ``configure mips-linux'' or so. That will or course
also hose your native compiler.
Ralf
^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <3A09D68C.AF1D5AAA@isratech.ro>]
end of thread, other threads:[~2000-11-09 8:30 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-08 15:46 MIPS kernel! Nicu Popovici
2000-11-08 9:53 ` Kevin D. Kissell
2000-11-08 9:53 ` Kevin D. Kissell
2000-11-08 14:10 ` Ralf Baechle
2000-11-08 20:07 ` Kevin D. Kissell
2000-11-08 20:11 ` Ralf Baechle
[not found] ` <3A09D68C.AF1D5AAA@isratech.ro>
[not found] ` <20001108205319.A870@bacchus.dhis.org>
2000-11-09 14:57 ` Nicu Popovici
2000-11-09 8:24 ` Klaus Naumann
2000-11-09 8:29 ` Carsten Langgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox