[R-SIG-Mac] FIXED - Error compiling gnlm package from source -FIXED

John Vaul john.vaul at ntlworld.com
Thu Dec 1 10:40:26 CET 2005


I have now managed to get the gnlm package installed from source.  
Thanks Jan!

Adding the -lcc_dynamic flag to the Makefile does the trick. There is a  
discussion this at:

http://www.astro.gla.ac.uk/users/norman/note/2004/restFP/

Regards

John

On Nov 30, 2005, at 9:22 PM, Jan de Leeuw wrote:

>
>> Link manually in the src directory and add -lgcc
>>
>>> gcc-3.3 -bundle -flat_namespace -undefined suppress -o gnlm.so
>>> stable.o
>>> -L/usr/local/lib/gcc/powerpc-apple-darwin6.8/3.4.2 -lg2c -lgcc -
>>> lSystem
>>
>> or, alternatively, upgrade R, the compiler, and the OS
>>
>>
>> On Nov 30, 2005, at 12:53 , John Vaul wrote:
>>
>>> Hi
>>>
>>> I am new to R and am trying to install the package gnlm (obtained
>>> from
>>> http://popgen.unimaas.nl/~jlindsey/rcode.html) from source but keep
>>> getting the following messages.
>>>
>>>
>>> * Installing *source* package 'gnlm' ...
>>> ** libs
>>> gcc-3.3 -no-cpp-precomp
>>> -I/Library/Frameworks/R.framework/Resources/include
>>> -I/usr/local/include   -fno-common  -g -O2 -c stable.c -o stable.o
>>> gcc-3.3 -bundle -flat_namespace -undefined suppress -o gnlm.so
>>> stable.o
>>> -L/usr/local/lib/gcc/powerpc-apple-darwin6.8/3.4.2 -lg2c -lSystem
>>> ld: stable.o has external relocation entries in non-writable section
>>> (__TEXT,__text) for symbols:
>>> restFP
>>> saveFP
>>> ** Removing
>>> '/Library/Frameworks/R.framework/Versions/2.2/Resources/library/gnlm'
>>> make: *** [gnlm.so] Error 1
>>> ERROR: compilation failed for package 'gnlm'
>>>
>>> i am running OS 10.3.9, R 1.13
>>>
>>> Any pointers to where I might look to resolve this issue would be
>>> much
>>> appreciated!
>>>
>>>
>>> Regards
>>>
>>> John Vaul
>>>
>>> _______________________________________________
>>> R-SIG-Mac mailing list
>>> R-SIG-Mac at stat.math.ethz.ch
>>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>>>
>>
> ===
> Jan de Leeuw; Distinguished Professor and Chair, UCLA Department of
> Statistics;
> Editor: Journal of Multivariate Analysis, Journal of Statistical
> Software
> US mail: 8130 Math Sciences Bldg, Box 951554, Los Angeles, CA  
> 90095-1554
> phone (310)-825-9550;  fax (310)-206-5658;  email:  
> deleeuw at stat.ucla.edu
> .mac: jdeleeuw ++++++  aim: deleeuwjan ++++++ skype: j_deleeuw
> homepages: http://gifi.stat.ucla.edu ++++++ http://www.cuddyvalley.org
>
> ----------------------------------------------------------------------- 
> -
> -------------------------
>            No matter where you go, there you are. --- Buckaroo Banzai
>                     http://gifi.stat.ucla.edu/sounds/nomatter.au
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>



More information about the R-SIG-Mac mailing list