[schilytools] [RELEASE] 2023-09-28

Dennis Clarke dclarke at blastwave.org
Wed Nov 22 03:58:45 CET 2023


On 9/30/23 23:33, Robert Clausecker wrote:
> Hi Dennis,
> 
> Am Sat, Sep 30, 2023 at 11:27:10PM -0400 schrieb Dennis Clarke via schilytools:
>> ../../../include/vroot/vroot.h:58:30: error: ISO C++17 does not allow
>> 'register' storage class specifier [-Wregister]
>> extern  void            add_dir_to_path(register const char *path, register
>> pathpt *pointer, register int position);
>>                                          ^~~~~~~~~
> 
> Thank you for your report.
> 
> This is a known issue where recent clang turns the warning for using "register"
> into a hard error.  We track this bug in [issue 13] of our bug tracker.  I am
> planning to remove all instances of the register keyword from C++ sources, but
> so far have not gotten around to do so. 

Robert :

     As discussed, I went over every line that offers a complaint
regarding that register storage keyword. Did nothing more than what
you would suspect. Nuke it from orbit and then test it on the new
FreeBSD 14.0 with whatever the LLVM/Clang is in the RELEASE :

merc# uname -apKU
FreeBSD mercury 14.0-RELEASE FreeBSD 14.0-RELEASE #0 
releng/14.0-n265380-f9716eee8ab4: Fri Nov 10 05:57:23 UTC 2023 
root at releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC 
amd64 amd64 1400097 1400097
merc#
merc# cc --version
FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git 
llvmorg-16.0.6-0-g7cbf1a259152)
Target: x86_64-unknown-freebsd14.0
Thread model: posix
InstalledDir: /usr/bin
merc#

See attached big filthy patch. Yes I did look at every line and I did
not bother with indentation issues. It compiles and seems to work on
FreeBSD 14.0 amd64 as well as i386. I will give it a spin on RISC-V but
someone else ( cough ) will need to give it a whirl on aarch64.

On FreeBSD I use the system patch tool fine :

     patch --backup -i ../schily-2023-09-28.patch

On Linux we need a -p1 in there as well as --verbose for flavour.

Let me know.


Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
suspenders and beard installed

-------------- next part --------------
A non-text attachment was scrubbed...
Name: schily-2023-09-28.patch.xz
Type: application/x-xz
Size: 13920 bytes
Desc: not available
URL: <https://mlists.in-berlin.de/pipermail/schilytools-mlists.in-berlin.de/attachments/20231121/aa04c354/attachment.xz>


More information about the schilytools mailing list