[R] Mac OS X Leopard and C compiling
elw at stderr.org
elw at stderr.org
Tue Nov 6 03:12:32 CET 2007
Notable that your commandline is trying to use the 10.4u sdk, while ld is
trying to use libdylib "10.5" - aka leopard dynamic linker.
The two probably don't go all that groovily together... :)
is the -isysroot /Developer/SDKs/MacOSX10.4u.sdk bit being generated by R
CMD SHLIB?
Where'd the R come from? Built on Tiger or Leopard? My guess = Tiger...
maybe try a source build of R with current XCode, and then use that?
--e
On Mon, 5 Nov 2007, Daniel McDonald wrote:
> Date: Mon, 5 Nov 2007 20:10:29 -0500
> From: Daniel McDonald <dajmcdon at gmail.com>
> To: r-help at r-project.org
> Subject: [R] Mac OS X Leopard and C compiling
>
> I recently bought a new Intel Mac with OSX Leopard. I reinstalled the
> latest version of R and the Xcode tools. I'm trying to compile a C
> source code with the R compiler in X11, and I receive the following
> error message:
>
> [Macintosh:School Work 07-08/36-711/HW 3] dajmcdon% R CMD SHLIB McDonaldHW3.c
> gcc-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
> -std=gnu99 -no-cpp-precomp
> -I/Library/Frameworks/R.framework/Resources/include
> -I/Library/Frameworks/R.framework/Resources/include/i386 -msse3
> -fPIC -g -O2 -march=nocona -c McDonaldHW3.c -o McDonaldHW3.o
> gcc-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
> -std=gnu99 -dynamiclib -Wl,-headerpad_max_install_names
> -Wl,-macosx_version_min -Wl,10.3 -undefined dynamic_lookup
> -single_module -multiply_defined suppress -L/usr/local/lib -o
> McDonaldHW3.so McDonaldHW3.o -F/Library/Frameworks/R.framework/..
> -framework R
> ld: library not found for -ldylib1.10.5.o
> collect2: ld returned 1 exit status
> make: *** [McDonaldHW3.so] Error 1
>
> McDonaldHW3.c is the code I am trying to compile. It works fine on my
> old machine but not on the new one. Any ideas?
>
> Thanks,
> Daniel
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
More information about the R-help
mailing list