Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 775215 - sci-libs/qd-2.3.22 - fpu.cpp: error: variable or field FC_FUNC_ declared void
Summary: sci-libs/qd-2.3.22 - fpu.cpp: error: variable or field FC_FUNC_ declared void
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL: https://lists.gnu.org/archive/html/au...
Whiteboard:
Keywords:
Depends on:
Blocks: autoconf-2.7x
  Show dependency tree
 
Reported: 2021-03-10 07:58 UTC by Toralf Förster
Modified: 2021-08-07 03:48 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.95 KB, text/plain)
2021-03-10 07:58 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,270.70 KB, text/plain)
2021-03-10 07:58 UTC, Toralf Förster
Details
environment (environment,97.94 KB, text/plain)
2021-03-10 07:58 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,17.92 KB, application/x-bzip)
2021-03-10 07:58 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,19.33 KB, application/x-bzip)
2021-03-10 07:58 UTC, Toralf Förster
Details
sci-libs:qd-2.3.22:20210310-063804.log (sci-libs:qd-2.3.22:20210310-063804.log,18.66 KB, text/plain)
2021-03-10 07:58 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,29.39 KB, application/x-bzip)
2021-03-10 07:58 UTC, Toralf Förster
Details
emerge-info.txt (emerge-info.txt,17.72 KB, text/plain)
2021-08-04 17:29 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,398.31 KB, text/plain)
2021-08-04 17:29 UTC, Toralf Förster
Details
environment (environment,99.33 KB, text/plain)
2021-08-04 17:29 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,32.79 KB, application/x-bzip)
2021-08-04 17:29 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,19.56 KB, application/x-bzip)
2021-08-04 17:29 UTC, Toralf Förster
Details
sci-libs:qd-2.3.22:20210804-160509.log (sci-libs:qd-2.3.22:20210804-160509.log,18.77 KB, text/plain)
2021-08-04 17:29 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,29.65 KB, application/x-bzip)
2021-08-04 17:29 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-03-10 07:58:14 UTC
/bin/sh ../libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-c++ -DHAVE_CONFIG_H   -I.. -I../include -I../include   -O2 -pipe -march=native -fno-diagnostics-color  -Wall -c -o fpu.lo fpu.cpp
libtool: compile:  x86_64-pc-linux-gnu-c++ -DHAVE_CONFIG_H -I.. -I../include -I../include -O2 -pipe -march=native -fno-diagnostics-color -Wall -c fpu.cpp  -fPIC -DPIC -o .libs/fpu.o
fpu.cpp:110:25: error: variable or field ‘FC_FUNC_’ declared void
  110 | #define f_fpu_fix_start FC_FUNC_(f_fpu_fix_start, F_FPU_FIX_START)
      |                         ^~~~~~~~
fpu.cpp:113:6: note: in expansion of macro ‘f_fpu_fix_start’

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-20210303-131616

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-10.2.0 *
clang version 11.1.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/11/bin
/usr/lib/llvm/11
11.1.0
Python 3.8.8
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.50.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.282_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Wed Mar 10 06:20:56 UTC 2021

