I am trying to install IO on a macbook pro but am stuck at the following:
Linking CXX shared library _build/dll/libIoObjcBridge.dylib ld:
library not found for -lIoSocket collect2: ld returned 1 exit status
make[2]: * [addons/ObjcBridge/_build/dll/libIoObjcBridge.dylib]
Error 1 make[1]: *
[addons/ObjcBridge/CMakeFiles/IoObjcBridge.dir/all] Error 2
Any suggestions?
Install libevent. I did it with Homebrew.
Related
I am trying to install a debugger called Valgrind on OSX 10.11.2.
While running make, I get the following error
Undefined symbols for architecture i386:
"___ctzdi2", referenced from:
_doRegisterAllocation in libvex-x86-darwin.a(libvex_x86_darwin_a-host_generic_reg_alloc2.o)
ld: symbol(s) not found for architecture i386
make[3]: *** [memcheck-x86-darwin] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Do you know how to fix this?
This may or may not work for you, as I am operating in the following environment:
OS X 10.11.2,
Xcode 7.3.1
Custom built GCC 6.2.0 from source (which I am using instead of Xcode's clang compiler)
The following patch file applied to valgrind-3.12.0:
https://gist.github.com/milljm/22e40e723fb9faf201b83197fc23b4a1
I received the same error as OP, until I used the following extra configure argument:
./configure --enable-only64bit
Has anyone successfully cross compiled GHC 7.8.3 for raspberry pi on a Mac?
My build keeps failing with the following error.
ld: archive has no table of contents file '/Volumes/Media/RaspberryPi/ghc-7.8.3/libraries/terminfo/dist-boot/build/libHSterminfo-0.4.0.0.a' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: * [utils/ghc-pkg/dist/build/tmp/ghc-pkg] Error 1
make: * [all] Error 2
When I install gearmand on mac10.8.3. Everything seems fine when I install libevent boost and so on . But at last I got and error return 1 when I run command make.
Error infomation is :
`make -j5 all-am
CXXLD bin/gearadmin
ld: library not found for -lboost_program_options-mt
collect2: ld returned 1 exit status
make[1]: * [bin/gearadmin] Error 1
make: * [all] Error 2`
I guess you need libboost-program-options-dev (debian name) library - try to find how it's named in MacOS.
I am currently working on an OpenMP program running both on Linux (openSUSE 12.2) and OS X (10.8.1), both x86_64. Linking is no problem on Linux, on OS X however I get the following error:
Undefined symbols for architecture x86_64:
"_gomp_tls_key", referenced from:
_GOMP_barrier in libgomp.a(barrier.o)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [src/resolma_t] Error 1
make[1]: *** [src/CMakeFiles/resolma_t.dir/all] Error 2
make: *** [all] Error 2
How do I fix this? g++ is invoked with -fopenmp so this obviously can't be the reason. My gcc version is i686-apple-darwin11-llvm-gcc-4.2, other OpenMP programs link and work perfectly on the same machine.
I am trying to compile open MPI (release 1.5.4) from the source code on a Macbook Pro (OS X Lion) with Xcode 4.1 installed. I configure the openmpi with the following options;
../configure CFLAGS=-m64 CXXFLAGS=-m64 FFLAGS=-m64 FCFLAGS=-m64 --with-wrapper-cflags=-m64 --with-wrapper-cxxflags=-m64
in a new/clean directory. When I try make it gives me the following error;
Making all in otfprofile
CXX otfprofile-otfprofile.o
CXX otfprofile-CSVParse.o
CXX otfprofile-DataStructure.o
CXX otfprofile-Handler.o
CXX otfprofile-Prodtex.o
CXX otfprofile-Summary.o
CXXLD otfprofile
Undefined symbols for architecture x86_64:
"___builtin_expect", referenced from:
_main.omp_fn.0 in otfprofile-otfprofile.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[9]: *** [otfprofile] Error 1
make[8]: *** [all-recursive] Error 1
make[7]: *** [all-recursive] Error 1
make[6]: *** [all] Error 2
make[5]: *** [all-recursive] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
I have gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00), gfortran GNU Fortran (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
I heard that I can use MacPorts for an easy installation but I want to compile it myself from the source. Can someone suggest me if I need to set some extra flags or what is causing this error? Please let me know if you need any further information. Thanks.
__builtin_expect is a gcc extension. I'd guess the clang/LLVM move from Apple doesn't support that but thinks it's gcc still.
There's a macro in OpenMPI which is set conditionally, but most likely incorrectly here. Since __builtin_expect is just an optimisation to hint about branch prediction you can probably fix the build by forcing the macro OMPI_CXX_HAVE_BUILTIN_EXPECT to be undefined during build.