* crosscompiling on debian/i386
@ 1998-09-29 23:29 Richard Hartensveld
1998-09-30 21:29 ` ralf
0 siblings, 1 reply; 4+ messages in thread
From: Richard Hartensveld @ 1998-09-29 23:29 UTC (permalink / raw)
To: linux@cthulhu.engr.sgi.com
Hi,
i'm trying to crosscompile a linux/sgi kernel on a debian/i386 machine
with the binutils and the mips-linux-gcc compiler from the linux-sgi ftp
site.
But i keep getting the following error, does anyone know what i am
doing wrong.?
I'm trying to compile for a r5000 cpu.
(the dependancies works fine)
wilderness:/usr/src/linux# make CROSS_COMPILE=mips-linux- zImage
mips-linux-gcc -D__KERNEL__ -I/usr/src/linux/include -Wall
-Wstrict-prototypes -
O2 -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -mcpu=r8000 -mips2
-pipe -c
-o init/main.o init/main.c
/usr/src/linux/include/linux/sched.h: In function `on_sig_stack':
In file included from init/main.c:17:
/usr/src/linux/include/linux/sched.h:528: `current' undeclared (first
use this f
unction)
/usr/src/linux/include/linux/sched.h:528: (Each undeclared identifier is
reporte
d only once
/usr/src/linux/include/linux/sched.h:528: for each function it appears
in.)
/usr/src/linux/include/linux/sched.h:530: warning: control reaches end
of non-vo
id function
/usr/src/linux/include/linux/sched.h: In function `sas_ss_flags':
/usr/src/linux/include/linux/sched.h:534: `current' undeclared (first
use this f
unction)
/usr/src/linux/include/linux/sched.h:536: warning: control reaches end
of non-vo
id function
/usr/src/linux/include/linux/sched.h: In function `suser':
/usr/src/linux/include/linux/sched.h:561: `current' undeclared (first
use this f
unction)
/usr/src/linux/include/linux/sched.h: In function `fsuser':
/usr/src/linux/include/linux/sched.h:570: `current' undeclared (first
use this f
unction)
/usr/src/linux/include/linux/sched.h: In function `capable':
/usr/src/linux/include/linux/sched.h:586: `current' undeclared (first
use this f
unction)
/usr/src/linux/include/linux/mm.h: In function `expand_stack':
In file included from /usr/src/linux/include/linux/slab.h:14,
from /usr/src/linux/include/linux/malloc.h:4,
from /usr/src/linux/include/linux/proc_fs.h:6,
from init/main.c:24:
/usr/src/linux/include/linux/mm.h:353: `current' undeclared (first use
this func
tion)
make: *** [init/main.o] Error 1
Anyone who could help?
Richard
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: crosscompiling on debian/i386
1998-09-29 23:29 crosscompiling on debian/i386 Richard Hartensveld
@ 1998-09-30 21:29 ` ralf
0 siblings, 0 replies; 4+ messages in thread
From: ralf @ 1998-09-30 21:29 UTC (permalink / raw)
To: Richard Hartensveld, linux@cthulhu.engr.sgi.com
On Wed, Sep 30, 1998 at 01:29:09AM +0200, Richard Hartensveld wrote:
> i'm trying to crosscompile a linux/sgi kernel on a debian/i386 machine
> with the binutils and the mips-linux-gcc compiler from the linux-sgi ftp
> site.
>
> But i keep getting the following error, does anyone know what i am
> doing wrong.?
The error messages look like you've been attempting to compile a vanilla
kernel from ftp.kernel.org. Won't work, get a tree from ftp.linux.sgi.com.
You're also passing variables to make which normally isn't necessary. Did
you've select CONFIG_CROSSCOMPILE when configuring the kernel? The sources
will then automatically select the right compiler.
Ralf
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <19981001223848.19704@alpha.franken.de>]
* Re: crosscompiling on debian/i386
[not found] <19981001223848.19704@alpha.franken.de>
@ 1998-10-02 5:30 ` Ulf Carlsson
1998-10-02 16:46 ` Richard Hartensveld
0 siblings, 1 reply; 4+ messages in thread
From: Ulf Carlsson @ 1998-10-02 5:30 UTC (permalink / raw)
To: Thomas Bogendoerfer; +Cc: Richard Hartensveld, linux@cthulhu.engr.sgi.com
[-- Attachment #1: Type: TEXT/PLAIN, Size: 675 bytes --]
On Thu, 1 Oct 1998, Thomas Bogendoerfer wrote:
> no he tries to crosscompile with gcc-2.7.2.x a new kernel from CVS.
> This does no longer work out of the box, because we've changed the
> #ifdef _LANGUAGE_ASSEMBLY to the egcs predefined ones. And these aren't
> defined in the gcc-2.7 spec file.
>
> I don't have a patch handy, but simply changing -D__LANGUAGE_ASSMBLEY__ to
> -D_LANGUAGE_ASSEMBLY and -D__LANGUAGE_C__ to -D_LANGUAGE_C in the spec
> file worked for me.
I've already changed those defines.
I don't have a patch (I don't have the old file anylonger), but I can send
the whole file (/usr/local/lib/gcc-lib/mips-linux/2.7.2.2/specs)
It's attached.
- Ulf
[-- Attachment #2: Type: APPLICATION/octet-stream, Size: 4046 bytes --]
*asm:
%{mcpu=*} %{m4650} %{mmad:-m4650} %{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} %{mips4} %{v} %{noasmopt:-O0} %{!noasmopt:%{O:-O2} %{O1:-O2} %{O2:-O2} %{O3:-O3}} %{g} %{g0} %{g1} %{g2} %{g3} %{ggdb:-g} %{ggdb0:-g0} %{ggdb1:-g1} %{ggdb2:-g2} %{ggdb3:-g3} %{gstabs:-g} %{gstabs0:-g0} %{gstabs1:-g1} %{gstabs2:-g2} %{gstabs3:-g3} %{gstabs+:-g} %{gstabs+0:-g0} %{gstabs+1:-g1} %{gstabs+2:-g2} %{gstabs+3:-g3} %{gcoff:-g} %{gcoff0:-g0} %{gcoff1:-g1} %{gcoff2:-g2} %{gcoff3:-g3} %{!fno-PIC:%{!fno-pic:-KPIC}} %{fPIC:-KPIC} %{fpic:-KPIC} %{fno-PIC:-non_shared} %{fno-pic:-non_shared} %{membedded-pic}
*asm_final:
*cpp:
%{.cc: -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS -D_LANGUAGE_C_PLUS_PLUS %{!ansi:-DLANGUAGE_C_PLUS_PLUS}} %{.cxx: -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS -D_LANGUAGE_C_PLUS_PLUS %{!ansi:-DLANGUAGE_C_PLUS_PLUS}} %{.C: -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS -D_LANGUAGE_C_PLUS_PLUS %{!ansi:-DLANGUAGE_C_PLUS_PLUS}} %{.m: -D__LANGUAGE_OBJECTIVE_C__ -D__LANGUAGE_OBJECTIVE_C -D_LANGUAGE_OBJECTIVE_C %{!ansi:-DLANGUAGE_OBJECTIVE_C}} %{.S: -D__LANGUAGE_ASSEMBLY__ -D__LANGUAGE_ASSEMBLY -D_LANGUAGE_ASSEMBLY %{!ansi:-DLANGUAGE_ASSEMBLY }} %{.s: -D__LANGUAGE_ASSEMBLY__ -D__LANGUAGE_ASSEMBLY -D_LANGUAGE_ASSEMBLY %{!ansi:-DLANGUAGE_ASSEMBLY }} %{!.S:%{!.s:-D__LANGUAGE_C__ -D__LANGUAGE_C -D_LANGUAGE_C %{!ansi:-DLANGUAGE_C }}} %{mfp32: -D_MIPS_FPSET=16}%{!mfp32: -D_MIPS_FPSET=32} %{mips1: -D_MIPS_ISA=_MIPS_ISA_MIPS1} %{mips2: -D_MIPS_ISA=_MIPS_ISA_MIPS2} %{mips3: -D_MIPS_ISA=_MIPS_ISA_MIPS3} %{mips4: -D_MIPS_ISA=_MIPS_ISA_MIPS4} %{!mips1: %{!mips2: %{!mips3: %{!mips4: -D_MIPS_ISA=_MIPS_ISA_MIPS1}}}} %{mint64:-D_MIPS_SZINT=64 %{!mlong64:-D__SIZE_TYPE__=long\ unsigned\ int -D__SSIZE_TYPE__=long\ int -D__PTRDIFF_TYPE__=long\ int -D_MIPS_SZLONG=64 -D_MIPS_SZPTR=64}} %{!mint64:-D_MIPS_SZINT=32 %{!mlong64:-D__SIZE_TYPE__=unsigned\ int -D__SSIZE_TYPE__=int -D__PTRDIFF_TYPE__=int -D_MIPS_SZLONG=32 -D_MIPS_SZPTR=32}} %{mlong64:-D__SIZE_TYPE__=long\ unsigned\ int -D__SSIZE_TYPE__=long\ int -D__PTRDIFF_TYPE__=long\ int -D_MIPS_SZLONG=64 -D_MIPS_SZPTR=64} %{mips3:-U__mips -D__mips=3 -D__mips64} %{mips4:-U__mips -D__mips=4 -D__mips64} %{mgp32:-U__mips64} %{mgp64:-D__mips64} %{EB:-UMIPSEL -U__MIPSEL__ -D__MIPSEB__ %{!ansi:-DMIPSEB}} %{EL:-UMIPSEB -U__MIPSEB__ -D__MIPSEL__ %{!ansi:-DMIPSEL}} %{fno-PIC:-U__PIC__ -U__pic__} %{fno-pic:-U__PIC__ -U__pic__} %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{-D__HAVE_FPU__ } %{posix:-D_POSIX_SOURCE}
*cc1:
%{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} %{mips1:-mfp32 -mgp32}%{mips2:-mfp32 -mgp32}%{mips3:%{!msingle-float:%{!m4650:-mfp64}} -mgp64} %{mips4:%{!msingle-float:%{!m4650:-mfp64}} -mgp64} %{mfp64:%{msingle-float:%emay not use both -mfp64 and -msingle-float}} %{mfp64:%{m4650:%emay not use both -mfp64 and -m4650}} %{m4650:-mcpu=r4650} %{G*} %{EB:-meb} %{EL:-mel} %{EB:%{EL:%emay not use both -EB and -EL}} %{pic-none: -mno-half-pic} %{pic-lib: -mhalf-pic} %{pic-extern: -mhalf-pic} %{pic-calls: -mhalf-pic} %{save-temps: }
*cc1plus:
*endfile:
%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s
*link:
%{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} %{mips4} %{bestGnum} %{shared} %{non_shared} %{call_shared} %{no_archive} %{exact_version} %{!shared: %{!static: %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} %{static:-static}}
*lib:
%{!shared: %{mieee-fp:-lieee} %{p:-lgmon} %{pg:-lgmon} %{!ggdb:-lc} %{ggdb:-lg}}
*libgcc:
%{!shared:-lgcc}
*startfile:
%{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:%{profile:gcrt1.o%s} %{!profile:crt1.o%s}}}} crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}
*switches_need_spaces:
*signed_char:
%{funsigned-char:-D__CHAR_UNSIGNED__}
*predefines:
-D__ELF__ -D_MIPS_SIM=_MIPS_SIM_ABI32 -D__PIC__ -D__pic__ -Dunix -Dmips -DR3000 -DMIPSEB -Dlinux -Asystem(linux) -Asystem(posix) -Acpu(mips) -Amachine(mips)
*cross_compile:
1
*multilib:
. !EL !EB;el EL !EB;eb !EL EB;
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: crosscompiling on debian/i386
1998-10-02 5:30 ` Ulf Carlsson
@ 1998-10-02 16:46 ` Richard Hartensveld
0 siblings, 0 replies; 4+ messages in thread
From: Richard Hartensveld @ 1998-10-02 16:46 UTC (permalink / raw)
To: Ulf Carlsson; +Cc: Thomas Bogendoerfer, linux@cthulhu.engr.sgi.com
Ulf Carlsson wrote:
> On Thu, 1 Oct 1998, Thomas Bogendoerfer wrote:
>
> > no he tries to crosscompile with gcc-2.7.2.x a new kernel from CVS.
> > This does no longer work out of the box, because we've changed the
> > #ifdef _LANGUAGE_ASSEMBLY to the egcs predefined ones. And these aren't
> > defined in the gcc-2.7 spec file.
> >
> > I don't have a patch handy, but simply changing -D__LANGUAGE_ASSMBLEY__ to
> > -D_LANGUAGE_ASSEMBLY and -D__LANGUAGE_C__ to -D_LANGUAGE_C in the spec
> > file worked for me.
>
> I've already changed those defines.
>
> I don't have a patch (I don't have the old file anylonger), but I can send
> the whole file (/usr/local/lib/gcc-lib/mips-linux/2.7.2.2/specs)
>
Works perfectly, i've just build the first kernel with it and i'm now gonna
try to get al the output on the
serial console. (challenge S).
Richard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1998-10-02 16:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-29 23:29 crosscompiling on debian/i386 Richard Hartensveld
1998-09-30 21:29 ` ralf
[not found] <19981001223848.19704@alpha.franken.de>
1998-10-02 5:30 ` Ulf Carlsson
1998-10-02 16:46 ` Richard Hartensveld
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox