Author Topic: FEAP 8.6 on macOS Catalina  (Read 5343 times)

jantomec

  • New Member
  • *
  • Posts: 3
FEAP 8.6 on macOS Catalina
« on: November 06, 2020, 02:47:37 AM »
I am trying to install FEAP 8.6.1a on macOS 10.15.7 Catalina with GNU compiler however, I am having some troubles. I am able to install FEAP, but when I run it, the results don't make any sense or I get the error SIGSEGV: Segmentation fault - invalid memory reference.

For installation I had to change makefile.in
 - location of X11 (/opt/X11 instead of /usr/X11) and add -L/opt/X11/lib to LDOPTIONS
 - nojpeg option (remove from LDOPTIONS, change path to unix/nojpeg in makefile)
 - change /usr/lib64 to /usr/lib

I also receive an error from the file x11u.c saying that "plstop_" can't be implicitly defined, so I commented it out as I don't intend to use plotting anyway (it appears 6 times in this file).

Other messages from compiler are just warnings - most of them being that some variables are unused.

I installed with make install.

I appended this post my makefile and makefile.in. I tried compiling with ifort as well, but it doesn't work either.

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Re: FEAP 8.6 on macOS Catalina
« Reply #1 on: November 06, 2020, 08:48:36 AM »
The plstop_( ) error is interesting.  It is interesting that most compilers are happy without the declaration.  Notwithstanding, to fix the problem with plstop_( ), you can add the declaration
Code: [Select]
void plstop_( ); just after line 251.

If the program is in fact building and then giving a SIGSEGV error, then the problem is not in your makefiles.  Please post the input file you are trying to run.  If that is not possible, make sure  that you can run the example inputs given on the FEAP website.  If these fail, then you can further debug with gdb and valgrind.

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Re: FEAP 8.6 on macOS Catalina
« Reply #2 on: November 06, 2020, 08:53:21 AM »
Out of curiosity, can you run the commands
Code: [Select]
gcc -v
and
Code: [Select]
gfortran -vand post the output of each>

jantomec

  • New Member
  • *
  • Posts: 3
Re: FEAP 8.6 on macOS Catalina
« Reply #3 on: November 06, 2020, 09:31:47 AM »
Thank you for your quick response. Adding the line solves the error, thank you. The program however, as expected is still not working properly.

I appended this post a sample problem. I have FEAP installed on a Windows machine, where I can run all my problems without any issues.

Terminal output to the gcc -v:


Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.21)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin


Terminal output to the gfortran -v:


Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc/9.2.0_3/libexec/gcc/x86_64-apple-darwin19/9.2.0/lto-wrapper
Target: x86_64-apple-darwin19
Configured with: ../configure --build=x86_64-apple-darwin19 --prefix=/usr/local/Cellar/gcc/9.2.0_3 --libdir=/usr/local/Cellar/gcc/9.2.0_3/lib/gcc/9 --disable-nls --enable-checking=release --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-9 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-isl=/usr/local/opt/isl --with-system-zlib --with-pkgversion='Homebrew GCC 9.2.0_3' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues --disable-multilib --with-native-system-header-dir=/usr/include --with-sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
Thread model: posix
gcc version 9.2.0 (Homebrew GCC 9.2.0_3)

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Re: FEAP 8.6 on macOS Catalina
« Reply #4 on: November 06, 2020, 01:37:47 PM »
Please see section 6.5 of the manual.  Frame elements should only have 2 nodes even for the cases where one wants cubic interpolation.

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2647
Re: FEAP 8.6 on macOS Catalina
« Reply #5 on: November 07, 2020, 09:56:56 AM »
FEAP only draws straight lines between nodes, even if assumed displacements are non-linear (e.g., cubic for some frame elements).

jantomec

  • New Member
  • *
  • Posts: 3
Re: FEAP 8.6 on macOS Catalina
« Reply #6 on: November 08, 2020, 10:53:33 PM »
Yes, I can see my mistake. Thank you very much!