Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 938699 - app-text/discount-2.2.7c-r1 - [ncurses-6.5] [llvm] gethopt.c: error: parameter val was not declared, defaults to int; ISO
Summary: app-text/discount-2.2.7c-r1 - [ncurses-6.5] [llvm] gethopt.c: error: paramete...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Ben Kohler
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-29 17:49 UTC by Toralf Förster
Modified: 2024-10-27 21:25 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.00 KB, text/plain)
2024-08-29 17:49 UTC, Toralf Förster
Details
app-text:discount-2.2.7c-r1:20240829-174537.log (app-text:discount-2.2.7c-r1:20240829-174537.log,13.41 KB, text/plain)
2024-08-29 17:49 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,212.42 KB, text/plain)
2024-08-29 17:49 UTC, Toralf Förster
Details
environment (environment,73.09 KB, text/plain)
2024-08-29 17:49 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.21 KB, application/x-xz)
2024-08-29 17:49 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,51.89 KB, application/x-xz)
2024-08-29 17:49 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,1.89 KB, application/x-xz)
2024-08-29 17:49 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,54.58 KB, application/x-xz)
2024-08-29 17:49 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,38.03 KB, application/x-xz)
2024-08-29 17:49 UTC, Toralf Förster
Details
var.tmp.clang.tar.xz (var.tmp.clang.tar.xz,1.11 KB, application/x-xz)
2024-08-29 17:49 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 2024-08-29 17:49:18 UTC
clang -Wno-implicit-int -I. -O2 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int -fPIC -c -o mkd2html.o mkd2html.c
gethopt.c:40:1: warning: a function definition without a prototype is deprecated
      in all versions of C and is not supported in C23
      [-Wdeprecated-non-prototype]
   40 | hoptopt(ctx)
      | ^
gethopt.c:48:13: error: parameter 'val' was not declared, defaults to 'int'; ISO
      C99 and later do not support implicit int [-Wimplicit-int]
   48 | hopterr(ctx,val)

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_llvm-20240825-084454

  UNMASKED:
    Requested by sam
  /etc/portage/package.unmask/50unstable:>=sys-libs/ncurses-6.5

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 18.1.8+libcxx
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.8+libcxx
Python 3.12.5
Available Rust versions:
  [1]   rust-bin-1.80.1
  [2]   rust-1.80.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.24_p8 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.12_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.4_p7 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.422_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.23.0 linux/amd64

  HEAD of ::gentoo
commit 3bfd88ffa1f1d601df9a37cae97bca9060d292a9
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Aug 29 17:04:13 2024 +0000

    2024-08-29 17:04:12 UTC

emerge -qpvO =app-text/discount-2.2.7c-r1
[ebuild  N    ] app-text/discount-2.2.7c-r1  USE="-minimal -test"
Comment 1 Toralf Förster gentoo-dev 2024-08-29 17:49:19 UTC
Created attachment 901602 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-08-29 17:49:20 UTC
Created attachment 901603 [details]
app-text:discount-2.2.7c-r1:20240829-174537.log
Comment 3 Toralf Förster gentoo-dev 2024-08-29 17:49:21 UTC
Created attachment 901604 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-08-29 17:49:23 UTC
Created attachment 901605 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-08-29 17:49:23 UTC
Created attachment 901606 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-08-29 17:49:24 UTC
Created attachment 901607 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-08-29 17:49:25 UTC
Created attachment 901608 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-08-29 17:49:26 UTC
Created attachment 901609 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-08-29 17:49:27 UTC
Created attachment 901610 [details]
temp.tar.xz
Comment 10 Toralf Förster gentoo-dev 2024-08-29 17:49:29 UTC
Created attachment 901611 [details]
var.tmp.clang.tar.xz
Comment 11 Eli Schwartz gentoo-dev 2024-10-27 21:25:42 UTC
Upstream says:

"gcc 14 apparently isn't discount ready"

A couple weeks later:

"For the 2.2 series, compile it with `CC="cc -std=c89". I got fed up with the warnings in v3, so there you can do the gcc of your choice."

However, v3 still fails to compile!