Bug 5254

Summary: Build error - unknown opcode ".register" on Solaris 2.6 when using gcc
Product: Mesa Reporter: Steve Evans <stevee>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED NOTOURBUG QA Contact:
Severity: normal    
Priority: high    
Version: 6.4   
Hardware: SPARC   
OS: Solaris   
Whiteboard:
i915 platform: i915 features:

Description Steve Evans 2005-12-06 22:55:41 UTC
gcc -c -I../../include -I../../src/mesa -I../../src/mesa/main
-I../../src/mesa/glapi -I../../src/mesa/math -I../../src/mesa/tnl
-I../../src/mesa/shader -I../../src/mesa/shader/grammar
-I../../src/mesa/shader/slang -I../../src/mesa/shader/slang/OSDependent/Linux
-I../../src/mesa/shader/slang/OGLCompilersDLL -I../../src/mesa/swrast
-I../../src/mesa/swrast_setup -Wall -O3 -g -fomit-frame-pointer -pipe -fPIC 
-D_REENTRANT -DUSE_XSHM -DUSE_SPARC_ASM -std=c99 -ffast-math
-I/usr/openwin/include sparc/clip.S -o sparc/clip.o
/usr/ccs/bin/as: "<stdin>", line 7: error: unknown opcode ".register"
/usr/ccs/bin/as: "<stdin>", line 7: error: invalid character (0x0a)
/usr/ccs/bin/as: "<stdin>", line 7: error: statement syntax
/usr/ccs/bin/as: "<stdin>", line 8: error: unknown opcode ".register"
/usr/ccs/bin/as: "<stdin>", line 8: error: invalid character (0x0a)
/usr/ccs/bin/as: "<stdin>", line 8: error: statement syntax
/usr/ccs/bin/as: "<stdin>", line 9: error: unknown opcode ".register"
/usr/ccs/bin/as: "<stdin>", line 9: error: invalid character (0x0a)
/usr/ccs/bin/as: "<stdin>", line 9: error: statement syntax

(this also happens with 6.4.1, bug the bug reporter won't let me enter that as a
version
Comment 1 Brian Paul 2006-01-20 01:49:00 UTC
This looks like a compiler bug.  I'd suggest looking for a newer version of the
compiler or try a lower level of optimization below -O3.

Comment 2 Steve Evans 2006-01-20 03:20:19 UTC
Unfortunately I am not in a position to upgrade the compiler from gcc version
3.4.3 :-(

I have tried reducing the optimisation level, and even removed optimisation
entirely, but it made no difference.
Comment 3 Ian Romanick 2009-01-15 09:56:36 UTC
GCC doesn't match the rest of the build environment.  Either upgrade GCC or install GNU binutils (GAS).

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.