[Pharo-project] Mariano's VM-building instructions don't seem to work
Hi all-- The Cog-building instructions at [1] don't seem to work: *** CMake Error at CMakeLists.txt:46 (add_executable): Cannot find source file: /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19/blessed/macbuild/resources/ProjectBuilder/MainMenu.nib *** Hack that one and get: *** CMake Error at HostWindowPlugin/CMakeLists.txt:17 (add_library): Cannot find source file: /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19/blessed/platforms/iOS/vm/iPhone/plugins/HostWindowPlugin/sqMacHostWindow.c *** Hack that one and get: CMake Error at CroquetPlugin/CMakeLists.txt:17 (add_library): Cannot find source file: /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19/blessed/platforms/Cross/plugins/CroquetPlugin/tribox.c *** There is no file called âtribox.câ. Now what? thanks! -C [1] http://marianopeck.wordpress.com/2011/04/10/building-the-vm-from-scratch-usi... -- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
what os are you using? Did you check the HOWTOBUILD file in the gitorious repository? Which VMMaker version are you using? Maybe you should try the complete setup from our build server: https://ci.lille.inria.fr/pharo/view/Cog/job/Cog-VM/113/Architecture=32,OS=m... and download the sources.tar.gz which will contain the properly exported sources and the matching image. best cami On 2012-10-19, at 18:40, Craig Latta <craig@netjam.org> wrote:
Hi all--
The Cog-building instructions at [1] don't seem to work:
***
CMake Error at CMakeLists.txt:46 (add_executable): Cannot find source file:
/Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19/blessed/macbuild/resources/ProjectBuilder/MainMenu.nib
***
Hack that one and get:
***
CMake Error at HostWindowPlugin/CMakeLists.txt:17 (add_library): Cannot find source file:
/Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19/blessed/platforms/iOS/vm/iPhone/plugins/HostWindowPlugin/sqMacHostWindow.c
***
Hack that one and get:
CMake Error at CroquetPlugin/CMakeLists.txt:17 (add_library): Cannot find source file:
/Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19/blessed/platforms/Cross/plugins/CroquetPlugin/tribox.c
***
There is no file called âtribox.câ. Now what?
thanks!
-C
[1] http://marianopeck.wordpress.com/2011/04/10/building-the-vm-from-scratch-usi...
-- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
Hi Camillo--
what os are you using?
I'm using Mac OS 10.8.2.
Did you check the HOWTOBUILD file in the gitorious repository?
No, I was just following the instructions from Mariano's blog. I'll check it out.
Maybe you should try the complete setup from our build server: https://ci.lille.inria.fr/pharo/view/Cog/job/Cog-VM/113 /Architecture=32,OS=mac/
and download the sources.tar.gz which will contain the properly exported sources and the matching image.
Thanks, I'll try it! -C -- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
It doesn't work: *** Configuring thirdparty package: freetype2 Downloading http://ftp.igh.cnrs.fr/pub/nongnu/freetype/freetype-2.4.9.tar.gz .... Into: /Users/hudson/jenkins/workspace/Cog-VM/Architecture/32/OS/mac/cog/build/thirdparty/freetype2/freetype2.tgz CMake Error at thirdParty/freetype2/CMakeLists.txt:18 (FILE): file DOWNLOAD error: cannot create directory '/Users/hudson/jenkins/workspace/Cog-VM/Architecture/32/OS/mac/cog/build/thirdparty/freetype2' - Specify file by full path name and verify that you have directory creation and file write privileges. *** -- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
aahh damn, I always forget that all the paths are hardcoded :P so yeah, you have to generate the sources again. So try following either Mariano's Instructions or the HOWTOBUILD. fingers crossed. On 2012-10-19, at 19:18, Craig Latta <craig@netjam.org> wrote:
It doesn't work:
***
Configuring thirdparty package: freetype2 Downloading http://ftp.igh.cnrs.fr/pub/nongnu/freetype/freetype-2.4.9.tar.gz .... Into: /Users/hudson/jenkins/workspace/Cog-VM/Architecture/32/OS/mac/cog/build/thirdparty/freetype2/freetype2.tgz CMake Error at thirdParty/freetype2/CMakeLists.txt:18 (FILE): file DOWNLOAD error: cannot create directory
'/Users/hudson/jenkins/workspace/Cog-VM/Architecture/32/OS/mac/cog/build/thirdparty/freetype2' - Specify file by full path name and verify that you have directory creation and file write privileges.
***
-- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
Okay, I nuked the build directory, generated sources from the generator image, and configured successfully. But the build stops on errors: *** [ 84%] Building CXX object CMakeFiles/CogVM.dir/Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/iOS/vm/Common/Classes/sqSqueakMainApplication+attributes.m.o In file included from /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/iOS/vm/Common/Classes/sqSqueakMainApplication+attributes.m:42: /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/Cross/vm/sqSCCSVersion.h:17:54: error: vmVersionInfo.h: No such file or directory /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/Cross/vm/sqSCCSVersion.h:20:3: error: #error "Revision information not specified" In file included from /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/iOS/vm/Common/Classes/sqSqueakMainApplication+attributes.m:42: /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/Cross/vm/sqSCCSVersion.h: In function âsourceVersionStringâ: /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/Cross/vm/sqSCCSVersion.h:25: error: âREVISION_STRINGâ undeclared (first use in this function) /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/Cross/vm/sqSCCSVersion.h:25: error: (Each undeclared identifier is reported only once /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/Cross/vm/sqSCCSVersion.h:25: error: for each function it appears in.) make[2]: *** [CMakeFiles/CogVM.dir/Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/iOS/vm/Common/Classes/sqSqueakMainApplication+attributes.m.o] Error 1 make[1]: *** [CMakeFiles/CogVM.dir/all] Error 2 make: *** [all] Error 2 craig@rhythm build 347> *** thanks again! -C -- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
that should be mentioned in the HOWTOBUILD you have to generate the vmVersionInfo.h cd build #something like ../build-scripts/extract**VersionInfo.sh On 2012-10-19, at 19:36, Craig Latta <craig@netjam.org> wrote:
Okay, I nuked the build directory, generated sources from the generator image, and configured successfully. But the build stops on errors:
***
[ 84%] Building CXX object CMakeFiles/CogVM.dir/Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/iOS/vm/Common/Classes/sqSqueakMainApplication+attributes.m.o In file included from /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/iOS/vm/Common/Classes/sqSqueakMainApplication+attributes.m:42: /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/Cross/vm/sqSCCSVersion.h:17:54: error: vmVersionInfo.h: No such file or directory /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/Cross/vm/sqSCCSVersion.h:20:3: error: #error "Revision information not specified" In file included from /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/iOS/vm/Common/Classes/sqSqueakMainApplication+attributes.m:42: /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/Cross/vm/sqSCCSVersion.h: In function âsourceVersionStringâ: /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/Cross/vm/sqSCCSVersion.h:25: error: âREVISION_STRINGâ undeclared (first use in this function) /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/Cross/vm/sqSCCSVersion.h:25: error: (Each undeclared identifier is reported only once /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/Cross/vm/sqSCCSVersion.h:25: error: for each function it appears in.) make[2]: *** [CMakeFiles/CogVM.dir/Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/iOS/vm/Common/Classes/sqSqueakMainApplication+attributes.m.o] Error 1 make[1]: *** [CMakeFiles/CogVM.dir/all] Error 2 make: *** [all] Error 2 craig@rhythm build 347>
***
thanks again!
-C
-- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
that should be mentioned in the HOWTOBUILD you have to generate the vmVersionInfo.h
It doesn't seem to be, no.
cd build #something like ../build-scripts/extract**VersionInfo.sh
craig@rhythm build 352> pwd /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/build craig@rhythm build 353> ls .. CogCocoaIOSConfig-sources.tar.gz iosbuild/ CogVM.app/ macbuild/ HOWTOBUILD nsbuild/ IA32ABI/ nscogbuild/ LICENSE platforms/ README processors/ build/ results/ codegen-scripts/ scripts/ cygwinbuild/ src/ image/ unixbuild/ craig@rhythm build 354> ../codegen-scripts/extract-commit-info.sh URL=: Command not found. fatal: Not a git repository (or any of the parent directories): .git COMMIT=: Command not found. Unmatched ". craig@rhythm build 355> -- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
On 2012-10-19, at 19:46, Craig Latta <craig@netjam.org> wrote:
that should be mentioned in the HOWTOBUILD you have to generate the vmVersionInfo.h
It doesn't seem to be, no.
it does.... - OSX: # as of 10.7 llvm is the default but incompatible compiler # under 10.8 the following statement is not needed. export CC='/usr/bin/gcc-4.2' export MACOSX_DEPLOYMENT_TARGET=10.5 sh ../codegen-scripts/extract-commit-info.sh ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cd build cmake . make
cd build #something like ../build-scripts/extract**VersionInfo.sh
craig@rhythm build 352> pwd /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/build craig@rhythm build 353> ls .. CogCocoaIOSConfig-sources.tar.gz iosbuild/ CogVM.app/ macbuild/ HOWTOBUILD nsbuild/ IA32ABI/ nscogbuild/ LICENSE platforms/ README processors/ build/ results/ codegen-scripts/ scripts/ cygwinbuild/ src/ image/ unixbuild/ craig@rhythm build 354> ../codegen-scripts/extract-commit-info.sh URL=: Command not found. fatal: Not a git repository (or any of the parent directories): .git COMMIT=: Command not found. Unmatched ". craig@rhythm build 355>
-- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
that should be mentioned in the HOWTOBUILD you have to generate the vmVersionInfo.h
It doesn't seem to be, no.
it does....
- OSX:
# as of 10.7 llvm is the default but incompatible compiler # under 10.8 the following statement is not needed. export CC='/usr/bin/gcc-4.2' export MACOSX_DEPLOYMENT_TARGET=10.5 sh ../codegen-scripts/extract-commit-info.sh ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cd build cmake . make
Well that's completely non-obvious... I was grepping for "version". Anyway, it doesn't work: *** fatal: Not a git repository (or any of the parent directories): .git *** -C --] Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
On 2012-10-19, at 20:16, Craig Latta <craig@netjam.org> wrote:
that should be mentioned in the HOWTOBUILD you have to generate the vmVersionInfo.h
It doesn't seem to be, no.
it does....
- OSX:
# as of 10.7 llvm is the default but incompatible compiler # under 10.8 the following statement is not needed. export CC='/usr/bin/gcc-4.2' export MACOSX_DEPLOYMENT_TARGET=10.5 sh ../codegen-scripts/extract-commit-info.sh ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cd build cmake . make
Well that's completely non-obvious... I was grepping for "version". Anyway, it doesn't work:
***
fatal: Not a git repository (or any of the parent directories): .git
***
- 20 lines => (RE)CREATING THE GENERATED VM SOURCES ===================================== If you downloaded the sources from gitorious do the following the VM sources are not included (unlike the jenkins build download). The following steps explain how to generate the VM sources from a build image. I might sound a bit rude, but start at the beginning of said file, and work your way through. It might be outdated, but its the most recent doc about building the VM we have. So in your case you have to get the sources from gitorous, as implied by the section title: git clone -depth=1 git://gitorious.org/cogvm/blessed.git best cami
The following steps explain how to generate the VM sources from a build image.
I *did* generate the VM sources from the build image. I even said that a few messages ago in this very thread. I also *did* get the "blessed" blob from git, because it was in Mariano's instructions. The problem isn't just that your instructions are old. It's that you have multiple sets of conflicting instructions. And yes, you do sound rude. thanks anyway, -C -- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
On 2012-10-19, at 20:27, Craig Latta <craig@netjam.org> wrote:
The following steps explain how to generate the VM sources from a build image.
I *did* generate the VM sources from the build image. I even said that a few messages ago in this very thread.
I also *did* get the "blessed" blob from git, because it was in Mariano's instructions.
The problem isn't just that your instructions are old. It's that you have multiple sets of conflicting instructions.
So as you can see Marianos post is quite old (>6months?), so it has clearly outdated parts. The HOWTOBUILD *IS* the place to put the build instructions as it is properly versioned along the VM sources. The problem is, that currently only few care about the VM sources, and only 1 or 2 modify the sources :/. So I would be happy to update the HOWTOBUILD according to your experience. AFAIK it is fairly complete, might miss some setup instructions for OSX/WIN. So that said, YES we desperately have to improve this situation. Our build severs do some of the work, if they work... But that does not replace properly detailed instructions... so please try restarting over with git clone --depth=0 git://gitorious.org/cogvm/blessed.git cd blessed/image && ./newImage.sh # generate the proper sources from the image here... cd ../build sh ../codegen-scripts/extract-commit-info.sh cmake . make
And yes, you do sound rude.
I'm sorry for that... it's hard to see what you did and what not, your answers seemed to be random to me ;)
so please try restarting over with...
Will do... I'm currently waiting for wget to build, with its many prerequisites. thanks again, -C -- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
Success! 3 + 4 = 7! Thanks! I'll buy you a beer the next time I see you, for sure. :) I wimped out and installed gcc 4.2 before I built, so I can't report on any LLVM issues. As for the howto document, perhaps split it into two documents? One for jenkins, one for gitorious. That would be better suited to reading in a hurry. thanks again! -C -- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
cool! :) On Oct 19, 2012, at 10:20 PM, Craig Latta <craig@netjam.org> wrote:
Success! 3 + 4 = 7! Thanks!
I'll buy you a beer the next time I see you, for sure. :)
I wimped out and installed gcc 4.2 before I built, so I can't report on any LLVM issues.
As for the howto document, perhaps split it into two documents? One for jenkins, one for gitorious. That would be better suited to reading in a hurry.
thanks again!
-C
-- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
and btw, Igor doesn't drink, but I can take the beer for the two ;) On Oct 19, 2012, at 10:20 PM, Craig Latta <craig@netjam.org> wrote:
Success! 3 + 4 = 7! Thanks!
I'll buy you a beer the next time I see you, for sure. :)
I wimped out and installed gcc 4.2 before I built, so I can't report on any LLVM issues.
As for the howto document, perhaps split it into two documents? One for jenkins, one for gitorious. That would be better suited to reading in a hurry.
thanks again!
-C
-- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
On 19 October 2012 22:20, Craig Latta <craig@netjam.org> wrote:
Success! 3 + 4 = 7! Thanks!
music to my ears! :) Yes, we should improve status quo. What i would really like to do is to merge VMMaker sources and platform sources into a single git repository. Then we will not have issues with synchronization between smalltalk sources and platform sources anymore, as well as development process will be even more streamlined. So, i holding my breath for upcoming release of filetree (a monticello <-> git tool).
I'll buy you a beer the next time I see you, for sure. :)
I wimped out and installed gcc 4.2 before I built, so I can't report on any LLVM issues.
As for the howto document, perhaps split it into two documents? One for jenkins, one for gitorious. That would be better suited to reading in a hurry.
thanks again!
-C
-- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
-- Best regards, Igor Stasenko.
(RE)CREATING THE GENERATED VM SOURCES =====================================
If you downloaded the sources from gitorious do the following the VM sources are not included (unlike the jenkins build download). The following steps explain how to generate the VM sources from a build image.
Also, in this subthread with you I was trying to get your suggested jenkins solution to work, not the "download from gitorious" one. HOWTOBUILD says in the jenkins case I should just be able to "cd build; cmake; make". -C -- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
On 2012-10-19, at 20:39, Craig Latta <craig@netjam.org> wrote:
(RE)CREATING THE GENERATED VM SOURCES =====================================
If you downloaded the sources from gitorious do the following the VM sources are not included (unlike the jenkins build download). The following steps explain how to generate the VM sources from a build image.
Also, in this subthread with you I was trying to get your suggested jenkins solution to work, not the "download from gitorious" one. HOWTOBUILD says in the jenkins case I should just be able to "cd build; cmake; make".
Indeed that is wrong, I removed it, will push it this night to the main branch. thanks for trying!
On 2012-10-19, at 20:42, Camillo Bruni <camillobruni@gmail.com> wrote:
On 2012-10-19, at 20:39, Craig Latta <craig@netjam.org> wrote:
(RE)CREATING THE GENERATED VM SOURCES =====================================
If you downloaded the sources from gitorious do the following the VM sources are not included (unlike the jenkins build download). The following steps explain how to generate the VM sources from a build image.
Also, in this subthread with you I was trying to get your suggested jenkins solution to work, not the "download from gitorious" one. HOWTOBUILD says in the jenkins case I should just be able to "cd build; cmake; make".
I'm off for tonight, let me know if it worked. I would really love to see a proper HOWTOBUILD instruction text, that works from scratch ;) cami
mmm... VMBuilder buildFromScratch. would be even cooler ;) ah, dreams... but we will get there... eventually. Esteban ps: Craig, I'm really interested on you succeed on building vm, please, keep me in track :) On Oct 19, 2012, at 8:50 PM, Camillo Bruni <camillobruni@gmail.com> wrote:
On 2012-10-19, at 20:42, Camillo Bruni <camillobruni@gmail.com> wrote:
On 2012-10-19, at 20:39, Craig Latta <craig@netjam.org> wrote:
(RE)CREATING THE GENERATED VM SOURCES =====================================
If you downloaded the sources from gitorious do the following the VM sources are not included (unlike the jenkins build download). The following steps explain how to generate the VM sources from a build image.
Also, in this subthread with you I was trying to get your suggested jenkins solution to work, not the "download from gitorious" one. HOWTOBUILD says in the jenkins case I should just be able to "cd build; cmake; make".
I'm off for tonight, let me know if it worked. I would really love to see a proper HOWTOBUILD instruction text, that works from scratch ;)
cami
cmake . make is not longer valid. on mac one should use: cmake . make make install. or just use 'build.sh' script which autogenerated by image (in build directory). i added it, because i also forgetting that last step time to time (since the changes i did lately requires 'make install' step). On 19 October 2012 20:58, Esteban Lorenzano <estebanlm@gmail.com> wrote:
mmm...
VMBuilder buildFromScratch.
would be even cooler ;)
ah, dreams... but we will get there... eventually.
Esteban
ps: Craig, I'm really interested on you succeed on building vm, please, keep me in track :)
On Oct 19, 2012, at 8:50 PM, Camillo Bruni <camillobruni@gmail.com> wrote:
On 2012-10-19, at 20:42, Camillo Bruni <camillobruni@gmail.com> wrote:
On 2012-10-19, at 20:39, Craig Latta <craig@netjam.org> wrote:
(RE)CREATING THE GENERATED VM SOURCES =====================================
If you downloaded the sources from gitorious do the following the VM sources are not included (unlike the jenkins build download). The following steps explain how to generate the VM sources from a build image.
Also, in this subthread with you I was trying to get your suggested jenkins solution to work, not the "download from gitorious" one. HOWTOBUILD says in the jenkins case I should just be able to "cd build; cmake; make".
I'm off for tonight, let me know if it worked. I would really love to see a proper HOWTOBUILD instruction text, that works from scratch ;)
cami
-- Best regards, Igor Stasenko.
On 2012-10-19, at 21:49, Igor Stasenko <siguctua@gmail.com> wrote:
cmake . make is not longer valid.
on mac one should use: cmake . make make install.
or just use 'build.sh' script which autogenerated by image (in build directory).
i added it, because i also forgetting that last step time to time (since the changes i did lately requires 'make install' step).
so you should update the docs.... I didn't know about that one until now... the clearly sucks!
On 20 October 2012 00:35, Camillo Bruni <camillobruni@gmail.com> wrote:
On 2012-10-19, at 21:49, Igor Stasenko <siguctua@gmail.com> wrote:
cmake . make is not longer valid.
on mac one should use: cmake . make make install.
or just use 'build.sh' script which autogenerated by image (in build directory).
i added it, because i also forgetting that last step time to time (since the changes i did lately requires 'make install' step).
so you should update the docs.... I didn't know about that one until now...
I mentioned it here: http://dailyvmotion.wordpress.com/2012/09/18/new-vms-with-nativeboost-callba...
the clearly sucks!
-- Best regards, Igor Stasenko.
This is not a documentation!!! It is a blog. Stef On Oct 20, 2012, at 1:56 AM, Igor Stasenko wrote:
On 20 October 2012 00:35, Camillo Bruni <camillobruni@gmail.com> wrote:
On 2012-10-19, at 21:49, Igor Stasenko <siguctua@gmail.com> wrote:
cmake . make is not longer valid.
on mac one should use: cmake . make make install.
or just use 'build.sh' script which autogenerated by image (in build directory).
i added it, because i also forgetting that last step time to time (since the changes i did lately requires 'make install' step).
so you should update the docs.... I didn't know about that one until now...
I mentioned it here:
http://dailyvmotion.wordpress.com/2012/09/18/new-vms-with-nativeboost-callba...
the clearly sucks!
-- Best regards, Igor Stasenko.
thanks Igor. :) Did you recover from the swimming pool :) Stef On Oct 20, 2012, at 8:30 AM, Igor Stasenko wrote:
On 20 October 2012 08:14, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
This is not a documentation!!! It is a blog.
Yes, i will put that in HOWTOBUILD
Stef
-- Best regards, Igor Stasenko.
Please igor Documentation is important. Once you are done tell me what I should read and try.
On 2012-10-19, at 21:49, Igor Stasenko <siguctua@gmail.com> wrote:
cmake . make is not longer valid.
on mac one should use: cmake . make make install.
or just use 'build.sh' script which autogenerated by image (in build directory).
i added it, because i also forgetting that last step time to time (since the changes i did lately requires 'make install' step).
so you should update the docs.... I didn't know about that one until now...
the clearly sucks!
Camillo tell me where I can start and I will debug the process. I'm excellent I finding stuff that do not work :) Stef
(RE)CREATING THE GENERATED VM SOURCES =====================================
If you downloaded the sources from gitorious do the following the VM sources are not included (unlike the jenkins build download). The following steps explain how to generate the VM sources from a build image.
Also, in this subthread with you I was trying to get your suggested jenkins solution to work, not the "download from gitorious" one. HOWTOBUILD says in the jenkins case I should just be able to "cd build; cmake; make".
I'm off for tonight, let me know if it worked. I would really love to see a proper HOWTOBUILD instruction text, that works from scratch ;)
cami
oh, yes... I forgot that step, sorry: in build dir: ../codegen-scripts/extract-commit-info.sh best, Esteban On Oct 19, 2012, at 7:36 PM, Craig Latta <craig@netjam.org> wrote:
Okay, I nuked the build directory, generated sources from the generator image, and configured successfully. But the build stops on errors:
***
[ 84%] Building CXX object CMakeFiles/CogVM.dir/Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/iOS/vm/Common/Classes/sqSqueakMainApplication+attributes.m.o In file included from /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/iOS/vm/Common/Classes/sqSqueakMainApplication+attributes.m:42: /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/Cross/vm/sqSCCSVersion.h:17:54: error: vmVersionInfo.h: No such file or directory /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/Cross/vm/sqSCCSVersion.h:20:3: error: #error "Revision information not specified" In file included from /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/iOS/vm/Common/Classes/sqSqueakMainApplication+attributes.m:42: /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/Cross/vm/sqSCCSVersion.h: In function âsourceVersionStringâ: /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/Cross/vm/sqSCCSVersion.h:25: error: âREVISION_STRINGâ undeclared (first use in this function) /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/Cross/vm/sqSCCSVersion.h:25: error: (Each undeclared identifier is reported only once /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/Cross/vm/sqSCCSVersion.h:25: error: for each function it appears in.) make[2]: *** [CMakeFiles/CogVM.dir/Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/iOS/vm/Common/Classes/sqSqueakMainApplication+attributes.m.o] Error 1 make[1]: *** [CMakeFiles/CogVM.dir/all] Error 2 make: *** [all] Error 2 craig@rhythm build 347>
***
thanks again!
-C
-- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
that's all in the HOWTOBUILD... please read carefully, and if it doesn't work update the description ;) On 2012-10-19, at 19:45, Esteban Lorenzano <estebanlm@gmail.com> wrote:
oh, yes... I forgot that step, sorry:
in build dir:
../codegen-scripts/extract-commit-info.sh
best, Esteban
On Oct 19, 2012, at 7:36 PM, Craig Latta <craig@netjam.org> wrote:
Okay, I nuked the build directory, generated sources from the generator image, and configured successfully. But the build stops on errors:
***
[ 84%] Building CXX object CMakeFiles/CogVM.dir/Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/iOS/vm/Common/Classes/sqSqueakMainApplication+attributes.m.o In file included from /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/iOS/vm/Common/Classes/sqSqueakMainApplication+attributes.m:42: /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/Cross/vm/sqSCCSVersion.h:17:54: error: vmVersionInfo.h: No such file or directory /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/Cross/vm/sqSCCSVersion.h:20:3: error: #error "Revision information not specified" In file included from /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/iOS/vm/Common/Classes/sqSqueakMainApplication+attributes.m:42: /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/Cross/vm/sqSCCSVersion.h: In function âsourceVersionStringâ: /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/Cross/vm/sqSCCSVersion.h:25: error: âREVISION_STRINGâ undeclared (first use in this function) /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/Cross/vm/sqSCCSVersion.h:25: error: (Each undeclared identifier is reported only once /Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/Cross/vm/sqSCCSVersion.h:25: error: for each function it appears in.) make[2]: *** [CMakeFiles/CogVM.dir/Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19-2/platforms/iOS/vm/Common/Classes/sqSqueakMainApplication+attributes.m.o] Error 1 make[1]: *** [CMakeFiles/CogVM.dir/all] Error 2 make: *** [all] Error 2 craig@rhythm build 347>
***
thanks again!
-C
-- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
Hi: On 19 Oct 2012, at 09:49, Camillo Bruni wrote:
Did you check the HOWTOBUILD file in the gitorious repository?
Is it just me or should the following patch be applied? (the order of the steps seems to be wrong and extracting commit infos should be done in the build folder, no?) Best regards Stefan diff --git a/HOWTOBUILD b/HOWTOBUILD index c6554f1..a34ffb9 100644 --- a/HOWTOBUILD +++ b/HOWTOBUILD @@ -65,8 +65,8 @@ Pick or edit the configuration you want, then evaluate it. # as of 10.7 llvm is the default but incompatible compiler export CC='/usr/bin/gcc-4.2' export MACOSX_DEPLOYMENT_TARGET=10.5 - sh ../codegen-scripts/extract-commit-info.sh cd build + sh ../codegen-scripts/extract-commit-info.sh cmake . make -- Stefan Marr Software Languages Lab Vrije Universiteit Brussel Pleinlaan 2 / B-1050 Brussels / Belgium http://soft.vub.ac.be/~smarr Phone: +32 2 629 2974 Fax: +32 2 629 3525
On 22 October 2012 04:24, Stefan Marr <smalltalk@stefan-marr.de> wrote:
Hi:
On 19 Oct 2012, at 09:49, Camillo Bruni wrote:
Did you check the HOWTOBUILD file in the gitorious repository?
Is it just me or should the following patch be applied? (the order of the steps seems to be wrong and extracting commit infos should be done in the build folder, no?)
yes
Best regards Stefan
diff --git a/HOWTOBUILD b/HOWTOBUILD index c6554f1..a34ffb9 100644 --- a/HOWTOBUILD +++ b/HOWTOBUILD @@ -65,8 +65,8 @@ Pick or edit the configuration you want, then evaluate it. # as of 10.7 llvm is the default but incompatible compiler export CC='/usr/bin/gcc-4.2' export MACOSX_DEPLOYMENT_TARGET=10.5 - sh ../codegen-scripts/extract-commit-info.sh cd build + sh ../codegen-scripts/extract-commit-info.sh cmake . make
-- Stefan Marr Software Languages Lab Vrije Universiteit Brussel Pleinlaan 2 / B-1050 Brussels / Belgium http://soft.vub.ac.be/~smarr Phone: +32 2 629 2974 Fax: +32 2 629 3525
-- Best regards, Igor Stasenko.
Hi Craig, the macosx build is not supported since a lot, as you said in your post, it relies in deprecated functions (many of them now removed). I'm maintaining the Cocoa ones (which still have some problems, but at least they use non deprecated APIs). Instead trying to build the MacOS configuration, you need to use: CogCocoaIOSConfig best, Esteban On Oct 19, 2012, at 6:40 PM, Craig Latta <craig@netjam.org> wrote:
Hi all--
The Cog-building instructions at [1] don't seem to work:
***
CMake Error at CMakeLists.txt:46 (add_executable): Cannot find source file:
/Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19/blessed/macbuild/resources/ProjectBuilder/MainMenu.nib
***
Hack that one and get:
***
CMake Error at HostWindowPlugin/CMakeLists.txt:17 (add_library): Cannot find source file:
/Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19/blessed/platforms/iOS/vm/iPhone/plugins/HostWindowPlugin/sqMacHostWindow.c
***
Hack that one and get:
CMake Error at CroquetPlugin/CMakeLists.txt:17 (add_library): Cannot find source file:
/Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19/blessed/platforms/Cross/plugins/CroquetPlugin/tribox.c
***
There is no file called âtribox.câ. Now what?
thanks!
-C
[1] http://marianopeck.wordpress.com/2011/04/10/building-the-vm-from-scratch-usi...
-- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
Hi Esteban--
Instead trying to build the MacOS configuration, you need to use: CogCocoaIOSConfig
Mariano's instructions say to do [CocoaIOSCogJitConfig generateWithSources], then cd to the bld directory and do "cmake .". Is there something I need to do beyond that, regarding Carbon vs. Cocoa? thanks again, -C -- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
problem is that they are outdated. if you use exactly the same versions as mariano says in his post, you will succeed (but you will have a very old vm). other posibility is: latest CMake(I use 2.8.7) latest XCode (I use 4.1) latest sources from https://gitorious.org/cogvm/blessed latest version of ConfigurationOfCog (from http://squeaksource.com/MetacelloRepository) then, execute: (ConfigurationOfCog project version: '5.2') load. and finally: CogCocoaIOSConfig new addExternalPlugins: #(FT2Plugin); generateSources; generate. then in build cmake . make make install that should work (at least it works for me all the time, even starting from scratch) cheers, Esteban On Oct 19, 2012, at 7:11 PM, Craig Latta <craig@netjam.org> wrote:
Hi Esteban--
Instead trying to build the MacOS configuration, you need to use: CogCocoaIOSConfig
Mariano's instructions say to do [CocoaIOSCogJitConfig generateWithSources], then cd to the bld directory and do "cmake .". Is there something I need to do beyond that, regarding Carbon vs. Cocoa?
thanks again,
-C
-- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
problem is that they are outdated. if you use exactly the same versions as mariano says in his post, you will succeed (but you will have a very old vm).
other posibility is:
latest CMake(I use 2.8.7) latest XCode (I use 4.1)
Hm, the latest Xcode is 4.5.1, and apparently "real gcc" was removed in 4.2. I tried to build gcc as mentioned in Mariano's post, but of course it didn't work. If this won't work with LLVM, maybe I should just give up now. thanks again, -C -- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
oops, bad typo, 4.4 I meant :S it should work with LLVM On Oct 19, 2012, at 7:42 PM, Craig Latta <craig@netjam.org> wrote:
problem is that they are outdated. if you use exactly the same versions as mariano says in his post, you will succeed (but you will have a very old vm).
other posibility is:
latest CMake(I use 2.8.7) latest XCode (I use 4.1)
Hm, the latest Xcode is 4.5.1, and apparently "real gcc" was removed in 4.2. I tried to build gcc as mentioned in Mariano's post, but of course it didn't work. If this won't work with LLVM, maybe I should just give up now.
thanks again,
-C
-- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
On 19 October 2012 18:40, Craig Latta <craig@netjam.org> wrote:
Hi all--
The Cog-building instructions at [1] don't seem to work:
***
CMake Error at CMakeLists.txt:46 (add_executable): Cannot find source file:
/Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19/blessed/macbuild/resources/ProjectBuilder/MainMenu.nib
***
Hack that one and get:
***
CMake Error at HostWindowPlugin/CMakeLists.txt:17 (add_library): Cannot find source file:
/Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19/blessed/platforms/iOS/vm/iPhone/plugins/HostWindowPlugin/sqMacHostWindow.c
***
Hack that one and get:
CMake Error at CroquetPlugin/CMakeLists.txt:17 (add_library): Cannot find source file:
/Users/craig/me/behavior/spoon/processor/kernel/cog-2012-10-19/blessed/platforms/Cross/plugins/CroquetPlugin/tribox.c
Craig, that probably a sign that you using wrong version of CMakeVMMaker package not one which is used for the sources committed in git. For that there is codegen-scripts/LoadVMMaker.st script which loads exact version of all packages used to build VM. We usually don't commit code without changing LoadVMMaker.st, and making sure it builds VM with that version.
***
There is no file called âtribox.câ. Now what?
thanks!
-C
[1] http://marianopeck.wordpress.com/2011/04/10/building-the-vm-from-scratch-usi...
-- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
-- Best regards, Igor Stasenko.
for developers, best is , of course do git clone instead of git clone --depth=0 for non-developers, just download tarball from jenkins , change the paths in build/directories.cmake to your local ones and just build. (and you don't need an image in that case) (btw, i wonder, why we need that feature (to use arbitrary paths for sources/platform/build directories), if nobody using it.. which prevents us from having relative paths in directories.cmake file, like that people can build downloaded sources without any changes). -- Best regards, Igor Stasenko.
Hi Igor--
[Igor refers to my first attempt with the gitorious approach.]
Craig, that probably a sign that you using wrong version of CMakeVMMaker package not one which is used for the sources committed in git.
Oh, okay, that's disturbing since I was going from the Metacello configuration Mariano suggested.
For that there is codegen-scripts/LoadVMMaker.st script which loads exact version of all packages used to build VM. We usually don't commit code without changing LoadVMMaker.st, and making sure it builds VM with that version.
Aha, okay.
for developers, best is , of course do git clone instead of git clone --depth=0
for non-developers, just download tarball from jenkins , change the paths in build/directories.cmake to your local ones and just build. (and you don't need an image in that case)
(btw, i wonder, why we need that feature (to use arbitrary paths for sources/platform/build directories), if nobody using it.. which prevents us from having relative paths in directories.cmake file, like that people can build downloaded sources without any changes).
Yeah, I would think a main feature of having a buildable snapshot is that people can just grab it and build it without having to configure anything. thanks again, -C -- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
On 19 October 2012 22:25, Craig Latta <craig@netjam.org> wrote:
Hi Igor--
[Igor refers to my first attempt with the gitorious approach.]
Craig, that probably a sign that you using wrong version of CMakeVMMaker package not one which is used for the sources committed in git.
Oh, okay, that's disturbing since I was going from the Metacello configuration Mariano suggested.
For that there is codegen-scripts/LoadVMMaker.st script which loads exact version of all packages used to build VM. We usually don't commit code without changing LoadVMMaker.st, and making sure it builds VM with that version.
Aha, okay.
for developers, best is , of course do git clone instead of git clone --depth=0
for non-developers, just download tarball from jenkins , change the paths in build/directories.cmake to your local ones and just build. (and you don't need an image in that case)
(btw, i wonder, why we need that feature (to use arbitrary paths for sources/platform/build directories), if nobody using it.. which prevents us from having relative paths in directories.cmake file, like that people can build downloaded sources without any changes).
Yeah, I would think a main feature of having a buildable snapshot is that people can just grab it and build it without having to configure anything.
That was the idea, but you see, some features (no matter how useful they are alone), sometimes can conflict with each other, like in this case.. and then you have no choice but to pick, which one should stay.
thanks again,
-C
-- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547 (no SMS)
-- Best regards, Igor Stasenko.
participants (6)
-
Camillo Bruni -
Craig Latta -
Esteban Lorenzano -
Igor Stasenko -
Stefan Marr -
Stéphane Ducasse