Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 707040 - net-ftp/linksys-tftp-1.2.1-r3 : fails to build with -fno-common or gcc-10
Summary: net-ftp/linksys-tftp-1.2.1-r3 : 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: Embedded Gentoo Team
URL:
Whiteboard:
Keywords: PullRequest
: 721228 (view as bug list)
Depends on:
Blocks: -fno-common gcc-10-stable
  Show dependency tree
 
Reported: 2020-01-28 21:36 UTC by Toralf Förster
Modified: 2021-01-06 20:58 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,16.00 KB, text/plain)
2020-01-28 21:36 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,153.94 KB, text/plain)
2020-01-28 21:36 UTC, Toralf Förster
Details
environment (environment,73.52 KB, text/plain)
2020-01-28 21:36 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,15.48 KB, application/x-bzip)
2020-01-28 21:36 UTC, Toralf Förster
Details
net-ftp:linksys-tftp-1.2.1-r3:20200128-212811.log (net-ftp:linksys-tftp-1.2.1-r3:20200128-212811.log,19.71 KB, text/plain)
2020-01-28 21:36 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,20.68 KB, application/x-bzip)
2020-01-28 21:36 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-01-28 21:36:31 UTC
  208 |   return write(fileno(file), buf, count);
      |          ^~~~~
      |          fwrite
x86_64-pc-linux-gnu-gcc -o linksys-tftp -O2 -pipe -march=native -fno-common -I. -Dsin=sin_x main.o tftp.o tftpsubs.o -Wl,-O1 -Wl,--as-needed
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: tftp.o:(.bss+0x120): multiple definition of `toplevel'; main.o:(.bss+0x80): first defined here
collect2: error: ld returned 1 exit status

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-libressl-20200125-150902

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

  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.7
  [3]   python3.6
  [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:
*)	IcedTea JDK 3.14.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

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

emerge -qpvO net-ftp/linksys-tftp
[ebuild  N    ] net-ftp/linksys-tftp-1.2.1-r3
Comment 1 Toralf Förster gentoo-dev 2020-01-28 21:36:34 UTC
Created attachment 607280 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-28 21:36:37 UTC
Created attachment 607282 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-28 21:36:40 UTC
Created attachment 607284 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-28 21:36:42 UTC
Created attachment 607286 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-28 21:36:45 UTC
Created attachment 607288 [details]
net-ftp:linksys-tftp-1.2.1-r3:20200128-212811.log
Comment 6 Toralf Förster gentoo-dev 2020-01-28 21:36:48 UTC
Created attachment 607290 [details]
temp.tbz2
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2020-05-21 11:47:23 UTC
*** Bug 721228 has been marked as a duplicate of this bug. ***
Comment 8 Larry the Git Cow gentoo-dev 2021-01-06 20:58:55 UTC
The bug has been closed via the following commit(s):

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

commit 1bbce1aa65668a27a99be58a006ada7694ecea59
Author:     Stephan Hartmann <sultan@gentoo.org>
AuthorDate: 2021-01-05 15:09:55 +0000
Commit:     Stephan Hartmann <sultan@gentoo.org>
CommitDate: 2021-01-06 20:58:13 +0000

    net-ftp/linksys-tftp: fix -fno-common and clang build, EAPI 7
    
    Closes: https://bugs.gentoo.org/707040
    Closes: https://bugs.gentoo.org/731218
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Stephan Hartmann <sultan@gentoo.org>

 .../files/linksys-tftp-1.2.1-r1-clang.patch        | 196 +++++++++++++++++++++
 .../files/linksys-tftp-1.2.1-r1-fno-common.patch   |  11 ++
 net-ftp/linksys-tftp/linksys-tftp-1.2.1-r3.ebuild  |  21 +--
 3 files changed, 218 insertions(+), 10 deletions(-)