Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Nolta__Mike
Beginner
162 Views

internal error compiling python 3.6.4 with icc 2018.1 on centos 7.4

Steps to reproduce:

$ wget https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tar.xz
$ tar -xaf Python-3.6.4.tar.xz
$ cd Python-3.6.4/
$ ./configure --with-icc
$ icc -I Include -I. -c Modules/_sha3/sha3module.c -o tmp.o
": internal error: ** The compiler has encountered an unexpected problem.
** Segmentation violation signal raised. **
Access violation or stack overflow. Please contact Intel Support for assistance.

compilation aborted for Modules/_sha3/sha3module.c (code 4)

 

0 Kudos
5 Replies
Viet_H_Intel
Moderator
162 Views

Hi Mike,

Can you please create a preprocess (sha3module.i), by replace -c with -E, and attach it to us to investigate?

Thanks,

Viet

Nolta__Mike
Beginner
162 Views

Sure, attached.

Viet_H_Intel
Moderator
162 Views

 

Thanks, I've reproduced the problem and will submit this bug to our developer for a fix.

Regards,

Viet

Niessen__Peter
Beginner
162 Views

Hello Viet,

did this fix make it into 2018.2?

Cheers, Peter

 

 

HPC-UGent
Beginner
162 Views

I was also seeing this problem with Intel compilers 2018 update 1, when building Python 3.6.4.

It turns out that there's a workaround for this: the underlying cause for the segmentation fault seems to be that there's a stack limit in place (see output of "ulimit -s"). You may be able to dance around the issue by setting the stack limit to unlimited using "ulimit -s unlimited" (whether that'll work depends on the hard limit, see "ulimit -s -H").

I'm not seeing this problem anymore when building Python 3.6.4 with Intel compilers 2018 update 3 with a stack limit in place, so it seems like the bug has been fixed in either 2018 update 2 or 3.

Reply