Oracle Solaris System Administration (MOSC)

MOSC Banner

How to set up clang++ in Oracle Solaris 11.4 Beta?

edited Feb 27, 2018 4:01AM in Oracle Solaris System Administration (MOSC) 2 commentsAnswered

I'm trying Oracle Solaris 11.4 Beta.

My baseline is the standard text installation pointing to a local repo.

I have successfully installed the newer GNU packages:

# pkg install --be-name developer-gnu developer-gnu

But it seems I couldn't get clang working by the simple addition of:

# pkg install --be-name clang clang

When I attempt a simple test I get the following:

user1@s11.4b:/tmp

$ clang++ -v -std=c++11 -m64 -o test test.cpp

UseGnuAs: true

UseGnuLd: false

UseGoldLd: false

UseSunLd: true

UseMediatedGCCToolChainPath: false

UseSpecifiedGCCToolChainPath: false

GCCInstallDir: /usr/gcc/

GCCMajor: 5

GCCMajorMinorMicro:

GCCInternalLibDir: /usr/gcc/5/lib/gcc/x86_64-pc-solaris2.11/

GCCInternalMultiLibDir: /usr/gcc/5/lib/gcc/x86_64-pc-solaris2.11//32

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center