[Thread Prev][Thread Next][Index]
[ferret_users] Compilation of pyferret with gcc > 4.8
- To: ferret_users@xxxxxxxx
- Subject: [ferret_users] Compilation of pyferret with gcc > 4.8
- From: Martin Schmidt <martin.schmidt@xxxxxxxxxxxxxxxxx>
- Date: Wed, 7 Mar 2018 18:11:12 +0100
- Arc-authentication-results: i=3; mx.google.com; arc=pass (i=2); spf=neutral (google.com: 52.222.5.176 is neither permitted nor denied by domain of martin.schmidt@xxxxxxxxxxxxxxxxx) smtp.mailfrom=martin.schmidt@xxxxxxxxxxxxxxxxx
- Arc-authentication-results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=io-warnemuende.de); spf=neutral (google.com: 65.127.216.228 is neither permitted nor denied by domain of martin.schmidt@xxxxxxxxxxxxxxxxx) smtp.mailfrom=martin.schmidt@xxxxxxxxxxxxxxxxx
- Arc-authentication-results: i=1; mx.google.com; spf=pass (google.com: domain of martin.schmidt@xxxxxxxxxxxxxxxxx designates 192.124.245.147 as permitted sender) smtp.mailfrom=martin.schmidt@xxxxxxxxxxxxxxxxx
- Arc-message-signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:from:references:to:subject :arc-authentication-results:arc-message-signature :arc-authentication-results:arc-message-signature:message-id :arc-authentication-results; bh=pa7Q70PYut1H4Y1GuSwGEVvcW0qipVc7tKceeqRpwyk=; b=pnVzrzWVnOf+CWNugRuO6Dg2AXNkrPBHo59jrS0BLFXLtuD9uZ1q9Esely2GhcIFYJ hyF45i9+wViXkh2MQu37vfk7NP2FaQOJilEMWeyp73gG9fwn4EyT+EMQFkOIG38RIcZN VETr5xoK8gNzpbli6WfYadJH8jgIL2htYB6hYrPJgxMI+4PAGV39nvU+vfQ19n3AyFcH pjo7FkB6bBltQi4ImPosnmqZhAuM2ET7o6GJnDM0RrIjfnqRv27AI/i29jpEfTSlSWpn u+g846dEyZwtr/Sksry/8BdvCyqR+tjw2mJiJayXCYup/OL+Xonp6PzFIe3EvUR3ZOeo xAqA==
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :arc-authentication-results:arc-message-signature :arc-authentication-results; bh=pa7Q70PYut1H4Y1GuSwGEVvcW0qipVc7tKceeqRpwyk=; b=b1F5fN9YbcF6ZM7hngBv1L7+4pftCfDKUc4Ox4Djp++95+OUgMPspH4CSOYJSUt2eE 0cX9C8y3Ec53+xTBClXciMIbGjvrP0BoDuezJjFRZKAU+cAraQIhadLrI+haJkJVIDNX l+J5KUcsVIn3w/LDCmpoAiDo4ZK9fYM4+xEBA+c/q3OBi29bhox+4CLI4Eq0XwdU6y8o pIg5aoecAPteHOauvCBK8p95bOczTuVqZIFvbPXs/SsHrIbyFx9BW2VAeN1/83KaeOIO h7Pgyyrx+GGP2QCrmiHY8ScDG87CHihQ+IU7bC9FmHHD2CDhJeX7Qva3PCSgmSRa5ic8 R0pA==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :arc-authentication-results; bh=pa7Q70PYut1H4Y1GuSwGEVvcW0qipVc7tKceeqRpwyk=; b=zF4laGlWHJnDi/n/qIPIbqamBgbqihclBB+ZszwZdQDoX0rbreUzJnM8mA2H/kN6ow y0oQAP41GwW4OaDtC4aPm1tMZ0+iTOxxziGXXJR1fymq/ZcUJufb/0YpD8CMbQlzAuz+ 52yPCw/J5ks1sc6JLGMCoIrcNx8M5XrZ8uUwYiyyvl/No4C4Lc8c6Hz8bslnzr+VkK/s atS7cvlPvcmVQunIM54+IhWgOQhvNAvv66SCj1JITZXHcgTHf0qg2vpqWJXppGS0ImWc uBoNg0a3rtY0ZAOrQQueBgD9hrdWI9+M9+tezdD8DXZ3hKQg62CwgenekYJGBflA+HI0 07LQ==
- Arc-seal: i=3; a=rsa-sha256; t=1520442688; cv=pass; d=google.com; s=arc-20160816; b=waBEIMUE9tcJrF/dnjDMEoMJxrwy14jLOcpeLlHitoQH8f1p4vgkTJ9tZdENy9Qejr K8eyxDllLrO49UJEae12B/tOuxH5cC4wO1xvvZHNyYAy5zKBMJYAL0E3G1WB1cWCsB9M lIbDPoN2WX1Z0OhJLJbjgYVD0SwKfiBxDD+QSKmbkcwAUgI5+oLEcUdmQIdfrnZwgRh6 NH0Dh+bwtTOhi4Riqqqnq4OAhS+z70b4lu8iMzWRT6wvMaaE+U8uuyWs32bz5AQbX+tZ hPYef14saAZHdJdqaZK/w5ba6bTZw15j+wVcFqi27URL3vAo/ZrWo8EWXRI5jPHL+stf rkMA==
- Arc-seal: i=2; a=rsa-sha256; t=1520442686; cv=pass; d=google.com; s=arc-20160816; b=XS3RSGmRWEswFNlUd8H+y/MCmZXXe555gHMuzsac9QtmRiYSTxH5gp5ZuRXyfg+w2C 2v2SO26UafigH25rlFxyYcVydOmvT80kYn2k20FLk8RGirgCAE0bVeuVgLCeu3gj6PF2 beqrtaz2amENDBAP1Yk4Z/cc8Ty33xIAJG+Ag7GJkFBjeDiWb0xodla89d5r1RMwT2YM T7gFVbS5F6NySJXkHeLPwW6dPv7uE3IdpK1IcrigDide76wBw1e6njHi1yhkY3+6UpTj 1Khgurv/p3hQdpM18KO8bz1psfJ+S6Ar2oABb+gyiwo2oeSgJCfARTvcxenUiy63hKfh W6fQ==
- Arc-seal: i=1; a=rsa-sha256; t=1520442680; cv=none; d=google.com; s=arc-20160816; b=YyRiiq8En6wGn1/sN4nUIIaHDAnYqPw9ByZuRXd+BVfL+EmQRmHJ8CQhF7vkJBRbhV NjegqUyQG4/Pjcx7gb49/8C1A+X/WeRl8nsU7PXvi9TdImL9egrLDFMdKXZlpqFVNou5 LCxRONfzDLAEN0ZUVfdf42wS/xEoUBlpsYQMEQWmwUk5xRyCqP90EYYwVNivQr/mDJ/z xq6H1Cd3tlO4/EULlF881A1TObjfd7gpIdSUzm1fi1vEOraniy1jY9BOaLS3ImgWa6QB 6v5rTXz8dcIZXafcKrQD3KsWUEzXeX+E3qYASzan30AVLMf0HPkjHuGXH4rwNzgOIGp/ czUA==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=noaa-gov.20150623.gappssmtp.com; s=20150623; h=message-id:subject:to:references:from:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive; bh=pa7Q70PYut1H4Y1GuSwGEVvcW0qipVc7tKceeqRpwyk=; b=nsLE5qrJQAeXpdIypbhX+z5TM5a9I4eVqXAaI2x+sAHB2biMclRT9uI3pM5LE1185D dtPXDwFGZQAP2D6FeMy/qgmDj2BOuCfoKiAVbthbdYwr6K3uyRpPC/7akwoqfyqku5bt /R6gLxAqcgJpFNefDnSyOx2Ag5Jb9LYfgs8yzGKWy5qHZPKVw0v/4zL8HlwahOZCTIic arkuhacucwYKFP0ruKfrV/wEAQ+LDFwRw6Nll9jt3Aut/nUUU4Z46wmv2g5+v+eIaoOZ dPYbC3x0l4gCo+h7uyIqCzQ++GpTl2vzwA4V1xSpQlZtGz01L9F3pw9oCWwHVq5T0Zze XBWg==
- In-reply-to: <e7c1d934-19bf-e788-e3e4-193ed22256a6@noaa.gov>
- List-archive: <https://groups.google.com/a/noaa.gov/group/ferret_users/>
- List-help: <https://support.google.com/a/noaa.gov/bin/topic.py?topic=25838>, <mailto:ferret_users+help@noaa.gov>
- List-id: <ferret_users.noaa.gov>
- List-post: <https://groups.google.com/a/noaa.gov/group/ferret_users/post>, <mailto:ferret_users@noaa.gov>
- Mailing-list: list ferret_users@xxxxxxxx; contact ferret_users+owners@xxxxxxxx
- References: <CAC67f-Zd6BU826jT7cyJitpdFQiwii_wtZBu8S8ZED1XVu_OVQ@mail.gmail.com> <e7c1d934-19bf-e788-e3e4-193ed22256a6@noaa.gov>
- Sender: owner-ferret_users@xxxxxxxx
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0
Dear ferret developers!
ferret (version 731) incorporates many other libraries under rapid
development and this motivates to compile pyferret with a gnu compiler
version > 4.8.
All test are carried out on Suse Linux os 42.3 but on machines with
different processors. .
With gcc 4.8.5, i.e. the systems default compiler I get running code. It
is compiled on one machine and works on others with the same system but
different processor too. But compiling hdf5 (1.10.1) and netcdf (4.6.0)
warnings show up that the compiler does not fully support some c99
standard, which motivates to use a more recent gcc version. I have
checked gcc-5 and gcc-7 and the related gfortran available with opensude
42.3.
Compiling . with gcc 5.3.1, ferret fails for example with
yes? go multi_view 1, 2, 0.38, 0.07, 0.1, 0.8, 0.15, 0.02, "V", 0.05,0.05
**ERROR: invalid subcommand: mv_r = 1
defiymbol mv_r = 1
Command file, command group, or REPEAT execution aborted
One may write simpler scripts with similar errors - just the script
parsing does not work properly. Images can be produced and many ferret
elements work as they should.
Remarkably, on another machine this binary works well. The installed
system packages "should" be the same on all machines and I could not
identify a significant difference in the results of ldd applied on the
pyferret-library.. It does not matter, on which machine the code is
compiled, it runs on the some distinct machines and on others it does not.
Compiling with gcc-7 the binary fails on all machines when started. The
error comes from
PyFerret-master/fmt/src/tm_fmt
around line 300. The code in question is
sig_needed = sig_needed + need_adjust
nright = MIN( sig_needed-pow10, slen-(nleft+1) )
str_len = nleft + nright + 1
WRITE ( fmt, 3200 ) str_len, nright
3200 FORMAT ( '(F',I2,'.',I2,')' )
WRITE ( outstring, fmt ) val
"fmt" contains only "(F" and nothing else, so the last write fails.
With the "print-debugger" I have checked that str_len and nright are
filled with correct values, even writing to stdout instead of fmt
reveals a resonable format string. Introducing more prints and trying to
introduce intermediate variables gives strange results like for a
corrupted memory.
hdf5/netcdf are build with the same compiler like ferret is. Many other
libraries (cairo, pangoo, python) come from the system.
My questions:
- did anybody compile pyferret with gcc > 4.8?
- any idea what could be wrong?
Best,
Martin
--
Dr. Martin Schmidt/PyFerret-master/fmt/src/tm_fmt
Leibniz-Institute for Baltic Sea Research
Seestrasse 15
D18119 Rostock
Germany
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement