Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
18 Views

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 

0 Kudos
3 Replies
Highlighted
Beginner
18 Views

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 

0 Kudos
Highlighted
Beginner
18 Views

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 

0 Kudos
Highlighted
Beginner
18 Views

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 

0 Kudos