Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
7782 Discussions

icc reports "Requires 'install path' setting gathered from 'gcc'"

Hao_Z_
Beginner
5,884 Views

# what happened

sample code("main.c"):
```
int main(){}
```

when run `icc main.c`, it reports:
```
icc: error #10417: Problem setting up the Intel(R) Compiler compilation environment. Requires 'install path' setting gathered from 'gcc'
```

# environments

arch linux
```
Linux zhanghao 4.14.15-1-ARCH #1 SMP PREEMPT Tue Jan 23 21:49:25 UTC 2018 x86_64 GNU/Linux
```

gcc 7.3
```
gcc (GCC) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
```

icc from `parallel_studio_xe_2018_update1_cluster_edition`

# some details

`strace -f icc ./main.c` result is in attach

0 Kudos
6 Replies
Viet_H_Intel
Moderator
5,882 Views

 

Hi, 

It seems to me that the GCC version you have is unsupported in ICC 18.0.

Regards,

Viet 

jperaltac
Novice
5,882 Views

What is the GCC version supported by ICC 18.0? I have the same issue with GCC 6.3

Thanks in advance for your help.

JP

Hao_Z_
Beginner
5,882 Views

I find out where is wrong now ...

when icc compile source, icc will call `gcc --print-search-dirs -m64`

icc expect it output `install: /usr/lib/`

but in my PC, I set environment variable `LC_MESSAGES=zh_CN.UTF-8`

so, its output is `安装:/usr/lib/...` indeed.

then icc cannot understand it

to solve it, run something like `export LC_MESSAGES=POSIX` before run icc

Viet_H_Intel
Moderator
5,882 Views
Hao_Z_
Beginner
5,882 Views
this is not because of incompatible gcc version, but wrong locale environtment setting.
Hao_Z_
Beginner
5,882 Views
As you see, even with correct gcc version, if i set locale to other language, icc won't work still ``` ~  env -i bash -rcfile /dev/null bash-4.2$ gcc --version gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16) Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. bash-4.2$ /opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64/icc --version icc (ICC) 18.0.1 20171018 Copyright (C) 1985-2017 Intel Corporation. All rights reserved. bash-4.2$ cat ./main.c #include int main(){ printf("Hello World\n"); return 0; } bash-4.2$ LC_MESSAGES=zh_CN.UTF-8 /opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64/icc ./main.c icc: error #10417: Problem setting up the Intel(R) Compiler compilation environment. Requires 'install path' setting gathered from 'gcc' bash-4.2$ locale LANG= LC_CTYPE="POSIX" LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL= bash-4.2$ exit ~  ```
Reply