https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90527
Bug ID: 90527 Summary: alloc.c:72:7: error: implicit declaration of function ‘posix_memalign’ Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgomp Assignee: unassigned at gcc dot gnu.org Reporter: mfe at live dot de CC: jakub at gcc dot gnu.org Target Milestone: --- Created attachment 46376 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46376&action=edit config.log of libgomp the exact version of GCC: gcc-9.1.0 the system type: NetgearReadyNAS Duo (http://wiki.dietpc.org/index.php/DIET-PC_on_SPARC_ReadyNAS) the options given when GCC was configured/built: ../gcc-9.1.0/configure CC=/opt/gcc-7.1/bin/gcc CXX=/opt/gcc-7.1/bin/g++ --enable-languages=c,c++,go --prefix=/opt/gcc-9.1 --with-cpu=v7 --with-mpc=/usr/local --with-mpfr=/usr/local --with-gmp=/usr/local --with-isl=/usr/local/ --disable-libstdcxx-pch --disable-linux-futex --disable-libsanitizer --enable-__cxa_atexit --enable-nls --enable-clocale=gnu --enable-debug --disable-doc --disable-libcilkrts --disable-libitm the complete command line that triggers the bug; /usr/local/bin/make the compiler output (error messages, warnings, etc.); [...] make[5]: Entering directory '/c/backup/fes-readynasduo/gcc-9.1.0-compiled/sparc-unknown-linux-gnu/libgomp' /bin/sh ./libtool --tag=CC --mode=compile /backup/fes-readynasduo/gcc-9.1.0-compiled/./gcc/xgcc -B/backup/fes-readynasduo/gcc-9.1.0-compiled/./gcc/ -B/opt/gcc-9.1/sparc-unknown-linux-gnu/bin/ -B/opt/gcc-9.1/sparc-unknown-linux-gnu/lib/ -isystem /opt/gcc-9.1/sparc-unknown-linux-gnu/include -isystem /opt/gcc-9.1/sparc-unknown-linux-gnu/sys-include -fno-checking -DHAVE_CONFIG_H -I. -I../../../gcc-9.1.0/libgomp -I../../../gcc-9.1.0/libgomp/config/posix -I../../../gcc-9.1.0/libgomp -I../../../gcc-9.1.0/libgomp/../include -Wall -Werror -Wc,-pthread -g -O2 -MT alloc.lo -MD -MP -MF .deps/alloc.Tpo -c -o alloc.lo ../../../gcc-9.1.0/libgomp/alloc.c libtool: compile: /backup/fes-readynasduo/gcc-9.1.0-compiled/./gcc/xgcc -B/backup/fes-readynasduo/gcc-9.1.0-compiled/./gcc/ -B/opt/gcc-9.1/sparc-unknown-linux-gnu/bin/ -B/opt/gcc-9.1/sparc-unknown-linux-gnu/lib/ -isystem /opt/gcc-9.1/sparc-unknown-linux-gnu/include -isystem /opt/gcc-9.1/sparc-unknown-linux-gnu/sys-include -fno-checking -DHAVE_CONFIG_H -I. -I../../../gcc-9.1.0/libgomp -I../../../gcc-9.1.0/libgomp/config/posix -I../../../gcc-9.1.0/libgomp -I../../../gcc-9.1.0/libgomp/../include -Wall -pthread -Werror -g -O2 -MT alloc.lo -MD -MP -MF .deps/alloc.Tpo -c ../../../gcc-9.1.0/libgomp/alloc.c -fPIC -DPIC -o .libs/alloc.o ../../../gcc-9.1.0/libgomp/alloc.c: In function ‘gomp_aligned_alloc’: ../../../gcc-9.1.0/libgomp/alloc.c:72:7: error: implicit declaration of function ‘posix_memalign’ [-Werror=implicit-function-declaration] 72 | if (posix_memalign (&ret, al, size) != 0) | ^~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[5]: *** [Makefile:787: alloc.lo] Error 1 make[5]: Leaving directory '/c/backup/fes-readynasduo/gcc-9.1.0-compiled/sparc-unknown-linux-gnu/libgomp' make[4]: *** [Makefile:1010: all-recursive] Error 1 make[4]: Leaving directory '/c/backup/fes-readynasduo/gcc-9.1.0-compiled/sparc-unknown-linux-gnu/libgomp' make[3]: *** [Makefile:614: all] Error 2 make[3]: Leaving directory '/c/backup/fes-readynasduo/gcc-9.1.0-compiled/sparc-unknown-linux-gnu/libgomp' make[2]: *** [Makefile:21905: all-stage1-target-libgomp] Error 2 make[2]: Leaving directory '/c/backup/fes-readynasduo/gcc-9.1.0-compiled' make[1]: *** [Makefile:23329: stage1-bubble] Error 2 make[1]: Leaving directory '/c/backup/fes-readynasduo/gcc-9.1.0-compiled' make: *** [Makefile:991: all] Error 2