pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/47913: graphics/MesaLib #error Unknown Endianness (PowerPC)



>Number:         47913
>Category:       pkg
>Synopsis:       #error Unknown Endianness (PowerPC)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 10 09:25:00 +0000 2013
>Originator:     Makoto Fujiwara
>Release:        NetBSD 6.1
>Organization:
KINU Corporation
>Environment:
        
        
System: NetBSD mini-6.i.ki.nu 6.1 NetBSD 6.1 (GENERIC) macppc
Architecture: powerpc
Machine: macppc
>Description:
While building graphics/MesaLib (7.11.2) on NetBSD/macppc, I've got:
....
ar: creating libmesa.a
gcc -c -o state_tracker/st_atom.o state_tracker/st_atom.c -DFEATURE_GL=1 
-DHAVE_POSIX_MEMALIGN -DUSE_XSHM -I../../include -I../../src/glsl 
-I../../src/mesa -I../../src/mapi -I../../src/gallium/include 
-I../../src/gallium/auxiliary  -I/usr/pkg/include -I/usr/include -O2 
-D_NETBSD_SOURCE -DHAVE_NETBSD_ATOMIC_OPS -DUSE_NATIVE_LIBM_FUNCS 
-I/usr/pkg/include -I/usr/include -Wall -Wmissing-prototypes -std=c99 
-ffast-math -fno-strict-aliasing -O2 -D_NETBSD_SOURCE -DHAVE_NETBSD_ATOMIC_OPS 
-DUSE_NATIVE_LIBM_FUNCS -I/usr/pkg/include -I/usr/include -fPIC 
-fvisibility=hidden
In file included from ../../src/gallium/include/pipe/p_compiler.h:32:0,
                 from ../../src/gallium/include/pipe/p_defines.h:31,
                 from state_tracker/st_atom.c:32:
../../src/gallium/include/pipe/p_config.h:152:2: error: #error Unknown 
Endianness
make[2]: *** [state_tracker/st_atom.o] Error 1
make[2]: Leaving directory 
`/export/CHROOT/usr/pkgsrc/graphics/MesaLib/work/Mesa-7.11.2/src/mesa'
gmake[1]: *** [subdirs] Error 1
gmake[1]: Leaving directory 
`/export/CHROOT/usr/pkgsrc/graphics/MesaLib/work/Mesa-7.11.2/src'
gmake: *** [default] Error 1
*** Error code 2
>How-To-Repeat:
        Have NetBSD/macppc (or any PowerPC) 6.1
        cd /usr/pkgsrc/graphics/MesaLib
        make package
>Fix:
Index: graphics/MesaLib/distinfo
===================================================================
RCS file: /cvs/cvsroot/pkgsrc/graphics/MesaLib/distinfo,v
retrieving revision 1.77
diff -u -u -r1.77 distinfo
--- graphics/MesaLib/distinfo   20 May 2013 06:59:18 -0000      1.77
+++ graphics/MesaLib/distinfo   10 Jun 2013 07:58:52 -0000
@@ -9,7 +9,7 @@
 SHA1 (patch-af) = da0bd412b81d4b826b6d9b4bb8d98ca1fe0006ba
 SHA1 (patch-bin_mklib) = 152b61d40d2e24cf3674d346e94fcab04b850909
 SHA1 (patch-configure.ac) = 0e3f9a1f21ba3a50161312683e9a0ad36f9f3e61
-SHA1 (patch-src_gallium_include_pipe_p__config.h) = 
5ddb2d95c7e951ad88bd14fd8b257b1f1dfac34f
+SHA1 (patch-src_gallium_include_pipe_p__config.h) = 
74e49990b45a09dfe09e4076fa4e4b5dfdd4d5f7
 SHA1 (patch-src_glsl_ir__constant__expression.cpp) = 
281e281f51afed244b1a29b92942d572fc095124
 SHA1 (patch-src_glu_sgi_glu.exports) = 66609d2ea59b02fc46b41311b0042fe4a2da517f
 SHA1 (patch-src_mesa_drivers_dri_common_dri__util.h) = 
53e63dcc6243b1872f4e4816b46e92910cf97edc
Index: graphics/MesaLib/patches/patch-src_gallium_include_pipe_p__config.h
===================================================================
RCS file: 
/cvs/cvsroot/pkgsrc/graphics/MesaLib/patches/patch-src_gallium_include_pipe_p__config.h,v
retrieving revision 1.1
diff -u -u -r1.1 patch-src_gallium_include_pipe_p__config.h
--- graphics/MesaLib/patches/patch-src_gallium_include_pipe_p__config.h 16 May 
2013 05:22:02 -0000      1.1
+++ graphics/MesaLib/patches/patch-src_gallium_include_pipe_p__config.h 10 Jun 
2013 07:58:52 -0000
@@ -1,7 +1,18 @@
 $NetBSD: patch-src_gallium_include_pipe_p__config.h,v 1.1 2013/05/16 05:22:02 
richard Exp $
 
---- src/gallium/include/pipe/p_config.h.orig   2011-10-15 00:43:58.000000000 
+0000
-+++ src/gallium/include/pipe/p_config.h
+Adjust Endianness for SunOS and PowerPC.:
+
+--- Mesa-7.11.2/src/gallium/include/pipe/p_config.h.orig       2011-10-15 
09:43:58.000000000 +0900
++++ src/gallium/include/pipe/p_config.h        2013-06-10 15:35:08.000000000 
+0900
+@@ -99,7 +99,7 @@
+ #endif
+ #endif
+ 
+-#if defined(__ppc__) || defined(__ppc64__) || defined(__PPC__)
++#if defined(__ppc__) || defined(__ppc64__) || defined(__PPC__) || 
defined(__powerpc__)
+ #define PIPE_ARCH_PPC
+ #if defined(__ppc64__) || defined(__PPC64__)
+ #define PIPE_ARCH_PPC_64
 @@ -129,6 +129,15 @@
  # define PIPE_ARCH_BIG_ENDIAN
  #endif

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index