Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 478654 - If you compile with gfortran, output file will not work on G/FBSD.
Summary: If you compile with gfortran, output file will not work on G/FBSD.
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Lowest normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-29 12:38 UTC by Yuta SATOH
Modified: 2019-10-11 17:37 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2013-07-29 12:38:49 UTC
Compile to succeed. However, it does not run.

$ gfortran-4.6.4 -o hello -v hello.f90
$ ./hello
/usr/lib/libgcc_s.so.1: version GCC_4.6.0 required by /usr/lib/gcc/x86_64-gentoo-freebsd9.0/4.6.4/libgfortran.so.3 not found
$ ldd ./hello
./hello:
        libgfortran.so.3 => /usr/lib/gcc/x86_64-gentoo-freebsd9.0/4.6.4/libgfortran.so.3 (0x80081b000)
        libm.so.5 => /lib/libm.so.5 (0x800b2f000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x800d52000)
        libquadmath.so.0 => /usr/lib/gcc/x86_64-gentoo-freebsd9.0/4.6.4/libquadmath.so.0 (0x800f61000)
        libc.so.7 => /lib/libc.so.7 (0x801197000)
$ equery b libgcc_s.so.1
 * Searching for libgcc_s.so.1 ...
sys-devel/gcc-4.6.4 (/usr/lib/gcc/x86_64-gentoo-freebsd9.0/4.6.4/libgcc_s.so.1)
sys-devel/gcc-4.8.1 (/usr/lib/gcc/x86_64-gentoo-freebsd9.0/4.8.1/libgcc_s.so.1)
sys-freebsd/freebsd-lib-9.2_beta1 (/usr/lib32/libgcc_s.so.1)
sys-freebsd/freebsd-lib-9.2_beta1 (/usr/lib/libgcc_s.so.1)
Comment 1 Yuta SATOH 2013-07-29 12:39:58 UTC
workaround

cd /etc/env.d
mv 00basic 05basic
env-update && source /etc/profile
Comment 2 Alexis Ballier gentoo-dev 2013-08-07 21:12:44 UTC
hmm i was expecting this... we need libgcc_s.so for clang support and also for multilib since gcc doesn't provide it. then we have these kind of failures... maybe it'd be worth writing a standalone libgcc_s ebuild that would be up to date but gcc build system is kind of hard to understand.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-10-11 17:37:09 UTC
*-fbsd is gone.