emerge -qpvO sci-libs/qd
[ebuild  N    ] sci-libs/qd-2.3.22  USE="fortran -doc -static-libs" CPU_FLAGS_X86="fma3 -fma4"
Comment 1 Toralf Förster gentoo-dev 2021-03-10 07:58:15 UTC
Created attachment 690471 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-03-10 07:58:17 UTC
Created attachment 690474 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-03-10 07:58:18 UTC
Created attachment 690477 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-03-10 07:58:19 UTC
Created attachment 690480 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-03-10 07:58:21 UTC
Created attachment 690483 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-03-10 07:58:22 UTC
Created attachment 690486 [details]
sci-libs:qd-2.3.22:20210310-063804.log
Comment 7 Toralf Förster gentoo-dev 2021-03-10 07:58:23 UTC
Created attachment 690489 [details]
temp.tar.bz2
Comment 8 Michael Orlitzky gentoo-dev 2021-06-06 00:57:02 UTC
FWIW I tried to reproduce this and couldn't, even with the same USE flags (manually enabling fma3 on a system without it doesn't seem to hurt anything).
Comment 9 Toralf Förster gentoo-dev 2021-06-06 14:59:15 UTC
It emerged here at the new tinderbox at few images - so I'd close this bug b/c the old hardware and their images are gone.
Comment 10 Toralf Förster gentoo-dev 2021-08-04 17:29:29 UTC
appeared recently at the tinderbox image 17.1_desktop_gnome-j3-20210729-194103
Comment 11 Toralf Förster gentoo-dev 2021-08-04 17:29:30 UTC
Created attachment 730150 [details]
emerge-info.txt
Comment 12 Toralf Förster gentoo-dev 2021-08-04 17:29:32 UTC
Created attachment 730152 [details]
emerge-history.txt
Comment 13 Toralf Förster gentoo-dev 2021-08-04 17:29:34 UTC
Created attachment 730154 [details]
environment
Comment 14 Toralf Förster gentoo-dev 2021-08-04 17:29:35 UTC
Created attachment 730156 [details]
etc.portage.tar.bz2
Comment 15 Toralf Förster gentoo-dev 2021-08-04 17:29:36 UTC
Created attachment 730158 [details]
logs.tar.bz2
Comment 16 Toralf Förster gentoo-dev 2021-08-04 17:29:37 UTC
Created attachment 730160 [details]
sci-libs:qd-2.3.22:20210804-160509.log
Comment 17 Toralf Förster gentoo-dev 2021-08-04 17:29:39 UTC
Created attachment 730162 [details]
temp.tar.bz2
Comment 18 Michael Orlitzky gentoo-dev 2021-08-04 18:56:41 UTC
Ok, I've found the problem at least. The FC_FUNC macro and its underscore counterpart are supposed to name-mangle C functions to be linked with fortran. But in this case, it can't figure out how to do that:

  configure:8421: WARNING: unknown Fortran name-mangling scheme

So, nothing gets defined in config.h, and the macro winds up "void".
Comment 19 Michael Orlitzky gentoo-dev 2021-08-04 19:51:01 UTC
Ah, it's because we're using eautoreconf, and the fortran name-mangling doesn't seem to work the same in autoconf-2.71.
Comment 20 Larry the Git Cow gentoo-dev 2021-08-05 00:09:13 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71595d02b69ce844e12e2344531f6af9e437c4d1

commit 71595d02b69ce844e12e2344531f6af9e437c4d1
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2021-08-05 00:00:00 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2021-08-05 00:02:38 +0000

    sci-libs/qd: new revision that works with autoconf-2.71.
    
    In this -r1, I've added a patch that solves bug 775215 by not setting
    CC=$CXX during ./configure. At the same time, I've refactored our
    other build system patch into a series of smaller patches (with
    explanatory commit messages) that can be sent upstream.
    
    Finally, I've removed USE=static-libs support from the ebuild. It
    doesn't do anyone any good.
    
    Closes: https://bugs.gentoo.org/775215
    Package-Manager: Portage-3.0.20, Repoman-3.0.2
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>

 ...gure.ac-update-QD_PATCH_VERSION-to-2.3.22.patch |  31 +++++++
 ...c-replace-AM_CONFIG_HEADER-with-AC_CONFIG.patch |  34 +++++++
 ...e.ac-replace-AC_PROG_LIBTOOL-with-LT_INIT.patch |  37 ++++++++
 ....ac-fix-syntax-of-all-AC_ARG_ENABLE-calls.patch | 100 ++++++++++++++++++++
 ...efile.am-fix-underlinking-of-libqdmod-and.patch |  35 +++++++
 ...006-configure.ac-remove-enable-debug-flag.patch | 102 +++++++++++++++++++++
 ...0007-config.h.in-remove-QD_DEBUG-constant.patch |  29 ++++++
 ...c-don-t-assume-that-O2-is-a-valid-compile.patch |  47 ++++++++++
 .../0009-configure.ac-don-t-set-CC-to-CXX.patch    |  46 ++++++++++
 ...c-don-t-manually-search-for-compiler-name.patch |  81 ++++++++++++++++
 .../0011-qd-config.in-remove-REQ_CXXFLAGS.patch    |  27 ++++++
 ...figure.ac-remove-the-enable-warnings-flag.patch |  55 +++++++++++
 sci-libs/qd/qd-2.3.22-r1.ebuild                    |  61 ++++++++++++
 13 files changed, 685 insertions(+)
Comment 21 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-08-07 03:48:57 UTC
For completeness, reported to autoconf as https://lists.gnu.org/archive/html/autoconf/2021-08/msg00000.html by mjo.