CARVIEW |
Select Language
HTTP/2 200
date: Thu, 16 Oct 2025 04:00:59 GMT
content-type: text/html; charset=utf-8
cache-control: max-age=0, private, must-revalidate
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com marketplace-screenshots.githubusercontent.com/ copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
link: ; rel=preload; as=fetch; crossorigin=use-credentials
referrer-policy: no-referrer-when-downgrade
server-timing: issue_layout-fragment;desc="issue_layout fragment";dur=201.372223,issue_conversation_content-fragment;desc="issue_conversation_content fragment";dur=820.511709,nginx;desc="NGINX";dur=0.812894,glb;desc="GLB";dur=140.510956
strict-transport-security: max-age=31536000; includeSubdomains; preload
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With, Accept,Accept-Encoding, Accept, X-Requested-With
x-content-type-options: nosniff
x-frame-options: deny
x-voltron-version: aab62e3
x-xss-protection: 0
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=nEMK8G4ZNeq96Su0aLKR%2B6l0cDKSF3uVnkzei0cd5AhP3lL9ZrBPEKxu4BWKkKVu4hnqEZ%2BUqEjm6R9tQZukqh8VQ5lFRD4JfG2PXkdxrBbENcTVAU1Mfrss5gIBtwwT5AWxW9kCddfHZYMMgbGDf70LFYUhIyEcPclmr994yi8EsZqAHbNuIVntu8C5h8XfXHyEJ7ke%2B6X50ltq3JSn1i17k8TtHHRDYETIXeLj1vPhxmFGTDVsURyJWGxXEdiSV74mUKDIbqVH5ojCwgZH3g%3D%3D--bovUHrZZXGbMC27H--V251F7yBIaYHsfeLg3LX7A%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.911821242.1760587258; Path=/; Domain=github.com; Expires=Fri, 16 Oct 2026 04:00:58 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 16 Oct 2026 04:00:58 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 99DE:44DF5:2003FF:2E3F77:68F06DFA
C++ builds fail with modern C++ compilers Β· Issue #21073 Β· Perl/perl5 Β· GitHub
No one assignedNo labelsNo typeNo projectsNo milestoneNone yetNo branches or pull requests
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 598
Closed
Description
Module: Compress::Raw::Bzip2
Other modules may also be a problem.
Description
With a modern C++ compiler supporting and defaulting to C++ 17, the register
storage class modifier is no longer supported, which causes the build to fail:
c++ -DNO_MATHOMS -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Werror=pointer-arith -Werror=vla -Wextra -Wno-long-long -Wno-declaration-after-statement -Wc++-compat -Wwrite-strings -O2 -DVERSION=\"2.204\" -DXS_VERSION=\"2.204\" -fPIC "-I../.." -DBZ_NO_STDIO compress.c
compress.c:190:13: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
register UChar rtmp;
^~~~~~~~~
Note that at least one C99 construct we use isn't valid in C++:
In file included from globals.c:25:
In file included from ./perl.h:6191:
./opcode.h:1004:2: warning: array designators are a C99 extension [-Wc99-designator]
[OP_NULL] = Perl_pp_null,
^~~~~~~~~
(designated struct initialization is supported in C++20 but not arrays)
Steps to Reproduce
# requires clang-16, installed here from the llvm deb archive
./Configure -des -Dusedevel -Dcc=clang++-16 -Accflags='-g -fno-omit-frame-pointer -fsanitize=address -fno-common -x c++' -Aldflags=-fsanitize=address -Accflags=-DNO_MATHOMS && make
Expected behavior
Successful build.
Workaround
Build with -std=c++11
, which changes the message to a warning:
clang++-16 -c -I./zlib-src -g -fno-omit-frame-pointer -fsanitize=address -fno-common -x c++ -std=c++11 -DNO_MATHOMS -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Werror=pointer-arith -Werror=vla -Wextra -Wno-long-long -Wno-declaration-after-statement -Wc++-compat -Wwrite-strings -O2 -DVERSION=\"2.204\" -DXS_VERSION=\"2.204\" -fPIC "-I../.." -DNO_VIZ -DZ_SOLO -DZ_PREFIX -DGZIP_OS_CODE=3 -DPerl_crz_BUILD_ZLIB=1 deflate.c
deflate.c:1282:5: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register]
register Bytef *scan = s->window + s->strstart; /* current string */
^~~~~~~~~
Perl configuration
# from miniperl
Summary of my perl5 (revision 5 version 37 subversion 12) configuration:
Commit id: 6bbe21a508a82ef4a3849bd69a435b3cf8d5bf40
Platform:
osname=linux
osvers=5.10.0-21-amd64
archname=x86_64-linux
uname='linux venus 5.10.0-21-amd64 #1 smp debian 5.10.162-1 (2023-01-21) x86_64 gnulinux '
config_args='-des -Dusedevel -Dcc=clang++-16 -Accflags=-g -fno-omit-frame-pointer -fsanitize=address -fno-common -x c++ -Aldflags=-fsanitize=address -Accflags=-DNO_MATHOMS'
hint=recommended
useposix=true
d_sigaction=define
useithreads=undef
usemultiplicity=undef
use64bitint=define
use64bitall=define
uselongdouble=undef
usemymalloc=n
default_inc_excludes_dot=define
Compiler:
cc='clang++-16'
ccflags ='-g -fno-omit-frame-pointer -fsanitize=address -fno-common -x c++ -DNO_MATHOMS -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
optimize='-O2'
cppflags='-g -fno-omit-frame-pointer -fsanitize=address -fno-common -x c++ -DNO_MATHOMS -I/usr/local/include'
ccversion=''
gccversion='Debian Clang 16.0.3 (++20230502062952+da3cd333bea5-1~exp1~20230502183046.82)'
gccosandvers=''
intsize=4
longsize=8
ptrsize=8
doublesize=8
byteorder=12345678
doublekind=3
d_longlong=define
longlongsize=8
d_longdbl=define
longdblsize=16
longdblkind=3
ivtype='long'
ivsize=8
nvtype='double'
nvsize=8
Off_t='off_t'
lseeksize=8
alignbytes=8
prototype=define
Linker and Libraries:
ld='clang++-16'
ldflags =' -fsanitize=address -L/usr/local/lib'
libpth=/usr/lib/llvm-16/lib/clang/16/lib /usr/local/lib /usr/lib/x86_64-linux-gnu /usr/lib /usr/lib64
libs=-lpthread -lgdbm -ldl -lm -lcrypt -lutil -lc -lgdbm_compat
perllibs=-lpthread -ldl -lm -lcrypt -lutil -lc
libc=libc-2.31.so
so=so
useshrplib=false
libperl=libperl.a
gnulibc_version='2.31'
Dynamic Linking:
dlsrc=dl_dlopen.xs
dlext=so
d_dlsymun=undef
ccdlflags='-Wl,-E'
cccdlflags='-fPIC'
lddlflags='-shared -O2 -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options:
HAS_LONG_DOUBLE
HAS_STRTOLD
HAS_TIMES
NO_MATHOMS
PERLIO_LAYERS
PERL_COPY_ON_WRITE
PERL_DONT_CREATE_GVSV
PERL_EXTERNAL_GLOB
PERL_HASH_FUNC_SIPHASH13
PERL_HASH_USE_SBOX32
PERL_IS_MINIPERL
PERL_MALLOC_WRAP
PERL_OP_PARENT
PERL_PRESERVE_IVUV
PERL_USE_DEVEL
PERL_USE_SAFE_PUTENV
USE_64_BIT_ALL
USE_64_BIT_INT
USE_LARGE_FILES
USE_LOCALE
USE_LOCALE_COLLATE
USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC
USE_LOCALE_TIME
USE_PERLIO
USE_PERL_ATOF
USE_SITECUSTOMIZE
Built under linux
Compiled at May 4 2023 10:48:51
%ENV:
PERLBREW_BASHRC_VERSION="0.43"
PERLBREW_HOME="/home/tony/.perlbrew"
PERLBREW_MANPATH=""
PERLBREW_PATH="/home/tony/perl5/perlbrew/bin"
PERLBREW_ROOT="/home/tony/perl5/perlbrew"
PERLBREW_VERSION="0.67"
@INC:
/home/tony/dev/perl/git/perl6/cpan/AutoLoader/lib
/home/tony/dev/perl/git/perl6/dist/Carp/lib
/home/tony/dev/perl/git/perl6/dist/PathTools
/home/tony/dev/perl/git/perl6/dist/PathTools/lib
/home/tony/dev/perl/git/perl6/cpan/ExtUtils-Install/lib
/home/tony/dev/perl/git/perl6/cpan/ExtUtils-MakeMaker/lib
/home/tony/dev/perl/git/perl6/cpan/ExtUtils-Manifest/lib
/home/tony/dev/perl/git/perl6/cpan/File-Path/lib
/home/tony/dev/perl/git/perl6/ext/re
/home/tony/dev/perl/git/perl6/dist/Term-ReadLine/lib
/home/tony/dev/perl/git/perl6/dist/Exporter/lib
/home/tony/dev/perl/git/perl6/ext/File-Find/lib
/home/tony/dev/perl/git/perl6/cpan/Text-Tabs/lib
/home/tony/dev/perl/git/perl6/dist/constant/lib
/home/tony/dev/perl/git/perl6/cpan/version/lib
/home/tony/dev/perl/git/perl6/cpan/Getopt-Long/lib
/home/tony/dev/perl/git/perl6/cpan/Text-ParseWords/lib
/home/tony/dev/perl/git/perl6/cpan/ExtUtils-PL2Bat/lib
/home/tony/dev/perl/git/perl6/lib
rwp0
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Milestone
Relationships
Development
Issue actions
You canβt perform that action at this time.