Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 729874 - dev-lang/gforth fails to compile on clang: unused during compilation: '-e xport-dynamic'
Summary: dev-lang/gforth fails to compile on clang: unused during compilation: '-e xpo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sergei Trofimovich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-27 14:13 UTC by Agostino Sarubbo
Modified: 2021-01-03 18:35 UTC (History)
0 users

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


Attachments
build.log (build.log,44.03 KB, text/plain)
2020-06-27 14:13 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 2020-06-27 14:13:11 UTC
@@This is an auto-filed bug@@
Feel free to change the summary at your convenience.

Issue: dev-lang/gforth fails to compile.
Discovered on: amd64

NOTE:
This machine uses a clang/LLVM toolchain.
If you think that this issue is strictly related to clang/LLVM please mention it in the summary and block bug 408963. If you need further logs, feel free to ask.
Comment 1 Agostino Sarubbo gentoo-dev 2020-06-27 14:13:17 UTC
Created attachment 646772 [details]
build.log

build log and emerge --info
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2021-01-03 10:26:35 UTC
Probably missing support for '-export-dynamic' flag parsing in clang:

x86_64-pc-linux-gnu-clang  -Wl,-O1 -Wl,--as-needed -fuse-ld=lld -Wl,--defsym=__gentoo_check_ldflags__=0 -export-dynamic engine-fast-ll-reg.o engine-fast2-ll-reg.o main-fast-ll-reg.o io.o signals.o support-ll-reg.o  pow10.o  -lavcall -lffi -lltdl -lm   -o gforth-fast-ll-reg
clang-10: [0;1;35mwarning: [0margument unused during compilation: '-e xport-dynamic' [-Wunused-command-line-argument][0m
Comment 3 Larry the Git Cow gentoo-dev 2021-01-03 18:35:13 UTC
The bug has been closed via the following commit(s):

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

commit b7d5d123f75de06cb3ea110788469f7c7a3a20b4
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-01-03 18:34:51 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-01-03 18:35:07 +0000

    dev-lang/gforth: fix clang build (use -rdynamic)
    
    Reported-by: Agostino Sarubbo
    Closes: https://bugs.gentoo.org/729874
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-lang/gforth/files/gforth-0.7.3-rdynamic-auto.patch | 16 ++++++++++++++++
 dev-lang/gforth/files/gforth-0.7.3-rdynamic.patch      | 14 ++++++++++++++
 dev-lang/gforth/gforth-0.7.3-r1.ebuild                 | 16 +++++++++++++---
 3 files changed, 43 insertions(+), 3 deletions(-)