can not compile pharo-vm on linux
I already build a pharovm on linux but now it does not work anymore. I followed the steps from github. newImage.sh worked generating the source with the generator.image worked but calling build.sh results in the following cmake error: Configuring thirdparty package: libssh2 CMake Error at CMakeLists.txt:25 (add_dependencies): add_dependencies Adding dependency to non-existent target: /home/nicolai/devel/pharo-vm/pharo-vm/build/..//results/libssh2.so.1.0.1 Configuring thirdparty package: libgit2 CMake Error at CMakeLists.txt:32 (add_dependencies): add_dependencies Adding dependency to non-existent target: /home/nicolai/devel/pharo-vm/pharo-vm/build/..//results/libgit2.so.0.20.0 I don't understand what is missing. The thirdparty directories are there, the ssh2 and git2 .tar.gz are downloaded. But they aren't unpacked and nor compiled. Did anything changed in the pharovm-linux-build-setup ? nicolai
nothing changed even today I built a linux version so it should be working. maybe a download problem? can you try removing the thirdParty directory and trying again? Esteban On 22 Sep 2014, at 23:10, Nicolai Hess <nicolaihess@web.de> wrote:
I already build a pharovm on linux but now it does not work anymore. I followed the steps from github. newImage.sh worked generating the source with the generator.image worked but calling build.sh results in the following cmake error:
Configuring thirdparty package: libssh2 CMake Error at CMakeLists.txt:25 (add_dependencies): add_dependencies Adding dependency to non-existent target: /home/nicolai/devel/pharo-vm/pharo-vm/build/..//results/libssh2.so.1.0.1
Configuring thirdparty package: libgit2 CMake Error at CMakeLists.txt:32 (add_dependencies): add_dependencies Adding dependency to non-existent target: /home/nicolai/devel/pharo-vm/pharo-vm/build/..//results/libgit2.so.0.20.0
I don't understand what is missing. The thirdparty directories are there, the ssh2 and git2 .tar.gz are downloaded.
But they aren't unpacked and nor compiled.
Did anything changed in the pharovm-linux-build-setup ?
nicolai
No, downloading works. Tested again with cleaned up directories: Configuring thirdparty package: libssh2 Downloading http://files.pharo.org/vm/src/lib/libssh2-1.4.3.tar.gz CMake Error at CMakeLists.txt:25 (add_dependencies): add_dependencies Adding dependency to non-existent target: /home/nicolai/devel/pharo-vm/pharo-vm/build/..//results/libssh2.so.1.0.1 it looks like the following steps for unpacking and compiling just aren't done. But there is no error (at least I can not find any error messages). Nicolai 2014-09-22 23:13 GMT+02:00 Esteban Lorenzano <estebanlm@gmail.com>:
nothing changed even today I built a linux version so it should be working.
maybe a download problem? can you try removing the thirdParty directory and trying again?
Esteban
On 22 Sep 2014, at 23:10, Nicolai Hess <nicolaihess@web.de> wrote:
I already build a pharovm on linux but now it does not work anymore. I followed the steps from github. newImage.sh worked generating the source with the generator.image worked but calling build.sh results in the following cmake error:
Configuring thirdparty package: libssh2 CMake Error at CMakeLists.txt:25 (add_dependencies): add_dependencies Adding dependency to non-existent target:
/home/nicolai/devel/pharo-vm/pharo-vm/build/..//results/libssh2.so.1.0.1
Configuring thirdparty package: libgit2 CMake Error at CMakeLists.txt:32 (add_dependencies): add_dependencies Adding dependency to non-existent target:
/home/nicolai/devel/pharo-vm/pharo-vm/build/..//results/libgit2.so.0.20.0
I don't understand what is missing. The thirdparty directories are there, the ssh2 and git2 .tar.gz are downloaded.
But they aren't unpacked and nor compiled.
Did anything changed in the pharovm-linux-build-setup ?
nicolai
On Mon, Sep 22, 2014 at 11:10 PM, Nicolai Hess <nicolaihess@web.de> wrote:
Did anything changed in the pharovm-linux-build-setup ?
if you want a clean system where the pharo VM depends on libraries on your system and not on things downloaded at compile time, you can use these sources: http://files.pharo.org/vm/src/vm-unix-sources/blessed. -- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
2014-09-23 14:11 GMT+02:00 Damien Cassou <damien.cassou@gmail.com>:
On Mon, Sep 22, 2014 at 11:10 PM, Nicolai Hess <nicolaihess@web.de> wrote:
Did anything changed in the pharovm-linux-build-setup ?
if you want a clean system where the pharo VM depends on libraries on your system and not on things downloaded at compile time, you can use these sources: http://files.pharo.org/vm/src/vm-unix-sources/blessed.
-- Damien Cassou http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
Ah this one works (changing some paths in directories.cmake). How it comes, this one does not have the libgit2 and libssh2 as dependencies entries in the CMakeLists.txt file? My CMakeLists.txt has these entries: add_subdirectory("thirdParty/libssh2") set(libssh2_LIB "${externalModulesDir}/libssh2.so.1.0.1") add_library("${libssh2_LIB}" SHARED IMPORTED GLOBAL) set_target_properties("${libssh2_LIB}" PROPERTIES IMPORTED_LOCATION "${libssh2_LIB}") add_dependencies("${libssh2_LIB}" "libssh2") add_dependencies(pharo libssh2) add_subdirectory("thirdParty/libgit2") set(libgit2_LIB "${externalModulesDir}/libgit2.so.0.20.0") add_library("${libgit2_LIB}" SHARED IMPORTED GLOBAL) set_target_properties("${libgit2_LIB}" PROPERTIES IMPORTED_LOCATION "${libgit2_LIB}") add_dependencies("${libgit2_LIB}" "libgit2") add_dependencies(pharo libgit2) by the way this pharovmbuild buildUnix32 has changed ( https://github.com/pharo-project/pharo-vm/commit/d0ce32de77f16a67b8df13a3ab1... ) I think my last successful linux build was 6 month ago :) But I don't see why it does not work on my machine whereas it seems to work on the build slave.
On Wed, Sep 24, 2014 at 1:21 AM, Nicolai Hess <nicolaihess@web.de> wrote:
How it comes, this one does not have the libgit2 and libssh2 as dependencies entries in the CMakeLists.txt file?
the job that creates this file execute a different VM Maker recipe: CogNativeBoostPlugin setTargetPlatform: #Linux32PlatformId. PharoUnixConfig new addExternalPlugins: #( FT2Plugin SqueakSSLPlugin ); addInternalPlugins: #( UnixOSProcessPlugin ); generateSources; generate. Check the following for the full script: https://github.com/pharo-project/pharo-ci/blob/master/ci-jobs/pharo/Pharo-vm... -- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
2014-09-24 9:55 GMT+02:00 Damien Cassou <damien.cassou@gmail.com>:
On Wed, Sep 24, 2014 at 1:21 AM, Nicolai Hess <nicolaihess@web.de> wrote:
How it comes, this one does not have the libgit2 and libssh2 as dependencies entries in the CMakeLists.txt file?
the job that creates this file execute a different VM Maker recipe:
CogNativeBoostPlugin setTargetPlatform: #Linux32PlatformId.
PharoUnixConfig new addExternalPlugins: #( FT2Plugin SqueakSSLPlugin ); addInternalPlugins: #( UnixOSProcessPlugin ); generateSources; generate.
Check the following for the full script:
https://github.com/pharo-project/pharo-ci/blob/master/ci-jobs/pharo/Pharo-vm...
-- Damien Cassou http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
Problem solved! Ubuntu 10.04 uses cmake 2.8.0 and for some reason the add_custom_command does not work in that version. I was finally able to build a vm on linux with cmake 2.8.10.2
On Thu, Sep 25, 2014 at 7:49 PM, Nicolai Hess <nicolaihess@web.de> wrote:
Problem solved! Ubuntu 10.04 uses cmake 2.8.0 and for some reason the add_custom_command does not work in that version. I was finally able to build a vm on linux with cmake 2.8.10.2
congratulations. But it is already obsolete :-). Please use the new source tree http://files.pharo.org/vm/src/vm-unix-sources/blessed. -- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
participants (3)
-
Damien Cassou -
Esteban Lorenzano -
Nicolai Hess