Re: [pure-lang-users] Pure on Mac OS X
Status: Beta
Brought to you by:
agraef
|
From: Albert G. <Dr....@t-...> - 2008-05-01 08:54:42
|
Ryan Schmidt wrote: > I tried compiling trunk at revision 10. With Mac OS X 10.4's flex > 2.5.4 and bison 1.28, if I do "make all" I get: Yes, those versions are ancient. But with the release tarball that's not a problem because parser.cc and lexer.cc are included there and so bison and flex aren't normally needed on the build system. > And if I do "make depend all" I get: You shouldn't have to do that any more, I've fixed the dependencies in the distributed Makefile. > Should I be running "make depend all" or "make all"? Just "make" or "make all". That will create a debug-enabled build which is comparatively slow, so for the release build I recommend "make build=release". > g++ -g -Wall `llvm-config --cppflags` -c -o runtime.o runtime.cc > runtime.cc: In function 'void pure_sys_vars()': > runtime.cc:1401: error: 'GLOB_PERIOD' was not declared in this scope > runtime.cc:1405: error: 'GLOB_ONLYDIR' was not declared in this scope > make: *** [runtime.o] Error 1 The glob on OSX doesn't have these, apparently. Should be fixed in revision 13. > We have newer versions of gcc in MacPorts that I can make the pure > portfile use if that becomes necessary. No, that shouldn't be necessary. Once I fixed all the OSX incompatibilities, it should compile at least with gcc 4.0.1. Not sure about gcc 3.x, though. > Except that your Makefile > calls g++ by name, but that's not what MacPorts calls it. For example > MacPorts installs g++ from gcc 4.3 as "g++-mp-4.3". It also sets the > CC, CXX and CPP environment variables to match, so maybe the Makefile > should use the CXX variable if set. You're right. Fixed in revision 15. Thanks, Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |