I was trying to compile euler on a PPC and I got the following:
Setting up fink-buildlock-euler-1.60.6-11 (2007.10.05-21.49.31) ...
gzip -dc /sw/src/euler-1.60.6.tar.gz | /sw/bin/tar -xf - --no-same-
owner --no-same-permissions
make INSTALL_DIR=/sw CC='gcc3 -Wall -O2 -DINSTALL_DIR=\"$(INSTALL_DIR)
\"'
cd source && make
gcc3 -Wall -O2 -DINSTALL_DIR=\"/sw\" -c binary.c
/usr/include/architecture/ppc/math.h:647: illegal function
definition, found `__asm'
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode
In file included from /usr/include/math.h:26,
from sysdep.h:10,
from stack.h:12,
from binary.h:12,
from binary.c:13:
/usr/include/architecture/ppc/math.h: In function `__inline_isinff':
/usr/include/architecture/ppc/math.h:300: warning: implicit
declaration of function `__builtin_inff'
/usr/include/architecture/ppc/math.h: In function `__inline_isinfd':
/usr/include/architecture/ppc/math.h:301: warning: implicit
declaration of function `__builtin_inf'
/usr/include/architecture/ppc/math.h: In function `__inline_isinf':
/usr/include/architecture/ppc/math.h:302: warning: implicit
declaration of function `__builtin_infl'
/usr/include/architecture/ppc/math.h: In function `__inline_isnormalf':
/usr/include/architecture/ppc/math.h:312: `__FLT_MIN__' undeclared
(first use in this function)
/usr/include/architecture/ppc/math.h:312: (Each undeclared identifier
is reported only once
/usr/include/architecture/ppc/math.h:312: for each function it
appears in.)
/usr/include/architecture/ppc/math.h: In function `__inline_isnormald':
/usr/include/architecture/ppc/math.h:313: `__DBL_MIN__' undeclared
(first use in this function)
/usr/include/architecture/ppc/math.h: In function `__inline_isnormal':
/usr/include/architecture/ppc/math.h:314: `__LDBL_MIN__' undeclared
(first use in this function)
make[1]: *** [binary.o] Error 1
make: *** [all] Error 2
### execution of make failed, exit code 2
Removing runtime build-lock...
Removing build-lock package...
/sw/bin/dpkg-lockwait -r fink-buildlock-euler-1.60.6-11
(Reading database ... 255435 files and directories currently installed.)
Removing fink-buildlock-euler-1.60.6-11 ...
Failed: phase compiling: euler-1.60.6-11 failed
My setup is the following:
Package manager version: 0.27.6
Distribution version: 0.8.1.rsync powerpc
powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc.
build 5367)
XTools 2.4
Apple OSX 10.4
iMac G5
I had to rebuild my fink dist and recompile everything due to a hard
disk problem. Euler is the only program that refuses to be
compiled. Does anyone have any ideas here? I doubt that Apple's
math.h header is incorrect, but something is wrong. Thank you for
any help.
Gary K Olson
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users