Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 784935 - [guru] dev-libs/StringiFor-1.1.1 calls gfortran directly
Summary: [guru] dev-libs/StringiFor-1.1.1 calls gfortran directly
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sergey Torokhov
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: qa-guru
  Show dependency tree
 
Reported: 2021-04-22 06:41 UTC by Agostino Sarubbo
Modified: 2021-04-25 14:05 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,8.68 KB, text/plain)
2021-04-22 06:41 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-04-22 06:41:07 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-libs/StringiFor-1.1.1 calls commands that do not exist.
Discovered on: amd64 (internal ref: guru_tinderbox)

NOTE:
Please look for 'command not found' and/or 'no such file or directory'.
Comment 1 Agostino Sarubbo gentoo-dev 2021-04-22 06:41:09 UTC
Created attachment 701595 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-04-22 06:41:10 UTC
Possible context of error(s):

/bin/sh: line 1: gfortran: command not found
/bin/sh: line 1: gfortran: command not found
mv: cannot stat 'lib/libstringifor.so': No such file or directory
 * QA Notice: command not found:
 * 	/bin/sh: line 1: gfortran: command not found
 * 	/bin/sh: line 1: gfortran: command not found
Comment 3 Larry the Git Cow gentoo-dev 2021-04-22 07:35:14 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=04597bc97614764b93a267628d0210043c91cae0

commit 04597bc97614764b93a267628d0210043c91cae0
Author:     Andrew Ammerlaan <andrewammerlaan@riseup.net>
AuthorDate: 2021-04-22 06:44:53 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@riseup.net>
CommitDate: 2021-04-22 06:44:53 +0000

    dev-libs/StringiFor: add missing deps
    
    Closes: https://bugs.gentoo.org/784935
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>

 dev-libs/StringiFor/StringiFor-1.1.1.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 4 Sergey Torokhov 2021-04-22 08:12:52 UTC
It's strange. I relied on fortran-2.eclass to depend on fortran compiler implementation.
Comment 5 Sergey Torokhov 2021-04-22 08:17:57 UTC
(In reply to Sergey Torokhov from comment #4)
> It's strange. I relied on fortran-2.eclass to depend on fortran compiler
> implementation.

But this eclass doesn't have BDEPEND= virtual/fortran.
Comment 6 Andrew Ammerlaan gentoo-dev 2021-04-22 08:21:47 UTC
(In reply to Sergey Torokhov from comment #5)
> (In reply to Sergey Torokhov from comment #4)
> > It's strange. I relied on fortran-2.eclass to depend on fortran compiler
> > implementation.
> 
> But this eclass doesn't have BDEPEND= virtual/fortran.

Hmm, but it does have DEPEND+=" virtual/fortran", so it should be pulled in. Maybe something else is going wrong?
Comment 7 Agostino Sarubbo gentoo-dev 2021-04-22 08:37:27 UTC
it is calling gfortran directly
Comment 8 Agostino Sarubbo gentoo-dev 2021-04-22 09:02:19 UTC
To reproduce, please use sys-devel/gcc-config[-native-symlinks], sys-devel/binutils-config[-native-symlinks]
Comment 9 Sergey Torokhov 2021-04-22 10:03:18 UTC
(In reply to Agostino Sarubbo from comment #8)
> To reproduce, please use sys-devel/gcc-config[-native-symlinks],
> sys-devel/binutils-config[-native-symlinks]

The build log states:
* Using following Fortran compiler:
 *   F77: x86_64-pc-linux-gnu-gfortran
 *   FC:  x86_64-pc-linux-gnu-gfortran

i.e. gfortran is presented but seems that with [-native-symlinks] there is no appropreate symlink "gfortran" in /usr/bin to that compiller.
Comment 10 Sergey Torokhov 2021-04-22 16:17:05 UTC
I hope to commit the fix soon with deletion of explicit BDEPEND.

P.S.
The "ar" and "ranlib" currently hardcoded to use in FoBiS build system.
Anyway I don't is there sence to use llvm-ar and llvm-ranlib while llvm currently doesn't have own fortran implementation.

The development flang anyway use some of external implementation of fortran to build executable. And flanf currently isn't in portage tree.

I sent feature request to FoBiS upstream to add optional passing own ar and ranlib implementations.
Comment 11 Agostino Sarubbo gentoo-dev 2021-04-22 17:06:57 UTC
Changing the Assignee as per https://archives.gentoo.org/gentoo-dev/message/74ee632e9fe2f4c12890524fec132205
Comment 12 Larry the Git Cow gentoo-dev 2021-04-24 23:19:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=709970547b89e4f52d32818b6835f649b721a87d

commit 709970547b89e4f52d32818b6835f649b721a87d
Author:     Sergey Torokhov <torokhov-s-a@yandex.ru>
AuthorDate: 2021-04-24 09:37:38 +0000
Commit:     Sergey Torokhov <torokhov-s-a@yandex.ru>
CommitDate: 2021-04-24 09:37:38 +0000

    dev-libs/StringiFor: fix call gfortran directly, pass system LDFLAGS
    
    Closes: https://bugs.gentoo.org/784935
    Closes: https://bugs.gentoo.org/780942
    
    Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>

 dev-libs/StringiFor/StringiFor-1.1.1.ebuild | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
Comment 13 Agostino Sarubbo gentoo-dev 2021-04-25 14:05:08 UTC
Changing TRACKER as requested by QA.