Package Details: f2c 20230428-1

Git Clone URL: https://aur.archlinux.org/f2c.git (read-only, click to copy)
Package Base: f2c
Description: Fortran to C code translator
Upstream URL: https://www.netlib.org/f2c
Keywords: transpiler
Licenses: custom
Submitter: None
Maintainer: a.kudelin
Last Packager: a.kudelin
Votes: 65
Popularity: 0.002371
First Submitted: 2009-10-11 19:13 (UTC)
Last Updated: 2023-07-23 15:13 (UTC)

Latest Comments

1 2 3 4 5 6 .. 9 Next › Last »

ruggero.pintus commented on 2024-02-02 06:31 (UTC)

I am trying to install the package, but I received this error

[...]
==> Validating source files with sha256sums...
    f2c-20230428.tar.gz ... FAILED
    libf2c-20230428.zip ... FAILED
==> ERROR: One or more files did not pass the validity check!
[...]

I'm doing it with yay. I went to the directory "~/.cache/yay/f2c" and I checked the sha256sums of these two downloaded packages:

61c891d426edb05bc647d6f7fc345c2e7f4dce55d092c54a8fc5e1af483a3235  f2c-20230428.tar.gz
cc84253b47b5c036aa1d529332a6c218a39ff71c76974296262b03776f822695  libf2c-20230428.zip

These are different from those in the PKGBUILD or .SRCINFO files.

sha256sums=('74ba67c321a3b629216c7ed5a48a061c3e5c3722ac85ceb01dcce6913751705a'
            'ca404070e9ce0a9aaa6a71fc7d5489d014ade952c5d6de7efb88de8e24f2e8e0')

Moreover, I went to the https://www.netlib.org/f2c link, manually downloaded the two compressed files, and checked their sha256sums.

61c891d426edb05bc647d6f7fc345c2e7f4dce55d092c54a8fc5e1af483a3235  src.tgz
cc84253b47b5c036aa1d529332a6c218a39ff71c76974296262b03776f822695  libf2c.zip

They match with the file downloaded by yay.

It seems that the sha256sums in the PKGBUILD and .SRCINFO are wrong.

Am I missing something? Am I wrong?

Thanks!!!

pitaugoras commented on 2023-07-21 15:21 (UTC)

sha256 mismatch. change sha256sum to 74ba67c321a3b629216c7ed5a48a061c3e5c3722ac85ceb01dcce6913751705a

Mr.Smith1974 commented on 2023-06-03 18:50 (UTC)

Warning: Problem : timeout. Will retry in 3 seconds. 2 retries left.
0     0    0     0    0     0      0      0 --:--:--  0:00:19 --:--:--     0curl: (6) Could not resolve host: www.netlib.org
Warning: Problem : timeout. Will retry in 3 seconds. 1 retries left.
0     0    0     0    0     0      0      0 --:--:--  0:00:19 --:--:--     0curl: (6) Could not resolve host: www.netlib.org
==> ERROR: Failure while downloading https://www.netlib.org/f2c/src.tgz

Kasct commented on 2023-04-28 07:16 (UTC) (edited on 2023-04-28 07:36 (UTC) by Kasct)

Error when installing fort77 on loongarch64 via yay.

Compile log:

uninit.c: In function ‘ieee0’:
uninit.c:302:17: error: ‘_FPU_MASK_IM’ undeclared (first use in this function)
  302 |         cw &= ~(_FPU_MASK_IM | _FPU_MASK_ZM | _FPU_MASK_OM);
      |                 ^~~~~~~~~~~~
uninit.c:302:17: note: each undeclared identifier is reported only once for each function it appears in
uninit.c:302:32: error: ‘_FPU_MASK_ZM’ undeclared (first use in this function)
  302 |         cw &= ~(_FPU_MASK_IM | _FPU_MASK_ZM | _FPU_MASK_OM);
      |                                ^~~~~~~~~~~~
mv etime_.xxx etime_.o
uninit.c:302:47: error: ‘_FPU_MASK_OM’ undeclared (first use in this function)
  302 |         cw &= ~(_FPU_MASK_IM | _FPU_MASK_ZM | _FPU_MASK_OM);
      |                                               ^~~~~~~~~~~~
