This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: crosstool-NG with GCC V3.X.X


Andy,

This kind of questins are best CCed to the mailing list.

On Monday 10 May 2010 12:36:01 Andy Pevy wrote:
> I have picked up an old project that needs some modifications to
> it, and it was originally built using DaVinci-ARM GCC 3.4.3 from
> MontaVista and has kernel 2.6.10. I have tried compiling it with
> crosstool-NG compiled GCC 4.3.2 but the compiler is being too fussy
> about some of the kernel constructs.
> Is it possible to recreate the 3.4.3 tool set using crosstool-NG please ?.

In crosstool-NG, gcc-3.x.x is considered 'obsolete', and the only 3.x.x
version still available is 3.4.6. You have to enable support for obsolete
versions:

  Paths and misc options  --->
    [*] Use obsolete features

  Operating System  --->
    Get kernel headers from: (Use custom headers)
    ( /some/where) Path to custom headers directory/tarball

  C compiler  --->
    gcc version (3.4.6 (OBSOLETE))

Of course, I would highly encourage you to update your kernel and gcc.
There is a sample in crosstool-NG that can build for the DaVinci processor:

  # ct-ng show-arm-davinci-linux-gnueabi
  arm-davinci-linux-gnueabi  [L  ]
      OS             : linux-2.6.33.2
      Companion libs : gmp-4.3.2 mpfr-2.4.2 libelf-0.8.13
      binutils       : binutils-2.20
      C compiler     : gcc-4.3.2 (C,C++)
      C library      : glibc-2.9
      Tools          : dmalloc-5.5.2 duma-2_5_15 gdb-6.8 ltrace-0.5.3 strace-4.5.19

To use that sample:

  # ct-ng arm-davinci-linux-gnueabi
  Now configured for "arm-davinci-linux-gnueabi"
  # ct-ng build

Of course, this sample builds a toolchain with headers from Linux 2.6.33.2,
and will require that you run the 2.6.33.2 kernel on your target. This is
really what I would recommend, that you update your kernel. 2.6.10 is now
really, really old...

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'



--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]