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

Architecture/Library problem for new C++ install

Eric_Anderson
Beginner
325 Views
I'm trying to install icc on MAC OS X, but after installation is completed I'm unable to create executables. It looks like there is a problem with set libraries, but my environment doesn't lend any help to the issue.
Once icc is installed, I'm just running a test 'Hello World' program and I get this:
ld: warning: in /usr/local/lib/ppc64/libstdc++.dylib, file is not of required architecture
ld: warning: in /usr/local/lib/libgcc_s.10.5.dylib, missing required architecture x86_64 in file
ld: warning: in /usr/local/lib/gcc/powerpc-apple-darwin8.9.0/4.3.0/ppc64//libgcc.a, file is not of required architecture
Undefined symbols:
"__ZNSsC1EPKcRKSaIcE", referenced from:
_main in icpccUVYXJ.o
"__ZNSaIcED1Ev", referenced from:
_main in icpccUVYXJ.o
_main in icpccUVYXJ.o
"___gxx_personality_v0", referenced from:
CIE in icpccUVYXJ.o
"__ZNSaIcEC1Ev", referenced from:
_main in icpccUVYXJ.o
"__ZNSsD1Ev", referenced from:
_main in icpccUVYXJ.o
ld: symbol(s) not found
It looks like it's trying to access the wrong libraries, but I'm not sure where these are coming from....my environment is as follows:
PATH=/opt/intel/Compiler/11.1/088/bin/intel64:/opt/intel/Compiler/11.1/088/bin:/opt/intel/Compiler/11.1/088/bin/intel64:/opt/intel/Compiler/11.1/076/bin/intel64:/usr/local/bin:/opt/intel/Compiler/11.1/076/bin/intel64:/opt/intel/Compiler/11.1/076/bin:/Applications/CBS/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
TMPDIR=/var/folders/eh/ehpdRaILGQaDqd10BhrxOk++0+Q/-Tmp-/
SHELL=/bin/tcsh
DISPLAY=/tmp/launch-9CyPEa/org.x:0
SSH_AUTH_SOCK=/tmp/launch-4qlBW9/Listeners
Apple_PubSub_Socket_Render=/tmp/launch-SihkUa/Render
COMMAND_MODE=unix2003
__CF_USER_TEXT_ENCODING=0x807:0:0
TERM_PROGRAM=Apple_Terminal
TERM_PROGRAM_VERSION=273
LANG=en_US.UTF-8
TERM=xterm-color
HOSTTYPE=intel-mac
VENDOR=apple
OSTYPE=darwin
MACHTYPE=x86_64
SHLVL=1
GROUP=unknown
REMOTEHOST=
CBS=/Applications/CBS
CLICOLOR=true
LSCOLORS=exfxcxdxbxegedabagacad
MANPATH=/opt/intel/Compiler/11.1/088/man/en_US:/opt/intel/Compiler/11.1/076/Frameworks/mkl/man/en_US:/opt/intel/Compiler/11.1/088/man:/opt/intel/Compiler/11.1/088/man/en_US:/opt/intel/Compiler/11.1/076/man/en_US:/opt/intel/Compiler/11.1/076/man/en_US:/opt/intel/Compiler/11.1/076/Frameworks/mkl/man/en_US:/opt/intel/Compiler/11.1/076/man:/opt/intel/Compiler/11.1/076/man:/usr/share/man:/usr/local/share/man:/usr/X11/man
INCLUDE=/opt/intel/Compiler/11.1/088/Frameworks/ipp/Headers:/opt/intel/Compiler/11.1/076/Frameworks/mkl/Headers:/opt/intel/Compiler/11.1/076/Frameworks/mkl/Headers
DYLD_LIBRARY_PATH=/opt/intel/Compiler/11.1/088/lib:/opt/intel/Compiler/11.1/088/lib/intel64:/opt/intel/Compiler/11.1/088/Frameworks/ipp/Libraries:/opt/intel/Compiler/11.1/076/Frameworks/mkl/lib/em64t:/opt/intel/Compiler/11.1/088/Frameworks/tbb/ia32/cc4.0.1_os10.5.4/lib:/opt/intel/Compiler/11.1/088/lib:/opt/intel/Compiler/11.1/088/lib/intel64:/opt/intel/Compiler/11.1/076/lib:/opt/intel/Compiler/11.1/076/lib/intel64:/opt/intel/Compiler/11.1/076/lib:/opt/intel/Compiler/11.1/076/lib/intel64:/opt/intel/Compiler/11.1/076/Frameworks/mkl/lib/em64t
LIBRARY_PATH=/opt/intel/Compiler/11.1/088/lib:/opt/intel/Compiler/11.1/088/Frameworks/ipp/lib:/opt/intel/Compiler/11.1/076/Frameworks/mkl/lib/em64t:/opt/intel/Compiler/11.1/088/Frameworks/tbb/ia32/cc4.0.1_os10.5.4/lib:/opt/intel/Compiler/11.1/088/lib:/opt/intel/Compiler/11.1/076/lib:/opt/intel/Compiler/11.1/076/lib:/opt/intel/Compiler/11.1/076/Frameworks/mkl/lib/em64t
CPATH=/opt/intel/Compiler/11.1/088/Frameworks/ipp/Headers:/opt/intel/Compiler/11.1/076/Frameworks/mkl/include:/opt/intel/Compiler/11.1/088/Frameworks/tbb/include:/opt/intel/Compiler/11.1/076/Frameworks/mkl/include
FPATH=/opt/intel/Compiler/11.1/076/Frameworks/mkl/include:/opt/intel/Compiler/11.1/076/Frameworks/mkl/include
NLSPATH=/opt/intel/Compiler/11.1/088/lib/locale/en_US/%N:/opt/intel/Compiler/11.1/088/Frameworks/ipp/lib/locale/%l_%t/%N:/opt/intel/Compiler/11.1/076/Frameworks/mkl/lib/em64t/locale/%l_%t/%N:/opt/intel/Compiler/11.1/088/lib/locale/en_US/%N:/opt/intel/Compiler/11.1/076/lib/locale/en_US/%N:/opt/intel/Compiler/11.1/076/lib/locale/en_US/%N:/opt/intel/Compiler/11.1/076/Frameworks/mkl/lib/em64t/locale/%l_%t/%N
INTEL_LICENSE_FILE=/opt/intel/Compiler/11.1/088/licenses:/opt/intel/licenses:/Users/anderson/intel/licenses:/Users/Shared/Library/Application Support/Intel/Licenses:/opt/intel/Compiler/11.1/088/licenses:/opt/intel/licenses:/Users/anderson/intel/licenses:/Users/Shared/Library/Application Support/Intel/Licenses:/opt/intel/Compiler/11.1/076/licenses:/opt/intel/licenses:/Users/anderson/intel/licenses:/Users/Shared/Library/Application Support/Intel/Licenses:/opt/intel/Compiler/11.1/076/licenses:/opt/intel/licenses:/Users/anderson/intel/licenses:/Users/Shared/Library/Application Support/Intel/Licenses
DYLIB_LIBRARY_PATH=/usr/bin/icc-11.1-base/lib/intel64
LIB_LIBRARY_PATH=/usr/bin/icc-11.1-base/lib/intel64
TBB22_INSTALL_DIR=/opt/intel/Compiler/11.1/088/Frameworks/tbb
TBB_ARCH_PLATFORM=ia32/cc4.0.1_os10.5.4
LD_LIBRARY_PATH=/opt/intel/Compiler/11.1/088/Frameworks/tbb/ia32/cc4.0.1_os10.5.4/lib
MKLROOT=/opt/intel/Compiler/11.1/088/Frameworks/mkl
IPPROOT=/opt/intel/Compiler/11.1/088/Frameworks/ipp
LIB=/opt/intel/Compiler/11.1/088/Frameworks/ipp/lib
Can anyone shed some light on this issue? It seems like the install is basically free of my input, and I don't see these libraries being pointed to anywhere in my environment...so not sure where the error comes from...or even if this is the real cause of the error.
Any help would be appreciated!
Thanks!
0 Kudos
2 Replies
mecej4
Honored Contributor III
325 Views
There seems to be something amiss in your installation. Assuming that you have an X86 CPU (there is no PPC version of Intel C), why does ld look for libraries in /usr/local/lib/ppc64 ?

Can you compile and run a test C program using the system C compiler?

What do you get for
[bash]echo $LD_LIBRARY_PATH ?[/bash]

0 Kudos
levicki
Valued Contributor I
325 Views
I didn't work on Mac but to me it seems that your linker is confused because it finds Power PC libraries where it is expecting x86 or x86-64. If libraries are resolved using symbolic links you might want to check/change them and to rebuild linker library cache.
0 Kudos
Reply