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

            Bug ID: 118121
           Summary: [15 Regression] lto-wrapper.cc:1878:20: error:
                    'mkstemps' was not declared in this  scope
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
  Target Milestone: ---
              Host: hppa64-hp-hpux11.11
            Target: hppa64-hp-hpux11.11
             Build: hppa64-hp-hpux11.11

g++ -std=c++14  -fno-PIE -c   -g -DIN_GCC    -fno-exceptions -fno-rtti
-fasynchr
onous-unwind-tables -W -Wall -Wno-error=narrowing -Wwrite-strings -Wcast-qual
-W
no-format -Wmissing-format-attribute -Wconditionally-supported
-Woverloaded-virt
ual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings 
-DHAV
E_CONFIG_H -fno-PIE -I. -I. -I../../gcc/gcc -I../../gcc/gcc/.
-I../../gcc/gcc/..
/include  -I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libcody
-I/opt/gn
u64/gcc/gmp/include  -I../../gcc/gcc/../libdecnumber
-I../../gcc/gcc/../libdecnu
mber/dpd -I../libdecnumber -I../../gcc/gcc/../libbacktrace
-I/opt/gnu64/gcc/gmp/
include  -o lto-wrapper.o -MT lto-wrapper.o -MMD -MP -MF
./.deps/lto-wrapper.TPo
 ../../gcc/gcc/lto-wrapper.cc
../../gcc/gcc/lto-wrapper.cc: In function 'void run_gcc(unsigned int, char**)':
../../gcc/gcc/lto-wrapper.cc:1878:20: error: 'mkstemps' was not declared in
this
 scope; did you mean 'mkstemp'?
 1878 |           int fd = mkstemps (file, strlen (".ltrans.out"));
      |                    ^~~~~~~~
      |                    mkstemp

Probably introduced by:
commit 8b1a572840438d0caf3a40cfdebbc55bbc3968f5
Author: Michal Jires <mji...@suse.cz>
Date:   Fri Nov 17 21:17:11 2023 +0100

    lto: Implement ltrans cache

mkstemps is not available on hpux11.11 but there is an implementation
in libiberty.

Reply via email to