Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 757771 - [science overlay] sci-libs/fox-4.1.2-r2 : checking for linker flag to name executables... configure: error: Could not determine fl
Summary: [science overlay] sci-libs/fox-4.1.2-r2 : checking for linker flag to name ex...
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:
Whiteboard:
Keywords:
Depends on:
Blocks: autoconf-2.7x
  Show dependency tree
 
Reported: 2020-11-30 16:08 UTC by Toralf Förster
Modified: 2021-06-01 09:30 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.94 KB, text/plain)
2020-11-30 16:08 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,381.86 KB, text/plain)
2020-11-30 16:08 UTC, Toralf Förster
Details
environment (environment,80.04 KB, text/plain)
2020-11-30 16:08 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,26.40 KB, application/x-bzip)
2020-11-30 16:08 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,3.03 KB, application/x-bzip)
2020-11-30 16:09 UTC, Toralf Förster
Details
sci-libs:fox-4.1.2-r2:20201130-083430.log (sci-libs:fox-4.1.2-r2:20201130-083430.log,4.77 KB, text/plain)
2020-11-30 16:09 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,20.08 KB, application/x-bzip)
2020-11-30 16:09 UTC, Toralf Förster
Details
ebuildtester emerge log (tester.log,100.06 KB, text/plain)
2021-05-28 02:36 UTC, Lucas Mitrak
Details
etc/portage (etc-portage.tar.bz2,8.21 KB, application/x-bzip)
2021-05-28 02:51 UTC, Lucas Mitrak
Details
emerge --info (emerge-info.txt,5.01 KB, text/plain)
2021-05-28 02:52 UTC, Lucas Mitrak
Details
emerge-history.txt (emerge-history.txt,46 bytes, text/plain)
2021-05-28 02:52 UTC, Lucas Mitrak
Details
emerge.log (emerge.log,990 bytes, text/plain)
2021-05-28 02:53 UTC, Lucas Mitrak
Details
build.log of hardened profile and without fortran flag (build.log,5.02 KB, application/octet-stream)
2021-05-28 23:16 UTC, Lucas Mitrak
Details
config.log of hardened profile and without fortran flag (config.log,8.68 KB, text/plain)
2021-05-28 23:17 UTC, Lucas Mitrak
Details
emerge-history.txt of hardened profile and without fortran flag (emerge-history.txt,1002 bytes, text/plain)
2021-05-28 23:17 UTC, Lucas Mitrak
Details
emerge-info.txt of hardened profile and without fortran flag (emerge-info.txt,5.15 KB, text/plain)
2021-05-28 23:17 UTC, Lucas Mitrak
Details
enviroment of hardened profile and without fortran flag (environment,18.96 KB, text/plain)
2021-05-28 23:17 UTC, Lucas Mitrak
Details
etc/portage of hardened profile and without fortran flag (etc-portage.tar.bz2,8.22 KB, application/x-bzip)
2021-05-28 23:18 UTC, Lucas Mitrak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-11-30 16:08:53 UTC
checking for fl32... no
checking for af77... no
checking for linker flag to name executables... configure: error: Could not determine flag to name executables
See `config.log' for more details.

!!! Please attach the following file when seeking support:

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-science-20201120-101602

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-10.2.0 *
/usr/lib/llvm/11
11.0.0
Available Python interpreters, in order of preference:
  [1]   python3.9
  [2]   python3.8 (fallback)
  [3]   python3.7 (fallback)
  [4]   python2.7 (fallback)
  [5]   pypy3 (fallback)
Available Ruby profiles:
  [1]   ruby25 (with Rubygems)
  [2]   ruby26 (with Rubygems)
  [3]   ruby27 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.48.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.272_p10 [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	Mon Nov 30 07:35:28 AM UTC 2020

emerge -qpvO sci-libs/fox
[ebuild  N    ] sci-libs/fox-4.1.2-r2  USE="dom fast sax wcml wkml wxml -debug -doc"
Comment 1 Toralf Förster gentoo-dev 2020-11-30 16:08:54 UTC
Created attachment 675892 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-11-30 16:08:56 UTC
Created attachment 675895 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-11-30 16:08:58 UTC
Created attachment 675898 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-11-30 16:08:59 UTC
Created attachment 675901 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-11-30 16:09:00 UTC
Created attachment 675904 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-11-30 16:09:01 UTC
Created attachment 675907 [details]
sci-libs:fox-4.1.2-r2:20201130-083430.log
Comment 7 Toralf Förster gentoo-dev 2020-11-30 16:09:03 UTC
Created attachment 675910 [details]
temp.tbz2
Comment 8 Lucas Mitrak 2021-05-28 02:36:05 UTC
Created attachment 711825 [details]
ebuildtester emerge log

ebuildtester emerge log
Comment 9 Lucas Mitrak 2021-05-28 02:51:37 UTC
Created attachment 711828 [details]
etc/portage
Comment 10 Lucas Mitrak 2021-05-28 02:52:23 UTC
Created attachment 711831 [details]
emerge --info
Comment 11 Lucas Mitrak 2021-05-28 02:52:38 UTC
Created attachment 711834 [details]
emerge-history.txt
Comment 12 Lucas Mitrak 2021-05-28 02:53:25 UTC
Created attachment 711837 [details]
emerge.log
Comment 13 Lucas Mitrak 2021-05-28 23:16:58 UTC
Created attachment 712068 [details]
build.log of hardened profile and without fortran flag
Comment 14 Lucas Mitrak 2021-05-28 23:17:12 UTC
Created attachment 712071 [details]
config.log of hardened profile and without fortran flag
Comment 15 Lucas Mitrak 2021-05-28 23:17:25 UTC
Created attachment 712074 [details]
emerge-history.txt of hardened profile and without fortran flag
Comment 16 Lucas Mitrak 2021-05-28 23:17:37 UTC
Created attachment 712077 [details]
emerge-info.txt of hardened profile and without fortran flag
Comment 17 Lucas Mitrak 2021-05-28 23:17:49 UTC
Created attachment 712080 [details]
enviroment of hardened profile and without fortran flag
Comment 18 Lucas Mitrak 2021-05-28 23:18:01 UTC
Created attachment 712083 [details]
etc/portage of hardened profile and without fortran flag
Comment 19 Lucas Mitrak 2021-05-28 23:58:23 UTC
This bug requires a patch to the sci-libs/fox ebuild. This patch must require gcc to have the fortran use flag enabled.

I managed to get this bug to repeat by switching to the hardened profile inside of an isolated gentoo stage 3 docker image. By default, the hardened profile disables the fortran use flag on gcc. When I tried to emerge fox within the hardened image without the fortran use flag, the bug repeated. The attached logs specified "hardened profile and without fortran flag" are from this attempt.
Initially, I did not understand this bug report because when I initially emerged fox inside of a clean stage 3 isolated docker image, it compiled and installed corretly. My first attached logs are from this successful attempt. Furthermore, the comment by the reporter which indicated this bug report blocks "sys-devel/autoconf-2.70 issues" suggested it had something to do with autoconf. However, this is not the case and this bug report has nothing to do with autoconf. In addition, the reporter's emerge-info.txt shows that he has the latest version-2.69-r5-installed. Therefore I had to look closer at the log files.
The reporter's config.log from logs.tbz2 shows specically that the configure phase failed at step "configure:1942: checking for Fortran compiler version". When I compared it to my successful emerge, the same step succeeded with message "checking for x86_64-pc-linux-gnu-gfortran... x86_64-pc-linux-gnu-gfortran". Therefore, I looked at which package supplied the gfortran compiler and realized that it was gcc. Upon closer inspection, I realized gcc had a use flag which enabled the fortran compiler. Additionally, when I inspected the reporter's use flags from the file emerge-info.txt, I saw that the USE variable lacked fortran while my USE flag had it enabled. I then took the steps mentioned in the second paragraph where I switched to a hardened profile and reproduced the bug. This is how I solved the bug. The next step is creating the patch I described in the first paragraph.
Comment 20 Larry the Git Cow gentoo-dev 2021-06-01 09:30:40 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/sci.git/commit/?id=4b888966f7c6ff0d86ba8b1802457d946c747bb3

commit 4b888966f7c6ff0d86ba8b1802457d946c747bb3
Author:     Lucas Mitrak <lucas@lucasmitrak.com>
AuthorDate: 2021-05-30 22:47:25 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2021-06-01 09:30:25 +0000

    sci-libs/fox: add inherit fortran-2
    
    Currently, sci-libs/fox does not require a fortran compiler
    to be installed. If sci-libs/fox is emerged without the fortran
    compiler, the configure phase will check for a fortran compiler, and the
    configure phase will fail. For example, the hardened profile disables
    the fortran USE flag in sys-devel/gcc, so sci-libs/fox will fail.
    With this commit, sci-libs/fox will require a fortran compiler
    to be installed.
    Without this commit, sci-libs/fox will fail on any system which does
    not have the fortran compiler, which by default is all hardened profiles.
    This commit was tested in a docker image with dev-util/ebuildtester.
    This commit was written, tested, and submitted by Lucas Mitrak.
    
    Closes: https://bugs.gentoo.org/757771
    Signed-off-by: Lucas Mitrak <lucas@lucasmitrak.com>
    Closes: https://github.com/gentoo/sci/pull/1083
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 sci-libs/fox/fox-4.1.2-r2.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

https://gitweb.gentoo.org/proj/sci.git/commit/?id=8968649e1fa253daf020d91607ad8da1cb53f218

commit 8968649e1fa253daf020d91607ad8da1cb53f218
Author:     Lucas Mitrak <lucas@lucasmitrak.com>
AuthorDate: 2021-05-29 04:11:22 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2021-06-01 09:30:12 +0000

    sci-libs/fox: DEPEND of fortran USE flag for gcc
    
    * add a DEPEND which will require the fortran USE flag in sys-devel/gcc
    
    Currently, sci-libs/fox does not require sys-devel/gcc to have the
    fortran USE flag set. If sci-libs/fox is emerged without the fortran
    USE flag, the configure phase will check for a fortran compiler, and the
    configure phase will fail. By default, the hardened profile disables
    the fortran USE flag in sys-devel/gcc, so sci-libs/fox will fail.
    With this commit, sci-libs/fox depends on sys-devel/gcc having
    a the fortran USE flag set.
    Without this commit, sci-libs/fox will fail on any system which does
    not have the fortran USE flag in sys-devel/gcc, which by default is
    all hardened profiles.
    This commit was tested in a docker image with dev-util/ebuildtester.
    This commit was written, tested, and submitted by Lucas Mitrak.
    
    Closes: https://bugs.gentoo.org/757771
    Signed-off-by: Lucas Mitrak <lucas@lucasmitrak.com>
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 sci-libs/fox/fox-4.1.2-r2.ebuild | 2 ++
 1 file changed, 2 insertions(+)