Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7957 Discussions

could not set locale error: OS X, 10.1.006

mdobossy
Beginner
1,149 Views
I have an opensource library I use quite often (it++). Up until this point, I have had no problems compiling using the intel compilers. However, I just upgraded to 10.1.006, and now when I try to run the configure script, I get the error
'Catastrophic error: could not set locale "" to allow processing of multibyte characters'. The lines from the configure log of interest are:

configure:2830: $? = 0
configure:2853: checking for C++ compiler default output file name
configure:2880: icpc conftest.cpp >&5
Catastrophic error: could not set locale "" to allow processing of multibyte characters

compilation aborted for conftest.cpp (code 4)
configure:2883: $? = 4
configure:2921: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "IT++"
| #define PACKAGE_TARNAME "itpp"
| #define PACKAGE_VERSION "4.1-dev"
| #define PACKAGE_STRING "IT++ 4.1-dev"
| #define PACKAGE_BUGREPORT "xxxx@users.sourceforge.net"
| #define PACKAGE "itpp"
| #define VERSION "4.1-dev"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2928: error: C++ compiler cannot create executables

If I switch back to 10.0.020, the configure script works fine. I am at a loss here, as I have never seen an error like this. Any ideas on how to fix it?
0 Kudos
4 Replies
JenniferJ
Moderator
1,149 Views

Yes, it is a bug and is being worked on. If there's a work around, I'll post it to here soon.

0 Kudos
JenniferJ
Moderator
1,149 Views

There're two workarounds for this problem.

1. add this option to your compile options "-no-multibyte-chars".

2. build the program as normal user instead of ROOT.

0 Kudos
mdobossy
Beginner
1,149 Views
madjljiang-

Thanks for the information. I'll give #1 a try, and report back.

As for option 2, it isn't a fix, as I am trying to build as a normal user in the first place.

-Mark
0 Kudos
grs2103
Beginner
1,149 Views
I'm experiencing the same error with GSL, a GNU library. Thank god I found this fix.
0 Kudos
Reply