[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: memset_explicit: Fix compilation error on some OpenSolaris derivativ
From: |
Collin Funk |
Subject: |
Re: memset_explicit: Fix compilation error on some OpenSolaris derivatives |
Date: |
Wed, 24 Apr 2024 12:59:47 -0700 |
User-agent: |
Mozilla Thunderbird |
On 4/24/24 11:06 AM, Bruno Haible wrote:
>> $ env GNULIB_TOOL_IMPL=py gnulib-tool --create-testdir --dir testdir1 fstatat
>> $ cd testdir1
>> $ ./configure --enable-silent-rules
>> $ make 2>&1 | grep '__STDC_WANT_LIB_EXT1__' | wc -l
>> 354
>
> I don't reproduce this. What are your CPPFLAGS and CFLAGS?
I realized after reporting that Fedora 40 updated my gcc version to
14.0. I built gcc 13.2.0 using the tarball from the GNU FTP server and
it occurs there too. Maybe it doesn't for older versions?
$ env GNULIB_TOOL_IMPL=py gnulib-tool --create-testdir --dir testdir1 fstatat
$ cd testdir1
$ ./configure CC=gcc-13.2
$ make 2>&1 | grep '__STDC_WANT_LIB_EXT1__' | wc -l
354
$ find . -name 'Makefile' | xargs grep '^CFLAGS'
./gllib/Makefile:CFLAGS = -g -O2
./glm4/Makefile:CFLAGS = -g -O2
./gltests/Makefile:CFLAGS = -Wno-error -g -O2
./Makefile:CFLAGS = -g -O2
$ find . -name 'Makefile' | xargs grep '^CPPFLAGS'
./gllib/Makefile:CPPFLAGS =
./glm4/Makefile:CPPFLAGS =
./gltests/Makefile:CPPFLAGS =
./Makefile:CPPFLAGS =
Here is an example of the invocation that shows the warning:
gcc-13.2 -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -DGNULIB_STRICT_CHECKING=1 -I. -I.
-I.. -I./.. -I../gllib -I./../gllib -Wno-error -g -O2 -MT test-sys_types.o
-MD -MP -MF .deps/test-sys_types.Tpo -c -o test-sys_types.o test-sys_types.c
Collin