FS#33087 - [avr-gcc] /usr/lib/gcc/avr/4.7.2/include/stdint.h:3:26: fatal error: stdint.h: No such file or dir..

Attached to Project: Community Packages
Opened by andre van schoubroeck (andremo) - Thursday, 13 December 2012, 18:16 GMT
Last edited by Jakob Gruber (schuay) - Saturday, 15 December 2012, 16:49 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jakob Gruber (schuay)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Install avr-gcc and try to compile a source file that includes stdint.h

This will give the error message:

/usr/lib/gcc/avr/4.7.2/include/stdint.h:3:26: fatal error: stdint.h: No such file or directory


The header file itself includes attempt to include another header file which is not found.
This task depends upon

Closed by  Jakob Gruber (schuay)
Saturday, 15 December 2012, 16:49 GMT
Reason for closing:  Fixed
Comment by Gerardo Exequiel Pozzi (djgera) - Saturday, 15 December 2012, 05:17 GMT
I can not reproduce here.
Comment by Jakob Gruber (schuay) - Saturday, 15 December 2012, 09:33 GMT
Same here, works for me. I will close this in a bit unless you figure out what's going on at your end.
Comment by Alexander F. Rødseth (xyproto) - Saturday, 15 December 2012, 16:24 GMT
I am able to reproduce.

Installed "avr-gcc", then:

~/test% vim main.c
~/test% gcc main.c -o main
~/test% ./main
SIZE_MAX = -1
~/test% avr-gcc main.c -o main
In file included from main.c:1:0:
/usr/lib/gcc/avr/4.7.2/include/stdint.h:3:26: fatal error: stdint.h: No such file or directory
compilation terminated.

Here's main.c: http://ix.io/3EP
Comment by Jakob Gruber (schuay) - Saturday, 15 December 2012, 16:49 GMT
So it seems that the stdint.h in question is in avr-libc. I've added avr-libc to optdepends in trunk.

Loading...