Summary: | build problems and crash on solaris 8 gcc and 64 Bit | ||
---|---|---|---|
Product: | Mesa | Reporter: | Daniel Stone <daniel> |
Component: | Mesa core | Assignee: | Ian Romanick <idr> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | high | ||
Version: | 6.2.1 | ||
Hardware: | SPARC | ||
OS: | Solaris | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 2773 |
Description
FreeDesktop Bugzilla Database Corruption Fix User
2005-07-02 03:07:16 UTC
I'm working on a fix for this and some other SPARC related assembly issues. In general, all of the places that have '#ifdef SVR4' should instead be '#if defined(SVR4) || defined(__SVR4) || defined(__svr4__)'. I have also encounterd, and been unable to diagnose, the same crash you mention. For 32-bit builds, everthing is fine. For 64-bit, there are nothing but problems. I suspect that we may just disable all the assembly stuff on 64-bit SPARC for the Mesa 6.3 release (coming soon). It's still up in the air. The only SPARC system that I have access to has the same gdb issues you mention, so debugging is slow going. :( Created attachment 3031 [details]
Screenshot of background problem
- The test for whether or not we're building for 64-bit is '#ifdef __arch64__'.
This appears to be correct on both Linux and Solaris.
- The test for Solaris is now '#if defined(SVR4) || defined(__SVR4) ||
defined(__svr4__)'. GCC 3.4.0 has all three defined on Solaris 9.
- Enables assembly language clip routines.
- Fixes to make GLSL code build on Solaris.
- Update gl_SPARC_asm.py. You MUST 'pushd src/mesa/glapi ; make
../sparc/glapi_sparc.S ; popd' before building.
- "Breaks" mklib to enable 64-bit builds.
Created attachment 3054 [details]
paint-with-alpha-image-out.png
This is essentially the same as the previous patch, but it also adds some fixes
mklib. The changes to mklib mirror code in the x86-64 path to autodetect
64-bit vs. 32-bit object files and add the appropriate options (i.e., -m32 vs
-m64).
Created attachment 3055 [details]
scale-source-surface-paint-image-out.png
This is the assembly dispatch code generated by src/mesa/glapi/gl_SPARC_asm.py.
I have included this for people who do not have the required Python tools
installed.
Thank you for working on the problem. I have build a 64 Bit gdb but the evening I tried to debug the problem I had a filesystem hard disk problem so I had to repair everything ... I'll try to test your patches soon. In the meanwhile I used Mesa 6.0.1. If you still need the 64 Bit gdb for solaris I can write you a short summary how to build and install it. The 64 Bit gdb can debug 32 Bit and 64 Bit programs. Ian, tested here on my ultra60 and things work great! My patch is committed, and I haven't heard any complaints. Closing as fixed. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.