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

icc: error #10149: option '-cxxlib-gcc' not supported with the current installed GCC

yajivbs
Beginner
1,074 Views
Hi I am using intel compilers for netcdf-3.6.3 installation. While installing this software i am getting the following error. Any body can tell me how to solve this problem

configure:3588: checking for C compiler version
configure:3596: icc --version >&5
icc: error #10149: option '-cxxlib-gcc' not supported with the current installed GCC
configure:3600: $? = 1
configure:3607: icc -v >&5
Version 11.0
configure:3611: $? = 0
configure:3618: icc -V >&5
Intel C Intel 64 Compiler Professional for applications running on Intel 64, Version 11.0 Build 20081105 Package ID: l_cproc_p_11.0.074
Copyright (C) 1985-2008 Intel Corporation. All rights reserved.
FOR NON-COMMERCIAL USE ONLY

configure:3622: $? = 0
configure:3645: checking for C compiler default output file name
configure:3667: icc conftest.c >&5
icc: error #10149: option '-cxxlib-gcc' not supported with the current installed GCC
configure:3671: $? = 1
configure:3709: result:
configure: failed program was:

Regards
yajivbs
0 Kudos
12 Replies
TimP
Black Belt
1,074 Views
I guess it means you must remove the option -cxxlib-gcc from the build. There has never been an option in this respect for icpc Intel64. It meant use the libstdc++ from the active g++, for past versions of icc which provided a Dinkumware STL, in cases where people wanted to use an ancient gcc which had no libstdc++ resembling the standard ones.
Read the note about netcdf and icc, and show us your g++ -print-search-dirs, if you have further trouble.
0 Kudos
yajivbs
Beginner
1,074 Views
Quoting - tim18
I guess it means you must remove the option -cxxlib-gcc from the build. There has never been an option in this respect for icpc Intel64. It meant use the libstdc++ from the active g++, for past versions of icc which provided a Dinkumware STL, in cases where people wanted to use an ancient gcc which had no libstdc++ resembling the standard ones.
Read the note about netcdf and icc, and show us your g++ -print-search-dirs, if you have further trouble.

Hi
Thank you very much for your reply. How to remove -cxxlib-gcc from build.

0 Kudos
TimP
Black Belt
1,074 Views
Quoting - yajivbs

Hi
Thank you very much for your reply. How to remove -cxxlib-gcc from build.

That option must be coming from your netcdf configure or makefiles. So get out grep and your text editor.
0 Kudos
yajivbs
Beginner
1,074 Views
Quoting - tim18
That option must be coming from your netcdf configure or makefiles. So get out grep and your text editor.

Hi

Thank you very much for your reply.

This is my g++ -print-search-dirs

[root@vijay ~]# g++ -print-search-dirs
install: /usr/lib/gcc/x86_64-redhat-linux/3.4.6/
programs: =/usr/libexec/gcc/x86_64-redhat-linux/3.4.6/:/usr/libexec/gcc/x86_64-redhat-linux/3.4.6/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/3.4.6/:/usr/lib/gcc/x86_64-redhat-linux/:/usr/libexec/gcc/x86_64-redhat-linux/3.4.6/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/3.4.6/:/usr/lib/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../x86_64-redhat-linux/bin/x86_64-redhat-linux/3.4.6/:/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../x86_64-redhat-linux/bin/
libraries: =/usr/lib/gcc/x86_64-redhat-linux/3.4.6/:/usr/lib/gcc/x86_64-redhat-linux/3.4.6/:/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../x86_64-redhat-linux/lib/x86_64-redhat-linux/3.4.6/:/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../x86_64-redhat-linux/lib/:/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../x86_64-redhat-linux/3.4.6/:/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../:/lib/x86_64-redhat-linux/3.4.6/:/lib/:/usr/lib/x86_64-redhat-linux/3.4.6/:/usr/lib/

[root@vijay ~]# rpm -qa | grep gcc
gcc-4.1.1-52.el5
compat-gcc-34-g77-3.4.6-4
libgcc-4.1.1-52.el5
libgcc-4.1.1-52.el5
compat-gcc-34-3.4.6-4
compat-gcc-34-c++-3.4.6-4
[root@vijay ~]#

How to solve that icc problem

0 Kudos
Om_S_Intel
Employee
1,074 Views
Quoting - yajivbs

Hi

Thank you very much for your reply.

This is my g++ -print-search-dirs

