On 09.08.2014, at 12:17, Ben Coman <btc@openInWorld.com> wrote:
copied to [vm-dev]
Thanks Ben.
Max Leske wrote:
On 09.08.2014, at 09:20, Max Leske <maxleske@gmail.com> wrote:
On 09.08.2014, at 08:39, Andreas Wacknitz <a.wacknitz@gmx.de> wrote:
Am 09.08.2014 um 08:13 schrieb Andreas Wacknitz <a.wacknitz@gmx.de>:
Hi Max,
I had the same problems when I was building the VM for OpenSolaris. My simple solution was to change the generated build/config.h such that the #include wonât happen: Simply uncomment the line â#define HAVE_FEATURES_H 1â
Upps, of course comment out this line :)
Perfect! Thanks.
Lol, that wouldnât even have been necessary in my case. The problem went away as soon as I realized that I hade used #buildUnix32 instead of #buildMacOSX32⦠*facepalm*.
Because Iâm sick of doing everything by hand and reinventing the wheel every couple of weeks Iâve written a script that removes deprecated compiler flags, fixes invalid includes, updates the repo, gets the MacOSX10.6 SDK, checks for homebrew dependencies and so on. If you want to use it, just call it like so:
./build_vm_OSX10.9.sh /path/to/pharo-vm
The script is in my github repo: https://github.com/theseion/stuff/blob/master/build_vm_OSX10.9.sh
Feel free to copy and modify it.
@Esteban If you want you can put it into the pharo-vm repo too.
Cheers, Max
Regards, Andreas
Am 09.08.2014 um 00:19 schrieb Max Leske <maxleske@gmail.com>:
Apparently stuff has changed since I last built a VM. Now I canât get past this annoying error:
-- Generating done -- Build files have been written to: /Users/theseion/devel/git/pharo-vm/build Scanning dependencies of target SqueakSSL [ 1%] Building C object SqueakSSL/CMakeFiles/SqueakSSL.dir/Users/theseion/devel/git/pharo-vm/src/plugins/SqueakSSL/SqueakSSL.c.o In file included from /Users/theseion/devel/git/pharo-vm/src/plugins/SqueakSSL/SqueakSSL.c:21: In file included from /Users/theseion/devel/git/pharo-vm/platforms/Cross/vm/sqVirtualMachine.h:24: In file included from /Users/theseion/devel/git/pharo-vm/platforms/Cross/vm/sqMemoryAccess.h:18: In file included from /Users/theseion/devel/git/pharo-vm/build/config.h:141: /Users/theseion/devel/git/pharo-vm/platforms/unix/vm/glibc.h:1:10: fatal error: 'features.h' file not found #include <features.h> ^ 1 error generated. make[2]: *** [SqueakSSL/CMakeFiles/SqueakSSL.dir/Users/theseion/devel/git/pharo-vm/src/plugins/SqueakSSL/SqueakSSL.c.o] Error 1 make[1]: *** [SqueakSSL/CMakeFiles/SqueakSSL.dir/all] Error 2 make: *** [all] Error 2
Iâve done everything suggested by the readme on github and Iâve symlinked /usr/include to /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include just in case, but no luck so far.
Any ideas?
Cheers, Max