SCIRun User Mailing List

Text archives Help


Re: [SCIRUN-USERS] Building Error on Linux Arch


Chronological Thread 
  • From: Petar Petrov <pip010@gmail.com>
  • To: Dan White <dwhite@sci.utah.edu>
  • Cc: dafang.wang@jhu.edu, scirun-users@sci.utah.edu
  • Subject: Re: [SCIRUN-USERS] Building Error on Linux Arch
  • Date: Mon, 29 Jan 2018 23:50:15 +0100

Hi guys,

I enabled c++14 support for the whole project and had to add additional patch here and there :(

Also, my feeling were right. For some reason latest gcc 6 and above are defaulting to modern c++ rules ! Thats just asking fro trouble IMHO

So a big diff between gcc 5.x and 6.x!

Anyway feel free to test and let me know if it works. With latest patch it should work on gcc 5 and 6 or above.

Cheers,
Petar

On Mon, Jan 29, 2018 at 9:58 PM, Dan White <dwhite@sci.utah.edu> wrote:
I recommend following Petar's patch changes, and also try to compile with gcc 6 rather than 7--I bet there would be even more problems using 7. 
Dan

On Sun, Jan 28, 2018 at 8:09 PM, Dafang Wang <dafang.wang@jhu.edu> wrote:

Hi Dan,

Thanks for your tips. I tried your suggested fix but still got the same error. My compiler is gcc 7.2.1.

Petar, thanks for sharing your experience. I will try your method.

Cheers,
Dafang

On 01/28/2018 07:48 AM, Petar Petrov wrote:
So, I also faced troubles compiling on ubuntu 17.04 and with gcc 6.3.
Yesterday I finally decided to tackle it so I can run it on my newest desktop, so here is the change log that let to successful build:
https://github.com/pip010/scirun4plus/commit/1b93aaf0e23ae4f0355b92c0631c83d94097a120

As you can see, quite more than the patched offer for this particular err in tcl.

My feeling is that gcc6x compiles in c++11 or up profile by default !?

Maybe isolate as patch? Of course you can simply fetch from my repo of scirun4plus.
I will maintain it till at least this summer. I have a couple of papers in the making that use this version.

Regards,
Petar

On Sat, Jan 27, 2018 at 12:53 AM, Dan White <dwhite@sci.utah.edu> wrote:

4) What compiler version are you using? I found this possible fix by searching the error message, but of course there's no guarantee you won't get more errors compiling later. Since SCIRun on Arch is unsupported by SCI, you can start by following all the requirements listed on http://www.sci.utah.edu/cibc-software/scirun.html; if there are still problems you'll have to resort to the community.

5) Just download Qt 4 and install wherever you want, then point the build to that qmake rather than /usr/bin version. For instance, there is a package available at https://www.archlinux.org/packages/extra/x86_64/qt4/.

Dan


On 1/26/2018 4:28 PM, Dafang Wang wrote:

Hi,

I got errors when building SCIRun v4.x on Linux Arch. I tried several 4.x versions, as well as SCIRun linux and source packages, but all returned the same error shown below. The error seems to have do with tcl/tk. 

Also I got errors when building SCIRun v5. It seems that SCIRun requires Qt 4 whereas my computer is using Qt 5.

Any suggestions would be greatly appreciated. Thanks!

Cheers,
Dafang

Error message of buiding v4.7:

[ 20%] Building C object Externals/tcltk/tcl8.6b1/CMakeFiles/tcl.dir/generic/tclMain.c.o
[ 20%] Building C object Externals/tcltk/tcl8.6b1/CMakeFiles/tcl.dir/generic/tclNamesp.c.o
[ 20%] Building C object Externals/tcltk/tcl8.6b1/CMakeFiles/tcl.dir/generic/tclNotify.c.o
[ 20%] Building C object Externals/tcltk/tcl8.6b1/CMakeFiles/tcl.dir/generic/tclObj.c.o
[ 20%] Building C object Externals/tcltk/tcl8.6b1/CMakeFiles/tcl.dir/generic/tclPanic.c.o
[ 20%] Building C object Externals/tcltk/tcl8.6b1/CMakeFiles/tcl.dir/generic/tclParse.c.o
[ 20%] Building C object Externals/tcltk/tcl8.6b1/CMakeFiles/tcl.dir/generic/tclPathObj.c.o
[ 20%] Building C object Externals/tcltk/tcl8.6b1/CMakeFiles/tcl.dir/generic/tclPipe.c.o
/home/dwang/program/SCIRun_4.7_20160120_source/src/Externals/tcltk/tcl8.6b1/generic/tclPipe.c: In function ‘TclCleanupChildren’:
/home/dwang/program/SCIRun_4.7_20160120_source/src/Externals/tcltk/tcl8.6b1/generic/tclPipe.c:271:22: error: storage size of ‘waitStatus’ isn’t known
     WAIT_STATUS_TYPE waitStatus;
                      ^~~~~~~~~~
/home/dwang/program/SCIRun_4.7_20160120_source/src/Externals/tcltk/tcl8.6b1/generic/tclPipe.c:271:22: warning: unused variable ‘waitStatus’ [-Wunused-variable]
make[2]: *** [Externals/tcltk/tcl8.6b1/CMakeFiles/tcl.dir/build.make:1215: Externals/tcltk/tcl8.6b1/CMakeFiles/tcl.dir/generic/tclPipe.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:923: Externals/tcltk/tcl8.6b1/CMakeFiles/tcl.dir/all] Error 2
make: *** [Makefile:130: all] Error 2


Error message of building v5:
-- Found unsuitable Qt version "5.10.0" from /usr/bin/qmake
CMake Error at /usr/share/cmake-3.10/Modules/FindQt4.cmake:1320 (message):
  Found unsuitable Qt version "5.10.0" from /usr/bin/qmake, this code
  requires Qt 4.x
Call Stack (most recent call first):
  Superbuild.cmake:118 (FIND_PACKAGE)
  CMakeLists.txt:39 (INCLUDE)


-- Configuring incomplete, errors occurred!
See also "/home/dwang/program/scirun5/SCIRun/bin/CMakeFiles/CMakeOutput.log".

***ERROR in build script
The failed command was:
/usr/bin/cmake /home/dwang/program/scirun5/SCIRun/Superbuild -DWITH_TETGEN:BOOL=OFF -DBUILD_DOCUMENTATION:BOOL=OFF -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_VERBOSE_MAKEFILE:BOOL=OFF




________________________________________________
SCIRun users mailing list:  scirun-users@sci.utah.edu
http://www.sci.utah.edu/software/scirun.html
To unsubscribe, email sympa@lists.sci.utah.edu with the "unsubscribe scirun-users" in the message body.



________________________________________________
SCIRun users mailing list:  scirun-users@sci.utah.edu
http://www.sci.utah.edu/software/scirun.html
To unsubscribe, email sympa@lists.sci.utah.edu with the "unsubscribe scirun-users" in the message body.



--
All the best,
Petar Petrov
http://ppetrov.net


________________________________________________
SCIRun users mailing list:  scirun-users@sci.utah.edu
http://www.sci.utah.edu/software/scirun.html
To unsubscribe, email sympa@lists.sci.utah.edu with the "unsubscribe scirun-users" in the message body.



________________________________________________
SCIRun users mailing list:  scirun-users@sci.utah.edu
http://www.sci.utah.edu/software/scirun.html
To unsubscribe, email sympa@lists.sci.utah.edu with the "unsubscribe scirun-users" in the message body.



________________________________________________
SCIRun users mailing list:  scirun-users@sci.utah.edu
http://www.sci.utah.edu/software/scirun.html
To unsubscribe, email sympa@lists.sci.utah.edu with the "unsubscribe scirun-users" in the message body.



--
All the best,
Petar Petrov
http://ppetrov.net



Archive powered by MHonArc 2.6.18.

Top of page