[En-Nut-Discussion] nutos conf stdint.h missing
joerg.lamprecht at thermofisher.com
Thu Aug 1 16:30:29 CEST 2013
sorry for my misunderstanding, and thank you for helping me.
Ok, here comes the output:
avr-gcc (WinAVR 20100110) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
ignoring nonexistent directory "c:/winavr-20100110/lib/gcc/../../avr/sys-include
#include "..." search starts here:
#include <...> search starts here:
End of search list.
The end of make clean all install
make: Entering directory `C:/ethernut-5.1/nutbld/arch'
avr-gcc -c -I../../nutbld/include -IC:\ethernut-5.1\nut/include -DETHERNUT2 -D
__HARVARD_ARCH__ -MD -MP -mmcu=atmega128 -Os -ffunction-sections -fno-delete-nu
ll-pointer-checks -Wall -Wstrict-prototypes -Werror -Wa,-a=avr/os/context_gcc.ls
t -o avr/os/context_gcc.o C:\ethernut-5.1\nut/arch/avr/os/context_gcc.c
In file included from C:/ethernut-5.1/nut/arch/avr/os/context_gcc.c:46:
C:/ethernut-5.1/nut/include/sys/atom.h:106:20: stdint.h: No such file or directo
In file included from C:/ethernut-5.1/nut/arch/avr/os/context_gcc.c:48:
C:/ethernut-5.1/nut/include/sys/thread.h:63:20: stdint.h: No such file or direct
make: *** [avr/os/context_gcc.o] Error 1
make: Leaving directory `C:/ethernut-5.1/nutbld/arch'
make: *** [all] Error 2
Hope that will help finding the issue.
Von: en-nut-discussion-bounces at egnite.de [mailto:en-nut-discussion-bounces at egnite.de] Im Auftrag von Harald Kipp
Gesendet: Donnerstag, 1. August 2013 13:46
An: Ethernut User Chat (English)
Betreff: Re: [En-Nut-Discussion] nutos conf stdint.h missing
On 01.08.2013 08:46, Lamprecht, Joerg wrote:
> still it doesn't work. I added all values given by avr-cpp -Wp,-v to my PATH Enviroment Variable. Still the compiler is missing stdint.h. For a test I copied the stdint.h from C:\WinAVR-20100110\avr\include to C:\ethernut-5.1\nut\include. I could compile now, but get warnings:
Complete misunderstanding. The paths given by avr-cpp -Wp,-v are include paths, not paths to find executables. I only wanted to know what the output is.
Moving include files around may make things worse. Instead we need to figure out, that the right compiler version is called and that it uses the right include paths.
OK, do the following:
* open a command line window.
* cd to the nutbld directory that you created with the Configurator
* add the paths to your compiler, e.g.
* run "avr-gcc --version" and "avr-cpp -Wp,-v"
* post the complete cmds and responses to this list (text via cut and copy, no screenshot)
* run "make clean all install"
* if that ends with an error, post the error message to this list (not the full dump, just the 2 or 3 lines containing the first error)
If that sequence fails in between, then post the output up to this point.
> I have an older Ethernut 1.3 Project from 2004, that is compiling without any hassle. But I have the Ethernut 2.1c Hardware, and need that project working with the changed NIC from 1.3 to 2.1. Maybe I should think about ordering a older hardware.
The old version used it's own integer types, while we later switched to stdint.h, because it is standard and nowadays support by most libraries.
In that sense, the newer Nut/OS versions depend a bit more on the library. But your case is so common, that it must work. It's just a problem of your two avr-gcc versions installed on your hard disk. This needs to be sorted out.
I usually have at least 10 different compiler versions installed. With little care this provides no problems.
More information about the En-Nut-Discussion