Dear Agustin, After exporting flags you provided I can compile the project. Would it be possible for you to install update-alternatives such that, there is some default C library ?
I think many people will be confused, and will abandon using this compiler if it does not work out of the box. It's also the reason, why we use SAT at mchck. Mateusz On 3 January 2014 20:50, Agustin Henze <t...@debian.org> wrote: > Hi Mateusz, glad to hear other people using the toolchain :) > > On 01/03/2014 07:59 AM, mateusz.ka...@gmail.com wrote: > > Your package is missing LTO and header files are missing. > > > > To reproduce the problem > > $ git clone git://github.com/mchck/mchck.git < > http://github.com/mchck/mchck.git> > > $ cd mchck/bootloader/usb-dfu/ > > > > Case #1 no LTO support, please enable it in the packaged compiler > > $ make > > ... > > cc1: error: LTO support has not been enabled in this configuration > > Yes there was no support for LTO by mistake. I enabled the link time > optimization and I'm uploading the new release very soon. > > > Case #2 no header, please add missing header > > $ make NO_LTO=1 > > ... > > ../../toolchain//include/mchck.h:4:23: fatal error: sys/types.h: No such > file > > or directory > > #include <sys/types.h> > > ... > > You can read the explanation here[0]. You should be able to build the > project, > exporting the environment variables with the correct values. I think:: > > export CFLAGS=-I/usr/include/newlib > LDFLAGS=-L/usr/lib/arm-none-eabi/newlib > > it should work. > > > Using Debian's packaged bare-metal compiler I cannot compile project even > > without LTO. > > > > Code compiles with SAT toolchain from > > > https://github.com/mchck/mchck/wiki/Getting-Started#install-toolchain-software > > and apparently used to compile with NO_LTO flag. > > > > It would be nice of you, if you could at least fix one of cases, so the > project > > can be compiled. I would strongly prefer LTO support enabled, it can be > > disabled by NO_LTO=1 if someone wishes. > > Please let me know if you can build the project successfully. I'm really > interested to help this happen. > > Cheers, > > [0] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=733674#10 > > -- > TiN > >