New submission from Bernhard Rosenkraenzer <b...@lindev.ch>:

Python 3.7.0b3 fails to build with clang 6.0 (implicit cast from void* to a 
different pointer type is an error now):

/usr/bin/clang++ -c -Wno-unused-result -Wsign-compare -Wunreachable-code 
-DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -Os -gdwarf-4 -Wstrict-aliasing=2 
-pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 
-fstack-protector-strong --param=ssp-buffer-size=4  -fPIC -flto -O3 -g -Os 
-gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security 
-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4  -fPIC 
-flto -O3 -D_GNU_SOURCE -fPIC -fwrapv -I/usr/include/ncursesw -flto -Os 
-gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security 
-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4  -fPIC 
-flto -O3 -D_GNU_SOURCE -fPIC -fwrapv -I/usr/include/ncursesw  -Wextra 
-Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers 
-Werror=implicit-function-declaration -Os -gdwarf-4 -Wstrict-aliasing=2 -pipe 
-Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong 
--param=ssp-buffer-size=4  -fPIC -flto -O3 -D_GNU_
 SOURCE -fPIC -fwrapv -I/usr/include/ncursesw -fprofile-instr-generate  -I. 
-I./Include -Os -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat 
-Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong 
--param=ssp-buffer-size=4  -fPIC -flto -O3 -D_GNU_SOURCE -fPIC -fwrapv 
-I/usr/include/ncursesw -Os -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat 
-Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong 
--param=ssp-buffer-size=4  -fPIC -flto -O3 -D_GNU_SOURCE -fPIC -fwrapv 
-I/usr/include/ncursesw -fPIC -DPy_BUILD_CORE -o Programs/_testembed.o 
./Programs/_testembed.c
clang-6.0: warning: treating 'c' input as 'c++' when in C++ mode, this behavior 
is deprecated [-Wdeprecated]
./Programs/_testembed.c:173:34: warning: ISO C++11 does not allow conversion 
from string literal to 'wchar_t *' [-Wwritable-strings]
    wchar_t *static_warnoption = L"once";
                                 ^
./Programs/_testembed.c:174:31: warning: ISO C++11 does not allow conversion 
from string literal to 'wchar_t *' [-Wwritable-strings]
    wchar_t *static_xoption = L"also_not_an_option=2";
                              ^
./Programs/_testembed.c:177:14: error: cannot initialize a variable of type 
'wchar_t *' with an rvalue of type 'void *'
    wchar_t *dynamic_once_warnoption = calloc(warnoption_len+1, 
sizeof(wchar_t));
             ^                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Programs/_testembed.c:178:14: error: cannot initialize a variable of type 
'wchar_t *' with an rvalue of type 'void *'
    wchar_t *dynamic_xoption = calloc(xoption_len+1, sizeof(wchar_t));
             ^                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings and 2 errors generated.
make[3]: *** [Makefile:777: Programs/_testembed.o] Error 1

----------
components: Tests
files: python-3.7.0b3-clang-6.0.patch
keywords: patch
messages: 314666
nosy: bero
priority: normal
severity: normal
status: open
title: Python 3.7.0b3 fails to build with clang 6.0
type: compile error
versions: Python 3.7
Added file: https://bugs.python.org/file47505/python-3.7.0b3-clang-6.0.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33182>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to