Opened 14 years ago

Closed 14 years ago

#27550 closed defect (duplicate)

Build of mesa fails when python_select is set to 3.1

Reported by: amicitas+macports@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), jyrkiwahlstedt
Port: mesa

Description

I am currently unable to get mesa to build. (I ran into this as part of the wine-devel installation.)

I am using macports 1.9.2 on Os X 10.6.5.

The command I am using is:

sudo port install -u -d mesa +universal

The relevant part of the log file is (full log file attached):

:info:build mklib: Making Darwin shared library:  libOpenVG.1.0.dylib
:info:build Undefined symbols:
:info:build   "_util_format_read_4f", referenced from:
:info:build       _pipe_tile_raw_to_rgba in libgallium.a(u_tile.o)
:info:build   "_util_format_write_4f", referenced from:
:info:build       _pipe_put_tile_rgba in libgallium.a(u_tile.o)


. . .

I cannot get mesa installed without the +universal option either, however the error is different in that case.

I have used the following commands in attempt to get all the dependencies setup as universal:

sudo port upgrade --enforce-variants rdepof:wine-devel +universal
sudo port upgrade --enforce-variants rdepof:mesa +universal

Any help getting this working would be appreciated.

Attachments (1)

main.log (247.0 KB) - added by amicitas+macports@… 14 years ago.
Log file for mesa +universal failed installation.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 14 years ago by amicitas+macports@…

Cc: amicitas+macports@… added

Cc Me!

comment:2 Changed 14 years ago by nerdling (Jeremy Lavergne)

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

comment:3 Changed 14 years ago by nerdling (Jeremy Lavergne)

Cc: ryandesign@… jwa@… added

comment:4 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

The portion you quoted in your description ("Undefined symbols: _util_format_read_4f") does not appear in the full main.log you attached.

Since you are on Snow Leopard (presumably on a 64-bit capable Mac?), software will build for x86_64 by default; since your purpose is to install wine-devel, which can only build for i386, you will need to install mesa and all other dependencies universal. You don't however have to do so yourself; if any needed dependencies aren't universal, MacPorts will rebuild them universal for you. That's assuming all ports were installed with MacPorts 1.9.0 or later; if some were installed with MacPorts 1.8.x or earlier, then you will have to manually manage upgrading those ports to universal as necessary.

Do you have anything in /usr/local, /sw or /Library/Frameworks? Such items often interfere.

comment:5 in reply to:  description Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Oh, and:

Replying to amicitas+macports@…:

sudo port install -u -d mesa +universal

Single-letter options like -u and -d have no effect unless placed immediately after the word "port" (i.e. "sudo port -d install"). Also, you probably don't want the -u switch when using port install. (We should probably remove that switch from port install; using it is equivalent to running "sudo port uninstall inactive".)

comment:6 Changed 14 years ago by jmroot (Joshua Root)

I guess you have python_select set to 3.1?

Changed 14 years ago by amicitas+macports@…

Attachment: main.log added

Log file for mesa +universal failed installation.

comment:7 Changed 14 years ago by amicitas+macports@…

Problem solved. I am not sure exactly how though. I was using python31, I changed this to python26 and was still unable to install mesa with the +universal option. I then tried cleaning and installing mesa without the +universal option (only x86_64). This worked fine. I then tried installing wine-devel which successfully rebuilt mesa with +universal.

So apparently my python version was the issue . . .

Thanks for the help.

Also I updated the log file to the correct one, before I got this to work. (I had uploaded the log file generated when not using the +universal option previously.) This now shows the error that I put in my snippet.

(also thanks for letting me know about the single letter options, they work much better now. Embarrassing, I should know better . . . )

comment:8 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: Build of mesa fails on SnowLeopard 10.6.5Build of mesa fails when python_select is set to 3.1

comment:9 Changed 14 years ago by jeremyhu (Jeremy Huddleston Sequoia)

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