Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 840538 - app-shells/ksh-1.0.0_beta2 - init.c:(.text+<snip>): undefined reference to remainder
Summary: app-shells/ksh-1.0.0_beta2 - init.c:(.text+<snip>): undefined reference to re...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Stephan Hartmann (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-12
  Show dependency tree
 
Reported: 2022-04-24 07:08 UTC by Toralf Förster
Modified: 2022-05-15 11:12 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.44 KB, text/plain)
2022-04-24 07:08 UTC, Toralf Förster
Details
app-shells:ksh-1.0.0_beta2:20220424-050221.log.bz2 (app-shells:ksh-1.0.0_beta2:20220424-050221.log.bz2,24.69 KB, application/x-bzip)
2022-04-24 07:08 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,213.05 KB, text/plain)
2022-04-24 07:08 UTC, Toralf Förster
Details
environment (environment,73.63 KB, text/plain)
2022-04-24 07:08 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,7.86 KB, application/x-bzip)
2022-04-24 07:08 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,43.77 KB, application/x-bzip)
2022-04-24 07:08 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 2022-04-24 07:08:40 UTC
too long lines were shrinked:

+ x86_64-pc-linux-gnu-ar rc libshell.a alarm.o cd_pwd.o cflow.o deparse.o enum.o getopts.o hist.o misc.o print.o read.o sleep.o trap.o test.o typeset.o ulimit.o umask.o whence.o main.o nvdisc.o nvtype.o arith.o args.o array.o completion.o defs.o edit.o expand.o regress.o fault.o fcin.o
+ x86_64-pc-linux-gnu-ar rc libshell.a history.o init.o io.o jobs.o lex.o macro.o name.o nvtree.o parse.o path.o string.o streval.o subshell.o tdump.o timers.o trestore.o waitevent.o xec.o limits.o msg.o strdata.o testops.o keywords.o options.o signals.o aliases.o builtins.o variables.o lexstates.o 
+ cc -D_AST_ksh_release -DSHOPT_2DMATCH=1 -DSHOPT_AUDIT=1 '-DSHOPT_AUDITFILE="/etc/ksh_audit"' -DSHOPT_BGX=1 -DSHOPT_BRACEPAT=1 -DSHOPT_DYNAMIC=1 -DSHOPT_EDPREDICT=0 -DSHOPT_ESH=1 -DSHOPT_FILESCAN=1 -DSHOPT_FIXEDARRAY=1 -DSHOPT_HISTEXPAND=1 -DSHOPT_MULTIBYTE=1 -DSHOPT_NAMESPACE=1 -DSHOPT_NOECHOE=0 -
/usr/lib/gcc/x86_64-pc-linux-gnu/12.0.1/../../../../x86_64-pc-linux-gnu/bin/ld: libshell.a(init.o): in function `sh_reseed_rand':
init.c:(.text+0x1f1d): undefined reference to `remainder'
/usr/lib/gcc/x86_64-pc-linux-gnu/12.0.1/../../../../x86_64-pc-linux-gnu/bin/ld: libshell.a(streval.o): in function `arith_exec':
streval.c:(.text+0x1ed4): undefined reference to `pow'

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-j4_test-20220420-221025

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.0.1 *
clang/llvm (if any):
clang version 14.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/14/bin
/usr/lib/llvm/14
14.0.1
Python 3.9.12
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.60.0
  [2]   rust-1.60.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 11.0.14_p9 [openjdk-bin-11]
2)	Eclipse Temurin JDK 8.322_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:
  [1]   php7.4
  [2]   php8.0
  [3]   php8.1 *

  HEAD of ::gentoo
commit 67138b49ce257cf9f23b9e698e3ccedd51733237
Merge: 2f6ca13e5ebe 8cf1e2be6fed
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Apr 24 03:03:08 2022 +0000

    Merge updates from master

emerge -qpvO app-shells/ksh
[ebuild  N    ] app-shells/ksh-1.0.0_beta2
Comment 1 Toralf Förster gentoo-dev 2022-04-24 07:08:41 UTC
Created attachment 774001 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-04-24 07:08:42 UTC
Created attachment 774004 [details]
app-shells:ksh-1.0.0_beta2:20220424-050221.log.bz2
Comment 3 Toralf Förster gentoo-dev 2022-04-24 07:08:44 UTC
Created attachment 774007 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-04-24 07:08:45 UTC
Created attachment 774010 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-04-24 07:08:46 UTC
Created attachment 774013 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-04-24 07:08:47 UTC
Created attachment 774016 [details]
temp.tar.bz2
Comment 7 Larry the Git Cow gentoo-dev 2022-05-15 11:11:55 UTC
The bug has been referenced in the following commit(s):

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

commit 39b86fa4aea725bf8020389cbfb81c8eac5f848d
Author:     Stephan Hartmann <sultan@gentoo.org>
AuthorDate: 2022-05-15 11:10:36 +0000
Commit:     Stephan Hartmann <sultan@gentoo.org>
CommitDate: 2022-05-15 11:11:15 +0000

    app-shells/ksh: fix building with gcc-12
    
    Bug: https://bugs.gentoo.org/840538
    Signed-off-by: Stephan Hartmann <sultan@gentoo.org>

 app-shells/ksh/files/ksh-1.0.0-beta.2-gcc12.patch | 63 +++++++++++++++++++++++
 app-shells/ksh/ksh-1.0.0_beta2.ebuild             |  4 ++
 2 files changed, 67 insertions(+)