Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 641460 - x11-plugins/bfm-0.6.4-r2 build error: unrecognized command line option '-Wl'
Summary: x11-plugins/bfm-0.6.4-r2 build error: unrecognized command line option '-Wl'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-17 12:01 UTC by Alexandros Diamantidis
Modified: 2017-12-20 14:17 UTC (History)
0 users

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


Attachments
Full build log (1513426040-install-x11-plugins_bfm-0.6.4-r2:0::gentoo.out,20.17 KB, application/octet-stream)
2017-12-17 12:01 UTC, Alexandros Diamantidis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandros Diamantidis 2017-12-17 12:01:12 UTC
Created attachment 510466 [details]
Full build log

x11-plugins/bfm fails to build with the following error (with gcc 7.2.0):

x86_64-pc-linux-gnu-gcc -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -Wl,-O1 -Wl,--as-needed -shared -Wl -o gkrellm-bfm.so fishmon.o bubblemon.o sys_linux.o gkrellm-bfm.o
x86_64-pc-linux-gnu-gcc: error: unrecognized command line option '-Wl'; did you mean '-W'?

Editing line 36 of x11-plugins/bfm/files/bfm-0.6.4-makefile.patch to remove -Wl allows building to complete (but I'm not sure it's the correct fix).
Comment 1 Felix Janda 2017-12-17 23:49:36 UTC
Removing the obsolete "-Wl" from the Makefile looks correct.
(See also https://gcc.gnu.org/gcc-4.7/porting_to.html .)
Comment 2 Bernard Cafarelli gentoo-dev 2017-12-20 14:14:42 UTC
Thanks for the report, yes it has probably been ages since I tested with USE=gkrellm :)
Comment 3 Larry the Git Cow gentoo-dev 2017-12-20 14:17:43 UTC
The bug has been closed via the following commit(s):

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

commit a66de87e357b61b8fc9b7b02801bd7eab537cd3c
Author:     Bernard Cafarelli <voyageur@gentoo.org>
AuthorDate: 2017-12-20 14:17:29 +0000
Commit:     Bernard Cafarelli <voyageur@gentoo.org>
CommitDate: 2017-12-20 14:17:37 +0000

    x11-plugins/bfm: fix build with USE=gkrellm
    
    LDFLAGS still used an obsolete single "-Wl" option
    
    Closes: https://bugs.gentoo.org/641460
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 x11-plugins/bfm/files/bfm-0.6.4-makefile.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)