Opened 10 years ago

Closed 9 years ago

Last modified 8 years ago

#29860 closed defect (fixed)

mesa: Unsupported platform, No pipe_atomic implementation selected

Reported by: ryandesign (Ryan Schmidt) Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: tiger ppc Cc: mpro@…, dershow, wh18@…, ballapete (Peter Dyballa), cooljeanius (Eric Gallager)
Port: mesa

Description

I'm afraid that with mesa 7.10.3_0 we are back to getting this error again on Tiger ppc (seen previously in #24393):

In file included from ../../src/gallium/auxiliary/util/u_inlines.h:38,
                 from state_tracker/st_atom_constbuf.c:40:
../../src/gallium/auxiliary/util/u_atomic.h:37:2: error: #error "Unsupported platform"
../../src/gallium/auxiliary/util/u_atomic.h:347:2: error: #error "No pipe_atomic implementation selected"
In file included from state_tracker/st_atom_constbuf.c:40:
../../src/gallium/auxiliary/util/u_inlines.h: In function 'pipe_reference_init':
../../src/gallium/auxiliary/util/u_inlines.h:56: warning: implicit declaration of function 'p_atomic_set'
../../src/gallium/auxiliary/util/u_inlines.h: In function 'pipe_is_referenced':
../../src/gallium/auxiliary/util/u_inlines.h:62: warning: implicit declaration of function 'p_atomic_read'
../../src/gallium/auxiliary/util/u_inlines.h: In function 'pipe_reference_described':
../../src/gallium/auxiliary/util/u_inlines.h:82: warning: implicit declaration of function 'p_atomic_inc'
../../src/gallium/auxiliary/util/u_inlines.h:88: warning: implicit declaration of function 'p_atomic_dec_zero'

The last version of mesa successfully installed on this system was 7.8.2_2.

Attachments (2)

main.log.bz2 (9.8 KB) - added by ryandesign (Ryan Schmidt) 10 years ago.
main.log.2.bz2 (10.0 KB) - added by ryandesign (Ryan Schmidt) 10 years ago.

Download all attachments as: .zip

Change History (14)

Changed 10 years ago by ryandesign (Ryan Schmidt)

Attachment: main.log.bz2 added

comment:1 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Owner: changed from jeremyhu@… to ryandesign@…

Yeah, that was why gallium was disabled in 7.8.2 (I re-enabled it hoping someone had added ppc support in the interim).

mesa is openmaintainer ... would you mind taking this on? Just re-disable gallium (uncomment it). Also test osmesa.

comment:2 Changed 10 years ago by ryandesign (Ryan Schmidt)

Cc: mpro@… added

Has duplicate #29959. Sorry I haven't yet gotten around to trying to resolve this on my G4.

comment:3 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Can you try with r80341? That removes galium from the targets, so give that a go. If it still fails, post a new log, so I can see the new failure point...

comment:4 Changed 10 years ago by dershow

Cc: dersh@… added

Cc Me!

Changed 10 years ago by ryandesign (Ryan Schmidt)

Attachment: main.log.2.bz2 added

comment:5 Changed 10 years ago by ryandesign (Ryan Schmidt)

Log of current failure attached.

comment:6 Changed 9 years ago by wh18@…

Cc: wh18@… added

Cc Me!

comment:7 Changed 9 years ago by ryandesign (Ryan Schmidt)

Cc: Peter_Dyballa@… added

