System studio 2018: GXX_ROOT

System studio 2018: GXX_ROOT

Hello,

In my linux host I have a g++ compiler created with crosstool-ng

This is the g++ I want icpc to use, not the default one. 

So I ran:

export GXX_ROOT=/my_toolchain/release/bin

export GXX_INCLUDE=/my_toolchain/release/x86_64-unknown-linux-gnu/include/c++/6.3.0

export SYSROOT= /my_toolchain/release/x86_64-unknown-linux-gnu/sysroot

export GNU_PREFIX=x86_64-unknown-linux-gnu-

The GXX_ROOT contains the g++ compiler:  x86_64-unknown-linux-gnu-g++

But upon runnning the linker, it seems icpc still uses the default g++ installed in the host. 

In my case, the host has no g++. 

So I got the error:

Requires 'install path' setting gathered from g++

Can you please help ?

Thank you,

Zvika 

publicaciones de 5 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

Hello,

I made a little progress.

Now I got an error message in the link phase:

x86_64-unknown-linux-gnu-ld: No such file or directory

How can I tell icpc where to look for x86_64-unknown-linux-gnu-ld ?

Thank you,

Zvika 

Hello,

I updated PATH and now it contains the path to :

x86_64-unknown-linux-gnu-ld

Now I got the error message:

x86_64-unknown-linux-gnu-ld.bfd: cannot find -lgcc

Can you please help ?

Thank you,

Zvika 

Hello,

In the link phase I added:

-L/my_toolchain/release/lib/gcc/x86_64-unknown-linux-gnu/6.3.0

This folder contains libgcc.a

Is this the right solution ?

Thank you,

Zvika 

Zvi,

For using icpc in System Studio 2018, you need the Linux developer tools component installed , g++ in your case. Please go through the system requirements to see if you have all pre-requisites installed : https://software.intel.com/en-us/articles/intel-c-compiler-180-for-linux-host-release-notes-for-intel-system-studio-2018#sysreq

If you still are having issues, please file a ticket at supporttickets.intel.com

Deje un comentario

Por favor inicie sesión para agregar un comentario. ¿No es socio? Únase ya