Welcome, Guest
Username: Password: Remember me

TOPIC: FMT problem - segmentation fault

FMT problem - segmentation fault 6 years 5 months ago #30625

  • russell.manson
  • russell.manson's Avatar
Just started trying to install on Ubuntu 18.04

Getting this problem during compilation:

/home/russell/telemac-mascaret/v7p2r0/sources/mascaret/Fox/fsys/fox_m_fsys_format.F90:413:0:

if (.not.checkFmt(fmt)) then

internal compiler error: Segmentation fault

Does anyone have any suggestions?
The administrator has disabled public write access.

FMT problem - segmentation fault 6 years 5 months ago #30635

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
Could you give us more detail about your compiler?
We never seen this problem on our test platform so it's hard to say where the problem comes from.
Nevertheless, Fox library is only used by Mascaret, the 1D module of Telemac-Mascaret system.
You could by-pass this problem by removing the compilation of this module with the option -m "system -mascaret"

Regards
Christophe
The administrator has disabled public write access.

FMT problem - segmentation fault 6 years 4 months ago #30744

  • Pasquarelli
  • Pasquarelli's Avatar
I have the same error with fedora 28 and gfortran compiler, while in fedora 27
the compilation is OK

Franco Pasquarelli
The administrator has disabled public write access.

FMT problem - segmentation fault 6 years 2 months ago #31367

  • greentea
  • greentea's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Hi,

you should try the following modifications in fox_m_fsys_format.F90:
...
logical :: help, checkFmt
help = checkFmt(fmt)
if (.not.help) then
! if (.not.checkFmt(fmt)) then
n = 0
goto 1000
! return
endif

and in the end of function:
...
endif
1000 continue
end function str_real_dp_fmt_len

I guess, code is not conform with fortran standard?
The administrator has disabled public write access.

FMT problem - segmentation fault 6 years 2 months ago #31370

  • greentea
  • greentea's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Hi,

I digged deeper.
Seems there is an issue with gcc.
gcc.gnu.org/bugzilla/show_bug.cgi?id=85526

And one has also to modify:
m_dom_dom.F90

Put function getTextContent_len just behind the contains statement.
Then it should compile.
The administrator has disabled public write access.

FMT problem - segmentation fault 6 years 1 week ago #31948

  • qilong
  • qilong's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 340
  • Thank you received: 33
Hi,

I have the same problem with the compilation in opensuse leap 15.0.

Indeed the gcc version is 7.3.1, which is reported to give this issue in the link gcc.gnu.org/bugzilla/show_bug.cgi?id=85526

At this moment I use

modules: system -mascaret

to by pass this problem.
The administrator has disabled public write access.
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.