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

Bug 715248

Summary: app-admin/clog-1.3.0-r1 : /.../FS.cpp: 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: alicef
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: Missing limits.h?
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 713786    
Attachments: emerge-info.txt
app-admin:clog-1.3.0:20200328-233851.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-03-29 09:50:29 UTC
/var/tmp/portage/app-admin/clog-1.3.0/work/clog-1.3.0/src/libshared/src/FS.cpp: In static member function static std::string Directory::cwd():
/var/tmp/portage/app-admin/clog-1.3.0/work/clog-1.3.0/src/libshared/src/FS.cpp:898:12: error: PATH_MAX was not declared in this scope
  898 |   char buf[PATH_MAX];
      |            ^~~~~~~~
/var/tmp/portage/app-admin/clog-1.3.0/work/clog-1.3.0/src/libshared/src/FS.cpp:899:11: error: buf was not declared in this scope

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-20200328-141627

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

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.3.0 *
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) *

timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sat Mar 28 22:42:59 UTC 2020
/var/db/repos/musl	Fri Mar 27 00:25:27 UTC 2020

emerge -qpvO app-admin/clog
[ebuild  N    ] app-admin/clog-1.3.0
Comment 1 Toralf Förster gentoo-dev 2020-03-29 09:50:31 UTC
Created attachment 626680 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-29 09:50:34 UTC
Created attachment 626682 [details]
app-admin:clog-1.3.0:20200328-233851.log
Comment 3 Toralf Förster gentoo-dev 2020-03-29 09:50:37 UTC
Created attachment 626684 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-29 09:50:40 UTC
Created attachment 626686 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-29 09:50:43 UTC
Created attachment 626688 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-29 09:50:46 UTC
Created attachment 626690 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-03-29 09:50:48 UTC
Created attachment 626692 [details]
temp.tbz2
Comment 8 Michael 'veremitz' Everitt 2020-03-29 22:08:18 UTC
I suspect this is a case of a missing #include <limits.h> which is required explicitly on musl-libc.
Comment 9 Agostino Sarubbo gentoo-dev 2021-12-29 19:57:11 UTC
tinderbox_musl has reproduced this issue with version 1.3.0-r1 - Updating summary.