Hi,
I'm building the HDF4 library (version 4.2.10) and am encountering a segfault in icc 15.0.0.090 while compiling one file in particular:
/bin/sh ../../libtool --tag=CC --mode=compile icc -DHAVE_CONFIG_H -I. -DBIG_LONGS -DSWAP -O3 -ip -xHost -fPIC -O -MT dfconv.lo -MD -MP -MF .deps/dfconv.Tpo -c -o dfconv.lo dfconv.c libtool: compile: icc -DHAVE_CONFIG_H -I. -DBIG_LONGS -DSWAP -O3 -ip -xHost -fPIC -O -MT dfconv.lo -MD -MP -MF .deps/dfconv.Tpo -c dfconv.c -fPIC -DPIC -o .libs/dfconv.o": internal error: ** segmentation violation signal raised ** Access violation or stack overflow. Please contact Support. compilation aborted for dfconv.c (code 4)
I can work around it by either turning off optimisation for that file using -O0 or using an earlier version of the compiler (14.3.174). Since I can workaround it, I didn't feel like digging through the source to find what was causing it, but since it's an ICE if you want to investigate it it's <basedir>/hdf/src/dfconv.c.
This is the version of icc that has the problem:
13:36 bjm900@raijin5 ~ > icc -V Intel(R) C Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 15.0.0.090 Build 20140723 Copyright (C) 1985-2014 Intel Corporation. All rights reserved.
And this is the version that doesn't:
13:37 bjm900@raijin5 ~ > icc -V Intel(R) C Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 14.0.3.174 Build 20140422 Copyright (C) 1985-2014 Intel Corporation. All rights reserved.
Cheers,
Ben