Re: [Oorexx-devel] building ooRexx 5 on the Raspberry Pi fails - notes
I forget the name of the command, but it allows you to select which commands are executed when the generic name is given. I'll look it up, and send it to you for documentation. Sent by Magic! On Jun 4, 2015, at 2:39 PM, René Jansen rvjan...@xs4all.nl wrote: Ok, got it, will document the process. Indeed gcc 4.8.2 works. Need to do: sudo apt-get install gcc-4.8 g++-4.8 Then changes the symlinks in /usr/bin: cd /usr/bin rm gcc rm g++ sudo ln -s gcc-4.8 gcc sudo ln -s g++-4.8 g++ Then the build succeeds. Phew, that was quite an adventure. Thanks to all. Tomorrow test suite. Best regards, René. Sent from my iPhone On 04 Jun 2015, at 22:36, René Jansen rvjan...@xs4all.nl wrote: That is great, Bruce. My gcc is 4.6.3 and I did and apt-get upgrade this afternoon. Did you do anything special to get this higher level gcc? René Sent from my iPhone On 04 Jun 2015, at 22:14, CVBruce cvbr...@gmail.com wrote: I got it to build on my RPi. I have make 3.0.2 and gcc 4.8.2 Bruce Sent by Magic! On Jun 4, 2015, at 10:07 AM, René Jansen rvjan...@xs4all.nl wrote: hw: Raspberry Pi 2, 4* ~1Ghz ARM, 3.18 SMP PREEMPT armv71 GNU/Linux (1) the installed cmake from the debian repository is 2.8.9 and too low for ooRexx, git clone git://cmake.org/cmake.git and building it sets you back half an hour. There is no binary download. (2) cmake 3.3.2 generates the makefile without complaints - we need to bump up the version req in CMakeLists.txt (3) make builds oorexx until: [ 73%] Building CXX object CMakeFiles/hostemu.dir/extensions/hostemu/cmdparse.cpp.o cmdparse.cpp: In function ‘int yyparse()’: cmdparse.cpp:557:27: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] cmdparse.cpp:819:34: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] [ 73%] Linking CXX shared library bin/libhostemu.so [ 73%] Built target hostemu which are a few warnings, and then fails on missing curses.h include file (4) sudo apt-get install libncurses5-dev libncursesw5-dev (5) restart make, it will get to 75% now and fail on: [ 75%] Building CXX object CMakeFiles/rexx_exe.dir/utilities/rexx/platform/unix/rexx.cpp.o [ 75%] Linking CXX executable bin/rexx bin/librexx.so.5.0.0: undefined reference to `RexxString::ch_PLUS' bin/librexx.so.5.0.0: undefined reference to `MemorySegmentSet::LargeSegmentDeadSpace' bin/librexx.so.5.0.0: undefined reference to `RexxString::ch_MINUS' bin/librexx.so.5.0.0: undefined reference to `MemorySegmentSet::SegmentDeadSpace' bin/librexx.so.5.0.0: undefined reference to `Numerics::FORM_ENGINEERING' bin/librexx.so.5.0.0: undefined reference to `Numerics::FORM_SCIENTIFIC' collect2: ld returned 1 exit status CMakeFiles/rexx_exe.dir/build.make:96: recipe for target 'bin/rexx' failed make[2]: *** [bin/rexx] Error 1 CMakeFiles/Makefile2:255: recipe for target 'CMakeFiles/rexx_exe.dir/all' failed make[1]: *** [CMakeFiles/rexx_exe.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: *** [all] Error 2 Seems that we are missing a library in the link? Can anyone help me with this? best regards, René. -- ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel -- ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel -- ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel -- ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel -- ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel
Re: [Oorexx-devel] building ooRexx 5 on the Raspberry Pi fails - notes
If you do an apt-cache search gcc, I think you will find a package like gcc4.8, install that and make sure that it is selected as the gcc compiler. Sent by Magic! On Jun 4, 2015, at 1:36 PM, René Jansen rvjan...@xs4all.nl wrote: That is great, Bruce. My gcc is 4.6.3 and I did and apt-get upgrade this afternoon. Did you do anything special to get this higher level gcc? René Sent from my iPhone On 04 Jun 2015, at 22:14, CVBruce cvbr...@gmail.com wrote: I got it to build on my RPi. I have make 3.0.2 and gcc 4.8.2 Bruce Sent by Magic! On Jun 4, 2015, at 10:07 AM, René Jansen rvjan...@xs4all.nl wrote: hw: Raspberry Pi 2, 4* ~1Ghz ARM, 3.18 SMP PREEMPT armv71 GNU/Linux (1) the installed cmake from the debian repository is 2.8.9 and too low for ooRexx, git clone git://cmake.org/cmake.git and building it sets you back half an hour. There is no binary download. (2) cmake 3.3.2 generates the makefile without complaints - we need to bump up the version req in CMakeLists.txt (3) make builds oorexx until: [ 73%] Building CXX object CMakeFiles/hostemu.dir/extensions/hostemu/cmdparse.cpp.o cmdparse.cpp: In function ‘int yyparse()’: cmdparse.cpp:557:27: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] cmdparse.cpp:819:34: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] [ 73%] Linking CXX shared library bin/libhostemu.so [ 73%] Built target hostemu which are a few warnings, and then fails on missing curses.h include file (4) sudo apt-get install libncurses5-dev libncursesw5-dev (5) restart make, it will get to 75% now and fail on: [ 75%] Building CXX object CMakeFiles/rexx_exe.dir/utilities/rexx/platform/unix/rexx.cpp.o [ 75%] Linking CXX executable bin/rexx bin/librexx.so.5.0.0: undefined reference to `RexxString::ch_PLUS' bin/librexx.so.5.0.0: undefined reference to `MemorySegmentSet::LargeSegmentDeadSpace' bin/librexx.so.5.0.0: undefined reference to `RexxString::ch_MINUS' bin/librexx.so.5.0.0: undefined reference to `MemorySegmentSet::SegmentDeadSpace' bin/librexx.so.5.0.0: undefined reference to `Numerics::FORM_ENGINEERING' bin/librexx.so.5.0.0: undefined reference to `Numerics::FORM_SCIENTIFIC' collect2: ld returned 1 exit status CMakeFiles/rexx_exe.dir/build.make:96: recipe for target 'bin/rexx' failed make[2]: *** [bin/rexx] Error 1 CMakeFiles/Makefile2:255: recipe for target 'CMakeFiles/rexx_exe.dir/all' failed make[1]: *** [CMakeFiles/rexx_exe.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: *** [all] Error 2 Seems that we are missing a library in the link? Can anyone help me with this? best regards, René. -- ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel -- ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel -- ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel -- ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel
Re: [Oorexx-devel] building ooRexx 5 on the Raspberry Pi fails - notes
That is great, Bruce. My gcc is 4.6.3 and I did and apt-get upgrade this afternoon. Did you do anything special to get this higher level gcc? René Sent from my iPhone On 04 Jun 2015, at 22:14, CVBruce cvbr...@gmail.com wrote: I got it to build on my RPi. I have make 3.0.2 and gcc 4.8.2 Bruce Sent by Magic! On Jun 4, 2015, at 10:07 AM, René Jansen rvjan...@xs4all.nl wrote: hw: Raspberry Pi 2, 4* ~1Ghz ARM, 3.18 SMP PREEMPT armv71 GNU/Linux (1) the installed cmake from the debian repository is 2.8.9 and too low for ooRexx, git clone git://cmake.org/cmake.git and building it sets you back half an hour. There is no binary download. (2) cmake 3.3.2 generates the makefile without complaints - we need to bump up the version req in CMakeLists.txt (3) make builds oorexx until: [ 73%] Building CXX object CMakeFiles/hostemu.dir/extensions/hostemu/cmdparse.cpp.o cmdparse.cpp: In function ‘int yyparse()’: cmdparse.cpp:557:27: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] cmdparse.cpp:819:34: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] [ 73%] Linking CXX shared library bin/libhostemu.so [ 73%] Built target hostemu which are a few warnings, and then fails on missing curses.h include file (4) sudo apt-get install libncurses5-dev libncursesw5-dev (5) restart make, it will get to 75% now and fail on: [ 75%] Building CXX object CMakeFiles/rexx_exe.dir/utilities/rexx/platform/unix/rexx.cpp.o [ 75%] Linking CXX executable bin/rexx bin/librexx.so.5.0.0: undefined reference to `RexxString::ch_PLUS' bin/librexx.so.5.0.0: undefined reference to `MemorySegmentSet::LargeSegmentDeadSpace' bin/librexx.so.5.0.0: undefined reference to `RexxString::ch_MINUS' bin/librexx.so.5.0.0: undefined reference to `MemorySegmentSet::SegmentDeadSpace' bin/librexx.so.5.0.0: undefined reference to `Numerics::FORM_ENGINEERING' bin/librexx.so.5.0.0: undefined reference to `Numerics::FORM_SCIENTIFIC' collect2: ld returned 1 exit status CMakeFiles/rexx_exe.dir/build.make:96: recipe for target 'bin/rexx' failed make[2]: *** [bin/rexx] Error 1 CMakeFiles/Makefile2:255: recipe for target 'CMakeFiles/rexx_exe.dir/all' failed make[1]: *** [CMakeFiles/rexx_exe.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: *** [all] Error 2 Seems that we are missing a library in the link? Can anyone help me with this? best regards, René. -- ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel -- ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel -- ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel
Re: [Oorexx-devel] building ooRexx 5 on the Raspberry Pi fails - notes
Suso update-alternatives Sent by Magic! On Jun 4, 2015, at 2:39 PM, René Jansen rvjan...@xs4all.nl wrote: Ok, got it, will document the process. Indeed gcc 4.8.2 works. Need to do: sudo apt-get install gcc-4.8 g++-4.8 Then changes the symlinks in /usr/bin: cd /usr/bin rm gcc rm g++ sudo ln -s gcc-4.8 gcc sudo ln -s g++-4.8 g++ Then the build succeeds. Phew, that was quite an adventure. Thanks to all. Tomorrow test suite. Best regards, René. Sent from my iPhone On 04 Jun 2015, at 22:36, René Jansen rvjan...@xs4all.nl wrote: That is great, Bruce. My gcc is 4.6.3 and I did and apt-get upgrade this afternoon. Did you do anything special to get this higher level gcc? René Sent from my iPhone On 04 Jun 2015, at 22:14, CVBruce cvbr...@gmail.com wrote: I got it to build on my RPi. I have make 3.0.2 and gcc 4.8.2 Bruce Sent by Magic! On Jun 4, 2015, at 10:07 AM, René Jansen rvjan...@xs4all.nl wrote: hw: Raspberry Pi 2, 4* ~1Ghz ARM, 3.18 SMP PREEMPT armv71 GNU/Linux (1) the installed cmake from the debian repository is 2.8.9 and too low for ooRexx, git clone git://cmake.org/cmake.git and building it sets you back half an hour. There is no binary download. (2) cmake 3.3.2 generates the makefile without complaints - we need to bump up the version req in CMakeLists.txt (3) make builds oorexx until: [ 73%] Building CXX object CMakeFiles/hostemu.dir/extensions/hostemu/cmdparse.cpp.o cmdparse.cpp: In function ‘int yyparse()’: cmdparse.cpp:557:27: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] cmdparse.cpp:819:34: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] [ 73%] Linking CXX shared library bin/libhostemu.so [ 73%] Built target hostemu which are a few warnings, and then fails on missing curses.h include file (4) sudo apt-get install libncurses5-dev libncursesw5-dev (5) restart make, it will get to 75% now and fail on: [ 75%] Building CXX object CMakeFiles/rexx_exe.dir/utilities/rexx/platform/unix/rexx.cpp.o [ 75%] Linking CXX executable bin/rexx bin/librexx.so.5.0.0: undefined reference to `RexxString::ch_PLUS' bin/librexx.so.5.0.0: undefined reference to `MemorySegmentSet::LargeSegmentDeadSpace' bin/librexx.so.5.0.0: undefined reference to `RexxString::ch_MINUS' bin/librexx.so.5.0.0: undefined reference to `MemorySegmentSet::SegmentDeadSpace' bin/librexx.so.5.0.0: undefined reference to `Numerics::FORM_ENGINEERING' bin/librexx.so.5.0.0: undefined reference to `Numerics::FORM_SCIENTIFIC' collect2: ld returned 1 exit status CMakeFiles/rexx_exe.dir/build.make:96: recipe for target 'bin/rexx' failed make[2]: *** [bin/rexx] Error 1 CMakeFiles/Makefile2:255: recipe for target 'CMakeFiles/rexx_exe.dir/all' failed make[1]: *** [CMakeFiles/rexx_exe.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: *** [all] Error 2 Seems that we are missing a library in the link? Can anyone help me with this? best regards, René. -- ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel -- ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel -- ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel -- ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel -- ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel
Re: [Oorexx-devel] building ooRexx 5 on the Raspberry Pi fails - notes
Hello René, probably instead of going for the CMAKE bleeding edge it would be safer to download the stable 3.2.3 which is available for all the platforms needed http://www.cmake.org/download/ I usually download the source and build it myself takes about 15 minutes right now I use cmake_minimum_required( VERSION 3.2 ) the testing is going pretty well cheers Enrico -- ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel
Re: [Oorexx-devel] building ooRexx 5 on the Raspberry Pi fails - notes
Hi Enrico, Hmm, interesting... Now I am missing less, but still two short. Linking CXX executable bin/rexx bin/librexx.so.5.0.0: undefined reference to `operator new(unsigned long)' bin/librexxapi.so.5.0.0: undefined reference to `operator new[](unsigned long)' clang: error: linker command failed with exit code 1 (use -v to see invocation) CMakeFiles/rexx_exe.dir/build.make:87: recipe for target 'bin/rexx' failed make[2]: *** [bin/rexx] Error 1 CMakeFiles/Makefile2:238: recipe for target 'CMakeFiles/rexx_exe.dir/all' failed make[1]: *** [CMakeFiles/rexx_exe.dir/all] Error 2 Makefile:136: recipe for target 'all' failed make: *** [all] Error 2 pi@peano:~/oorexx-build$ pi@peano:~/oorexx-build$ It uses clang for sure. Any ideas? Best regards, René Sent from my iPhone On 04 Jun 2015, at 22:08, Enrico Sorichetti enricosoriche...@mac.com wrote: Hi René since, I guess, clang and clang++ are installed in a directory in Your PATH all You have to do is to use ... cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang the ooRexx source directory cheers enrico -- ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel -- ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel
Re: [Oorexx-devel] building ooRexx 5 on the Raspberry Pi fails - notes
It looks like you are using the GCC version with the namespace linker bug. Rick On Thu, Jun 4, 2015 at 3:23 PM, René Jansen rvjan...@xs4all.nl wrote: Hi Enrico, thanks for the pointer. Did that, downloaded source and built cmake 3.2.3. Let it generate a new makefile in a clean directory. Exact same error though, (83% according to this cmake level), linking of executable fails: Scanning dependencies of target rexx_exe [ 83%] Building CXX object CMakeFiles/rexx_exe.dir/utilities/rexx/platform/unix/rexx.cpp.o Linking CXX executable bin/rexx bin/librexx.so.5.0.0: undefined reference to `RexxString::ch_PLUS' bin/librexx.so.5.0.0: undefined reference to `MemorySegmentSet::LargeSegmentDeadSpace' bin/librexx.so.5.0.0: undefined reference to `RexxString::ch_MINUS' bin/librexx.so.5.0.0: undefined reference to `MemorySegmentSet::SegmentDeadSpace' bin/librexx.so.5.0.0: undefined reference to `Numerics::FORM_ENGINEERING' bin/librexx.so.5.0.0: undefined reference to `Numerics::FORM_SCIENTIFIC' collect2: ld returned 1 exit status CMakeFiles/rexx_exe.dir/build.make:87: recipe for target 'bin/rexx' failed make[2]: *** [bin/rexx] Error 1 CMakeFiles/Makefile2:238: recipe for target 'CMakeFiles/rexx_exe.dir/all' failed make[1]: *** [CMakeFiles/rexx_exe.dir/all] Error 2 Makefile:136: recipe for target 'all' failed make: *** [all] Error 2 if I do a nm on the library, I see U _ZN10RexxString7ch_PLUSE U _ZN16MemorySegmentSet21LargeSegmentDeadSpaceE etc. U means undefined, so the linkage editor has a point here. Does this look familiar to anyone? best regards, René. On 4 jun. 2015, at 19:17, Enrico enricosoriche...@me.com wrote: Hello René, probably instead of going for the CMAKE bleeding edge it would be safer to download the stable 3.2.3 which is available for all the platforms needed http://www.cmake.org/download/ I usually download the source and build it myself takes about 15 minutes right now I use cmake_minimum_required( VERSION 3.2 ) the testing is going pretty well cheers Enrico -- ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel -- ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel -- ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel
Re: [Oorexx-devel] building ooRexx 5 on the Raspberry Pi fails - notes
Hi Enrico, thanks for the pointer. Did that, downloaded source and built cmake 3.2.3. Let it generate a new makefile in a clean directory. Exact same error though, (83% according to this cmake level), linking of executable fails: Scanning dependencies of target rexx_exe [ 83%] Building CXX object CMakeFiles/rexx_exe.dir/utilities/rexx/platform/unix/rexx.cpp.o Linking CXX executable bin/rexx bin/librexx.so.5.0.0: undefined reference to `RexxString::ch_PLUS' bin/librexx.so.5.0.0: undefined reference to `MemorySegmentSet::LargeSegmentDeadSpace' bin/librexx.so.5.0.0: undefined reference to `RexxString::ch_MINUS' bin/librexx.so.5.0.0: undefined reference to `MemorySegmentSet::SegmentDeadSpace' bin/librexx.so.5.0.0: undefined reference to `Numerics::FORM_ENGINEERING' bin/librexx.so.5.0.0: undefined reference to `Numerics::FORM_SCIENTIFIC' collect2: ld returned 1 exit status CMakeFiles/rexx_exe.dir/build.make:87: recipe for target 'bin/rexx' failed make[2]: *** [bin/rexx] Error 1 CMakeFiles/Makefile2:238: recipe for target 'CMakeFiles/rexx_exe.dir/all' failed make[1]: *** [CMakeFiles/rexx_exe.dir/all] Error 2 Makefile:136: recipe for target 'all' failed make: *** [all] Error 2 if I do a nm on the library, I see U _ZN10RexxString7ch_PLUSE U _ZN16MemorySegmentSet21LargeSegmentDeadSpaceE etc. U means undefined, so the linkage editor has a point here. Does this look familiar to anyone? best regards, René. On 4 jun. 2015, at 19:17, Enrico enricosoriche...@me.com wrote: Hello René, probably instead of going for the CMAKE bleeding edge it would be safer to download the stable 3.2.3 which is available for all the platforms needed http://www.cmake.org/download/ I usually download the source and build it myself takes about 15 minutes right now I use cmake_minimum_required( VERSION 3.2 ) the testing is going pretty well cheers Enrico -- ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel -- ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel
Re: [Oorexx-devel] building ooRexx 5 on the Raspberry Pi fails - notes
Hello René , the closest I have to debian is UBUNTU 14.04 LTS I just checked. apart gazillions of warnings, it build without errors cheers enrico -- ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel