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

Bug 938935

Summary: app-misc/cdargs-1.35-r2 - [gcc-15] cdargs.cc: error: PATH_MAX was not declared in this scope
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: CONFIRMED ---    
Severity: normal CC: shell-tools
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
app-misc:cdargs-1.35-r2:20240902-085900.log
emerge-history.txt.xz
environment
etc.clang.tar.xz
etc.portage.tar.xz
logs.tar.xz
qlist-info.txt.xz
temp.tar.xz

Description Toralf Förster gentoo-dev 2024-09-02 17:37:56 UTC
  909 |             editor = "/usr/bin/editor";
      |                      ^~~~~~~~~~~~~~~~~
cdargs.cc:911:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  911 |             editor = "vi";
      |                      ^~~~
cdargs.cc: In function 'char* get_cwd_as_charp()':
cdargs.cc:930:14: error: 'PATH_MAX' was not declared in this scope
  930 |     char buf[PATH_MAX];
      |              ^~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_musl-20240824-035506

  UNMASKED:
    Please re-assign to toolchain@ if you get a test failure in C, C++, or Fortran code which makes no sense.
  /etc/portage/package.unmask/60gcc:<sys-devel/gcc-15.0.9999:15

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

gcc-config -l:
 [1] x86_64-pc-linux-musl-15 *
clang/llvm (if any):
clang version 18.1.8
Target: x86_64-pc-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-musl-clang.cfg
/usr/lib/llvm/18
18.1.8
Python 3.12.5
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-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]
Available Java Virtual Machines:
  [1]   openjdk-bin-11 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

php cli (if any):
go version go1.23.0 linux/amd64

  HEAD of ::gentoo
commit 1b205ccb6e8943e6416e90d9e1a3e213bfc03593
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Sep 2 08:36:20 2024 +0000

    2024-09-02 08:36:19 UTC

emerge -qpvO =app-misc/cdargs-1.35-r2
[ebuild  N    ] app-misc/cdargs-1.35-r2  USE="-emacs"
Comment 1 Toralf Förster gentoo-dev 2024-09-02 17:37:56 UTC
Created attachment 901917 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-09-02 17:37:57 UTC
Created attachment 901918 [details]
app-misc:cdargs-1.35-r2:20240902-085900.log
Comment 3 Toralf Förster gentoo-dev 2024-09-02 17:37:59 UTC
Created attachment 901919 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2024-09-02 17:38:00 UTC
Created attachment 901920 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-09-02 17:38:00 UTC
Created attachment 901921 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-09-02 17:38:01 UTC
Created attachment 901922 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-09-02 17:38:02 UTC
Created attachment 901923 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-09-02 17:38:03 UTC
Created attachment 901924 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-09-02 17:38:04 UTC
Created attachment 901925 [details]
temp.tar.xz