This repository has been archived by the owner. It is now read-only.

Can't build brew install mysql #11754

Closed
killtheliterate opened this Issue Apr 19, 2012 · 21 comments

Comments

Projects
None yet
@killtheliterate

killtheliterate commented Apr 19, 2012

I cannot build mysql with homebrew. I've updated xcode, java developer tools, etc...

brew doctor seems to be pretty happy, too. All it outputs is
"Error: class "Phpunit" expected but not found in phpunit.rb
Double-check the name of the class in that formula.
Error: Formula phpunit will not import.
Your system is raring to brew."

brew -v install mysql output
https://gist.github.com/2421317

@adamv

This comment has been minimized.

Show comment
Hide comment
@adamv

adamv Apr 19, 2012

Contributor

CMakeCache.txt was copied to /Users/killtheliterate/Library/Logs/Homebrew can you gist that file too?

Contributor

adamv commented Apr 19, 2012

CMakeCache.txt was copied to /Users/killtheliterate/Library/Logs/Homebrew can you gist that file too?

@killtheliterate

This comment has been minimized.

Show comment
Hide comment
@killtheliterate

killtheliterate commented Apr 19, 2012

Here's the log file
https://gist.github.com/2422144

@rodgerballard

This comment has been minimized.

Show comment
Hide comment
@rodgerballard

rodgerballard Apr 19, 2012

Pretty sure your on the right track adamv. It seems the commit 8392df5 for cmake 2.8.8 is what is causing the problem. If you roll back to 2.8.7 the build compiles fine again. With 2.8.8 the build blows up.

OS X Lion 10.7.3
Xcode 4.3.2 installed at /Applications/Xcode.app/
Command line tools installed with xcode-select -switch /Applications/Xcode.app/Contents/Developer

rodgerballard commented Apr 19, 2012

Pretty sure your on the right track adamv. It seems the commit 8392df5 for cmake 2.8.8 is what is causing the problem. If you roll back to 2.8.7 the build compiles fine again. With 2.8.8 the build blows up.

OS X Lion 10.7.3
Xcode 4.3.2 installed at /Applications/Xcode.app/
Command line tools installed with xcode-select -switch /Applications/Xcode.app/Contents/Developer

@adamv

This comment has been minimized.

Show comment
Hide comment
@adamv

adamv Apr 19, 2012

Contributor

Hey @MikeMcQuaid - possible Cmake weirdness incoming.

Contributor

adamv commented Apr 19, 2012

Hey @MikeMcQuaid - possible Cmake weirdness incoming.

@MikeMcQuaid

This comment has been minimized.

Show comment
Hide comment
@MikeMcQuaid

MikeMcQuaid Apr 19, 2012

Member

Looks like the build system probably has to be patched for CMake 2.8.8.

Member

MikeMcQuaid commented Apr 19, 2012

Looks like the build system probably has to be patched for CMake 2.8.8.

@adamv

This comment has been minimized.

Show comment
Hide comment
@adamv

adamv Apr 19, 2012

Contributor

Note that there is at least a MySQL 5.5.21 out there. We tend to stay one version behind because they don't put the freshest version at a stable URL until it is archived. Which is bogus.

So someone should see if there are already newer MySQL point releases that address this.

Contributor

adamv commented Apr 19, 2012

Note that there is at least a MySQL 5.5.21 out there. We tend to stay one version behind because they don't put the freshest version at a stable URL until it is archived. Which is bogus.

So someone should see if there are already newer MySQL point releases that address this.

@adamv

This comment has been minimized.

Show comment
Hide comment
@adamv

adamv Apr 19, 2012

Contributor

I see "Current Generally Available Release: 5.5.23"

Contributor

adamv commented Apr 19, 2012

I see "Current Generally Available Release: 5.5.23"

@killtheliterate

This comment has been minimized.

Show comment
Hide comment
@killtheliterate

killtheliterate Apr 19, 2012

Thank you for looking into this

killtheliterate commented Apr 19, 2012

Thank you for looking into this

@jacknagel

This comment has been minimized.

Show comment
Hide comment
@jacknagel

jacknagel Apr 19, 2012

Contributor

Just tried 5.5.23 and I see the same failure.

Contributor

jacknagel commented Apr 19, 2012

Just tried 5.5.23 and I see the same failure.

@uxp

This comment has been minimized.

Show comment
Hide comment
@uxp

uxp Apr 19, 2012

5.5.21 and 5.5.22 also gave me the same failures

uxp commented Apr 19, 2012

5.5.21 and 5.5.22 also gave me the same failures

@alancwoo

This comment has been minimized.

Show comment
Hide comment
@alancwoo

alancwoo Apr 19, 2012

Also having same problem:

https://gist.github.com/2424868

Brew 0.9
Mysql 5.5.20
Apple Command Line Tools March 2012 (no xcode)
Lion 10.7.3

alancwoo commented Apr 19, 2012

Also having same problem:

https://gist.github.com/2424868

