Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 713644 - dev-util/astyle-3.1-r2 : astyle_main.cpp: error: PATH_MAX was not declared in this scope
Summary: dev-util/astyle-3.1-r2 : astyle_main.cpp: error: PATH_MAX was not declared in...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard: Missing limits.h?
Keywords:
Depends on:
Blocks: missing-musl-includes
  Show dependency tree
 
Reported: 2020-03-20 14:57 UTC by Toralf Förster
Modified: 2020-03-21 14:42 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.58 KB, text/plain)
2020-03-20 14:57 UTC, Toralf Förster
Details
dev-util:astyle-3.1-r2:20200320-120446.log (dev-util:astyle-3.1-r2:20200320-120446.log,2.58 KB, text/plain)
2020-03-20 14:57 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,196.01 KB, text/plain)
2020-03-20 14:57 UTC, Toralf Förster
Details
environment (environment,158.09 KB, text/plain)
2020-03-20 14:57 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,17.95 KB, application/x-bzip)
2020-03-20 14:57 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,34.40 KB, application/x-bzip)
2020-03-20 14:57 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 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.