[Rd] Cross-compilation

Ramon Diaz-Uriarte rdiaz at cnio.es
Wed Oct 25 19:10:40 CEST 2006


Dear Tom,

It has worked for me out-of-the box in at least two times, one a while ago 
with R-2.2-something and recently with R-2.4.0. In both cases, I was running 
Debian (with a mix of testing and unstable) on x86. I never had to do 
anything, just run the script and at least in one case I did crosscompile a 
package with C++.


R.

On Wednesday 25 October 2006 18:03, Tom McCallum wrote:
> Hi everyone,
>
> I am trying to cross-compile a package I wrote using the Yan and Rossini
> tutorial "Building Microsoft Windows versions of R and R packages using
> Intel Linux".  I have got reasonably far with this but when doing the
> linking using the line:
>
> i586-mingw32-g++  -shared -s  -o mylibrary.dll mylibrary.def mylibrary.o
> mylibrary_res.o  -L/my/path/RCrossBuild/WinR/R-2.4.0/bin -lR
>
> I get lots of these type of messages:
> /my/path/to/mylibrary.cpp:43: undefined reference to
> `_GLOBAL_OFFSET_TABLE_'
>
> and other similar linker errors for virtually every object and command in
> the program.  After some googling I have found that there may be problems
> with the libgcc.a library and its default -fPIC argument during
> compilation.
>
> Has anyone got this tutorial to work and if so how did they overcome this?
>
> I am attempting to do this on Fedora Core 4 on a 32-bit machine, having
> completed all the previous sections of the tutorial for building a
> cross-platform version of R.
>
> Many thanks
>
> Tom

-- 
Ramón Díaz-Uriarte
Bioinformatics 
Centro Nacional de Investigaciones Oncológicas (CNIO)
(Spanish National Cancer Center)
Melchor Fernández Almagro, 3
28029 Madrid (Spain)
Fax: +-34-91-224-6972
Phone: +-34-91-224-6900

http://ligarto.org/rdiaz
PGP KeyID: 0xE89B3462
(http://ligarto.org/rdiaz/0xE89B3462.asc)



**NOTA DE CONFIDENCIALIDAD** Este correo electrónico, y en s...{{dropped}}




More information about the R-devel mailing list