Hi, I was trying to compile my Openmp parallel code, and see the effects of turning of f of some optimization parameters. I get an internal compiler error. The whole error is attached below.
miner-02:/files4/berkin/kmeans % make OPTFLAGS="-O3 -fno-unit-at-a-time -v -save-temps" /files4/berkin/gcc-4.2.1/bin/gcc -fopenmp -O3 -fno-unit-at-a-time -v -save-temps -c fuzzy_kmeans.c Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../gcc/configure --prefix=/files4/berkin/gcc-4.2.1 --enable-threads Thread model: posix gcc version 4.2.1 /files4/berkin/gcc-4.2.1/libexec/gcc/i686-pc-linux-gnu/4.2.1/cc1 -E -quiet -v -D_REENTRANT fuzzy_kmeans.c -mtune=generic -fopenmp -fno-unit-at-a-time -O3 -fpch-preprocess -o fuzzy_kmeans.i ignoring nonexistent directory "/files4/berkin/gcc-4.2.1/lib/gcc/i686-pc-linux-gnu/4.2.1/../../../../i686-pc-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /usr/local/include /files4/berkin/gcc-4.2.1/include /files4/berkin/gcc-4.2.1/lib/gcc/i686-pc-linux-gnu/4.2.1/include /usr/include End of search list. /files4/berkin/gcc-4.2.1/libexec/gcc/i686-pc-linux-gnu/4.2.1/cc1 -fpreprocessed fuzzy_kmeans.i -quiet -dumpbase fuzzy_kmeans.c -mtune=generic -auxbase fuzzy_kmeans -O3 -version -fopenmp -fno-unit-at-a-time -o fuzzy_kmeans.s GNU C version 4.2.1 (i686-pc-linux-gnu) compiled by GNU C version 4.2.1. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 80e6f10ad3e2beca945f13dba64821c7 fuzzy_kmeans.c: In function 'fuzzy_kmeans_cluster': fuzzy_kmeans.c:111: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. make: *** [fuzzy_kmeans.o] Error 1 -- Summary: Internal compiler error when using -fopenmp -O3 -fno- unit-at-a-time option Product: gcc Version: 4.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: boz283 at ece dot northwestern dot edu GCC build triplet: i686-pc-linux-gnu GCC host triplet: AMD Athlon 2.2ghz GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32885