[Bug bootstrap/100013] New: libiberty error PATH_MAX does not exist on DJGPP host.

unlvsur at live dot com gcc-bugzilla@gcc.gnu.org
Sat Apr 10 05:40:16 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100013

            Bug ID: 100013
           Summary: libiberty error PATH_MAX does not exist on DJGPP host.
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: unlvsur at live dot com
  Target Milestone: ---

The same issue happens on binutils-gdb too because they both include libiberty.
However, I do not know where to report this to libiberty upstream.



In file included from ../../../gcc/libiberty/getpwd.c:33:
../../../gcc/libiberty/getpwd.c: In function 'getpwd':
../../../gcc/libiberty/getpwd.c:55:23: error: 'PATH_MAX' undeclared (first use
in this function)
   55 | #define GUESSPATHLEN (MAXPATHLEN + 1)
      |                       ^~~~~~~~~~
../../../gcc/libiberty/getpwd.c:87:18: note: in expansion of macro
'GUESSPATHLEN'
   87 |         for (s = GUESSPATHLEN;  !getcwd (p = XNEWVEC (char, s), s);  s
*= 2)
      |                  ^~~~~~~~~~~~
../../../gcc/libiberty/getpwd.c:55:23: note: each undeclared identifier is
reported only once for each function it appears in
   55 | #define GUESSPATHLEN (MAXPATHLEN + 1)
      |                       ^~~~~~~~~~
../../../gcc/libiberty/getpwd.c:87:18: note: in expansion of macro
'GUESSPATHLEN'
   87 |         for (s = GUESSPATHLEN;  !getcwd (p = XNEWVEC (char, s), s);  s
*= 2)
      |                  ^~~~~~~~~~~~
make[2]: *** [Makefile:873: getpwd.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/cqwrteur/myhome/gcc/isl/configure: line 3468: cd:
/home/cqwrteur/i586-msdosdjgpp_host: No such file or directory
make[1]: *** [Makefile:9700: all-libiberty] Error 2
make[1]: *** Waiting for unfinished jobs....
configure: WARNING: using cross tools not prefixed with host triplet
configure: WARNING: using cross tools not prefixed with host triplet
make: *** [Makefile:979: all] Error 2


More information about the Gcc-bugs mailing list