Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 706996

Summary: app-editors/curses-hexedit-0.9.7 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: jer
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=763471
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: emerge-info.txt
app-editors:curses-hexedit-0.9.7:20200128-185526.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-01-28 19:14:37 UTC
windows.c:320:13: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result [-Wunused-result]
  320 |             ftruncate (fileno (fp), Globals.filesize);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -fno-common -Wall -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600  -DHAVE_NCURSES_H=1  -Wl,-O1 -Wl,--as-needed -o hexedit asciikey.o calc.o calckeys.o edit.o file.o filebuf.o filekeys.o hash.o help.o hexkeys.o init.o main.o misc.o print.o search.o undo.o widgets.o windows.o  -lncurses -ltinfo 
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: calc.o:(.bss+0x40): multiple definition of `Globals'; asciikey.o:(.bss+0x20): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: calc.o:(.bss+0x20): multiple definition of `UndoStack'; asciikey.o:(.bss+0x0): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-20200126-201521

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

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

clang:
clang version 9.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.1
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-1.40.0 *
java-config:
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.242_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Tue, 28 Jan 2020 17:46:28 +0000

emerge -qpvO app-editors/curses-hexedit
[ebuild  N    ] app-editors/curses-hexedit-0.9.7
Comment 1 Toralf Förster gentoo-dev 2020-01-28 19:14:40 UTC
Created attachment 607076 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-28 19:14:43 UTC
Created attachment 607078 [details]
app-editors:curses-hexedit-0.9.7:20200128-185526.log
Comment 3 Toralf Förster gentoo-dev 2020-01-28 19:14:45 UTC
Created attachment 607080 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-01-28 19:14:48 UTC
Created attachment 607082 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-01-28 19:14:51 UTC
Created attachment 607084 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-28 19:14:54 UTC
Created attachment 607086 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-01-28 19:14:56 UTC
Created attachment 607088 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2020-05-17 12:51:16 UTC
The bug has been closed via the following commit(s):

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

commit f66a971e7e947fa9a26ad67182126bdaf0c796f7
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2020-05-17 12:50:25 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2020-05-17 12:51:12 +0000

    app-editors/curses-hexedit: Fix building with CFLAGS=-fno-common
    
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Closes: https://bugs.gentoo.org/706996
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 .../curses-hexedit/curses-hexedit-0.9.7-r1.ebuild  | 37 +++++++++++++++
 .../files/curses-hexedit-0.9.7-fno-common.patch    | 53 ++++++++++++++++++++++
 2 files changed, 90 insertions(+)