pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/34787: lang/sablevm-classpath doesn't compile on NetBSD/powerpc
>Number: 34787
>Category: pkg
>Synopsis: lang/sablevm-classpath doesn't compile on NetBSD/powerpc
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Oct 11 22:55:00 +0000 2006
>Originator: Magnus Henoch
>Release: NetBSD 3.99.23
>Organization:
>Environment:
System: NetBSD zemdatav 3.99.23 NetBSD 3.99.23 (IBOOK) #7: Wed Aug 16 21:17:26
CEST 2006 magnus@zemdatav:/usr/src/sys/arch/macppc/compile/IBOOK macppc
Architecture: powerpc
Machine: macppc
>Description:
When compiling lang/sablevm-classpath on NetBSD/macppc, I get this error:
gmake[2]: Entering directory
`/tmp/work/lang/sablevm-classpath/work/sablevm-classpath-1.13/native/fdlibm'
if /bin/sh ../../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.
-I../../include -O2 -MT dtoa.lo -MD -MP -MF ".deps/dtoa.Tpo" -c -o dtoa.lo
dtoa.c; \
then mv -f ".deps/dtoa.Tpo" ".deps/dtoa.Plo"; else rm -f ".deps/dtoa.Tpo"; exit
1; fi
cc -DHAVE_CONFIG_H -I. -I../../include -O2 -MT dtoa.lo -MD -MP -MF
.deps/dtoa.Tpo -c dtoa.c -fPIC -DPIC -o .libs/dtoa.o
In file included from mprec.h:33,
from dtoa.c:29:
ieeefp.h:160:2: error: #error Endianess not declared!!
In file included from dtoa.c:29:
mprec.h:98: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'one'
dtoa.c: In function '_Jv_dtoa_r':
dtoa.c:251: error: storage size of 'd' isn't known
dtoa.c:251: error: storage size of 'd2' isn't known
dtoa.c:251: error: storage size of 'eps' isn't known
gmake[2]: *** [dtoa.lo] Error 1
gmake[2]: Leaving directory
`/tmp/work/lang/sablevm-classpath/work/sablevm-classpath-1.13/native/fdlibm'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/tmp/work/lang/sablevm-classpath/work/sablevm-classpath-1.13/native'
gmake: *** [all-recursive] Error 1
>How-To-Repeat:
>Fix:
This patch fixes the problem for me:
--- native/fdlibm/ieeefp.h.orig 2006-10-11 23:35:08.000000000 +0200
+++ native/fdlibm/ieeefp.h
@@ -123,9 +123,9 @@
#define __IEEE_LITTLE_ENDIAN
#endif
-#if defined (__PPC__) || defined (__ppc__) || defined (__ppc64__) || defined
(_POWER)
+#if defined (__PPC__) || defined (__ppc__) || defined (__ppc64__) || defined
(_POWER) || defined(__powerpc__)
#if (defined(_BIG_ENDIAN) && _BIG_ENDIAN) || (defined(_AIX) && _AIX) \
- || defined (__APPLE__)
+ || defined (__APPLE__) || defined(__NetBSD__)
#define __IEEE_BIG_ENDIAN
#else
#if (defined(_LITTLE_ENDIAN) && _LITTLE_ENDIAN) || (defined(__sun__) &&
__sun__) || (defined(__WIN32__) && __WIN32__)
>Unformatted:
Home |
Main Index |
Thread Index |
Old Index