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

--- Comment #77 from dave.anglin at bell dot net ---
On 2019-07-22 4:47 p.m., bugzilla-gcc at thewrittenword dot com wrote:
> Getting further. Now erroring out with:
> /opt/build/china/gcc-8.3.0/.obj/./prev-gcc/xg++
> -B/opt/build/china/gcc-8.3.0/.obj/./prev-gcc/
> -B/opt/build/gcc8/ia64-hp-hpux11.31/bin/ -nostdinc++
> -B/opt/build/china/gcc-8.3.0/.obj/prev-ia64-hp-hpux11.31/libstdc++-v3/src/.libs
> -B/opt/build/china/gcc-8.3.0/.obj/prev-ia64-hp-hpux11.31/libstdc++-v3/libsupc++/.libs
>
> -I/opt/build/china/gcc-8.3.0/.obj/prev-ia64-hp-hpux11.31/libstdc++-v3/include/ia64-hp-hpux11.31
>  
> -I/opt/build/china/gcc-8.3.0/.obj/prev-ia64-hp-hpux11.31/libstdc++-v3/include 
> -I/opt/build/china/gcc-8.3.0/libstdc++-v3/libsupc++
> -L/opt/build/china/gcc-8.3.0/.obj/prev-ia64-hp-hpux11.31/libstdc++-v3/src/.libs
> -L/opt/build/china/gcc-8.3.0/.obj/prev-ia64-hp-hpux11.31/libstdc++-v3/libsupc++/.libs
> -fno-PIE -c  -DUSE_LIBUNWIND_EXCEPTIONS  -g -O2 -DIN_GCC     -fno-exceptions
> -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
> -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
> -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H
> -I. -I. -I/opt/build/china/gcc-8.3.0/gcc -I/opt/build/china/gcc-8.3.0/gcc/.
> -I/opt/build/china/gcc-8.3.0/gcc/../include -I./../intl
> -I/opt/build/china/gcc-8.3.0/gcc/../libcpp/include
> -I/opt/TWWfsw/libgmp61/include -I/opt/TWWfsw/libmpfr31/include
> -I/opt/TWWfsw/libmpc10/include 
> -I/opt/build/china/gcc-8.3.0/gcc/../libdecnumber
> -I/opt/build/china/gcc-8.3.0/gcc/../libdecnumber/dpd -I../libdecnumber
> -I/opt/build/china/gcc-8.3.0/gcc/../libbacktrace
> -I/opt/TWWfsw/libisl016/include  -o gcov-tool.o -MT gcov-tool.o -MMD -MP -MF
> ./.deps/gcov-tool.TPo /opt/build/china/gcc-8.3.0/gcc/gcov-tool.c
> /opt/build/china/gcc-8.3.0/gcc/gcov-tool.c: In function 'int
> unlink_profile_dir(const char*)':
> /opt/build/china/gcc-8.3.0/gcc/gcov-tool.c:85:23: error: invalid conversion
> from 'int (*)(const char*, const stat*, int, FTW*)' to 'int (*)(const char*,
> const stat*, int, FTW)' [-fpermissive]
>      return nftw(path, unlink_gcda_file, 64, FTW_DEPTH | FTW_PHYS);
>                        ^~~~~~~~~~~~~~~~
> In file included from /opt/build/china/gcc-8.3.0/gcc/gcov-tool.c:39:
> /usr/include/ftw.h:273:38: note:   initializing argument 2 of 'int nftw(const
> char*, int (*)(const char*, const stat*, int, FTW), int, int)'
>   inline int nftw(const char *a,int (*b)(const char *, const struct
>                                 ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    stat *, int, struct FTW), int c, int d)
>    ~~~~~~~~~~~~~~~~~~~~~~~~            
> gmake[3]: *** [gcov-tool.o] Error 1
>
I think you need to define _XOPEN_SOURCE_EXTENDED.  See for example
config/pa/pa-hpux11.h.

Reply via email to