Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715046 - app-misc/ckb-0.4.2 : fails to build with -fno-common or gcc-10
Summary: app-misc/ckb-0.4.2 : fails to build with -fno-common or gcc-10
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-03-27 11:24 UTC by Toralf Förster
Modified: 2020-11-29 13:52 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.40 KB, text/plain)
2020-03-27 11:25 UTC, Toralf Förster
Details
app-misc:ckb-0.4.2:20200327-075609.log (app-misc:ckb-0.4.2:20200327-075609.log,34.86 KB, text/plain)
2020-03-27 11:25 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,264.49 KB, text/plain)
2020-03-27 11:25 UTC, Toralf Förster
Details
environment (environment,106.22 KB, text/plain)
2020-03-27 11:25 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,18.97 KB, application/x-bzip)
2020-03-27 11:25 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,5.56 KB, application/x-bzip)
2020-03-27 11:25 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,28.71 KB, application/x-bzip)
2020-03-27 11:25 UTC, Toralf Förster
Details
0001-Fix-gcc-10-fno-common-error.patch (0001-Fix-gcc-10-fno-common-error.patch,726 bytes, patch)
2020-05-12 16:01 UTC, Erik Zeek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-03-27 11:24:58 UTC
[25/104] : && /usr/bin/x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -falign-functions=32:25:16  -Wl,-O1 -Wl,--as-needed src/daemon/CMakeFiles/ckb-next-daemon.dir/command.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/device.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/device_keyboard.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/device_mouse.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/device_vtable.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/devnode.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/dpi.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/dpi_legacy.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/firmware.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/input.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/keymap.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/keymap_patch.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/led.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/led_keyboard.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/led_mouse.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/led_mousepad.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/main.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/notify.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/profile.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/profile_keyboard.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/profile_mouse.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/usb.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/usb_linux.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/input_linux.c.o  -o bin/ckb-next-daemon  -lc  -ludev  -pthread && :
FAILED: bin/ckb-next-daemon 
: && /usr/bin/x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -falign-functions=32:25:16  -Wl,-O1 -Wl,--as-needed src/daemon/CMakeFiles/ckb-next-daemon.dir/command.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/device.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/device_keyboard.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/device_mouse.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/device_vtable.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/devnode.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/dpi.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/dpi_legacy.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/firmware.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/input.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/keymap.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/keymap_patch.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/led.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/led_keyboard.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/led_mouse.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/led_mousepad.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/main.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/notify.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/profile.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/profile_keyboard.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/profile_mouse.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/usb.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/usb_linux.c.o src/daemon/CMakeFiles/ckb-next-daemon.dir/input_linux.c.o  -o bin/ckb-next-daemon  -lc  -ludev  -pthread && :
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/daemon/CMakeFiles/ckb-next-daemon.dir/device_keyboard.c.o:(.rodata+0x0): multiple definition of devpath; src/daemon/CMakeFiles/ckb-next-daemon.dir/command.c.o:(.rodata+0x120): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/daemon/CMakeFiles/ckb-next-daemon.dir/device_mouse.c.o:(.rodata+0x0): multiple definition of devpath; src/daemon/CMakeFiles/ckb-next-daemon.dir/command.c.o:(.rodata+0x120): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-20200318-121516

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

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.0 *
clang version 10.0.0 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.6
  [3]   python3.7 (fallback)
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.41.1
  [2]   rust-1.41.1 *
The following VMs are available for generation-2:
*)	IcedTea JDK 3.14.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.0.2

timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Fri 27 Mar 2020 04:08:55 AM UTC

emerge -qpvO app-misc/ckb
[ebuild  N    ] app-misc/ckb-0.4.2
Comment 1 Toralf Förster gentoo-dev 2020-03-27 11:25:01 UTC
Created attachment 626386 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-27 11:25:04 UTC
Created attachment 626388 [details]
app-misc:ckb-0.4.2:20200327-075609.log
Comment 3 Toralf Förster gentoo-dev 2020-03-27 11:25:07 UTC
Created attachment 626390 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-27 11:25:10 UTC
Created attachment 626392 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-27 11:25:13 UTC
Created attachment 626394 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-27 11:25:16 UTC
Created attachment 626396 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-03-27 11:25:19 UTC
Created attachment 626398 [details]
temp.tbz2
Comment 8 Erik Zeek 2020-05-12 16:01:48 UTC
Created attachment 638456 [details, diff]
0001-Fix-gcc-10-fno-common-error.patch

This got it to compile for me.
Comment 9 Larry the Git Cow gentoo-dev 2020-11-29 13:52:30 UTC
The bug has been closed via the following commit(s):

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

commit 4dd504abf0b68bc12d394045501d5626eaa91d5c
Author:     Azamat H. Hackimov <azamat.hackimov@gmail.com>
AuthorDate: 2020-11-29 13:52:12 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-11-29 13:52:12 +0000

    app-misc/ckb: fixes to package
    
    * Migrate cmake-utils to cmake eclass
    * fix GCC10 compilation (#715046, thanks to Erik Zeek <zeekec@gmail.com>)
    
    Closes: https://bugs.gentoo.org/715046
    Package-Manager: Portage-2.3.99, Repoman-2.3.23
    Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
    Signed-off-by: David Seifert <soap@gentoo.org>

 app-misc/ckb/ckb-0.4.2-r1.ebuild         | 42 ++++++++++++++++++++++++++++++++
 app-misc/ckb/files/ckb-0.4.2-gcc10.patch | 28 +++++++++++++++++++++
 2 files changed, 70 insertions(+)