| kiwichris | I am building a toolchain for RTEMS and was informed gcc 4.5.3 is the one. This how-ever does not build with newlib 2.0.0. Which version of newlib is used with 4.5.3 ? | 21:10 |
|---|---|---|
| kiwichris | Hmm it might be a host issue and not a LM32 issue. | 21:14 |
| Fallenou | isn't it newlib 1.20 ? | 21:16 |
| kiwichris | It switch at its yearly release Dec 2012 | 21:16 |
| Fallenou | let me check which one I'm using | 21:18 |
| kiwichris | It might not be LM32 or newlib, it looks like an issue in libiberty so a host thing | 21:19 |
| Fallenou | can you pastebin your issue ? | 21:20 |
| kiwichris | ../../../gcc-4.5.3/libiberty/strsignal.c:554:1: error: conflicting types for 'psignal' | 21:20 |
| Fallenou | OK, I can tell you I'm using gcc 4.5.3 and newlib 1.20 and binutils 2.22 | 21:21 |
| kiwichris | Thanks. | 21:21 |
| kiwichris | The error is on MacOS so I am building on Fedora to see what happens. | 21:24 |
| Fallenou | I remember succeeding in compiling lm32 toolchain on Mac OS X 10.6 but I don't remember gcc nor newlib version | 21:29 |
| kiwichris | That error is a host error so I will sort that out, how-ever on Fedora I have a different one... | 21:29 |
| Fallenou | I can say that lm32--netbsd toolchain builds very well under Mac OS X :) | 21:29 |
| kiwichris | lm32-rtems4.11-gcc-4.5.3-newlib-2.0.0-1-4.5.3/gcc-4.5.3/newlib/libc/include/sys/types.h:179:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mode_t' | 21:30 |
| kiwichris | I am sure. This one looks like an issue with header files between RTEMS, newlib and gcc | 21:30 |
| wpwrak | try including sys/stat.h before whatever includes sys/types.h ? | 21:31 |
| kiwichris | We would like to have LM32 on newlib-2.0.0 and as gcc has to be 4.5.3 it is a matter of sorting this out. | 21:31 |
| Fallenou | oh, a libc upgrade, nice :) | 21:33 |
| kiwichris | Yeah that is the intent | 21:35 |
| kiwichris | It would be nice to have LM32 on 4.7.2 but hey that is what happens | 21:36 |
| Fallenou | yes, there has been an attempt as I said in my email | 21:37 |
| kiwichris | Understood. | 21:38 |
| Fallenou | but it proved to be a non trivial task which motivated no one | 21:38 |
| Fallenou | gcc code ... :) | 21:38 |
| kiwichris | :) | 21:38 |
| Fallenou | but please keep us posted on your issues/steps forward | 21:39 |
| kiwichris | I will. It is all captured in the rtems-source-builder.git repo on git.rtems.org. Patches will be public in the rtems-tools.git repo. | 21:40 |
| kiwichris | If you want to try a build it is about 3 commands. | 21:41 |
| Fallenou | oh, very nice | 21:41 |
| Fallenou | NetBSD has a cool script to build cross toolchains as well :) | 21:42 |
| kiwichris | http://www.rtems.org/ftp/pub/rtems/people/chrisj/source-builder/source-builder.html | 21:42 |
| Fallenou | ./build.sh -m milkymist -U tools <= and there I have my toolchain :) | 21:42 |
| Fallenou | thanks | 21:42 |
| Fallenou | very nice documentation | 21:42 |
| kiwichris | NetBSD always have nice helper scripts. | 21:43 |
| kiwichris | For lm32 ... | 21:44 |
| kiwichris | cd somewhere | 21:45 |
| kiwichris | git clone git://git.rtems.org/chrisj/rtems-source-builder.git | 21:45 |
| kiwichris | cd rtems-source-builder/rtems | 21:45 |
| kiwichris | ../source-builder/sb-set-builder --log=l-lm32.txt --prefix=$HOME/rtems/4.11 4.11/rtems-lm32 | 21:46 |
| Fallenou | looks easy | 21:47 |
| GitHub79 | [migen] sbourdeauducq pushed 1 new commit to master: http://git.io/ZFwOdg | 22:51 |
| GitHub79 | migen/master b75fb7f Sebastien Bourdeauducq: csr/SRAM: support for writes with memory widths larger than bus words | 22:51 |
| --- Sat Mar 9 2013 | 00:00 | |
Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!