On 05/24/2013 01:56 AM, Gene Smith wrote:
I just built gcc 4.8 and tried it with code that compiles OK with 4.7 and earlier and immediately see this error on my 1st source file: ..arm-none-eabi\include\c++\4.8.1\cstdint:38:28: fatal error: bits/c++config.h: No such file or directory #include <bits/c++config.h> ^ This is from a file that includes cstdint. File c++config.h definitely is produced and exists under /bits for each multilib in the 4.8 install directory but it is not being found by the compiler. I have not tried using a -I <path to c++config.h> on the command line because it was not needed when compiling with g++ 4.7 and earlier when including cstdint. Some possibly relevant g++ command lines options I am using are: -mthumb -mcpu=cortex-m3 -std=c++0x I can provide more details if necessary. Thanks, -gene
To fix this I copied all files from <prefix>/arm-none-eabi/include/c++/4.8.1/arm-none-eabi/bits/ to empty directory here <prefix>/arm-none-eabi/include/bits/ Not sure if this is right or why it is needed but now file c++config.h is found and compiles succeed with 4.8.
With 4.7 the directory <prefix>/arm-none-eabi/include/bits/ is also empty and does not require that files be copied to it.
-gene