From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 112DF3858D32; Sun, 8 May 2022 06:10:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 112DF3858D32 From: "vital.had at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/105522] New: gcc11: internal compiler error: in decode_addr_const, at varasm.c:3059 Date: Sun, 08 May 2022 06:10:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vital.had at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2022 06:10:08 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105522 Bug ID: 105522 Summary: gcc11: internal compiler error: in decode_addr_const, at varasm.c:3059 Product: gcc Version: 11.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: vital.had at gmail dot com CC: iains at gcc dot gnu.org Target Milestone: --- Target: powerpc-apple-darwin Created attachment 52938 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D52938&action=3Dedit Build log in a case needed ``` 36-111% /opt/local/bin/gcc-mp-11 -DSDL2_EXPORTS -DUSING_GENERATED_CONFIG_H -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libs= dl2/work/build/include -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libs= dl2/work/SDL2-2.0.22/include -pipe -Os -DNDEBUG -I/opt/local/include -idirafter "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsd= l2/work/SDL2-2.0.22/src/video/khronos" -I/opt/local/include/libusb-1.0 -D_THREAD_SAFE -Wshadow -fvisibility=3Dhidd= en -Wdeclaration-after-statement -fno-strict-aliasing -Wall -arch ppc -mmacosx-version-min=3D10.6 -fPIC -MD -MT CMakeFiles/SDL2.dir/src/hidapi/SDL_hidapi.c.o -MF CMakeFiles/SDL2.dir/src/hidapi/SDL_hidapi.c.o.d -o CMakeFiles/SDL2.dir/src/hidapi/SDL_hidapi.c.o -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/SDL_hidapi.c In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/SDL_hidapi.c:578: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/mac/hid.c: In function 'PLATFORM_free_hid_device': /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/mac/hid.c:163:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 163 | struct input_report *rpt =3D dev->input_reports; | ^~~~~~ /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/mac/hid.c: In function 'get_string_property': /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/mac/hid.c:265:17: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 265 | CFIndex str_len =3D CFStringGetLength(str); | ^~~~~~~ /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/mac/hid.c:269:17: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 269 | CFIndex used_buf_len; | ^~~~~~~ /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/mac/hid.c: In function 'get_string_property_utf8': /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/mac/hid.c:304:17: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 304 | CFIndex str_len =3D CFStringGetLength(str); | ^~~~~~~ /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/mac/hid.c:308:17: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 308 | CFIndex used_buf_len; | ^~~~~~~ In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/SDL_hidapi.c:578: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/mac/hid.c: In function 'PLATFORM_hid_enumerate': /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/mac/hid.c:530:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 530 | CFSetRef device_set =3D IOHIDManagerCopyDevices(hid_mgr); | ^~~~~~~~ /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/mac/hid.c:540:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 540 | IOHIDDeviceRef *device_array =3D (IOHIDDeviceRef*)calloc(num_devices, sizeof(IOHIDDeviceRef)); | ^~~~~~~~~~~~~~ /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/mac/hid.c: In function 'PLATFORM_read_thread': /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/mac/hid.c:742:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 742 | CFRunLoopSourceContext ctx; | ^~~~~~~~~~~~~~~~~~~~~~ /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/mac/hid.c:759:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 759 | SInt32 code; | ^~~~~~ /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/mac/hid.c: In function 'PLATFORM_hid_open_path': /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/mac/hid.c:812:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 812 | CFSetRef device_set =3D IOHIDManagerCopyDevices(hid_mgr); | ^~~~~~~~ /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/mac/hid.c:815:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 815 | IOHIDDeviceRef *device_array =3D (IOHIDDeviceRef *)calloc(num_devices, sizeof(IOHIDDeviceRef)); | ^~~~~~~~~~~~~~ /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/mac/hid.c:848:33: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 848 | struct hid_device_list_node *node = =3D (struct hid_device_list_node *)calloc(1, sizeof(struct hid_device_list_node= )); | ^~~~~~ /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/mac/hid.c: In function 'PLATFORM_hid_get_feature_report': /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/mac/hid.c:1091:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 1091 | int skipped_report_id =3D 0; | ^~~ In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/SDL_hidapi.c:578: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/mac/hid.c: In function 'create_usage_match': /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/mac/hid.c:407:21: internal compiler error: in decode_addr_const, at varasm.c:3059 407 | const void *keys[2] =3D { (void *) CFSTR(kIOHIDDeviceUsagePageKey), (void *) CFSTR(kIOHIDDeviceUsageKey) }; | ^~~~ ``` `-save-temps` fails to produce i file, but gives the following output: ``` 36-111% sudo /opt/local/bin/gcc-mp-11 -save-temps -v -DSDL2_EXPORTS -DUSING_GENERATED_CONFIG_H -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libs= dl2/work/build/include -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libs= dl2/work/SDL2-2.0.22/include -pipe -Os -DNDEBUG -I/opt/local/include -idirafter "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsd= l2/work/SDL2-2.0.22/src/video/khronos" -I/opt/local/include/libusb-1.0 -D_THREAD_SAFE -Wshadow -fvisibility=3Dhidd= en -Wdeclaration-after-statement -fno-strict-aliasing -Wall -arch ppc -mmacosx-version-min=3D10.6 -fPIC -MD -MT CMakeFiles/SDL2.dir/src/hidapi/SDL_hidapi.c.o -MF CMakeFiles/SDL2.dir/src/hidapi/SDL_hidapi.c.o.d -o CMakeFiles/SDL2.dir/src/hidapi/SDL_hidapi.c.o -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/SDL_hidapi.c gcc-mp-11: warning: '-pipe' ignored because '-save-temps' specified Using built-in specs. COLLECT_GCC=3D/opt/local/bin/gcc-mp-11 Target: ppc-apple-darwin10 Configured with: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_gcc11/gcc11/wor= k/gcc-11.3.0/configure --prefix=3D/opt/local --build=3Dppc-apple-darwin10 --enable-languages=3Dc,c++,objc,obj-c++,lto,fortran --libdir=3D/opt/local/l= ib/gcc11 --includedir=3D/opt/local/include/gcc11 --infodir=3D/opt/local/share/info --mandir=3D/opt/local/share/man --datarootdir=3D/opt/local/share/gcc-11 --with-local-prefix=3D/opt/local --with-system-zlib --disable-nls --program-suffix=3D-mp-11 --with-gxx-include-dir=3D/opt/local/include/gcc11= /c++/ --with-gmp=3D/opt/local --with-mpfr=3D/opt/local --with-mpc=3D/opt/local --with-isl=3D/opt/local --with-zstd=3D/opt/local --enable-stage1-checking --disable-multilib --enable-lto --enable-libstdcxx-time --with-build-config=3Dbootstrap-debug --with-bugurl=3Dhttps://trac.macports.org/newticket --enable-host-shared --with-tune-cpu=3DG5 --disable-tls --with-as=3D/opt/local/bin/as --with-ld=3D/opt/local/bin/ld --with-ar=3D/opt/local/bin/ar --with-pkgversion=3D'MacPorts gcc11 11.3.0_0' Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 11.3.0 (MacPorts gcc11 11.3.0_0)=20 COLLECT_GCC_OPTIONS=3D'-save-temps' '-v' '-D' 'SDL2_EXPORTS' '-D' 'USING_GENERATED_CONFIG_H' '-I' '/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsd= l2/work/build/include' '-I' '/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsd= l2/work/SDL2-2.0.22/include' '-pipe' '-Os' '-D' 'NDEBUG' '-I' '/opt/local/include' '-idirafter' '/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsd= l2/work/SDL2-2.0.22/src/video/khronos' '-I' '/opt/local/include/libusb-1.0' '-D' '_THREAD_SAFE' '-Wshadow' '-fvisibility=3Dhidden' '-Wdeclaration-after-statement' '-fno-strict-aliasi= ng' '-Wall' '-fPIC' '-MD' '-MT' 'CMakeFiles/SDL2.dir/src/hidapi/SDL_hidapi.c.o' '-MF' 'CMakeFiles/SDL2.dir/src/hidapi/SDL_hidapi.c.o.d' '-o' 'CMakeFiles/SDL2.dir/src/hidapi/SDL_hidapi.c.o' '-c' '-m32' '-mmacosx-version-min=3D10.6' '-asm_macosx_version_min=3D10.6' '-nodefaulte= xport' '-dumpdir' 'CMakeFiles/SDL2.dir/src/hidapi/' /opt/local/libexec/gcc/ppc-apple-darwin10/11.3.0/cc1 -E -quiet -v -I /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/build/include -I /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/include -I /opt/local/include -I /opt/local/include/libusb-1.0 -MD CMakeFiles/SDL2.dir/src/hidapi/SDL_hidapi.c.d -MF CMakeFiles/SDL2.dir/src/hidapi/SDL_hidapi.c.o.d -MT CMakeFiles/SDL2.dir/src/hidapi/SDL_hidapi.c.o -D__DYNAMIC__ -D SDL2_EXPORTS= -D USING_GENERATED_CONFIG_H -D NDEBUG -D _THREAD_SAFE -idirafter /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/video/khronos /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/hidapi/SDL_hidapi.c -fPIC -m32 -mmacosx-version-min=3D10.6 -Wshadow -Wdeclaration-after-stateme= nt -Wall -fvisibility=3Dhidden -fno-strict-aliasing -fPIC -Os -fpch-preprocess= -o CMakeFiles/SDL2.dir/src/hidapi/SDL_hidapi.c.i ignoring nonexistent directory "/opt/local/lib/gcc11/gcc/ppc-apple-darwin10/11.3.0/../../../../../ppc-appl= e-darwin10/include" ignoring duplicate directory "/opt/local/include" as it is a non-system directory that duplicates a system directory #include "..." search starts here: #include <...> search starts here: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/build/include /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/include /opt/local/include/libusb-1.0 /opt/local/lib/gcc11/gcc/ppc-apple-darwin10/11.3.0/include /opt/local/include /opt/local/lib/gcc11/gcc/ppc-apple-darwin10/11.3.0/include-fixed /usr/include /System/Library/Frameworks /Library/Frameworks /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libsdl2/libsdl= 2/work/SDL2-2.0.22/src/video/khronos End of search list. cc1: fatal error: opening output file CMakeFiles/SDL2.dir/src/hidapi/SDL_hidapi.c.i: No such file or directory compilation terminated. ```=