Opened 10 years ago

Closed 10 years ago

#46827 closed defect (fixed)

mesa @10.4.4_1 does not build on 10.6.8

Reported by: udbraumann Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: mesa

Description

Building stops issuing lots of complaints like this:

...
:info:build In file included from /usr/lib/gcc/i686-apple-darwin10/4.2.1/include/xmmintrin.h:40,
:info:build                  from ../../src/mesa/main/imports.h:263,
:info:build                  from register_allocate.c:76:
:info:build /usr/lib/gcc/i686-apple-darwin10/4.2.1/include/mmintrin.h:67: error: no previous prototype for ‘_mm_empty’
:info:build /usr/lib/gcc/i686-apple-darwin10/4.2.1/include/mmintrin.h:75: error: no previous prototype for ‘_m_empty’
:info:build /usr/lib/gcc/i686-apple-darwin10/4.2.1/include/mmintrin.h:84: error: no previous prototype for ‘_mm_cvtsi32_si64’
:info:build /usr/lib/gcc/i686-apple-darwin10/4.2.1/include/mmintrin.h:92: error: no previous prototype for ‘_m_from_int’
:info:build /usr/lib/gcc/i686-apple-darwin10/4.2.1/include/mmintrin.h:104: error: no previous prototype for ‘_m_from_int64’
:info:build /usr/lib/gcc/i686-apple-darwin10/4.2.1/include/mmintrin.h:112: error: no previous prototype for ‘_mm_cvtsi64_m64’
:info:build /usr/lib/gcc/i686-apple-darwin10/4.2.1/include/mmintrin.h:121: error: no previous prototype for ‘_mm_cvtsi64x_si64’
...

Seemingly compiling is done using gcc version 4.2.1 (Apple Inc. build 5666) (dot 3) residing under /usr/bin shipped with Xcode 3.2.6.

Later, I have tried apple-gcc-4.2 and macports-llvm-gcc-4.2 both from the MacPorts repository, but have failed with the same problems.

Then, I have tried macports-gcc-4.9, apparentely I get beyond that point above, however, I have obtained a different problem:

...
:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_mesa/mesa/work/Mesa-10.4.4/src/mapi/glapi/gen/gl_XML.py", line 120, in Print
:info:build     self.printBody(api)
:info:build   File "glX_proto_send.py", line 346, in printBody
:info:build     self.printFunction(func, func.name)
:info:build   File "glX_proto_send.py", line 443, in printFunction
:info:build     self.printRenderFunction(func)
:info:build   File "glX_proto_send.py", line 901, in printRenderFunction
:info:build     self.common_emit_args(f, "gc->pc", 4, 0)
:info:build   File "glX_proto_send.py", line 492, in common_emit_args
:info:build     self.common_emit_one_arg(p, pc, adjust, extra_offset)
:info:build   File "glX_proto_send.py", line 482, in common_emit_one_arg
:info:build     % (pc, p.offset + adjust, src_ptr, p.size_string() )
:info:build IOError: [Errno 32] Broken pipe
:info:build make[4]: *** [../../../../src/glx/indirect.c] Error 1
...

Any ideas?

Attachments (2)

main_gcc-4.2.log.gz (15.7 KB) - added by udbraumann 10 years ago.
sudo port upgrade mesa
main_gcc-4.9.log.gz (12.9 KB) - added by udbraumann 10 years ago.
sudo port upgrade mesa configure.compiler=macports-gcc-4.9

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by udbraumann

Attachment: main_gcc-4.2.log.gz added

sudo port upgrade mesa

Changed 10 years ago by udbraumann

Attachment: main_gcc-4.9.log.gz added

sudo port upgrade mesa configure.compiler=macports-gcc-4.9

comment:1 Changed 10 years ago by mf2k (Frank Schima)

Cc: jeremyhu@… removed
Owner: changed from macports-tickets@… to jeremyhu@…

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

Testing a fix now.

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

Also, in the future, I *highly* recommend that if you want to try another compiler, that you use macports-clang-X.Y instead of macports-gcc-X.Y, especially for ports that use C++.

comment:4 in reply to:  3 Changed 10 years ago by udbraumann

Oh, yes, sorry, I forgot to mention in my error report above, that I also have tested macports-clang-3.5 exhibiting a very similar fault scenario as for macports-gcc-4.9.

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

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.