Brew 0.9
Mysql 5.5.20
Apple Command Line Tools March 2012 (no xcode)
Lion 10.7.3

@jdxcode

This comment has been minimized.

Show comment
Hide comment
@jdxcode

jdxcode Apr 19, 2012

Contributor

+1

Contributor

jdxcode commented Apr 19, 2012

+1

@lucasmedeirosleite

This comment has been minimized.

Show comment
Hide comment
@lucasmedeirosleite

lucasmedeirosleite commented Apr 20, 2012

Me too

@cmfoster

This comment has been minimized.

Show comment
Hide comment
@cmfoster

cmfoster commented Apr 20, 2012

Me three

@amitkaz

This comment has been minimized.

Show comment
Hide comment
@amitkaz

amitkaz commented Apr 20, 2012

+4

@MikeMcQuaid

This comment has been minimized.

Show comment
Hide comment
@MikeMcQuaid

MikeMcQuaid Apr 20, 2012

Member

Performing Test HAVE_PEERCRED - Failed

That's the problem it seems. Try and patch out this test or force it to succeed.

Member

MikeMcQuaid commented Apr 20, 2012

Performing Test HAVE_PEERCRED - Failed

That's the problem it seems. Try and patch out this test or force it to succeed.

@uxp

This comment has been minimized.

Show comment
Hide comment
@uxp

uxp Apr 20, 2012

@MikeMcQuaid The test fails if one downgrades cmake to 2.8.7, which does result in a valid build:

cd /usr/local
brew uninstall cmake
git checkout 948c2769 Library/Formula/cmake.rb
brew install mysql

uxp commented Apr 20, 2012

@MikeMcQuaid The test fails if one downgrades cmake to 2.8.7, which does result in a valid build:

cd /usr/local
brew uninstall cmake
git checkout 948c2769 Library/Formula/cmake.rb
brew install mysql
@2bits

This comment has been minimized.

Show comment
Hide comment
@2bits

2bits Apr 20, 2012

Contributor

Agree with @uxp, there is no reason that struct should be valid nor SO_PEERCRED to be found by switching to an earlier cmake. Here is there CMakeError.log. We can see from /usr/include/sys/socket.h that SO_PEERCRED is not defined, but we can find struct ucred defined in /usr/include/sys/ucred.h. The test should fail with clang and llvm-gcc, but I don't know why CMake-2.8.8 chokes. Does anyone know C++ enough to spot a syntax error there at the bottom of the log?

Contributor

2bits commented Apr 20, 2012

Agree with @uxp, there is no reason that struct should be valid nor SO_PEERCRED to be found by switching to an earlier cmake. Here is there CMakeError.log. We can see from /usr/include/sys/socket.h that SO_PEERCRED is not defined, but we can find struct ucred defined in /usr/include/sys/ucred.h. The test should fail with clang and llvm-gcc, but I don't know why CMake-2.8.8 chokes. Does anyone know C++ enough to spot a syntax error there at the bottom of the log?

@MikeMcQuaid

This comment has been minimized.

Show comment
Hide comment
@MikeMcQuaid

MikeMcQuaid Apr 20, 2012

Member

Fixed in f4009ef. A simple CMake syntax error. Patched and submitted upstream here: http://bugs.mysql.com/bug.php?id=65050

Member

MikeMcQuaid commented Apr 20, 2012

Fixed in f4009ef. A simple CMake syntax error. Patched and submitted upstream here: http://bugs.mysql.com/bug.php?id=65050

@2bits

This comment has been minimized.

Show comment
Hide comment
@2bits

2bits Apr 20, 2012

Contributor

Wow. I'm sort of stunned @MikeMcQuaid that your fix for the LIST(REMOVE_DUPLICATES made the difference. I spotted that like other people did, but I would have thought CMake would stop right at the bug, not later. Because I didn't know CMake keeps going and that the HAVE_PEERCRED was the last test, I thought it was stopping at the actual error. Ugh.

Contributor

2bits commented Apr 20, 2012

Wow. I'm sort of stunned @MikeMcQuaid that your fix for the LIST(REMOVE_DUPLICATES made the difference. I spotted that like other people did, but I would have thought CMake would stop right at the bug, not later. Because I didn't know CMake keeps going and that the HAVE_PEERCRED was the last test, I thought it was stopping at the actual error. Ugh.

@MikeMcQuaid

This comment has been minimized.

Show comment
Hide comment
@MikeMcQuaid

MikeMcQuaid Apr 20, 2012

Member

You need to run CMake more than once to debug such things. I spotted the error on the first run half-way through the output and on the second run only the error was visible. CMake is weird :)

Member

MikeMcQuaid commented Apr 20, 2012

You need to run CMake more than once to debug such things. I spotted the error on the first run half-way through the output and on the second run only the error was visible. CMake is weird :)

Sharpie pushed a commit to Sharpie/homebrew that referenced this issue Sep 12, 2012

snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012

@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.