make: *** [makefile.u:22: uninit.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: f2c

These masks can be defind for loongarch64 interrupts with this patch.

--- uninit.old.c    2023-04-28 14:53:17.400000000 +0800
+++ uninit.c    2023-04-28 14:56:58.076000000 +0800
@@ -235,6 +235,16 @@
 #define IEEE0_done
 #include "fpu_control.h"

+#if defined(__loongarch64)
+/* Masks for __loongarch64 interrupts.  */
+#define _FPU_MASK_V     0x10 /* Invalid operation */
+#define _FPU_MASK_Z     0x08 /* Division by zero  */
+#define _FPU_MASK_O     0x04 /* Overflow          */
+#define _FPU_MASK_U     0x02 /* Underflow         */
+#define _FPU_MASK_I     0x01 /* Inexact operation */
+#endif
+
+
 #ifdef __alpha__
 #ifndef USE_setfpucw
 #define __setfpucw(x) __fpu_control = (x)
@@ -299,7 +309,11 @@
    /* unmask invalid, etc., and keep current rounding precision */
    fpu_control_t cw;
    _FPU_GETCW(cw);
+#ifdef _FPU_MASK_IM
    cw &= ~(_FPU_MASK_IM | _FPU_MASK_ZM | _FPU_MASK_OM);
+#else
+   cw &= ~(_FPU_MASK_I | _FPU_MASK_Z | _FPU_MASK_O);
+#endif
    _FPU_SETCW(cw);
 #endif
 #endif

This patch was created with reference to:

https://salsa.debian.org/debichem-team/apbs/-/commit/fc4d3509ea40ab4f4a5efeda85e54f90a88c6add

These masks have been defined since glibc 2.36:

https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/loongarch/fpu_control.h;h=1cccc933a58da1f9722dc8385ca421141d1dfb64;hb=refs/heads/release/2.36/master

/* Masks for interrupts.  */
#define _FPU_MASK_V 0x10 /* Invalid operation */
#define _FPU_MASK_Z 0x08 /* Division by zero  */
#define _FPU_MASK_O 0x04 /* Overflow */
#define _FPU_MASK_U 0x02 /* Underflow */
#define _FPU_MASK_I 0x01 /* Inexact operation */

bradpitcher commented on 2022-09-29 15:59 (UTC)

Please enable aarch64. It's working for me in Asahi linux

diff --git a/.SRCINFO b/.SRCINFO
index e63f457..d72d344 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -4,6 +4,7 @@ pkgbase = f2c
        pkgrel = 2
        url = https://www.netlib.org/f2c
        arch = x86_64
+       arch = aarch64
        license = custom
        makedepends = unzip
        depends = glibc
@@ -14,4 +15,3 @@ pkgbase = f2c
        sha256sums = ca404070e9ce0a9aaa6a71fc7d5489d014ade952c5d6de7efb88de8e24f2e8e0

 pkgname = f2c
-
diff --git a/PKGBUILD b/PKGBUILD
index a297f33..c629b3b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,7 +10,7 @@ pkgrel=2
 pkgdesc='Fortran to C code translator'
 url='https://www.netlib.org/f2c'
 license=('custom')
-arch=('x86_64')
+arch=('x86_64' 'aarch64')
 depends=('glibc')
 makedepends=('unzip')
 source=("$pkgname-$pkgver.tar.gz::$url/src.tgz"

a.kudelin commented on 2021-02-12 08:04 (UTC)

@miksolo, please try again using VPN or proxy. It seems you don't have connection to the netlib's server.

miksolo commented on 2021-02-11 17:18 (UTC) (edited on 2021-02-11 17:20 (UTC) by miksolo)

I have trouble downloading f2c-20200916.tar.gz from direct link or using wget. Also that holds installation via yay or pamac.

0 0 0 0 0 0 0 0 --:--:-- 0:00:09 --:--:-- 0curl: (6) Could not resolve host: www.netlib.org

==> ERROR: Failure while downloading https://www.netlib.org/f2c/src.tgz Aborting...

xiretza commented on 2020-09-29 16:26 (UTC)

Could you rename the source to something that contains both $pkgname and $pkgver (in accordance with the fourth point in https://wiki.archlinux.org/index.php/Arch_package_guidelines#Package_sources)? Something like:

source=("$pkgname-$pkgver.tar.gz::$url/src.tgz"
        "libf2c-$pkgver.zip::$url/libf2c.zip")

Anything else will just cause even more checksum troubles.

jgus commented on 2020-09-27 19:49 (UTC)

I'm also seeing a sha265 mismatch. Clearing the cache doesn't help. Looks like the package needs to be updated to match the modified source?

timmyl17 commented on 2020-09-24 16:51 (UTC)

I'm getting a sha256 mismatch on src.tgz. When I download directly from the website and run

sha256sum src.tgz

I get d4847456aa91c74e5e61e2097780ca6ac3b20869fae8864bfa8dcc66f6721d35