Compile GSL with RTEMS

Espúreo Fernandez-Ulloa estados_espureos at
Mon Sep 5 16:24:16 UTC 2011

Thanks for the quick answer and apologize for the blury description.

I've been following the GSL documentation to include the library on my example, to try it with RTEMS.

Set the linker flags " -lgsl -lgslcblas -lm" and included the path to the location where it's installed on my system.

However, the linker exits with an error, with the following description:

/opt/rtems-4.10/lib/gcc/sparc-rtems/4.4.5/../../../../sparc-rtems/bin/ld: skipping incompatible /usr/local/lib/libgsl.a when searching for -lgsl
/opt/rtems-4.10/lib/gcc/sparc-rtems/4.4.5/../../../../sparc-rtems/bin/ld: cannot find -lgsl


De: Ralf Corsepius <ralf.corsepius at>
Para: Espúreo Fernandez-Ulloa <estados_espureos at>
CC: "rtems-users at" <rtems-users at>
Enviado: lunes, 5 de septiembre de 2011 12:19
Asunto: Re: Compile GSL with RTEMS

On 09/05/2011 04:44 PM, Espúreo Fernandez-Ulloa wrote:
> Hi,
> I've been working with RTEMS 4.10 for the LEON3 processor for a few
> months, and tried to include the GSL library to compile an ordinary
> example with no further results so far.
> Haven't found enough information on the web to understand how to
> correctly include it in a project.
> Does anyone have a suggestion to follow in order to get an application
> running GSL functions?
> Thanks in advance,

You are not providing sufficient details. What exactly is your problem?

Building gsl is close to being as trivial as cross-compilation can be:

configure --host=sparc-rtems4.10 \
CC="sparc-rtems4.10 -mcyprus -msoft-float" \
<more options>

configure --host=sparc-rtems4.10 \
CFLAGS="-mcyprus -msoft-float"
<more options>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list