r88037 (see duplicate #32552) was another attempt to fix this but it does not change the error message for me.

comment:8 in reply to:  7 Changed 9 years ago by ballapete (Peter Dyballa)

Replying to ryandesign@…:

r88037 (see duplicate #32552) was another attempt to fix this but it does not change the error message for me.

I took some time to investigate further. If GALLIUM is the problem on PPC then Mesa-7.11/src/mesa/Makefile might need a patch. Its line #6 has

MESA_LIBS := libmesa.a libmesagallium.a

By commenting libmesagallium.a the build process should proceed. I tried it kind of manually. It led from the state with the failure to another error with not finding X11 libraries. I'm trying this with a new patch file (Gallium-PPC.patch), and port will need some hours, either to succeed or to fail again, so here is the patch:

diff -ru src/mesa/Makefile.orig src/mesa/Makefile
--- a/src/mesa/Makefile.orig	2011-07-09 03:37:10.000000000 +0200
+++ b/src/mesa/Makefile	2011-12-18 00:40:31.000000000 +0100
@@ -3,7 +3,7 @@
 TOP = ../..
 include $(TOP)/configs/current
 
-MESA_LIBS := libmesa.a libmesagallium.a
+MESA_LIBS := libmesa.a #libmesagallium.a
 DEPENDS := depend
 
 MESA_OBJ_DIR := .

comment:9 Changed 9 years ago by ballapete (Peter Dyballa)

The patch seems to work:

DEBUG: clean phase started at Sun Dec 18 01:46:41 CET 2011
--->  Cleaning mesa

(And the build process was pretty fast!) The results are here, taken from the deactivating and activating steps:

Deactivating mesa @7.6_1+darwin_8+hw_render     Activating mesa @7.11_2+python27
========================================================================================
file: /opt/local/bin/glxgears
file: /opt/local/bin/glxinfo
file: /opt/local/include/GL/dmesa.h
file: /opt/local/include/GL/ggimesa.h
file: /opt/local/include/GL/gl.h                file: /opt/local/include/GL/gl.h
file: /opt/local/include/GL/gl_mangle.h         file: /opt/local/include/GL/gl_mangle.h
file: /opt/local/include/GL/glext.h             file: /opt/local/include/GL/glext.h
file: /opt/local/include/GL/glfbdev.h           file: /opt/local/include/GL/glfbdev.h
file: /opt/local/include/GL/glu.h               file: /opt/local/include/GL/glu.h
file: /opt/local/include/GL/glu_mangle.h        file: /opt/local/include/GL/glu_mangle.h
file: /opt/local/include/GL/glut.h              file: /opt/local/include/GL/glut.h
file: /opt/local/include/GL/glutf90.h           file: /opt/local/include/GL/glutf90.h
file: /opt/local/include/GL/glx.h               file: /opt/local/include/GL/glx.h
file: /opt/local/include/GL/glx_mangle.h        file: /opt/local/include/GL/glx_mangle.h
file: /opt/local/include/GL/glxext.h            file: /opt/local/include/GL/glxext.h
file: /opt/local/include/GL/mesa_wgl.h          file: /opt/local/include/GL/mesa_wgl.h
file: /opt/local/include/GL/mglmesa.h
file: /opt/local/include/GL/osmesa.h            file: /opt/local/include/GL/osmesa.h
file: /opt/local/include/GL/svgamesa.h
file: /opt/local/include/GL/vms_x_fix.h         file: /opt/local/include/GL/vms_x_fix.h
file: /opt/local/include/GL/wglext.h            file: /opt/local/include/GL/wglext.h
file: /opt/local/include/GL/wmesa.h             file: /opt/local/include/GL/wmesa.h
                                                file: /opt/local/include/VG/openvg.h
                                                file: /opt/local/include/VG/vgext.h
                                                file: /opt/local/include/VG/vgplatform.h
                                                file: /opt/local/include/VG/vgu.h
link: /opt/local/lib/libGL.dylib                file: /opt/local/lib/libGL.dylib
link: /opt/local/lib/libGL.1.dylib              file: /opt/local/lib/libGL.1.dylib
file: /opt/local/lib/libGL.1.2.dylib
link: /opt/local/lib/libGLU.dylib               file: /opt/local/lib/libGLU.dylib
link: /opt/local/lib/libGLU.1.dylib             file: /opt/local/lib/libGLU.1.dylib
file: /opt/local/lib/libGLU.1.3.dylib
link: /opt/local/lib/libglut.dylib              file: /opt/local/lib/libglut.dylib
link: /opt/local/lib/libglut.3.dylib            file: /opt/local/lib/libglut.3.dylib
file: /opt/local/lib/libglut.3.7.dylib
                                                file: /opt/local/lib/libOSMesa.dylib
                                                file: /opt/local/lib/libOpenVG.dylib
                                                file: /opt/local/lib/libOpenVG.1.dylib
file: /opt/local/lib/pkgconfig/gl.pc            file: /opt/local/lib/pkgconfig/gl.pc
file: /opt/local/lib/pkgconfig/glu.pc           file: /opt/local/lib/pkgconfig/glu.pc
file: /opt/local/lib/pkgconfig/glut.pc          file: /opt/local/lib/pkgconfig/glut.pc
                                                file: /opt/local/lib/pkgconfig/osmesa.pc
                                                file: /opt/local/lib/pkgconfig/vg.pc
========================================================================================

Looks complete, except for the two binaries.

comment:10 Changed 9 years ago by ryandesign (Ryan Schmidt)

Resolution: fixed
Status: newclosed

comment:11 Changed 9 years ago by ballapete (Peter Dyballa)

mesa @8.0.1_0+python27 (active) could be built on PPC Tiger 10.4.11. A few times these commands failed:

make[5]: xcrun: Command not found

mv: rename libOSMesa.8.dylib to ../../../../lib/libOSMesa.8.dylib: No such file or directory

comment:12 Changed 8 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.