Le 04/04/2013 17:52, Jean-Pierre Flori a �crit :
> I'm currently trying to build Sage on FreeBSD and the eclib spkg failed
> because it uses int64_t in eclib/xmod.h.
> Including <inttypes.h> there solves the problem.
I think int64_t is supposed to come from stdint.h, and it's standard:
http://en.wikibooks.org/wiki/C_Programming/C_Reference/stdint.h
I hope that helps,
Maybe something like -D__C99FEATURES__ works? See #14265
Le 05/04/2013 07:29, leif a �crit :
> Julien Puydt wrote:
>> Le 05/04/2013 03:28, leif a �crit :
>>> Or otherwise ask John Cremona... ;-)
>>
>> I suggest to provide him a patch adding the #include at the top of one
>> of the files.
>
> Yep, but better where int64_t is actually used, i.e., in the mentioned
> #else part in xmod.h, and probably some other places (see below).
I'm not sure it makes sense to over-optimize where the file is included:
it's a system include widely available, so there's little interest to
restrict its visibility.
For the record, I got trouble building R as well on the FreeBSD 9.0 x86.
First it cannot find iconv.h (which is a system wide one in /usr/include/sys).
Second, when I help it to find iconv.h, it complains iconv_t is undeclared.
I'll try to build Sage provided iconv and build R on top of that.
On Friday, April 5, 2013 2:04:58 PM UTC+2, Jean-Pierre Flori wrote:For the record, I got trouble building R as well on the FreeBSD 9.0 x86.
First it cannot find iconv.h (which is a system wide one in /usr/include/sys).
Second, when I help it to find iconv.h, it complains iconv_t is undeclared.
I'll try to build Sage provided iconv and build R on top of that.And that seems to work fine.
OK, so I have been lurking but only just noticed that this thread was
relevant to me (of all the stupid things gmail chooses to display
to the right of messages, what it does not do as far as I know is
alert you to the occurrence of your name!)
I gather that I should add #include <stdint.h> at the top of xmod.h
Which line (see
https://github.com/JohnCremona/eclib/blob/master/libsrc/eclib/xmod.h)?
#ifndef _XMOD_H#define _XMOD_H 1
As the ATLAS 3.8.4 install was broken, I gave the 3.10.1 a try.
Same thread related undefined problem as on other exotic platforms with the shared library (at some point form numpy.linalg import lapack_lite will fail, typically during scipy build), so I'm trying with static ones (currently not installed by the spkg).
It seems alright, until scipy builds because it asks numy (from numpy.distutils.system_info import get_info) what the atlas libs are and numpy tells that atlas is name atlas_r (and lapack alapack_r) on freebsd.
Putting back atlas and lapack let the configuration finish, but it then fails later with:
/usr/lib/crt1.o: In function `_start1':
crt1_c.c:(.text+0xa3): undefined reference to `main'
collect2: error: ld returned 1 exit status
/usr/lib/crt1.o: In function `_start1':
crt1_c.c:(.text+0xa3): undefined reference to `main'
collect2: error: ld returned 1 exit status
error: Command "/scratch/jpflori/sage-5.9.beta4-freebsd-90-x86/local/bin/gfortran -Wall build/temp.freebsd-9.0-RELEASE-i386-2.7/build/src.freebsd-9.0-RELEASE-i386-2.7/scipy/fftpack/_fftpackmodule.o build/temp.freebsd-9.0-RELEASE-i386-2.7/scipy/fftpack/src/zfft.o build/temp.freebsd-9.0-RELEASE-i386-2.7/scipy/fftpack/src/drfft.o build/temp.freebsd-9.0-RELEASE-i386-2.7/scipy/fftpack/src/zrfft.o build/temp.freebsd-9.0-RELEASE-i386-2.7/scipy/fftpack/src/zfftnd.o build/temp.freebsd-9.0-RELEASE-i386-2.7/build/src.freebsd-9.0-RELEASE-i386-2.7/scipy/fftpack/src/dct.o build/temp.freebsd-9.0-RELEASE-i386-2.7/build/src.freebsd-9.0-RELEASE-i386-2.7/scipy/fftpack/src/dst.o build/temp.freebsd-9.0-RELEASE-i386-2.7/build/src.freebsd-9.0-RELEASE-i386-2.7/fortranobject.o -L/scratch/jpflori/sage-5.9.beta4-freebsd-90-x86/local/lib/gcc/i386-unknown-freebsd9.0/4.7.2 -Lbuild/temp.freebsd-9.0-RELEASE-i386-2.7 -ldfftpack -lfftpack -lpython2.7 -lgfortran -o build/lib.freebsd-9.0-RELEASE-i386-2.7/scipy/fftpack/_fftpack.so" failed with exit status 1