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

mm_malloc.h(34): error: allowing all exceptions is incompatible with previous function "posix_memalign" /usr/include/stdlib.h(580)

$
0
0

According to the repo maintainers, this is due to GCC version.

[ 92%] Building NVCC (Device) object paddle/fluid/framework/CMakeFiles/tensor.dir/tensor_generated_tensor_util.cu.o
/home/vimos/anaconda3/envs/smu/lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/include/mm_malloc.h(34): error: allowing all exceptions is incompatible with previous function "posix_memalign"
/usr/include/stdlib.h(580): here

1 error detected in the compilation of "/tmp/tmpxft_00003bbc_00000000-13_tensor_util.compute_75.cpp1.ii".
CMake Error at tensor_generated_tensor_util.cu.o.Release.cmake:275 (message):
  Error generating file
  /home/vimos/git/PaddlePaddle/Paddle/cmake-build-release-conda-smu/paddle/fluid/framework/CMakeFiles/tensor.dir//./tensor_generated_tensor_util.cu.o


make[3]: *** [paddle/fluid/framework/CMakeFiles/tensor.dir/build.make:1214: paddle/fluid/framework/CMakeFiles/tensor.dir/tensor_generated_tensor_util.cu.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:6963: paddle/fluid/framework/CMakeFiles/tensor.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:68426: paddle/fluid/operators/jit/CMakeFiles/jit_kernel_benchmark.dir/rule] Error 2
make: *** [Makefile:7613: jit_kernel_benchmark] Error 2

I am using GCC-7.3, while the repo is GCC-4.8.

What might be a fix to these problems if I stick to GCC-7.3?


Viewing all articles
Browse latest Browse all 22040

Trending Articles



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