Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Raq2 - make vmlinux - mips-linux-gcc: command not found
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
tacker
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 85
Location: Offenbach, Germany

PostPosted: Thu Jan 20, 2005 10:26 am    Post subject: Raq2 - make vmlinux - mips-linux-gcc: command not found Reply with quote

The Raq is net-booted.

With linux-2.6.9-20041022.cobalt I do:
Code:
$ make vmlinux
  CHK     include/linux/version.h
  CC      scripts/mod/empty.o
/bin/sh: line 1: mips-linux-gcc: command not found
make[2]: *** [scripts/mod/empty.o] Error 127
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2


Of course there is no such file.
But there is a /usr/bin/mipsel-unknown-linux-gnu-gcc

What can I do?
Back to top
View user's profile Send private message
Kumba
Developer
Developer


Joined: 16 Jul 2002
Posts: 393
Location: Sigma 957

PostPosted: Thu Jan 20, 2005 8:43 pm    Post subject: Reply with quote

You forgot to enable "Little Endian Code" in menuconfig. It should be under the top menus, probably "Machine Selection".

Enable that, and retry your build.


--Kumba
_________________
"The past tempts us, the present confuses us, the future frightens us. And our lives slip away, moment by moment, lost in that vast, terrible in-between."
--Emperor Turhan, Centauri Republic
Back to top
View user's profile Send private message
tacker
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 85
Location: Offenbach, Germany

PostPosted: Thu Feb 03, 2005 12:08 pm    Post subject: Reply with quote

So, I did this.

Now I get this error:

Code:
gentoo-mips-20040426 linux # make vmlinux
  CHK     include/linux/version.h
make[1]: `arch/mips/kernel/offset.s' is up to date.
make[1]: `arch/mips/kernel/reg.s' is up to date.
  CHK     include/linux/compile.h
dnsdomainname: Unknown host
  CC      arch/mips/cobalt/irq.o
arch/mips/cobalt/irq.c: In function `cobalt_irq':
arch/mips/cobalt/irq.c:51: error: `KSEG1' undeclared (first use in this function)
arch/mips/cobalt/irq.c:51: error: (Each undeclared identifier is reported only once
arch/mips/cobalt/irq.c:51: error: for each function it appears in.)
arch/mips/cobalt/irq.c: At top level:
arch/mips/cobalt/irq.c:92: warning: missing braces around initializer
arch/mips/cobalt/irq.c:92: warning: (near initialization for `irq_via.mask')
make[1]: *** [arch/mips/cobalt/irq.o] Error 1
make: *** [arch/mips/cobalt] Error 2
Back to top
View user's profile Send private message
Redhatter
Retired Dev
Retired Dev


Joined: 20 Sep 2003
Posts: 548
Location: Brisbane, QLD, Australia

PostPosted: Thu Feb 03, 2005 12:26 pm    Post subject: Reply with quote

That kernel appears to be broken. A quote from an earlier thread shows a somewhat different error message, but assuming you got around this one, you'd probably hit this one anyway.

Quoting from Re: the whole kernel disaster (page 9 of Cobalt RaQ/Qube Systems -- Testing Needed)
Kumba wrote:
E-Werk wrote:
Code:
  CC      mm/mincore.o
  CC      mm/mlock.o
  CC      mm/mmap.o
mm/mmap.c: In function `acct_stack_growth':
mm/mmap.c:1327: error: structure has no member named `rlim'
mm/mmap.c:1330: error: structure has no member named `rlim'
make[1]: *** [mm/mmap.o] Error 1
make: *** [mm] Error 2


Hrmm, that's my fault. There's a bad security patch in the current 2.6.9 mips-sources triggering that, and I totally forgot about it.

I'll try (if I can remember after work), to kick 2.6.10 into unstable to replace the 2.6.9 with. since I know that builds. For now, try unmasking 2.6.10 and use that instead.

To unmask, edit the latest 2.6.10 ebuild you see in /usr/portage/sys-kernel/mips-sources, and find KEYWORDS. You'll see a -* in KEYWORDS already -- just leave it and add ~mips after it so it reads KEYWORDS="-* ~mips".


--Kumba


Hope this helps.
_________________
Stuart Longland (a.k.a Redhatter, VK4MSL)
I haven't lost my mind - it's backed up on a tape somewhere...

Gentoo/MIPS Cobalt developer, Mozilla herd member.
Back to top
View user's profile Send private message
tacker
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 85
Location: Offenbach, Germany

PostPosted: Thu Feb 03, 2005 4:35 pm    Post subject: Reply with quote

Helped a bit.
Now I got this error:

Code:
...
  CC      arch/mips/lib-64/dump_tlb.o
  LD      arch/mips/lib-64/built-in.o
  AS      arch/mips/lib-64/csum_partial.o
  AS      arch/mips/lib-64/memset.o
  AS      arch/mips/lib-64/watch.o
  AR      arch/mips/lib-64/lib.a
  GEN     .version
  CHK     include/linux/compile.h
dnsdomainname: Unknown host
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
arch/mips/cobalt/built-in.o(.data+0x1d8): undefined reference to `gt64111_pci_ops'
make: *** [.tmp_vmlinux1] Error 1
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum