Issue Details (XML | Word | Printable)

Key: MBS-4103
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Normal Normal
Assignee: Lukáš Lalinský
Reporter: nikki
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
MusicBrainz Server

Problems building database extensions with Ubuntu 11.10

Created: 03/Jan/12 01:12 AM   Updated: 07/Jan/12 04:54 PM   Resolved: 07/Jan/12 04:54 PM
Component/s: Admin, Documentation
Affects Version/s: None
Fix Version/s: Schema change, 2012-01-12


 Description  « Hide

There are problems when building the musicbrainz_collate extension in Ubuntu 11.10, as noted by various people at:
http://chatlogs.musicbrainz.org/musicbrainz-devel/2011/2011-11/2011-11-22.html#T14-50-42-4606
http://chatlogs.musicbrainz.org/musicbrainz-devel/2011/2011-10/2011-10-17.html#T09-16-44-373845
http://forums.musicbrainz.org/viewtopic.php?id=3277
and now me: http://chatlogs.musicbrainz.org/musicbrainz-devel/2012/2012-01/2012-01-03.html#T00-22-35-725683

Since Ubuntu is our recommended distro, I think we should make a note in the INSTALL file that people using 11.10 need to compile the extension with gcc-4.4 and what steps they need to do in order to do that.



Sort Order: Ascending order - Click to sort in descending order
Oliver Charles added a comment - 03/Jan/12 12:25 PM

I disagree that doing some manual fudging with GCC versions is the solution. We should really just be able to build the extensions with the stock GCC in Ubuntu 11.10.


nikki added a comment - 03/Jan/12 04:04 PM

Maybe it's not the solution, but could you at least add something to INSTALL until it's fixed?


Oliver Charles added a comment - 03/Jan/12 04:56 PM

I'm certainly not against that, but I don't use Ubuntu at all, so I don't know what the solution is. Someone else is welcome to add it themselves, or give me a patch.


nikki added a comment - 04/Jan/12 10:46 PM

Another case: http://chatlogs.musicbrainz.org/musicbrainz-devel/2012/2012-01/2012-01-04.html#T22-23-22-692784

It seems we need something like:

Note: If you are using Ubuntu 11.10, the collate extension currently does not work with gcc 4.6 and needs to be built with an older version such as gcc 4.4. To do this, run "sudo apt-get install gcc-4.4" and copy the changes in http://git.musicbrainz.org/gitweb/?p=musicbrainz-server.git;a=commitdiff;h=force-gcc-44 to the Makefile. Alternatively, there are instructions at http://www.infohit.net/blog/post/alternative-gcc-compilers-on-ubuntu-intrepid-and-jaunty.html for setting up and switching between multiple versions of gcc.



Lukáš Lalinský added a comment - 07/Jan/12 11:04 AM

The patch fixes the issue completely, it compiles just fine with GCC 4.6.