DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2007-11-20 18:32:19

Prak
New member
Registered: 2007-11-20
Posts: 2

having difficulty setting up a crosscompile environment

Hello all,

I am having difficulty in setting up a cross compile environment, I appear to have got as far as compiling the kernel with the ./build_kernel script, but it keeps failing with the following errors:

  CHK     include/linux/version.h
  SPLIT   include/linux/autoconf.h -> include/config/*
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/split-include
  HOSTCC  scripts/basic/docproc
  CC      scripts/mod/empty.o
cc1: error: invalid option `little-endian'
cc1: error: invalid option `apcs'
cc1: error: invalid option `no-sched-prolog'
cc1: error: invalid option `abi=apcs-gnu'
scripts/mod/empty.c:1: error: bad value (xscale) for -mtune= switch
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2

Does anyone have a clue what I may have done wrong?

Many thanks

Prak

Offline

 

#2 2007-11-20 18:46:28

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: having difficulty setting up a crosscompile environment

Looks like it's using the wrong compiler. build_kernel should pass sth like CROSS_COMPILE=... to 'make'  (e.g. arm-linux-, but depending on the toolchain).

Offline

 

#3 2007-11-20 19:16:43

Prak
New member
Registered: 2007-11-20
Posts: 2

Re: having difficulty setting up a crosscompile environment

OK, time to fuss up!

Numpty boy Prak had not actually got as far as compiling the kernel, because he hadn't installed bzip2 and most of the building tool chain sources are in .bz2 files, so he hadn't even got that far.

Things seem to be going swimmingly now I have thr right tools installed, odd that.

Sorry and thanks for posting Fonz.

Offline

 

#4 2007-11-21 13:19:58

HaydnH
Member
Registered: 2007-09-28
Posts: 187

Re: having difficulty setting up a crosscompile environment

To save time, instead of compiling gcc 3.4 as mentioned in the howto cross-compile wiki, you can just install the compat-gcc-34 & compat-gcc-34-c++ packages if they're available on your distro and set CC to gcc34 - saves a bit of time and it works fine..

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB