CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[foam-extend.org] foam-extend-4.0 gcc errors & maybe paraFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 6, 2018, 12:36
Default foam-extend-4.0 gcc errors & maybe paraFoam
  #1
New Member
 
powerline332
Join Date: May 2018
Posts: 4
Rep Power: 8
powerline332 is on a distinguished road
I have a mostly Debian 9 (Stretch) distro that has built a lot of codes, e.g. Cantera, Ginac, and some others. Recently though I've had trouble with 2 errors I see;

1.) a gcc error, and a
2.) paraFoam error.

I've seen quite a few posts about these problems, but none of the solutions have tried for me (some don't even post their solutions).

I have zero problem starting completely over, altering my system, adding libraries, kernels, whatever, if I can get some guidance along the way.

Thanks so much!

============================

Pretty much grabbing everything from here: https://openfoamwiki.net/index.php/I...end-4.0/Ubuntu and then following these instructions: https://openfoamwiki.net/index.php/I...oam-extend-4.0 wound me up with able to do the first tutorial (cavity), but nothing working with paraview.

(
git clone git://git.code.sf.net/p/foam-extend/foam-extend-4.0 foam-extend-4.0
qmake and qmake-qt4 are in /usr/bin/
)
Code:
sbh@sbh:~/foam/foam-extend-4.0$  mpicc --showme
gcc -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent/include -I/usr/lib/x86_64-linux-gnu/openmpi/include -pthread -L/usr//lib -L/usr/lib/x86_64-linux-gnu/openmpi/lib -lmpi

sbh@sbh:~/foam/foam-extend-4.0$ mpicc --showme:libdirs
/usr//lib /usr/lib/x86_64-linux-gnu/openmpi/lib

sbh@sbh:~/foam/foam-extend-4.0$ mpicc --showme:compile
-I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent/include -I/usr/lib/x86_64-linux-gnu/openmpi/include -pthread

sbh@sbh:~/foam/foam-extend-4.0$ mpicc --showme:link
-pthread -L/usr//lib -L/usr/lib/x86_64-linux-gnu/openmpi/lib -lmpi

sbh@sbh:~/foam/foam-extend-4.0$ mpicc --showme:libdirs
/usr//lib /usr/lib/x86_64-linux-gnu/openmpi/lib
Here is my prefs.sh file (from example and obviously with redundancy, but I did notice less errors in foamInstallationCheck) and I didn't change the $foam/etc/bashrc file

Code:
export FOAM_VERBOSE=1

# For AllMake.stage1
export WM_THIRD_PARTY_USE_GCC_492=1
#export WM_THIRD_PARTY_USE_GCC_484=1
#export WM_THIRD_PARTY_USE_GCC_474=1
#export WM_THIRD_PARTY_USE_GCC_463=1
#export WM_THIRD_PARTY_USE_GCC_451=1
#export WM_THIRD_PARTY_USE_GCC_445=1
export WM_THIRD_PARTY_USE_PYTHON_27=1
export WM_THIRD_PARTY_USE_M4_1416=1
export WM_THIRD_PARTY_USE_BISON_27=1
export WM_THIRD_PARTY_USE_FLEX_2535=1
export WM_THIRD_PARTY_USE_CMAKE_322=1

#
# For AllMake.stage2
export WM_THIRD_PARTY_USE_OPENMPI_188=1
#export WM_THIRD_PARTY_USE_OPENMPI_188_ConfigureAdditionalArgs='--enable-mpi-cxx --with-verbs'
#export WM_THIRD_PARTY_USE_OPENMPI_165=1
#export WM_THIRD_PARTY_USE_OPENMPI_165_ConfigureAdditionalArgs='--enable-mpi-cxx --with-openib'
#export WM_THIRD_PARTY_USE_OPENMPI_15=1
#export WM_THIRD_PARTY_USE_OPENMPI_143=1
#export WM_THIRD_PARTY_USE_OPENMPI_141=1
#export WM_THIRD_PARTY_USE_MVAPICH2_22=1
#export WM_THIRD_PARTY_USE_MVAPICH2_22_ConfigureAdditionalArgs='--disable-mcast'

#
# For AllMake.stage3
export WM_THIRD_PARTY_USE_METIS_510=1
export WM_THIRD_PARTY_USE_PARMGRIDGEN_10=1
export WM_THIRD_PARTY_USE_LIBCCMIO_261=1
export WM_THIRD_PARTY_USE_MESQUITE_212=1
export WM_THIRD_PARTY_USE_SCOTCH_604=1
#export WM_THIRD_PARTY_USE_SCOTCH_600=1
export WM_THIRD_PARTY_USE_PARMETIS_403=1
export WM_THIRD_PARTY_USE_ZOLTAN_36=1
export WM_THIRD_PARTY_USE_PYFOAM_064=1
export WM_THIRD_PARTY_USE_HWLOC_1101=1
#export WM_THIRD_PARTY_USE_HWLOC_172=1

#
# For AllMake.stage4
export WM_THIRD_PARTY_USE_QT_486=1
export WM_THIRD_PARTY_USE_PARAVIEW_440=1
#export WM_THIRD_PARTY_USE_PARAVIEW_431=1
#export WM_THIRD_PARTY_USE_PARAVIEW_410=1

export QT_DIR=/usr/
export QT_BIN_DIR=/usr/bin/
Sourcing the $foam/etc/bashrc gave;

Code:
sbh@sbh:~/foam/foam-extend-4.0$  source etc/bashrc
Sourcing: /home/sbh/foam/foam-extend-4.0/etc/settings.sh
    MESQUITE_DIR is initialized to: 
    METIS_DIR is initialized to: 
    PARMETIS_DIR is initialized to: 
    PARMGRIDGEN_DIR is initialized to: 
    LIBCCMIO_DIR is initialized to: 
    SCOTCH_DIR is initialized to: 
    SCOTCH_DIR is initialized to: 
    CMAKE_DIR is initialized to: 
    M4_DIR is initialized to: 
    BISON_DIR is initialized to: 
    FLEX_DIR is initialized to: 
    ZOLTAN_DIR is initialized to: 
    PYTHON_DIR is initialized to: 
    PYFOAM_DIR is initialized to: 
    PYFOAM_SITE_DIR is initialized to: /home/sbh/foam/foam-extend-4.0/ThirdParty/PyFoamSiteScripts
    HWLOC_DIR is initialized to: 
    QT_DIR is initialized to: /usr/
    PARAVIEW_DIR is initialized to: 
    LLVM_DIR is initialized to: 
    MESA_DIR is initialized to: 
Sourcing: /home/sbh/foam/foam-extend-4.0/etc/aliases.sh
I then echoed on to my bashrc file leaving the 1 extra line;

Code:
alias fe40='source $HOME/foam/foam-extend-4.0/etc/bashrc'
I then source my bashrc file and tried `fe40` - it worked, the latter spitting out the above 'initialized' statements.

I then started ./Allwmake.firstInstall, and waited (I've done the install over 5 times and that is why I thought I'd just try to pull all software down and build locally)

WAIT.......

Now the last lines of the .Allwmake.firstInstall:
Code:
     -lfiniteVolume     -lmeshTools     -L/home/sbh/foam/site/4.0/lib/linux64GccDPOpt   -lswak4FoamParsers -lfoam -ldl   -lrt -lm -o /home/sbh/foam/site/4.0/bin/linux64GccDPOpt/writeBoundarySubfields
make[1]: Leaving directory '/home/sbh/foam/foam-extend-4.0/ThirdParty/rpmBuild/BUILD/swak4Foam-0.4.0/Utilities/writeBoundarySubfields'


If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/sbh/foam/foam-extend-4.0/ThirdParty/rpmBuild/BUILD/swak4Foam-0.4.0/Libraries (most people will be fine without setting that variable)

========================================
Done ThirdParty AllMake: Stage5         
========================================

========================================
Done ThirdParty Allwmake
========================================
Going to "First steps", I run,

mkdir -p $FOAM_RUN
cp -r $FOAM_TUTORIALS $FOAM_RUN
tut
cd incompressible/icoFoam/cavity

had to run fe40 again (I left it compile over night)...
meshBlock (no shown errors)
paraFoam

Code:
sbh@sbh:~/foam/foam-extend-4.0/tutorials/incompressible/icoFoam/cavity$ paraFoam
created temporary 'cavity.OpenFOAM'
/home/sbh/foam/foam-extend-4.0/bin/paraFoam: line 145: paraview: command not found
$which paraview revealed a blank line - nothing. So I ran $foam/bin/foamInstallationTest;


Code:
sbh@sbh:~/foam/foam-extend-4.0$ ./bin/foamInstallationTest 
Executing ./bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell:              bash
Host:               sbh
OS:                 Linux version 4.15.3-1-generic
-------------------------------------------------------------------------------


Checking main foam-extend env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid      Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/sbh/foam                           yes       yes
$WM_PROJECT_USER_DIR /home/sbh/foam/sbh-4.0                   yes       no
$WM_THIRD_PARTY_DIR  .../sbh/foam/foam-extend-4.0/ThirdParty  yes       yes
-------------------------------------------------------------------------------


Checking the foam-extend env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR      /home/sbh/foam/foam-extend-4.0           yes  yes  yes

$FOAM_APPBIN         ...4.0/applications/bin/linux64GccDPOpt  yes  yes  yes
$FOAM_SITE_APPBIN    ...bh/foam/site/4.0/bin/linux64GccDPOpt  yes  yes  no
$FOAM_USER_APPBIN    ...4.0/applications/bin/linux64GccDPOpt  no        no
$WM_DIR              /home/sbh/foam/foam-extend-4.0/wmake     yes  yes  yes
-------------------------------------------------------------------------------


Checking the foam-extend env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN         .../foam-extend-4.0/lib/linux64GccDPOpt  yes  yes  yes
$FOAM_SITE_LIBBIN    ...bh/foam/site/4.0/lib/linux64GccDPOpt  yes  yes  no
$FOAM_USER_LIBBIN    ...sbh/foam/sbh-4.0/lib/linux64GccDPOpt  no        no
$MPI_ARCH_PATH       ...nmpi-1.8.8/platforms/linux64GccDPOpt  yes  yes  yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version   Location 
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of foam-extend
         Supplied version: 4.3.3
         User version    : 6.3.0
         Minimum required: 4.3.1

gcc      6.3.0    
WARNING:  Conflicting installations:
          foam-extend settings        : /bin/gcc
          current path             : /usr/bin/gcc
          CRITICAL ERROR

gzip     1.6       /bin/gzip                                                
tar      1.29      /bin/tar                                                 
icoFoam            ...am-extend-4.0/applications/bin/linux64GccDPOpt/icoFoam
-------------------------------------------------------------------------------


Summary
-------------------------------------------------------------------------------
Base configuration ok.

The foam installation contains 1 critical error(s).

Review the output for warning messages and consult 
the installation guide for trouble shooting.

done.
From $foam/ThirdParty, if I run Allclean and start with AllMake.pre, I get,

Code:
-- Performing Test HAVE_GCC_ERROR_RETURN_TYPE
-- Performing Test HAVE_GCC_ERROR_RETURN_TYPE - Success
-- Performing Test HAVE_GCC_VISIBILITY
-- Performing Test HAVE_GCC_VISIBILITY - Success
CMake Error at VTK/CMake/vtkCompilerExtras.cmake:47 (if):
  if given arguments:

    "gcc: error: ARGS: No such file or directory

  gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516

  Copyright (C) 2016 Free Software Foundation, Inc.

  This is free software" " see the source for copying conditions.  There is
  NO

  warranty" " not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
  PURPOSE.

  

  " "VERSION_GREATER" "4.2.0" "AND" "BUILD_SHARED_LIBS" "AND"
  "HAVE_GCC_VISIBILITY" "AND" "VTK_USE_GCC_VISIBILITY" "AND" "NOT" "MINGW"
  "AND" "NOT" "CYGWIN"

  Unknown arguments specified
Call Stack (most recent call first):
  VTK/CMakeLists.txt:287 (include)


-- Configuring incomplete, errors occurred!
See also "/home/sbh/foam/foam-extend-4.0/ThirdParty/rpmBuild/BUILD/ParaView-v4.4.0-source/buildObj/CMakeFiles/CMakeOutput.log".
See also "/home/sbh/foam/foam-extend-4.0/ThirdParty/rpmBuild/BUILD/ParaView-v4.4.0-source/buildObj/CMakeFiles/CMakeError.log".
error: Bad exit status from /home/sbh/foam/foam-extend-4.0/ThirdParty/rpmBuild/tmp/rpm-tmp.KOQGzy (%build)


RPM build errors:
    Bad exit status from /home/sbh/foam/foam-extend-4.0/ThirdParty/rpmBuild/tmp/rpm-tmp.KOQGzy (%build)
Installing package: ParaView-4.4.0
  Uninstalling ParaView-4.4.0 using RPM: ParaView-4.4.0-linux64GccDPOpt.x86_64
  Installing ParaView-4.4.0 using RPM file: /home/sbh/foam/foam-extend-4.0/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-4.4.0-linux64GccDPOpt.x86_64.rpm
error: open of /home/sbh/foam/foam-extend-4.0/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-4.4.0-linux64GccDPOpt.x86_64.rpm failed: No such file or directory
Done installing package 

========================================
Done ThirdParty AllMake: Stage4
========================================

========================================
Done ThirdParty Allwmake.pre
========================================
Some more info about my machine:

Code:
sbh@sbh:~$ inxi -F -Nxxx -M -r
System:    Host: sbh Kernel: 4.15.3-1-generic x86_64 (64 bit gcc: 6.3.0) Desktop: N/A dm: N/A
           Distro: Astra Linux (Orel 1.11.15)
Machine:   Device: laptop System: Apple product: MacBookPro11 3 v: 1.0 Chassis: type: 10 v: Mac-2BD1B31983FE1663
           Mobo: Apple model: Mac-2BD1B31983FE1663 v: MacBookPro11 3
           UEFI: Apple v: MBP112.88Z.0142.B00.1708080655 date: 08/08/2017
Battery    BAT0: charge: 67.5 Wh 85.4% condition: 79.0/84.4 Wh (94%) volts: 12.7/11.3
           model: SMP bq20z451 Li-ion serial: N/A status: Full cycles: 261
           hidpp__0: charge: N/A condition: NA/NA Wh volts: NA
           model: Logitech Wireless Mouse M325 serial: 400a-cf-08-1c-e8 status: Discharging
CPU:       Quad core Intel Core i7-4980HQ (-HT-MCP-) cache: 6144 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 22349
           clock speeds: min/max: 800/4000 MHz 1: 3049 MHz 2: 2801 MHz 3: 2805 MHz 4: 2809 MHz 5: 2828 MHz
           6: 2804 MHz 7: 2811 MHz 8: 2800 MHz
Graphics:  Card: NVIDIA GK107M [GeForce GT 750M Mac Edition] bus-ID: 01:00.0 chip-ID: 10de:0fe9
           Display Server: X.Org 1.19.6 drivers: nouveau (unloaded: modesetting,fbdev,vesa)
           Resolution: 2880x1800@59.99hz
           GLX Renderer: NVE7 GLX Version: 3.0 Mesa 17.3.6 Direct Rendering: Yes
Audio:     Card-1 Intel 8 Series/C220 Series High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0 chip-ID: 8086:8c20
           Card-2 NVIDIA GK107 HDMI Audio Controller driver: snd_hda_intel bus-ID: 01:00.1 chip-ID: 10de:0e1b
           Sound: Advanced Linux Sound Architecture v: k4.15.3-1-generic
Network:   Card: Broadcom Limited BCM4360 802.11ac Wireless Network Adapter
           driver: wl bus-ID: 03:00.0 chip-ID: 14e4:43a0
           IF: wlan0 state: up mac: 24:a0:74:f2:c5:4a
Drives:    HDD Total Size: 1000.6GB (16.3% used)
           ID-1: /dev/sda model: APPLE_SSD_SM1024 size: 1000.6GB serial: S1K6NYAG403779 temp: 40C
Partition: ID-1: / size: 199G used: 100G (53%) fs: ext4 dev: /dev/sda8
           ID-2: swap-1 size: 26.21GB used: 0.00GB (0%) fs: swap dev: /dev/sda7
RAID:      System: supported: N/A
           No RAID devices: /proc/mdstat, md_mod kernel module present
           Unused Devices: none
Sensors:   System Temperatures: cpu: 68.0C mobo: N/A gpu: 64.0
           Fan Speeds (in rpm): cpu: N/A
Repos:     Active apt sources in file: /etc/apt/sources.list
           deb ftp://mirror.yandex.ru/astra/current/orel/repository/ orel main non-free contrib
           deb-src ftp://mirror.yandex.ru/astra/current/orel/repository/ orel main non-free contrib
           deb http://ftp.debian.org/debian/ stable main contrib non-free
           deb-src http://ftp.debian.org/debian/ stable main contrib non-free
           Active apt sources in file: /etc/apt/sources.list.d/java-9-debian.list
           deb http://ppa.launchpad.net/webupd8team/java/ubuntu/ xenial main
           deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu/ xenial main
Info:      Processes: 230 Uptime: 11:36 Memory: 2890.8/15949.2MB
           Init: systemd v: 232 runlevel: 5 Gcc sys: 6.3.0 alt: 4.9
           Client: Shell (bash 4.4.121 running in fly-term) inxi: 2.3.5
powerline332 is offline   Reply With Quote

Old   May 7, 2018, 00:40
Default
  #2
New Member
 
powerline332
Join Date: May 2018
Posts: 4
Rep Power: 8
powerline332 is on a distinguished road
I should also say that if I run meshBlock and icoFoam, I do note that files are written (comparing with tree). Just paraFoam doesn't work,

Code:
sbh@sbh:~/foam/sbh-4.0/run/tutorials/incompressible/icoFoam/cavity$ paraFoam
created temporary 'cavity.OpenFOAM'
/home/sbh/foam/foam-extend-4.0/bin/paraFoam: line 145: paraview: command not found
and of course the gcc problem eluded to in the foamInstallationTest;

Code:
WARNING: gcc version does not match gcc supplied with this release of foam-extend
         Supplied version: 4.3.3
         User version    : 6.3.0
         Minimum required: 4.3.1

gcc      6.3.0    
WARNING:  Conflicting installations:
          foam-extend settings        : /bin/gcc
          current path             : /usr/bin/gcc
          CRITICAL ERROR

gzip     1.6       /bin/gzip                                                
tar      1.29      /bin/tar                                                 
icoFoam            ...am-extend-4.0/applications/bin/linux64GccDPOpt/icoFoam
Might try adding something to etc/prefs.sh I saw on another similar problem, e.g. export WM_COMPILER=GCC492...
powerline332 is offline   Reply With Quote

Old   May 7, 2018, 13:40
Default
  #3
New Member
 
powerline332
Join Date: May 2018
Posts: 4
Rep Power: 8
powerline332 is on a distinguished road
I've changed some things around,

Code:
 sbh@sbh:~/foam/foam-extend-4.0$ cat etc/prefs.sh
export QT_BIN_DIR=/usr/bin/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/sbh/SW/ParMGridGen/ParMGridGen
export PATH=$PATH:/home/sbh/SW/ParMGridGen/ParMGridGen
export WM_COMPILER=
export WM_THIRD_PARTY_USE_PARAVIEW_440=
because I have paraview that works by itself on my computer. But maybe I didn't "link" to it correctly. I did install via aptitude, vtk (& friends) and paraview (& friends). They both seemed to run, though I didn't download any datasets; neither complained. Paraview started and the gui looked fine...

But the installation test failed again;

Code:
sbh@sbh:~/foam/foam-extend-4.0$ ./bin/foamInstallationTest 
Executing ./bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell:              bash
Host:               sbh
OS:                 Linux version 4.15.3-1-generic
-------------------------------------------------------------------------------


Checking main foam-extend env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid      Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/sbh/foam                           yes       yes
$WM_PROJECT_USER_DIR /home/sbh/foam/sbh-4.0                   yes       no
$WM_THIRD_PARTY_DIR  .../sbh/foam/foam-extend-4.0/ThirdParty  yes       yes
-------------------------------------------------------------------------------


Checking the foam-extend env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR      /home/sbh/foam/foam-extend-4.0           yes  yes  yes

$FOAM_APPBIN         ...4.0/applications/bin/linux64GccDPOpt  yes  yes  yes
$FOAM_SITE_APPBIN    ...bh/foam/site/4.0/bin/linux64GccDPOpt  no        no
$FOAM_USER_APPBIN    ...4.0/applications/bin/linux64GccDPOpt  no        no
$WM_DIR              /home/sbh/foam/foam-extend-4.0/wmake     yes  yes  yes
-------------------------------------------------------------------------------


Checking the foam-extend env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN         .../foam-extend-4.0/lib/linux64GccDPOpt  yes  yes  yes
$FOAM_SITE_LIBBIN    ...bh/foam/site/4.0/lib/linux64GccDPOpt  no        no
$FOAM_USER_LIBBIN    ...sbh/foam/sbh-4.0/lib/linux64GccDPOpt  no        no
$MPI_ARCH_PATH       --------- env variable not set ---------            yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version   Location 
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of foam-extend
         Supplied version: 4.3.3
         User version    : 6.3.0
         Minimum required: 4.3.1

gcc      6.3.0    
WARNING:  Conflicting installations:
          foam-extend settings        : /bin/gcc
          current path             : /usr/bin/gcc
          CRITICAL ERROR

gzip     1.6       /bin/gzip                                                
tar      1.29      /bin/tar                                                 
icoFoam           
WARNING:  Conflicting installations:
          foam-extend settings        : /home/sbh/foam/foam-extend-4.0/applications/bin/linux64GccDPOpt/icoFoam
          current path             : 
          CRITICAL ERROR

-------------------------------------------------------------------------------


Summary
-------------------------------------------------------------------------------
Base configuration ok.

The foam installation contains 2 critical error(s).

Review the output for warning messages and consult 
the installation guide for trouble shooting.

done.

Last edited by powerline332; May 7, 2018 at 22:59. Reason: wanted ppl to know I'm willing to move to Buster from Stretch
powerline332 is offline   Reply With Quote

Old   May 24, 2018, 22:16
Default Debian - foam/foam-extend-4.0/bin/paraFoam: line 145: paraview: command not found
  #4
New Member
 
powerline332
Join Date: May 2018
Posts: 4
Rep Power: 8
powerline332 is on a distinguished road
Started from fresh Debian install with all the prereqs for all the Ubuntu's shown in

HTML Code:
https://openfoamwiki.net/index.php/Installation/Linux/foam-extend-4.0/Ubuntu
Following these instructions:

HTML Code:
https://openfoamwiki.net/index.php/Installation/Linux/foam-extend-4.0


and reading along these lines for guidance:

HTML Code:
https://www.cfd-online.com/Forums/openfoam-installation/139300-how-can-i-install-paraview-foam-extend-3-1-a-2.html


I have only, in my `etc/prefs.sh` file,

export QT_BIN_DIR=/usr/bin/

and I re-ran, from within ThirdParty/, `AllMake.stage4`,

Code:
sbh@sbh:~/foam/foam-extend-4.0/ThirdParty$ ./AllMake.stage4

This system rpm command: rpm --force-debian

========================================
Starting ThirdParty AllMake: Stage4
========================================

Using system installed QT

Building ParaView 4.4.0
Package name      : ParaView-4.4.0
Package URL       : http://downloads.sourceforge.net/project/foam-extend/ThirdParty/ParaView-v4.4.0-source.tar.gz
RPM spec file name: ParaView-4.4.0.spec
RPM file name     :
Additional flags  : --define=_qmakePath $QT_BIN_DIR/qmake
Updating the ThirdParty environment variables before building package ParaView-4.4.0
RPM file name     : /home/sbh/foam/foam-extend-4.0/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-4.4.0-linux64Gcc49DPOpt.x86_64.rpm
Making package ParaView-4.4.0 using RPM.
Building package ParaView-4.4.0 using SPEC file : ParaView-4.4.0.spec. Optional args: --define=_qmakePath $QT_BIN_DIR/qmake
Executing(%prep): /bin/sh -e /home/sbh/foam/foam-extend-4.0/ThirdParty/rpmBuild/tmp/rpm-tmp.erh0VF
+ umask 022
+ cd /home/sbh/foam/foam-extend-4.0/ThirdParty/rpmBuild/BUILD
+ cd /home/sbh/foam/foam-extend-4.0/ThirdParty/rpmBuild/BUILD
+ rm -rf ParaView-v4.4.0-source
+ /bin/gzip -dc /home/sbh/foam/foam-extend-4.0/ThirdParty/rpmBuild/SOURCES/ParaView-v4.4.0-source.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd ParaView-v4.4.0-source
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /home/sbh/foam/foam-extend-4.0/ThirdParty/rpmBuild/tmp/rpm-tmp.WrLjSx
+ umask 022
+ cd /home/sbh/foam/foam-extend-4.0/ThirdParty/rpmBuild/BUILD
+ cd ParaView-v4.4.0-source
+ '[' -n gcc ']'
+ export CC=gcc
+ CC=gcc
+ '[' -n g++ ']'
+ export CXX=g++
+ CXX=g++
+ '[' -n '-m64 -fPIC' ']'
+ export 'CFLAGS=-m64 -fPIC'
+ CFLAGS='-m64 -fPIC'
+ '[' -n '-m64 -fPIC' ']'
+ export 'CXXFLAGS=-m64 -fPIC'
+ CXXFLAGS='-m64 -fPIC'
+ '[' -n -m64 ']'
+ export LDFLAGS=-m64
+ LDFLAGS=-m64
+ set +x

Compilation options:
     _withVerbose     : false
     _withMesa        : false
     _withMPI         : false
     _withPython      : false
     _withQt          : true
     _qmakePath       : /usr/bin//qmake
     _mesaIncludePath : Undefined
     _mesaLibPath     : Undefined
     _pythonLibPath   : Undefined

+ addCMakeVariable BUILD_SHARED_LIBS:BOOL=ON
+ '[' -n BUILD_SHARED_LIBS:BOOL=ON ']'
+ CMAKE_VARIABLES=' -DBUILD_SHARED_LIBS:BOOL=ON'
+ shift
+ '[' -n '' ']'
+ addCMakeVariable CMAKE_BUILD_TYPE:STRING=Release
+ '[' -n CMAKE_BUILD_TYPE:STRING=Release ']'
+ CMAKE_VARIABLES=' -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_BUILD_TYPE:STRING=Release'
+ shift
+ '[' -n '' ']'
+ addCMakeVariable BUILD_TESTING:BOOL=OFF
+ '[' -n BUILD_TESTING:BOOL=OFF ']'
+ CMAKE_VARIABLES=' -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_TESTING:BOOL=OFF'
+ shift
+ '[' -n '' ']'
+ addCMakeVariable PARAVIEW_ENABLE_PYTHON:BOOL=ON
+ '[' -n PARAVIEW_ENABLE_PYTHON:BOOL=ON ']'
+ CMAKE_VARIABLES=' -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_TESTING:BOOL=OFF -DPARAVIEW_ENABLE_PYTHON:BOOL=ON'
+ shift
+ '[' -n '' ']'
+ addCMakeVariable PARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON
+ '[' -n PARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON ']'
+ CMAKE_VARIABLES=' -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_TESTING:BOOL=OFF -DPARAVIEW_ENABLE_PYTHON:BOOL=ON -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON'
+ shift
+ '[' -n '' ']'
+ addCMakeVariable QT_QMAKE_EXECUTABLE:FILEPATH=/usr/bin//qmake
+ '[' -n QT_QMAKE_EXECUTABLE:FILEPATH=/usr/bin//qmake ']'
+ CMAKE_VARIABLES=' -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_TESTING:BOOL=OFF -DPARAVIEW_ENABLE_PYTHON:BOOL=ON -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON -DQT_QMAKE_EXECUTABLE:FILEPATH=/usr/bin//qmake'
+ shift
+ '[' -n '' ']'
+ echo 'CMAKE_VARIABLES:  -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_TESTING:BOOL=OFF -DPARAVIEW_ENABLE_PYTHON:BOOL=ON -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON -DQT_QMAKE_EXECUTABLE:FILEPATH=/usr/bin//qmake'
CMAKE_VARIABLES:  -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_TESTING:BOOL=OFF -DPARAVIEW_ENABLE_PYTHON:BOOL=ON -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON -DQT_QMAKE_EXECUTABLE:FILEPATH=/usr/bin//qmake
+ mkdir -p ./buildObj
+ cd ./buildObj
+ cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/sbh/foam/foam-extend-4.0/ThirdParty/packages/ParaView-4.4.0/platforms/linux64Gcc49DPOpt -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_TESTING:BOOL=OFF -DPARAVIEW_ENABLE_PYTHON:BOOL=ON -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON -DQT_QMAKE_EXECUTABLE:FILEPATH=/usr/bin//qmake ..
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.11.0")
-- Could not use git to determine source version, using version 4.4.0
-- Looking for a Fortran compiler
-- Looking for a Fortran compiler - /usr/bin/f95
-- The Fortran compiler identification is GNU 6.3.0
-- Check for working Fortran compiler: /usr/bin/f95
-- Check for working Fortran compiler: /usr/bin/f95  -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/f95 supports Fortran 90
-- Checking whether /usr/bin/f95 supports Fortran 90 -- yes
qmake: could not exec '/usr/lib/qt5/bin/qmake': No such file or directory
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake-qt4 (found suitable version "4.8.7", minimum required is "4.7.0")
-- Performing Test HAVE_GCC_ERROR_RETURN_TYPE
-- Performing Test HAVE_GCC_ERROR_RETURN_TYPE - Success
-- Performing Test HAVE_GCC_VISIBILITY
-- Performing Test HAVE_GCC_VISIBILITY - Success
CMake Error at VTK/CMake/vtkCompilerExtras.cmake:47 (if):
  if given arguments:

    "gcc: error: ARGS: No such file or directory

  gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516

  Copyright (C) 2016 Free Software Foundation, Inc.

  This is free software" " see the source for copying conditions.  There is
  NO

  warranty" " not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
  PURPOSE.



  " "VERSION_GREATER" "4.2.0" "AND" "BUILD_SHARED_LIBS" "AND"
  "HAVE_GCC_VISIBILITY" "AND" "VTK_USE_GCC_VISIBILITY" "AND" "NOT" "MINGW"
  "AND" "NOT" "CYGWIN"

  Unknown arguments specified
Call Stack (most recent call first):
  VTK/CMakeLists.txt:287 (include)


-- Configuring incomplete, errors occurred!
See also "/home/sbh/foam/foam-extend-4.0/ThirdParty/rpmBuild/BUILD/ParaView-v4.4.0-source/buildObj/CMakeFiles/CMakeOutput.log".
See also "/home/sbh/foam/foam-extend-4.0/ThirdParty/rpmBuild/BUILD/ParaView-v4.4.0-source/buildObj/CMakeFiles/CMakeError.log".
error: Bad exit status from /home/sbh/foam/foam-extend-4.0/ThirdParty/rpmBuild/tmp/rpm-tmp.WrLjSx (%build)


RPM build errors:
    Bad exit status from /home/sbh/foam/foam-extend-4.0/ThirdParty/rpmBuild/tmp/rpm-tmp.WrLjSx (%build)
Installing package: ParaView-4.4.0
  Uninstalling ParaView-4.4.0 using RPM: ParaView-4.4.0-linux64Gcc49DPOpt.x86_64
  Installing ParaView-4.4.0 using RPM file: /home/sbh/foam/foam-extend-4.0/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-4.4.0-linux64Gcc49DPOpt.x86_64.rpm
error: open of /home/sbh/foam/foam-extend-4.0/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-4.4.0-linux64Gcc49DPOpt.x86_64.rpm failed: No such file or directory
Done installing package

========================================
Done ThirdParty AllMake: Stage4
========================================

sbh@sbh:~/foam/foam-extend-4.0/ThirdParty$ cmake
Usage

  cmake [options] <path-to-source>
  cmake [options] <path-to-existing-build>

Specify a source directory to (re-)generate a build system for it in the
current working directory.  Specify an existing build directory to
re-generate its build system.

Run 'cmake --help' for more information.
where I just typed `cmake` because I wanted to make sure it existed - that was a problem in the 2nd link I referenced.

I wanted to make sure my problem still remained so I went to the copy of the tutorial directory I got from `mkdir -p $FOAM_RUN` and `cp -r $FOAM_TUTORIALS $FOAM_RUN` and then to the cavity example. `blockMesh` still works, but `paraFoam` gives the complaint in the title.

I then changed to the `ThirdParty/` director and typed `paraFoam` again and I got,

Code:
sbh@sbh:~/foam/foam-extend-4.0/tutorials/incompressible/icoFoam/cavity$ paraFoam
created temporary 'cavity.OpenFOAM'
/home/sbh/foam/foam-extend-4.0/bin/paraFoam: line 145: paraview: command not found

sbh@sbh:~/foam/foam-extend-4.0/tutorials/incompressible/icoFoam/cavity$ cd ~/foam/foam-extend-4.0/ThirdParty/
sbh@sbh:~/foam/foam-extend-4.0/ThirdParty$ paraFoam
file does not exist:  './system/controlDict'

usage: paraFoam [OPTION]
options:
  -case   dir    specify alternative case directory
  -region name   specify mesh region name
  -touch         only create the .OpenFOAM or .foam file
  -nativeReader  use the paraview native reader for OpenFOAM

* start paraview  with the OpenFOAM libraries
Not sure if all the requirements for the `if` statement were met in `VTK/CMake/vtkCompilerExtras.cmake:47`

Code:
  if(${_gcc_version} VERSION_GREATER 4.2.0 AND BUILD_SHARED_LIBS
    AND HAVE_GCC_VISIBILITY AND VTK_USE_GCC_VISIBILITY
    AND NOT MINGW AND NOT CYGWIN)
    # Should only be set if GCC is newer than 4.2.0
    set(VTK_ABI_CXX_FLAGS "-fvisibility=hidden -fvisibility-inlines-hidden")
  else()
    set(VTK_ABI_CXX_FLAGS "")
  endif()
The `Call Stack (most recent call first):` message only referenced this line in the `/VTK/CMakeLists.txt:287 (include)` file:

include(vtkCompilerExtras)

And looking at the next two lines, the log files, the following is what I could grep out of it that I think may be insightful,

Code:
sbh@sbh:~/foam/foam-extend-4.0/ThirdParty$ grep -rnw rpmBuild/BUILD/ParaView-v4.4.0-source/buildObj/CMakeFiles/ -e "error"
rpmBuild/BUILD/ParaView-v4.4.0-source/buildObj/CMakeFiles/CMakeError.log:10:/home/sbh/foam/foam-extend-4.0/ThirdParty/rpmBuild/BUILD/ParaView-v4.4.0-source/buildObj/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: error: 'Q_WS_WIN' was not declared in this scope
rpmBuild/BUILD/ParaView-v4.4.0-source/buildObj/CMakeFiles/CMakeError.log:43:/home/sbh/foam/foam-extend-4.0/ThirdParty/rpmBuild/BUILD/ParaView-v4.4.0-source/buildObj/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: error: 'Q_WS_QWS' was not declared in this scope
rpmBuild/BUILD/ParaView-v4.4.0-source/buildObj/CMakeFiles/CMakeError.log:76:/home/sbh/foam/foam-extend-4.0/ThirdParty/rpmBuild/BUILD/ParaView-v4.4.0-source/buildObj/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: error: 'Q_WS_MAC' was not declared in this scope
rpmBuild/BUILD/ParaView-v4.4.0-source/buildObj/CMakeFiles/3.7.2/CompilerIdC/CMakeCCompilerId.c:2:# error "A C++ compiler has been selected for C."
rpmBuild/BUILD/ParaView-v4.4.0-source/buildObj/CMakeFiles/3.7.2/CompilerIdCXX/CMakeCXXCompilerId.cpp:5:# error "A C compiler has been selected for C++."
sbh@sbh:~/foam/foam-extend-4.0/ThirdParty$ grep -rnw rpmBuild/BUILD/ParaView-v4.4.0-source/buildObj/CMakeFiles/ -e "fail"
sbh@astra:~/foam/foam-extend-4.0/ThirdParty$
Here is CMakeError.log, just in case,

Because of the `Q_WS_MAC`, I list here my Qt stuff (pretty much no Qt5 - do I need something from there?),

Code:
sbh@sbh:~/foam/foam-extend-4.0/ThirdParty$ sudo aptitude search "qt4 ~i"
i   kde-style-breeze-qt4                                                             - Widget style for Qt 4 and KDE Software
i A libqt4-dbus                                                                      - Qt 4 D-Bus module
i A libqt4-declarative                                                               - Qt 4 Declarative module
i A libqt4-designer                                                                  - Qt 4 designer module
i   libqt4-dev                                                                       - Qt 4 development files
i A libqt4-dev-bin                                                                   - Qt 4 development programs
i A libqt4-help                                                                      - Qt 4 help module
i A libqt4-multimedia                                                                - Qt 4 Multimedia module
i A libqt4-network                                                                   - Qt 4 network module
i A libqt4-opengl                                                                    - Qt 4 OpenGL module
i A libqt4-opengl-dev                                                                - Qt 4 OpenGL library development files
i A libqt4-qt3support                                                                - Qt 3 compatibility library for Qt 4
i A libqt4-script                                                                    - Qt 4 script module
i A libqt4-scripttools                                                               - Qt 4 script tools module
i A libqt4-sql                                                                       - Qt 4 SQL module
i A libqt4-sql-sqlite                                                                - Qt 4 SQLite 3 database driver
i A libqt4-svg                                                                       - Qt 4 SVG module
i A libqt4-test                                                                      - Qt 4 test module
i A libqt4-xml                                                                       - Qt 4 XML module
i A libqt4-xmlpatterns                                                               - Qt 4 XML patterns module
i   python-qt4                                                                       - Python bindings for Qt4
i   python-qt4-dbus                                                                  - D-Bus Support for PyQt4
i A qt4-designer                                                                     - graphical designer for Qt 4 applications
i   qt4-dev-tools                                                                    - Qt 4 development tools
i A qt4-doc                                                                          - Qt 4 API documentation
i A qt4-linguist-tools                                                               - Qt 4 Linguist tools
i A qt4-qmake                                                                        - Qt 4 qmake Makefile generator tool
i   qt4-qtconfig                                                                     - Qt 4 configuration tool
Clearly(?), the log file and the output from Allmake.stage4 complain about `Q_WS_WIN`, `Q_WS_MAC` and `Q_WS_QWS`... are they part of a package I do not have? I saw attempts to look for Qt5 things too but was pretty sure I didn't need anything from that...

I also have: `libqt4-opengl`, `libqt4-opengl-dev`, `libgl1-mesa-dev`.....
powerline332 is offline   Reply With Quote

Reply

Tags
foam-extend-4.0, installation, linux os


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 05:04
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11
[Other] StarToFoam error Kart OpenFOAM Meshing & Mesh Conversion 1 February 4, 2010 05:38
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 03:58


All times are GMT -4. The time now is 00:24.