makensis failed to build on 10.9 (13A603) #23913
Comments
Reported build issue to NSIS: |
I checked that headers were available /usr/include/unistd.h contains:
I have tried reinstalling command line tools as per discussion here: http://clang-developers.42468.n3.nabble.com/Naive-Mavericks-Trunk-Build-Errors-td4035480.html |
Have you tried adding unistd.h as a header to Source/util.h? |
Apparently in 10.9 clang compiler has changed its default std lib from libstdc++ to libc++ Details here: https://jira.mongodb.org/browse/SERVER-10644 I would like to try and add the compile option -stdlib=libstdc++ but I am not sure where. |
Thanks for the suggestion allengeorge - I modified util.h and have a build. Not sure how that helps home-brew but still. The result fails to run: Error: opening stub "/usr/local/share/nsis/Stubs/zlib" |
Alternative that made a bit of progress, update formulate to have: scons APPEND_CCFLAGS=--stdlib=libstdc++ makensis The build gets further and then fails with link errors. |
@jodygarnett scons makensis APPEND_CCFLAGS=--stdlib=libstdc++ APPEND_LINKFLAGS=--stdlib=libstdc++ The above worked for me! |
That worked for me as well! Thank you! |
So do we do a pull request or something to contribute this back? |
Yes, please make a pull request. |
See pull request: #24545 |
See issue Homebrew#23913 Update makensis.rb Updated based on pull request feedback
Pushed a fix for this - thanks for the report! |
makensis only builds with libstdc++. This isn't a huge deal in itself as it's just a binary, not a library, and has no deps in Homebrew. More of a problem is the fact that it provides zero mechanism to govern compiler choice, forcing us to patch the SCons/config.py in order to make sure the right compiler gets used. Fixes Homebrew#23913. Closes Homebrew#24545.
After updating to 10.9 makensis no longer builds, this worked in the previous OS X release. I would like to determine if this is an environmental difference that can be addressed in home-brew, or something I should report to the NSIS project.
==> scons makensis
int close(int) __DARWIN_ALIAS_C(close);
^
1 error generated.
scons: *** [build/release/makensis/script.o] Error 1
scons: building terminated because of errors.
Long form output requested by issue reporting process (brew doctor etc...):
https://gist.github.com/jodygarnett/7286977
Detailed log reported by: brew gist-logs --config --doctor makensis output:
https://gist.github.com/anonymous/7286964
The text was updated successfully, but these errors were encountered: