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

Bug 713644

Summary: dev-util/astyle-3.1-r2 : astyle_main.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: tamiko
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
dev-util:astyle-3.1-r2:20200320-120446.log
emerge-history.txt
environment
etc.portage.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-03-20 14:57:30 UTC
x86_64-gentoo-linux-musl-g++ -DNDEBUG -Wall -Wextra -fno-rtti -fno-exceptions -std=c++11 -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -c astyle_main.cpp -o obj/astyle_main.o
astyle_main.cpp: In member function std::string astyle::ASConsole::getFullPathName(const string&) const:
astyle_main.cpp:1385:16: error: PATH_MAX was not declared in this scope
 1385 |  char fullPath[PATH_MAX];
      |                ^~~~~~~~
astyle_main.cpp:1386:33: error: fullPath was not declared in this scope

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

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

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.3.0 *
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.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) *
Available Rust versions:
  [1]   rust-1.41.1 *

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Wed, 18 Mar 2020 13:38:27 +0000
emerge -qpvO dev-util/astyle
[ebuild  N    ] dev-util/astyle-3.1-r2  USE="-examples -java -static-libs"
Comment 1 Toralf Förster gentoo-dev 2020-03-20 14:57:33 UTC
Created attachment 623250 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-20 14:57:36 UTC
Created attachment 623252 [details]
dev-util:astyle-3.1-r2:20200320-120446.log
Comment 3 Toralf Förster gentoo-dev 2020-03-20 14:57:39 UTC
Created attachment 623254 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-20 14:57:42 UTC
Created attachment 623256 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-20 14:57:45 UTC
Created attachment 623258 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-20 14:57:48 UTC
Created attachment 623260 [details]
temp.tbz2
Comment 7 Michael 'veremitz' Everitt 2020-03-21 02:07:30 UTC
I suspect this is a case of a missing #include <limits.h> which is required explicitly on musl-libc.