Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

mongodb: make it compile on yosemite #32737

Closed
wants to merge 1 commit into from

Conversation

nijikon
Copy link
Contributor

@nijikon nijikon commented Sep 27, 2014

No description provided.

@Ivan8R
Copy link

Ivan8R commented Sep 28, 2014

I have the same issue

@nijikon
Copy link
Contributor Author

nijikon commented Sep 28, 2014

@Ivan8R Please paste the output of brew config.

@babakian
Copy link

@nijikon I have the same problem. Here's my brew config:

HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew
HEAD: fd0251506c1fae2197631e1791e8c1d5576c7f73
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.10-x86_64
Xcode: 6.1 => /Applications/Xcode-Beta.app/Contents/Developer/
CLT: 6.0.0.0.1.1401483502
Clang: 6.0 build 600
X11: 2.7.7 => /opt/X11
System Ruby: 2.0.0-481
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby

@nijikon
Copy link
Contributor Author

nijikon commented Sep 28, 2014

@babakian Please run brew install mongodb --debug --verbose and paste the output.

@babakian
Copy link

@nijikon Here you go:

/usr/local/Library/brew.rb (Formulary::StandardLoader): loading /usr/local/Library/Formula/mongodb.rb
/usr/local/Library/brew.rb (Formulary::StandardLoader): loading /usr/local/Library/Formula/scons.rb
/usr/local/Library/Homebrew/build.rb (Formulary::FromPathLoader): loading /usr/local/Library/Formula/mongodb.rb
/usr/local/Library/Homebrew/build.rb (Formulary::StandardLoader): loading /usr/local/Library/Formula/scons.rb
==> Downloading http://downloads.mongodb.org/src/mongodb-src-r2.6.4.tar.gz
Already downloaded: /Library/Caches/Homebrew/mongodb-2.6.4.tar.gz
==> Verifying mongodb-2.6.4.tar.gz checksum
tar xf /Library/Caches/Homebrew/mongodb-2.6.4.tar.gz
==> /usr/local/opt/scons/bin/scons install --prefix=/usr/local/Cellar/mongodb/2.6.4_1 -j4 --cc=/usr/bin/clang --cxx=/usr/bin/clang++ --osx-version-min=10.10 --full --64
scons: Reading SConscript files ...

scons: warning: EnsureSConsVersion is ignored for development version
File "/private/tmp/mongodb-E9QtRP/mongodb-src-r2.6.4/SConstruct", line 34, in <module>
Mkdir(".scons/Darwin/nohost")
usage: scons [OPTION] [TARGET] ...

SCons Error: option --osx-version-min: invalid choice: '10.10' (choose from '10.6', '10.7', '10.8', '10.9')
/usr/local/Library/Homebrew/debrew.rb:10:in `raise'
BuildError: Failed executing: /usr/local/opt/scons/bin/scons install --prefix=/usr/local/Cellar/mongodb/2.6.4_1 -j4 --cc=/usr/bin/clang --cxx=/usr/bin/clang++ --osx-version-min=10.10 --full --64
1. raise
2. ignore
3. backtrace
4. irb
5. shell
Choose an action: 1
==> Configuration
HOMEBREW_VERSION: 0.9.5
HEAD: fd0251506c1fae2197631e1791e8c1d5576c7f73
CPU: quad-core 64-bit sandybridge
OS X: 10.10-x86_64
Xcode: 6.1 => /Applications/Xcode-Beta.app/Contents/Developer/
CLT: 6.0.0.0.1.1401483502
X11: 2.7.7 => /opt/X11
==> ENV
CC: /usr/bin/clang
CXX: /usr/bin/clang++
OBJC: /usr/bin/clang
OBJCXX: /usr/bin/clang++
CFLAGS: -Os -w -pipe -march=native -mmacosx-version-min=10.10
CXXFLAGS: -Os -w -pipe -march=native -mmacosx-version-min=10.10
CPPFLAGS: -F/usr/local/Frameworks
LDFLAGS: -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names
MAKEFLAGS: -j4
CMAKE_FRAMEWORK_PATH: /usr/local/Frameworks
MACOSX_DEPLOYMENT_TARGET: 10.10
PKG_CONFIG_LIBDIR: /usr/local/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.10:/usr/lib/pkgconfig
PATH: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/Library/Contributions/cmd
CPATH: /usr/local/include

Error: mongodb 2.6.4 did not build
Logs:
     /Users/babakian/Library/Logs/Homebrew/mongodb/01.scons

These open issues may also help:
mongodb: make it compile on yosemite (https://github.com/Homebrew/homebrew/pull/32737)

@nijikon
Copy link
Contributor Author

nijikon commented Sep 28, 2014

@babakian Seems like that no patches were applied. Can you try removing if MacOS.version == "10.10" and rerun.

@babakian
Copy link

@nijikon You want me to remove if MacOS.version == "10.10" from my mongodb.rb formula file? But my file doesn't have that line. Like you said, this patch hasn't been applied. I have run brew update and I don't have this patch.

@nijikon
Copy link
Contributor Author

nijikon commented Sep 28, 2014

@babakian This was not merged yet. I assumed that you pulled my changes locally and it still does not work.

@babakian
Copy link

Ha! Well, that explains it. I will pull and try again.

@matejkramny
Copy link

I tried compiling by taking the --osx-version-min= flag from my mongodb.rb formula, it failed with

$ brew install mongodb
==> Downloading http://downloads.mongodb.org/src/mongodb-src-r2.6.4.tar.gz
Already downloaded: /Library/Caches/Homebrew/mongodb-2.6.4.tar.gz
==> /usr/local/opt/scons/bin/scons install --prefix=/usr/local/Cellar/mongodb/2.6.4_1 -j8 --cc=/usr/bin/clang --cxx=/usr/b
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
        ^
2 errors generated.
scons: *** [build/darwin/64/cc__usr_bin_clang/cxx__usr_bin_clang++/third_party/s2/s2latlngrect.o] Error 1
scons: building terminated because of errors.

READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting

These open issues may also help:
mongodb: make it compile on yosemite (https://github.com/Homebrew/homebrew/pull/32737)

@nijikon
Copy link
Contributor Author

nijikon commented Sep 28, 2014

@matejkramny This pull request fixes that. If you want to test it, apply these changes locally and compile.

@nijikon
Copy link
Contributor Author

nijikon commented Sep 28, 2014

/cc @MikeMcQuaid

@babakian
Copy link

@nijikon I just applied this patch locally and mongodb installed just fine and seems to be running fine too. Thanks for your help.

@nijikon
Copy link
Contributor Author

nijikon commented Sep 28, 2014

@babakian Great! Thanks for testing!

@babakian
Copy link

@nijikon No problem. Looks like this pull request needs to get merged!

@shanestevens
Copy link

Worked for me too. Hopefully this gets merged soon.

@DomT4
Copy link
Member

DomT4 commented Sep 29, 2014

Looks good 👍

@dalanmiller
Copy link
Contributor

Any ETA on merge?

@DomT4
Copy link
Member

DomT4 commented Sep 29, 2014

Probably when Mike's back from holiday. He's been the one dealing with a lot of the Yosemite merge proposals thus far. If people are feeling particularly impatient they can do brew install https://raw.githubusercontent.com/polishgeeks/homebrew/mongodb-yosemite-fix/Library/Formula/mongodb.rb and that'll work.

@nijikon nijikon deleted the mongodb-yosemite-fix branch September 30, 2014 05:15
@Homebrew Homebrew locked and limited conversation to collaborators Feb 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants