mosml installs conflicting header files (Error building node 0.8.1 on Lion) #13282

Closed
dmdavis opened this Issue Jul 8, 2012 · 18 comments

Projects

None yet

7 participants

dmdavis commented Jul 8, 2012

I'm getting this when I try to build node 0.8.1 on Lion:

  CC(target) /private/tmp/homebrew-node-0.8.1-xA15/node-v0.8.1/out/Release/obj.target/openssl/deps/openssl/openssl/crypto/pkcs7/pk7_mime.o
In file included from ../deps/openssl/openssl/crypto/pkcs7/bio_pk7.c:60:
In file included from /usr/local/include/memory.h:7:
/usr/local/include/config.h:20:10: fatal error: '../config/m.h' file not found
#include "../config/m.h"
         ^
1 error generated.
  CC(target) /private/tmp/homebrew-node-0.8.1-xA15/node-v0.8.1/out/Release/obj.target/openssl/deps/openssl/openssl/crypto/pkcs7/pk7_smime.o
make[1]: *** [/private/tmp/homebrew-node-0.8.1-xA15/node-v0.8.1/out/Release/obj.target/openssl/deps/openssl/openssl/crypto/pkcs7/bio_pk7.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [node] Error 2
==> Build Environment
HOMEBREW_VERSION: 0.9.2
HEAD: fc57c7379d71ab1cebcde0d94b49dba52b352948
CPU: 8-core 64-bit dunno
OS X: 10.7.4-x86_64
Xcode: 4.3.3
CLT: 4.3.0.0.1.1249367152
X11: 2.6.4 @ /usr/X11
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.7
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.7
CPPFLAGS: -isystem /usr/local/include
LDFLAGS: -L/usr/local/lib
MACOSX_DEPLOYMENT_TARGET: 10.7
MAKEFLAGS: -j8
Error: Failed executing: make install (node.rb:30)
These existing issues may help you:
    https://github.com/mxcl/homebrew/issues/12313
    https://github.com/mxcl/homebrew/issues/13053
    https://github.com/mxcl/homebrew/issues/13056
Otherwise, this may help you fix or report the issue:
    https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist

After reading some of the issues above, I tried installing openssl first and got a similar error.

AES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -isystem /usr/local/include  -c -o bio_pk7.o bio_pk7.c
In file included from bio_pk7.c:60:
In file included from /usr/local/include/memory.h:7:
/usr/local/include/config.h:20:10: fatal error: '../config/m.h' file not found
#include "../config/m.h"
         ^
1 error generated.
make[2]: *** [bio_pk7.o] Error 1
make[1]: *** [subdirs] Error 1
make: *** [build_crypto] Error 1
==> Build Environment
HOMEBREW_VERSION: 0.9.2
HEAD: fc57c7379d71ab1cebcde0d94b49dba52b352948
CPU: 8-core 64-bit dunno
OS X: 10.7.4-x86_64
Xcode: 4.3.3
CLT: 4.3.0.0.1.1249367152
X11: 2.6.4 @ /usr/X11
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.7
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.7
CPPFLAGS: -isystem /usr/local/include
LDFLAGS: -L/usr/local/lib
MACOSX_DEPLOYMENT_TARGET: 10.7
Error: Failed executing: make (openssl.rb:24)
These existing issues may help you:
    https://github.com/mxcl/homebrew/issues/12313
Otherwise, this may help you fix or report the issue:
    https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist

I updated and brew doctor doesn't show any issues.

Contributor
2bits commented Jul 8, 2012

What do you get for

ls -l /usr/local/incude/config.h
ls -lA /usr/local/include
ls -ld /usr/local
dmdavis commented Jul 9, 2012

$ ls -l /usr/local/include/config.h
lrwxr-xr-x 1 dale admin 37 Jul 3 06:32 /usr/local/include/config.h -> ../Cellar/mosml/2.01/include/config.h

$ ls -lA /usr/local/include
total 888
lrwxr-xr-x 1 dale admin 35 Jul 5 06:33 Python.h -> ../Cellar/pypy/1.9/include/Python.h
lrwxr-xr-x 1 dale admin 29 Jul 3 12:49 Qt -> ../Cellar/qt/4.8.2/include/Qt
lrwxr-xr-x 1 dale admin 33 Jul 3 12:49 QtCore -> ../Cellar/qt/4.8.2/include/QtCore
lrwxr-xr-x 1 dale admin 40 Jul 3 12:49 QtDeclarative -> ../Cellar/qt/4.8.2/include/QtDeclarative
lrwxr-xr-x 1 dale admin 37 Jul 3 12:49 QtDesigner -> ../Cellar/qt/4.8.2/include/QtDesigner
lrwxr-xr-x 1 dale admin 32 Jul 3 12:49 QtGui -> ../Cellar/qt/4.8.2/include/QtGui
lrwxr-xr-x 1 dale admin 33 Jul 3 12:49 QtHelp -> ../Cellar/qt/4.8.2/include/QtHelp
lrwxr-xr-x 1 dale admin 39 Jul 3 12:49 QtMultimedia -> ../Cellar/qt/4.8.2/include/QtMultimedia
lrwxr-xr-x 1 dale admin 36 Jul 3 12:49 QtNetwork -> ../Cellar/qt/4.8.2/include/QtNetwork
lrwxr-xr-x 1 dale admin 35 Jul 3 12:49 QtOpenGL -> ../Cellar/qt/4.8.2/include/QtOpenGL
lrwxr-xr-x 1 dale admin 35 Jul 3 12:49 QtScript -> ../Cellar/qt/4.8.2/include/QtScript
lrwxr-xr-x 1 dale admin 40 Jul 3 12:49 QtScriptTools -> ../Cellar/qt/4.8.2/include/QtScriptTools
lrwxr-xr-x 1 dale admin 32 Jul 3 12:49 QtSql -> ../Cellar/qt/4.8.2/include/QtSql
lrwxr-xr-x 1 dale admin 32 Jul 3 12:49 QtSvg -> ../Cellar/qt/4.8.2/include/QtSvg
lrwxr-xr-x 1 dale admin 33 Jul 3 12:49 QtTest -> ../Cellar/qt/4.8.2/include/QtTest
lrwxr-xr-x 1 dale admin 36 Jul 3 12:49 QtUiTools -> ../Cellar/qt/4.8.2/include/QtUiTools
lrwxr-xr-x 1 dale admin 35 Jul 3 12:49 QtWebKit -> ../Cellar/qt/4.8.2/include/QtWebKit
lrwxr-xr-x 1 dale admin 32 Jul 3 12:49 QtXml -> ../Cellar/qt/4.8.2/include/QtXml
lrwxr-xr-x 1 dale admin 40 Jul 3 12:49 QtXmlPatterns -> ../Cellar/qt/4.8.2/include/QtXmlPatterns
lrwxr-xr-x 1 dale admin 37 Jul 5 06:33 abstract.h -> ../Cellar/pypy/1.9/include/abstract.h
lrwxr-xr-x 1 dale admin 36 Jul 3 06:32 alloc.h -> ../Cellar/mosml/2.01/include/alloc.h
lrwxr-xr-x 1 dale admin 39 Jul 5 06:33 boolobject.h -> ../Cellar/pypy/1.9/include/boolobject.h
lrwxr-xr-x 1 dale admin 41 Jul 5 06:33 bufferobject.h -> ../Cellar/pypy/1.9/include/bufferobject.h
lrwxr-xr-x 1 dale admin 40 Jul 5 06:33 bytesobject.h -> ../Cellar/pypy/1.9/include/bytesobject.h
lrwxr-xr-x 1 dale admin 39 Jul 3 06:32 callback.h -> ../Cellar/mosml/2.01/include/callback.h
lrwxr-xr-x 1 dale admin 33 Jul 5 06:33 code.h -> ../Cellar/pypy/1.9/include/code.h
lrwxr-xr-x 1 dale admin 36 Jul 5 06:33 compile.h -> ../Cellar/pypy/1.9/include/compile.h
lrwxr-xr-x 1 dale admin 42 Jul 5 06:33 complexobject.h -> ../Cellar/pypy/1.9/include/complexobject.h
lrwxr-xr-x 1 dale admin 37 Jul 3 06:32 config.h -> ../Cellar/mosml/2.01/include/config.h
lrwxr-xr-x 1 dale admin 37 Jul 5 06:33 datetime.h -> ../Cellar/pypy/1.9/include/datetime.h
lrwxr-xr-x 1 dale admin 39 Jul 3 06:32 debugger.h -> ../Cellar/mosml/2.01/include/debugger.h
lrwxr-xr-x 1 dale admin 40 Jul 5 06:33 descrobject.h -> ../Cellar/pypy/1.9/include/descrobject.h
lrwxr-xr-x 1 dale admin 39 Jul 5 06:33 dictobject.h -> ../Cellar/pypy/1.9/include/dictobject.h
lrwxr-xr-x 1 dale admin 33 Jul 5 06:33 eval.h -> ../Cellar/pypy/1.9/include/eval.h
lrwxr-xr-x 1 dale admin 35 Jul 3 06:32 exec.h -> ../Cellar/mosml/2.01/include/exec.h
lrwxr-xr-x 1 dale admin 37 Jul 3 06:32 expand.h -> ../Cellar/mosml/2.01/include/expand.h
lrwxr-xr-x 1 dale admin 35 Jul 3 06:32 fail.h -> ../Cellar/mosml/2.01/include/fail.h
lrwxr-xr-x 1 dale admin 39 Jul 5 06:33 fileobject.h -> ../Cellar/pypy/1.9/include/fileobject.h
lrwxr-xr-x 1 dale admin 40 Jul 5 06:33 floatobject.h -> ../Cellar/pypy/1.9/include/floatobject.h
lrwxr-xr-x 1 dale admin 40 Jul 5 06:33 frameobject.h -> ../Cellar/pypy/1.9/include/frameobject.h
lrwxr-xr-x 1 dale admin 39 Jul 3 06:32 freelist.h -> ../Cellar/mosml/2.01/include/freelist.h
lrwxr-xr-x 1 dale admin 39 Jul 5 06:33 funcobject.h -> ../Cellar/pypy/1.9/include/funcobject.h
lrwxr-xr-x 1 dale admin 33 Jul 3 06:32 gc.h -> ../Cellar/mosml/2.01/include/gc.h
lrwxr-xr-x 1 dale admin 38 Jul 3 06:32 gc_ctrl.h -> ../Cellar/mosml/2.01/include/gc_ctrl.h
lrwxr-xr-x 1 dale admin 34 Jul 3 06:28 gdbm.h -> ../Cellar/gdbm/1.10/include/gdbm.h
lrwxr-xr-x 1 dale admin 38 Jul 3 06:32 globals.h -> ../Cellar/mosml/2.01/include/globals.h
lrwxr-xr-x 1 dale admin 35 Jul 5 06:33 import.h -> ../Cellar/pypy/1.9/include/import.h
lrwxr-xr-x 1 dale admin 39 Jul 3 06:32 instruct.h -> ../Cellar/mosml/2.01/include/instruct.h
lrwxr-xr-x 1 dale admin 37 Jul 3 06:32 interp.h -> ../Cellar/mosml/2.01/include/interp.h
lrwxr-xr-x 1 dale admin 37 Jul 3 06:32 intext.h -> ../Cellar/mosml/2.01/include/intext.h
lrwxr-xr-x 1 dale admin 38 Jul 5 06:33 intobject.h -> ../Cellar/pypy/1.9/include/intobject.h
lrwxr-xr-x 1 dale admin 33 Jul 3 06:32 io.h -> ../Cellar/mosml/2.01/include/io.h
lrwxr-xr-x 1 dale admin 38 Jul 3 06:32 jumptbl.h -> ../Cellar/mosml/2.01/include/jumptbl.h
lrwxr-xr-x 1 dale admin 39 Jul 5 06:33 listobject.h -> ../Cellar/pypy/1.9/include/listobject.h
lrwxr-xr-x 1 dale admin 40 Jul 5 06:33 longintrepr.h -> ../Cellar/pypy/1.9/include/longintrepr.h
lrwxr-xr-x 1 dale admin 32 Jul 3 06:32 m.h -> ../Cellar/mosml/2.01/include/m.h
lrwxr-xr-x 1 dale admin 39 Jul 3 06:32 major_gc.h -> ../Cellar/mosml/2.01/include/major_gc.h
lrwxr-xr-x 1 dale admin 37 Jul 3 06:32 md5sum.h -> ../Cellar/mosml/2.01/include/md5sum.h
lrwxr-xr-x 1 dale admin 37 Jul 3 06:32 memory.h -> ../Cellar/mosml/2.01/include/memory.h
lrwxr-xr-x 1 dale admin 41 Jul 5 06:33 methodobject.h -> ../Cellar/pypy/1.9/include/methodobject.h
lrwxr-xr-x 1 dale admin 39 Jul 3 06:32 minor_gc.h -> ../Cellar/mosml/2.01/include/minor_gc.h
lrwxr-xr-x 1 dale admin 35 Jul 3 06:32 misc.h -> ../Cellar/mosml/2.01/include/misc.h
lrwxr-xr-x 1 dale admin 39 Jul 3 06:32 mlvalues.h -> ../Cellar/mosml/2.01/include/mlvalues.h
lrwxr-xr-x 1 dale admin 39 Jul 5 06:33 modsupport.h -> ../Cellar/pypy/1.9/include/modsupport.h
lrwxr-xr-x 1 dale admin 36 Jul 3 06:32 mosml.h -> ../Cellar/mosml/2.01/include/mosml.h
lrwxr-xr-x 1 dale admin 35 Jul 5 06:33 object.h -> ../Cellar/pypy/1.9/include/object.h
lrwxr-xr-x 1 dale admin 39 Jul 5 06:33 patchlevel.h -> ../Cellar/pypy/1.9/include/patchlevel.h
lrwxr-xr-x 1 dale admin 33 Jul 3 12:49 phonon -> ../Cellar/qt/4.8.2/include/phonon
lrwxr-xr-x 1 dale admin 36 Jul 3 06:32 prims.h -> ../Cellar/mosml/2.01/include/prims.h
lrwxr-xr-x 1 dale admin 38 Jul 5 06:33 pycapsule.h -> ../Cellar/pypy/1.9/include/pycapsule.h
lrwxr-xr-x 1 dale admin 38 Jul 5 06:33 pycobject.h -> ../Cellar/pypy/1.9/include/pycobject.h
lrwxr-xr-x 1 dale admin 37 Jul 5 06:33 pyconfig.h -> ../Cellar/pypy/1.9/include/pyconfig.h
lrwxr-xr-x 1 dale admin 37 Jul 5 06:33 pyerrors.h -> ../Cellar/pypy/1.9/include/pyerrors.h
lrwxr-xr-x 1 dale admin 35 Jul 5 06:33 pymath.h -> ../Cellar/pypy/1.9/include/pymath.h
lrwxr-xr-x 1 dale admin 34 Jul 5 06:33 pymem.h -> ../Cellar/pypy/1.9/include/pymem.h
lrwxr-xr-x 1 dale admin 35 Jul 5 06:33 pyport.h -> ../Cellar/pypy/1.9/include/pyport.h
lrwxr-xr-x 1 dale admin 38 Jul 5 06:33 pypy_decl.h -> ../Cellar/pypy/1.9/include/pypy_decl.h
lrwxr-xr-x 1 dale admin 40 Jul 5 06:33 pypy_macros.h -> ../Cellar/pypy/1.9/include/pypy_macros.h
lrwxr-xr-x 1 dale admin 38 Jul 5 06:33 pysignals.h -> ../Cellar/pypy/1.9/include/pysignals.h
lrwxr-xr-x 1 dale admin 36 Jul 5 06:33 pystate.h -> ../Cellar/pypy/1.9/include/pystate.h
lrwxr-xr-x 1 dale admin 40 Jul 3 06:30 python2.7 -> ../Cellar/python/2.7.3/include/python2.7
lrwxr-xr-x 1 dale admin 42 Jul 3 13:23 python3.2m -> ../Cellar/python3/3.2.3/include/python3.2m
lrwxr-xr-x 1 dale admin 38 Jul 5 06:33 pythonrun.h -> ../Cellar/pypy/1.9/include/pythonrun.h
lrwxr-xr-x 1 dale admin 37 Jul 5 06:33 pythread.h -> ../Cellar/pypy/1.9/include/pythread.h
lrwxr-xr-x 1 dale admin 38 Jul 3 06:32 reverse.h -> ../Cellar/mosml/2.01/include/reverse.h
lrwxr-xr-x 1 dale admin 36 Jul 3 06:32 roots.h -> ../Cellar/mosml/2.01/include/roots.h
lrwxr-xr-x 1 dale admin 38 Jul 3 06:32 runtime.h -> ../Cellar/mosml/2.01/include/runtime.h
lrwxr-xr-x 1 dale admin 32 Jul 3 06:32 s.h -> ../Cellar/mosml/2.01/include/s.h
lrwxr-xr-x 1 dale admin 35 Jul 3 05:57 serf-1 -> ../Cellar/serf/1.1.0/include/serf-1
lrwxr-xr-x 1 dale admin 38 Jul 3 06:32 signals.h -> ../Cellar/mosml/2.01/include/signals.h
lrwxr-xr-x 1 dale admin 34 Jul 3 13:24 sip.h -> ../Cellar/sip/4.13.3/include/sip.h
lrwxr-xr-x 1 dale admin 40 Jul 5 06:33 sliceobject.h -> ../Cellar/pypy/1.9/include/sliceobject.h
lrwxr-xr-x 1 dale admin 41 Jul 3 05:57 sqlite3.h -> ../Cellar/sqlite/3.7.13/include/sqlite3.h
lrwxr-xr-x 1 dale admin 44 Jul 3 05:57 sqlite3ext.h -> ../Cellar/sqlite/3.7.13/include/sqlite3ext.h
lrwxr-xr-x 1 dale admin 37 Jul 3 06:32 stacks.h -> ../Cellar/mosml/2.01/include/stacks.h
lrwxr-xr-x 1 dale admin 34 Jul 3 06:32 str.h -> ../Cellar/mosml/2.01/include/str.h
lrwxr-xr-x 1 dale admin 41 Jul 5 06:33 stringobject.h -> ../Cellar/pypy/1.9/include/stringobject.h
lrwxr-xr-x 1 dale admin 41 Jul 5 06:33 structmember.h -> ../Cellar/pypy/1.9/include/structmember.h
lrwxr-xr-x 1 dale admin 38 Jul 5 06:33 structseq.h -> ../Cellar/pypy/1.9/include/structseq.h
lrwxr-xr-x 1 dale admin 47 Jul 3 06:16 subversion-1 -> ../Cellar/subversion/1.7.5/include/subversion-1
lrwxr-xr-x 1 dale admin 34 Jul 3 06:32 sys.h -> ../Cellar/mosml/2.01/include/sys.h
lrwxr-xr-x 1 dale admin 38 Jul 5 06:33 sysmodule.h -> ../Cellar/pypy/1.9/include/sysmodule.h
lrwxr-xr-x 1 dale admin 38 Jul 5 06:33 traceback.h -> ../Cellar/pypy/1.9/include/traceback.h
lrwxr-xr-x 1 dale admin 40 Jul 5 06:33 tupleobject.h -> ../Cellar/pypy/1.9/include/tupleobject.h
lrwxr-xr-x 1 dale admin 39 Jul 3 06:32 unalignd.h -> ../Cellar/mosml/2.01/include/unalignd.h
lrwxr-xr-x 1 dale admin 42 Jul 5 06:33 unicodeobject.h -> ../Cellar/pypy/1.9/include/unicodeobject.h
lrwxr-xr-x 1 dale admin 38 Jul 3 06:32 version.h -> ../Cellar/mosml/2.01/include/version.h
lrwxr-xr-x 1 dale admin 37 Jul 5 06:33 warnings.h -> ../Cellar/pypy/1.9/include/warnings.h
lrwxr-xr-x 1 dale admin 36 Jul 3 11:39 zmq.h -> ../Cellar/zeromq/2.2.0/include/zmq.h
lrwxr-xr-x 1 dale admin 38 Jul 3 11:39 zmq.hpp -> ../Cellar/zeromq/2.2.0/include/zmq.hpp
lrwxr-xr-x 1 dale admin 42 Jul 3 11:39 zmq_utils.h -> ../Cellar/zeromq/2.2.0/include/zmq_utils.h

$ ls -ld /usr/local
drwxrwxr-x 13 root admin 442 Jul 3 13:32 /usr/local

Contributor
Sharpie commented Jul 9, 2012

It looks like mosml has installed header files named config.h and memory.h to the top-level include folder without any sort of sandboxing. This is very, very bad.

Try brew unlink mosml and then brew install node. Afterwards, restore mosml with brew link mosml.

Contributor
adamv commented Jul 9, 2012
dmdavis commented Jul 9, 2012

Uninstalling mosml, installing node, then reinstalling mosml worked. Thanks!

@dmdavis dmdavis closed this Jul 9, 2012
@adamv adamv reopened this Jul 9, 2012
Contributor
adamv commented Jul 9, 2012

Reopening; we need to fix or redact mosml.

Member
mxcl commented Aug 31, 2012

Can we delete mosml's config.h? Seems ridiculous it would install this.

dmdavis commented Aug 31, 2012

I've been uninstalling mosml before upgrading other recipes then reinstalling mosml to get around this, but today that failed. brew doctor shows no problems and I have the latest xcode command line utilities.

$ brew install mosml
==> Downloading http://www.itu.dk/people/sestoft/mosml/mos201src.tar.gz
Already downloaded: /Library/Caches/Homebrew/mosml-2.01.tar.gz
==> make
cd config; sh autoconf gcc
Checking the sizes of integers and pointers...
Wow! A 64 bit architecture!
The char type is signed. Good!
This is a little-endian architecture.
This architecture has no alignment constraints.
Doubles can be word-aligned.
Function "memmove" is provided and handles overlapping moves correctly.
Function "bcopy" is provided and handles overlapping moves correctly.
_setjmp and _longjmp appear to work. Good!
The return type for signal handlers appears to be "void".
Signals have the BSD semantics.
rename() found.
You have BSD sockets.
unistd.h found.
dirent.h found.
lockf() found.
mkfifo() found.
getpriority() found.
utime() found.
utimes() found.
dup2() found.
fchmod() found.
truncate() found.
select() found.
symlink() found.
wait3() found.
waitpid() found.
getgroups() found.
POSIX termios found.
cd runtime; make all
awk -f ../tools/make-jumptbl instruct.h > jumptbl.h
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o expand.o expand.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o misc.o misc.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o stacks.o stacks.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o fix_code.o fix_code.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o main.o main.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o fail.o fail.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o signals.o signals.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o freelist.o freelist.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o major_gc.o major_gc.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o minor_gc.o minor_gc.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o memory.o memory.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o alloc.o alloc.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o roots.o roots.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o compare.o compare.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o ints.o ints.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o floats.o floats.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o str.o str.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o io.o io.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o extern.o extern.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o externcp.o externcp.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o intern.o intern.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o interncp.o interncp.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o hash.o hash.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o sys.o sys.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o meta.o meta.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o parsing.o parsing.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o lexing.o lexing.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o gc_ctrl.o gc_ctrl.c
gcc -c -Dunix -O2 -fno-defer-pop -fomit-frame-pointer -DTHREADED  -o mosml.o mosml.c
sys.c:36:12: error: redefinition of 'sys_nerr' with a different type
extern int sys_nerr;
           ^
/usr/include/stdio.h:459:20: note: previous definition is here
extern __const int sys_nerr;            /* perror(3) external variables */
                   ^
sys.c:37:15: error: redefinition of 'sys_errlist' with a different type
extern char * sys_errlist [];
              ^
/usr/include/stdio.h:460:30: note: previous definition is here
extern __const char *__const sys_errlist[];
                             ^
2 errors generated.
make[1]: *** [sys.o] Error 1
make[1]: *** Waiting for unfinished jobs....
mosml.c:968:14: error: redefinition of 'sys_nerr' with a different type
  extern int sys_nerr;
             ^
/usr/include/stdio.h:459:20: note: previous definition is here
extern __const int sys_nerr;            /* perror(3) external variables */
                   ^
mosml.c:969:17: error: redefinition of 'sys_errlist' with a different type
  extern char * sys_errlist [];
                ^
/usr/include/stdio.h:460:30: note: previous definition is here
extern __const char *__const sys_errlist[];
                             ^
2 errors generated.
make[1]: *** [mosml.o] Error 1
make: *** [world] Error 2
==> Build Environment
HOMEBREW_VERSION: 0.9.3
HEAD: c114e9bb88b5a262975d2c24718b5d38606a208f
CPU: 8-core 64-bit ivybridge
OS X: 10.8.1-x86_64
Xcode: 4.4.1
CLT: 4.4.0.0.1.1249367152
X11: 2.7.2 in /opt/X11
LD: cc
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers/
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_PATH: /usr/local/lib/pkgconfig:/usr/local/Library/Homebrew/pkgconfig
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Library/ENV/4.3:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: Failed executing: make (mosml.rb:20)

These existing issues may help you:
    https://github.com/mxcl/homebrew/issues/13282
Otherwise, this may help you fix or report the issue:
    https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist
Member
mxcl commented Sep 1, 2012

As an aside: best configure output ever.

Contributor

FYI, using full Xcode (not just command line utilities), fixed this issue for me.

dmdavis commented Sep 2, 2012

What do you mean by 'using full Xcode'? I have the full Xcode 4.4.1 installed along with the command line utilities (via Xcode's preferences). Earlier last week, I was able to install this recipe via the brew command just fine. I think this is an environmental issue, I just can't track down what it is.

Contributor

I just had the Command Line Tools installed, and I was getting this exact error. I installed the actual XCode app (4.4.1) from the App Store, and it compiled just fine. I didn't change anything in my env since then.

Contributor
ehd commented Sep 7, 2012

For me:

  • fresh 10.8
  • never installed mosml
  • NO xcode installed
  • command line tools installed

brew install node seems to fail because make seems to think there's nothing to be done?

==> ./configure --prefix=/usr/local/Cellar/node/0.8.8
==> make install
/usr/bin/make -C out BUILDTYPE=Release V=1
make[1]: Nothing to be done for `all'.
ln -fs out/Release/node node
python tools/install.py install 
installing /usr/local/Cellar/node/0.8.8/include/node/ares.h
installing /usr/local/Cellar/node/0.8.8/include/node/ares_version.h
installing /usr/local/Cellar/node/0.8.8/include/node/uv.h
installing /usr/local/Cellar/node/0.8.8/include/node/v8-debug.h
installing /usr/local/Cellar/node/0.8.8/include/node/v8-preparser.h
installing /usr/local/Cellar/node/0.8.8/include/node/v8-profiler.h
installing /usr/local/Cellar/node/0.8.8/include/node/v8-testing.h
installing /usr/local/Cellar/node/0.8.8/include/node/v8.h
installing /usr/local/Cellar/node/0.8.8/include/node/v8stdint.h
installing /usr/local/Cellar/node/0.8.8/include/node/eio-emul.h
installing /usr/local/Cellar/node/0.8.8/include/node/ev-emul.h
installing /usr/local/Cellar/node/0.8.8/include/node/node.h
installing /usr/local/Cellar/node/0.8.8/include/node/node_buffer.h
installing /usr/local/Cellar/node/0.8.8/include/node/node_object_wrap.h
installing /usr/local/Cellar/node/0.8.8/include/node/node_version.h
installing /usr/local/Cellar/node/0.8.8/include/node/uv-private/eio.h
installing /usr/local/Cellar/node/0.8.8/include/node/uv-private/ev.h
installing /usr/local/Cellar/node/0.8.8/include/node/uv-private/ngx-queue.h
installing /usr/local/Cellar/node/0.8.8/include/node/uv-private/tree.h
installing /usr/local/Cellar/node/0.8.8/include/node/uv-private/uv-unix.h
installing /usr/local/Cellar/node/0.8.8/include/node/uv-private/uv-win.h
installing /usr/local/Cellar/node/0.8.8/share/man/man1/node.1
installing /usr/local/Cellar/node/0.8.8/bin/node
Traceback (most recent call last):
  File "tools/install.py", line 225, in <module>
    run(sys.argv[:])
  File "tools/install.py", line 220, in run
    if cmd == 'install': return files(install)
  File "tools/install.py", line 195, in files
    action(['out/Release/node'], 'bin/node')
  File "tools/install.py", line 74, in install
    def install(paths, dst): map(lambda path: try_copy(path, dst), paths)
  File "tools/install.py", line 74, in <lambda>
    def install(paths, dst): map(lambda path: try_copy(path, dst), paths)
  File "tools/install.py", line 66, in try_copy
    return shutil.copy2(source_path, target_path)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 127, in copy2
    copyfile(src, dst)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 81, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: 'out/Release/node'
make: *** [install] Error 1
Contributor
ehd commented Sep 7, 2012

Update: After installing XCode from the App Store the installation worked flawlessly (make install succeeded).

Contributor
Sharpie commented Sep 7, 2012

@ sethvargo @evilhackerdude

I suspect what you are seeing is not related at all to this issue, but rather nodejs/node-v0.x-archive#3681 which is caused by:

http://code.google.com/p/gyp/issues/detail?id=292

Upgrading to a full install of XCode will have no bering on the config.h file installed by mosml, but it is one solution to nodejs/node-v0.x-archive#3681.

Contributor
ehd commented Sep 10, 2012

@Sharpie: Thanks, that indeed was the problem.

Contributor
adamv commented Oct 28, 2012

This doesn't even install for me at all on Snow Leopard, I get random syntax errors on random .mlp files, never the same one.

Contributor
adamv commented Jan 6, 2013

MacPorts patches the header to a different location: https://trac.macports.org/browser/trunk/dports/lang/mosml/Portfile

@adamv adamv closed this in 5648ae5 Jan 30, 2013
@xu-cheng xu-cheng 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.