<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>stdint.h: No such file or directory</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16584/stdint-h-no-such-file-or-directory</link><description>Hello, 
 I&amp;#39;m trying to compile an example of nRF52_SDK_1 but I get this error: 
 make
Makefile:150: Cannot find include folder: ../../../config/receiver_pca10040
Makefile:150: Cannot find include folder: ../../../config
mkdir _build
Compiling file</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Sep 2017 15:54:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16584/stdint-h-no-such-file-or-directory" /><item><title>RE: stdint.h: No such file or directory</title><link>https://devzone.nordicsemi.com/thread/63457?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2017 15:54:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdf36242-71cc-4b40-927d-b5c2f9b2e923</guid><dc:creator>peter9477</dc:creator><description>&lt;p&gt;Thanks! In my case (Debian 9.1) it was package &amp;quot;libnewlib-arm-none-eabi&amp;quot; that did it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stdint.h: No such file or directory</title><link>https://devzone.nordicsemi.com/thread/63456?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2016 17:18:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71b71d36-036f-453d-bc31-229155a3b10d</guid><dc:creator>Martin Kupec</dc:creator><description>&lt;p&gt;In fedora it helps to install arm-none-eabi-newlib package&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stdint.h: No such file or directory</title><link>https://devzone.nordicsemi.com/thread/63455?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2016 11:26:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27495f8f-631b-446a-a343-30eae8ac3de3</guid><dc:creator>Javier</dc:creator><description>&lt;p&gt;Hi!,&lt;/p&gt;
&lt;p&gt;I was used Fedora 25. Today, in the same hard-disk I have installed Ubuntu 16.04 64 bits with arm-none-eabi-gcc 4.9.3&lt;/p&gt;
&lt;p&gt;Now compile succefully!&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;javi@PC:~/Development/Nordic/nRF52/examples/peripheral/blinky/pca10040/blank/armgcc$ make
Makefile:204: Cannot find include folder:  ../../../config/blinky_pca10040
Makefile:204: Cannot find include folder:  ../../../config
mkdir _build
Assembling file: gcc_startup_nrf52.S
Compiling file: system_nrf52.c
Compiling file: main.c
Compiling file: app_error.c
Compiling file: app_error_weak.c
Compiling file: app_fifo.c
Compiling file: app_timer.c
Compiling file: app_util_platform.c
Compiling file: hardfault_implementation.c
Compiling file: nrf_assert.c
Compiling file: nrf_drv_clock.c
Compiling file: nrf_drv_common.c
Compiling file: nrf_nvic.c
Compiling file: nrf_soc.c
Linking target: _build/nrf52832_xxaa.out
/usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/bin/ld: warning: /usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/lib/armv7e-m/fpu/libc_nano.a(lib_a-atexit.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
/usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/bin/ld: warning: /usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/lib/armv7e-m/fpu/libc_nano.a(lib_a-exit.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
/usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/bin/ld: warning: /usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/lib/armv7e-m/fpu/libc_nano.a(lib_a-fini.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
/usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/bin/ld: warning: /usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/lib/armv7e-m/fpu/libc_nano.a(lib_a-impure.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
/usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/bin/ld: warning: /usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/lib/armv7e-m/fpu/libc_nano.a(lib_a-init.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
/usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/bin/ld: warning: /usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/lib/armv7e-m/fpu/libc_nano.a(lib_a-memset.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
/usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/bin/ld: warning: /usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/lib/armv7e-m/fpu/libc_nano.a(lib_a-__atexit.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
/usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/bin/ld: warning: /usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/lib/armv7e-m/fpu/libc_nano.a(lib_a-__call_atexit.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail

   text	   data	    bss	    dec	    hex	filename
   4776	    112	    228	   5116	   13fc	_build/nrf52832_xxaa.out

Preparing: _build/nrf52832_xxaa.hex
Preparing: _build/nrf52832_xxaa.bin
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Thanks very much,
Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stdint.h: No such file or directory</title><link>https://devzone.nordicsemi.com/thread/63448?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2016 14:05:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cacd11dc-0cf5-4a44-bbb8-26067f44b0c7</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;Specifically, exactly which standalone GNU ARM toolchain on which platform(s) does Nordic recommend?  If Nordic is recommending a &amp;quot;standalone&amp;quot; toolchain, wouldn&amp;#39;t &amp;quot;--freestanding&amp;quot; be in their example Makefiles?  I am not recommending to mess around with makefiles in the SDK to fix this problem. But you must &amp;quot;mess around&amp;quot; with the Makefile anyway, to add your source files, fix known bugs in the Makefiles, etc.  Javier, &amp;quot;&amp;gt;which gcc&amp;quot; to make sure you have a non-cross compiling gcc installed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stdint.h: No such file or directory</title><link>https://devzone.nordicsemi.com/thread/63454?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2016 13:44:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2367c1a9-eb34-472e-8772-d105a7fadc71</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;yeah he can fiddle around for days getting something working using whatever redhat provides and then wait for it to break again, or he can download a standalone GNU ARM toolchain which is known to work. Just trying to help him get from where he is to where he wants to be in the shortest time without having to mess around with the makefiles in the SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stdint.h: No such file or directory</title><link>https://devzone.nordicsemi.com/thread/63453?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2016 13:41:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6cb738e-4090-404c-919c-f724f6f875eb</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;my stdint.h:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#ifndef _GCC_WRAP_STDINT_H
#if __STDC_HOSTED__
# if defined __cplusplus &amp;amp;&amp;amp; __cplusplus &amp;gt;= 201103L
#  undef __STDC_LIMIT_MACROS
#  define __STDC_LIMIT_MACROS
#  undef __STDC_CONSTANT_MACROS
#  define __STDC_CONSTANT_MACROS
# endif
# include_next &amp;lt;stdint.h&amp;gt;
#else
# include &amp;quot;stdint-gcc.h&amp;quot;
#endif
#define _GCC_WRAP_STDINT_H
#endif
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;See &lt;a href="http://stackoverflow.com/questions/17692428/what-is-ffreestanding-option-in-gcc"&gt;stackoverflow.com/.../what-is-ffreestanding-option-in-gcc&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So maybe Javier doesn&amp;#39;t have a default dev environment (with non-cross compiling gcc) installed? (Which would have a stdint.h that the #include_next would find?)  I could be wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stdint.h: No such file or directory</title><link>https://devzone.nordicsemi.com/thread/63452?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2016 13:31:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4be80c9-d6f5-4b94-ada6-17bcd86c96ad</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;I assume Javier thinks his gnu toolchain IS proper, since he probably installed it using the distro&amp;#39;s methods.  Javier, what platform and how did you install?  The version does seem strange (on my Ubuntu 16.04, the distro&amp;#39;s ARM gcc version is 4.9.3) so maybe Redhat is applying their own versioning?  BTW, Redhat is instrumental in maintaining gcc, so you would think it would be OK.  Maybe read near line 9 in  stdint.h to figure out why it thinks it needs another stdint.h found further along the list of include directories?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stdint.h: No such file or directory</title><link>https://devzone.nordicsemi.com/thread/63447?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2016 12:03:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98e453cc-0e86-479d-9abd-bb341ba963ad</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;It&amp;#39;s the include_next thing - you don&amp;#39;t have a next one so it doesn&amp;#39;t work. I still recommend downloading the proper supported gnu toolchain and using that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stdint.h: No such file or directory</title><link>https://devzone.nordicsemi.com/thread/63451?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2016 10:57:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86b32097-20d8-4c3f-92a1-43c148baa635</guid><dc:creator>Javier</dc:creator><description>&lt;p&gt;@RK,&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[javier@PC armgcc]$ make clean
Makefile:203: Cannot find include folder:  ../../../config/blinky_pca10040
Makefile:203: Cannot find include folder:  ../../../config
rm -rf _build
[javier@PC armgcc]$ make
Makefile:203: Cannot find include folder:  ../../../config/blinky_pca10040
Makefile:203: Cannot find include folder:  ../../../config
mkdir _build
Assembling file: gcc_startup_nrf52.S
Compiling file: system_nrf52.c
In file included from ../../../../../../components/toolchain/system_nrf52.c:31:0:
/usr/lib/gcc/arm-none-eabi/6.1.0/include/stdint.h:9:26: fatal error: stdint.h: No such file or directory
 # include_next &amp;lt;stdint.h&amp;gt;
                          ^
compilation terminated.
../../../../../../components/toolchain/gcc/Makefile.common:108: fallo en las instrucciones para el objetivo &amp;#39;_build/nrf52832_xxaa_system_nrf52.c.o&amp;#39;
make: *** [_build/nrf52832_xxaa_system_nrf52.c.o] Error 1
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stdint.h: No such file or directory</title><link>https://devzone.nordicsemi.com/thread/63450?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2016 10:34:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89790aec-496f-447a-b79a-d9728ef0fe09</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;does he have another stdint.h?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stdint.h: No such file or directory</title><link>https://devzone.nordicsemi.com/thread/63449?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2016 10:33:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a935b64-c46e-412e-bcc2-6fc02da5c21f</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;I agree with RK about the first errors probably are harmless, since they are part of make clean.  But rather than install a new GNU ARM toolchain you could try a temporary hack:  the error message says the GNU ARM stdint.h, at line 9 is #next_include&amp;#39;ing another stdint.h further down the list of include files.  Try commenting that line out.  If make then works, and your app works, you might then wonder if the #include_next was really needed.  But if you get error messages similar to &amp;quot;can&amp;#39;t resolve symbol&amp;quot; for symbols which you think should be defined in stdint, then its not the right solution.  RK, #include_next is Unix&amp;#39;y, then Gnu&amp;#39;y, then Linux&amp;#39;y.  As the Gnu Make document says, #include_next is arcane and should rarely be needed, in other words, a bit of a hack itself.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stdint.h: No such file or directory</title><link>https://devzone.nordicsemi.com/thread/63445?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2016 08:59:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b390de20-c41f-4364-97da-a47096a198d6</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;quick googling shows that include_next is very linux&amp;#39;y and requires you to have another directory in the include list after the standard one to supply stdint.h, which you don&amp;#39;t have.&lt;/p&gt;
&lt;p&gt;I would go with Hakon&amp;#39;s suggestion to install the proper arm-none-eabi, I don&amp;#39;t know where that 6.1.0 one came from.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stdint.h: No such file or directory</title><link>https://devzone.nordicsemi.com/thread/63446?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2016 08:51:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:571aa0a9-85b2-40dc-9b23-54d23021afe2</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;those errors are ok - annoying but ok - what happens when you &lt;code&gt;make&lt;/code&gt; again after the &lt;code&gt;make clean&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stdint.h: No such file or directory</title><link>https://devzone.nordicsemi.com/thread/63444?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2016 08:24:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20b65d65-1aa1-43ce-ad63-03037bb088cc</guid><dc:creator>Javier</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the replies,&lt;/p&gt;
&lt;p&gt;stdint.h exists into include folder:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[javier@PC include]$ pwd
/usr/lib/gcc/arm-none-eabi/6.1.0/include
[javier@PC include]$ ls
arm_acle.h  mmintrin.h   stdbool.h     stdint.h             unwind.h
arm_neon.h  stdalign.h   stddef.h      stdnoreturn.h        varargs.h
float.h     stdarg.h     stdfix.h      tgmath.h
iso646.h    stdatomic.h  stdint-gcc.h  unwind-arm-common.h
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I think that documentation is based in this tutorial &lt;a href="http://gnuarmeclipse.github.io/toolchain/install/"&gt;gnuarmeclipse.github.io/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and used this path (for Ubuntu) /usr/local/gcc-arm-none-eabi-4_9-2015q3  (I used Fedora 25)&lt;/p&gt;
&lt;p&gt;I will try to edit the Makefile as Butch said.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;PD:  @RK,  Same error:
make clean&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Makefile:203: Cannot find include folder:  ../../../config/blinky_pca10040
Makefile:203: Cannot find include folder:  ../../../config
rm -rf _build
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stdint.h: No such file or directory</title><link>https://devzone.nordicsemi.com/thread/63443?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2016 07:59:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5ea1403-6a94-4f65-b1e9-dbe1cecf3edb</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Have you tried &amp;#39;make clean&amp;#39; to remove all the old dependency files first？I&amp;#39;ve seen this when and old .d file references and old include.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stdint.h: No such file or directory</title><link>https://devzone.nordicsemi.com/thread/63442?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2016 07:29:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4dd8f9fb-31e6-46c8-b0cd-599fb1285969</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;I&amp;#39;ve seen the same behavior with the arm-none-eabi that is supplied with other linux distro&amp;#39;s, meaning that the behavior is quite &amp;quot;strange&amp;quot;. Can you check if stdint.h is actually located in this directory?&lt;/p&gt;
&lt;p&gt;&lt;code&gt;/usr/lib/gcc/arm-none-eabi/6.1.0/include/&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;If it still does not work properly, I would strongly recommend using the upstream arm-none-eabi located on launchpad:
&lt;a href="https://launchpad.net/gcc-arm-embedded/+download"&gt;launchpad.net/.../ download&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Cheers,
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stdint.h: No such file or directory</title><link>https://devzone.nordicsemi.com/thread/63441?ContentTypeID=1</link><pubDate>Wed, 21 Sep 2016 14:55:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:032b37f0-9655-42de-8e2d-fa03a8a20a0f</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;I don&amp;#39;t have an answer but I will give my thoughts. My strategy would be to fix the first error &amp;quot;Cannot find...&amp;quot;. This comes from the function ensure_exists() in the Makefile. These Makefiles are very fragile: they use &amp;quot;../../..&amp;quot; and that breaks when you don&amp;#39;t have exactly the same directory structure as the original build system. Try installing the SDK and example exactly in the places as shown in some tutorial. Next thought: I have never seen #include_next. If you read about it, it is used for redirecting the include to some patched or other file. I can&amp;#39;t tell whether the gcc arm include file stdint.h is doing #include_next (which would say that your gcc arm toolchain might be broken, or looking for a non-ARM toolchain stdint.h?) or whether a Nordic Makefile is doing #include_next.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>