You are not logged in.

#1 2018-08-11 05:19:26

hzhangxyz
Member
Registered: 2018-03-26
Posts: 6

[SOLVED] intel c compiler crash when set LC_MESSAGES

icc call `gcc --print-search-dirs -m64` to get gcc install path.

but if I set LC_MESSAGES, "install:" in gcc's output `install: /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/` will be translated to locale language which icc cannot understand and report:

`icc: error #10417: Problem setting up the Intel(R) Compiler compilation environment.  Requires 'install path' setting gathered from 'gcc'`

`export LC_MESSAGES=en_US.UTF-8` before run icc to solve it.

---

before calling gcc, icc set LANG to en_US.UTF-8 and check LC_ALL, if LC_ALL is set, icc overwrite it with en_US

so for the situation that LC_ALL not set but LC_MESSAGES set, icc cannot run.

Last edited by hzhangxyz (2018-08-11 05:57:53)


啊啊啊啊啊啊啊啊啊啊

Offline

Board footer

Powered by FluxBB