Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22285

gcc can't find stdint.h

$
0
0

I'm trying to build libpd from source. I downloaded the source as well as the pure-data submodule from https://github.com/libpd/libpd. I used git checkout 0.14.1 to change to what I believe is the most recent stable release.

When I run make from inside the libpd folder, I get this error:

cc -DPD -DUSEAPI_DUMMY -DPD_INTERNAL -DHAVE_UNISTD_H -I./libpd_wrapper -I./libpd_wrapper/util -I./pure-data/src -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast -fPIC -DHAVE_ENDIAN_H -I"/usr/lib/jvm/default-java/include/linux" -I"/usr/lib/jvm/default-java/include" -DHAVE_ALLOCA_H -DHAVE_LIBDL -ffast-math -funroll-loops -fomit-frame-pointer -O3 -DLIBPD_EXTRA       -c -o pure-data/src/d_arithmetic.o pure-data/src/d_arithmetic.cIn file included from pure-data/src/m_pd.h:79,                 from pure-data/src/d_arithmetic.c:11:/usr/lib/gcc/x86_64-linux-gnu/12/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory    9 | # include_next <stdint.h>      |                ^~~~~~~~~~compilation terminated.make: *** [<builtin>: pure-data/src/d_arithmetic.o] Error 1

It looks like the pure-data submodule uses the #include_next directive to find <stdint.h>, so here is gcc's include path:

# echo | gcc -E -Wp,-v -ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/12/include-fixed"ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include"#include "..." search starts here:#include <...> search starts here: /usr/lib/gcc/x86_64-linux-gnu/12/include /usr/local/include /usr/include/x86_64-linux-gnu /usr/includeEnd of search list.# 0 "<stdin>"# 0 "<built-in>"# 0 "<command-line>"# 1 "<stdin>"

If I understand correctly, gcc should be searching for stdint.h in /usr/local/include rather than /usr/lib/gcc/x86_64-linux-gnu/12/include anyway, so I'm not sure why I'm getting this error.

I'm running BookwormPup64.


Viewing all articles
Browse latest Browse all 22285

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>