[root@vijay ~]# g++ -print-search-dirs
install: /usr/lib/gcc/x86_64-redhat-linux/3.4.6/
programs: =/usr/libexec/gcc/x86_64-redhat-linux/3.4.6/:/usr/libexec/gcc/x86_64-redhat-linux/3.4.6/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/3.4.6/:/usr/lib/gcc/x86_64-redhat-linux/:/usr/libexec/gcc/x86_64-redhat-linux/3.4.6/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/3.4.6/:/usr/lib/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../x86_64-redhat-linux/bin/x86_64-redhat-linux/3.4.6/:/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../x86_64-redhat-linux/bin/
libraries: =/usr/lib/gcc/x86_64-redhat-linux/3.4.6/:/usr/lib/gcc/x86_64-redhat-linux/3.4.6/:/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../x86_64-redhat-linux/lib/x86_64-redhat-linux/3.4.6/:/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../x86_64-redhat-linux/lib/:/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../x86_64-redhat-linux/3.4.6/:/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../:/lib/x86_64-redhat-linux/3.4.6/:/lib/:/usr/lib/x86_64-redhat-linux/3.4.6/:/usr/lib/

[root@vijay ~]# rpm -qa | grep gcc
gcc-4.1.1-52.el5
compat-gcc-34-g77-3.4.6-4
libgcc-4.1.1-52.el5
libgcc-4.1.1-52.el5
compat-gcc-34-3.4.6-4
compat-gcc-34-c++-3.4.6-4
[root@vijay ~]#

How to solve that icc problem


You have find -cxxlib-gcc option string and remove it as this is not supported in icc 11.0.


0 Kudos
Dny
Beginner
1,074 Views

You have find -cxxlib-gcc option string and remove it as this is not supported in icc 11.0.





Hello Sir,
Can you please give me the steps to remove -cxxlib-gcc option?
I'm also getting error for using gcc 4.2 with icc 11.0

icc: error #10149: option '-cxxlib-gcc' not supported with the current installed GCC

Thanking you,
Dny

0 Kudos
Om_S_Intel
Employee
1,074 Views

I do not have expertise in netcdf-3.6.3 build. The option is coming from some makefile or configure.
0 Kudos
viniciushax
Beginner
1,074 Views
Is g++ already installed?

I receive this message from a system without g++.

Type:
$ which g++

I read too that this message can be generated when using diferent versions of gcc and g++.

[]
0 Kudos
TimP
Black Belt
1,074 Views
Quoting - viniciushax
Is g++ already installed?

I receive this message from a system without g++.

Type:
$ which g++

I read too that this message can be generated when using diferent versions of gcc and g++.

[]
Yes, there seems to be a bug which causes this message to come out as a result of an installation error. icc will not run correctly without a working g++. As you said, there was an earlier post where a mis-match between gcc and g++ produced such a failure.
0 Kudos
Yang_W_Intel
Employee
1,074 Views
Quoting - yajivbs
Hi I am using intel compilers for netcdf-3.6.3 installation. While installing this software i am getting the following error. Any body can tell me how to solve this problem

configure:3588: checking for C compiler version
configure:3596: icc --version >&5
icc: error #10149: option '-cxxlib-gcc' not supported with the current installed GCC
configure:3600: $? = 1
configure:3607: icc -v >&5
Version 11.0
configure:3611: $? = 0
configure:3618: icc -V >&5
Intel C Intel 64 Compiler Professional for applications running on Intel 64, Version 11.0 Build 20081105 Package ID: l_cproc_p_11.0.074
Copyright (C) 1985-2008 Intel Corporation. All rights reserved.
FOR NON-COMMERCIAL USE ONLY

configure:3622: $? = 0
configure:3645: checking for C compiler default output file name
configure:3667: icc conftest.c >&5
icc: error #10149: option '-cxxlib-gcc' not supported with the current installed GCC
configure:3671: $? = 1
configure:3709: result:
configure: failed program was:

Regards
yajivbs


The KB here: http://software.intel.com/en-us/articles/cdiag10149/ and the discussion here: http://software.intel.com/en-us/forums/showthread.php?t=65784 may help.
0 Kudos
Vitalwonhyo_L_
Beginner
1,074 Views
icc -gcc-name=gcc34
OR for icpc
icpc -gxx-name=g++34
I use this for solve icc problem
0 Kudos
Judith_W_Intel
Employee
1,074 Views

Also check your icc.cfg and iccvars.shfiles. May be someone added it there? And check to see that "icc" isn't aliased to "icc -cxxlib-gcc". The icc.cfg you are usingshould be in /bin.

Judy
0 Kudos
Reply