[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gsl] cross-compiling bug
From: |
Tim Rambo |
Subject: |
Re: [Bug-gsl] cross-compiling bug |
Date: |
Wed, 23 Jul 2008 07:57:56 -0400 |
Thanks! I actually got the code to compile by removing the -O2 compile flag
with the configuration option CPPFLAGS="-g". Also, there is an error when
making libgslsiman. This is fixed by editing the compile flags in the siman
makefile to include a -lm for the math library.
>>> Brian Gough <address@hidden> 7/23/2008 2:50 AM >>>
At Fri, 18 Jul 2008 13:50:33 -0400,
Tim Rambo wrote:
>
> I am trying to install the library in cygwin for cross compiling. however
> after I configure it I get errors trying to make it.
>
> I configure with:
>
> ./configure CC=/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu-gcc
> CPP=/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu-cpp
> --exec-prefx=/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/
> --disable-shared --build-=i686-pc-cygwin --host=arm-unknown-linux-gnu
> .....
>
> Is this a bug or am I just doing this wrong?
Thanks for the bug report. The configure script says
checking for strdup... no
This causes a replacement for strdup to be included, and it is the
compilation of that file which gives errors.
I imagine your system does have strdup() -- if you can figure out why
it is not being detected, and fix that problem, it will avoid any
attempt to compile the extra strdup.c file. (Perhaps it's a macro?)
Otherwise you'll need to edit the utils/Makefile to remove the
reference to strdup.c
--
Brian Gough
GNU Scientific Library -
http://www.gnu.org/software/gsl/