https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-python/hypercorn-0.13.2 fails tests (lto). Discovered on: amd64 (internal ref: guru_tinderbox) NOTE: This machine uses lto with CFLAGS=-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing Here is a bit of explanation: -Werror=lto-type-mismatch: User to find possible runtime issues in packages. It likely means the package is unsafe to build & use with LTO. For projects using the same identifier but with different types across different files, they must be fixed to be consistent across the codebase. -Werror=odr: Used to find possible runtime issues in packages. These bugs are a problem anyway but may be even worse when combined with LTO. C++ code must comply with the One Definition Rule (ODR) - see https://en.cppreference.com/w/cpp/language/definition#One_Definition_Rule. -Werror=strict-aliasing: Used to find possible runtime issues in packages. These bugs are a problem anyway but may be even worse when combined with LTO. Workarounds: - If upstream is friendly and still active, file a bug upstream. For emulators, codecs, games, or multimedia packages, it may be worth just applying a workaround instead, as upstreams sometimes aren't receptive to these bugs (VALID FOR ALL). - Use the new 'filter-lto' from flag-o-matic.eclass as it's likely to be unsafe with LTO (VALID FOR lto-type-mismatch - odr). - Fix it yourself if interested, of course (VALID FOR ALL). - Append-flags -fno-strict-aliasing (VALID FOR strict-aliasing). - Use memcpy() but a union is sometimes suitable too (VALID FOR strict-aliasing). - -fstrict-aliasing is implied by -O2, so this must be addressed in some form (VALID FOR strict-aliasing). See also: https://marc.info/?l=gentoo-dev&m=165639574126280&w=2
Created attachment 795877 [details] build.log build log and emerge --info
Error(s) that match a know pattern: E AttributeError: 'coroutine' object has no attribute 'handle' E AttributeError: 'async_generator' object has no attribute 'reader' E AttributeError: 'coroutine' object has no attribute 'app_put' E AttributeError: 'coroutine' object has no attribute 'can_read' E AttributeError: 'coroutine' object has no attribute 'closed' E AttributeError: 'coroutine' object has no attribute 'config' E AttributeError: 'coroutine' object has no attribute 'connection' E AttributeError: 'coroutine' object has no attribute 'handle' E AttributeError: 'coroutine' object has no attribute 'idle' E AttributeError: 'coroutine' object has no attribute 'scope' E AttributeError: 'coroutine' object has no attribute 'state' E AttributeError: 'coroutine' object has no attribute 'stream' E AttributeError: 'coroutine' object has no attribute 'stream_send' FAILED tests/asyncio/test_keep_alive.py::test_http1_keep_alive - AttributeErr... FAILED tests/asyncio/test_keep_alive.py::test_http1_keep_alive_during - Attri... FAILED tests/asyncio/test_keep_alive.py::test_http1_keep_alive_pipelining - A... FAILED tests/asyncio/test_keep_alive.py::test_http1_keep_alive_pre_request - ... FAILED tests/protocol/test_h11.py::test_protocol_handle_closed - AttributeErr... FAILED tests/protocol/test_h11.py::test_protocol_handle_continue_request - At... FAILED tests/protocol/test_h11.py::test_protocol_handle_data_post_close - Att... FAILED tests/protocol/test_h11.py::test_protocol_handle_data_post_end - Attri... FAILED tests/protocol/test_h11.py::test_protocol_handle_data_post_response - ... FAILED tests/protocol/test_h11.py::test_protocol_handle_h2_prior - AttributeE... FAILED tests/protocol/test_h11.py::test_protocol_handle_h2c_upgrade - Attribu... FAILED tests/protocol/test_h11.py::test_protocol_handle_pipelining - Attribut... FAILED tests/protocol/test_h11.py::test_protocol_handle_protocol_error - Attr... FAILED tests/protocol/test_h11.py::test_protocol_handle_request - AttributeEr... FAILED tests/protocol/test_h11.py::test_protocol_handle_send_client_error - A... FAILED tests/protocol/test_h11.py::test_protocol_instant_recycle - AttributeE... FAILED tests/protocol/test_h11.py::test_protocol_send_body - AttributeError: ... FAILED tests/protocol/test_h11.py::test_protocol_send_data - AttributeError: ... FAILED tests/protocol/test_h11.py::test_protocol_send_end_data - AttributeErr... FAILED tests/protocol/test_h11.py::test_protocol_send_response - AttributeErr... FAILED tests/protocol/test_h11.py::test_protocol_send_stream_closed[False-expected1] FAILED tests/protocol/test_h11.py::test_protocol_send_stream_closed[True-expected0] FAILED tests/protocol/test_http_stream.py::test_closed_app_send_noop - Attrib... FAILED tests/protocol/test_http_stream.py::test_closure - AttributeError: 'co... FAILED tests/protocol/test_http_stream.py::test_handle_body - AttributeError:... FAILED tests/protocol/test_http_stream.py::test_handle_closed - AttributeErro... FAILED tests/protocol/test_http_stream.py::test_handle_end_body - AttributeEr... FAILED tests/protocol/test_http_stream.py::test_handle_request_http_1[1.0] - ... FAILED tests/protocol/test_http_stream.py::test_handle_request_http_1[1.1] - ... FAILED tests/protocol/test_http_stream.py::test_handle_request_http_2 - Attri... FAILED tests/protocol/test_http_stream.py::test_invalid_server_name - Attribu... FAILED tests/protocol/test_http_stream.py::test_send_app_error - AttributeErr... FAILED tests/protocol/test_http_stream.py::test_send_invalid_message[200-headers1-] FAILED tests/protocol/test_http_stream.py::test_send_invalid_message[200-headers2-Body] FAILED tests/protocol/test_http_stream.py::test_send_invalid_message[201 NO CONTENT-headers0-] FAILED tests/protocol/test_http_stream.py::test_send_invalid_message_given_state[ASGIHTTPState.CLOSED-http.response.body] FAILED tests/protocol/test_http_stream.py::test_send_invalid_message_given_state[ASGIHTTPState.CLOSED-http.response.start] FAILED tests/protocol/test_http_stream.py::test_send_invalid_message_given_state[ASGIHTTPState.REQUEST-not_a_real_type] FAILED tests/protocol/test_http_stream.py::test_send_invalid_message_given_state[ASGIHTTPState.RESPONSE-http.response.start] FAILED tests/protocol/test_http_stream.py::test_send_push - AttributeError: '... FAILED tests/protocol/test_http_stream.py::test_send_response - AttributeErro... FAILED tests/protocol/test_http_stream.py::test_stream_idle - AttributeError:... FAILED tests/protocol/test_ws_stream.py::test_closed_app_send_noop - Attribut... FAILED tests/protocol/test_ws_stream.py::test_closure - AttributeError: 'coro... FAILED tests/protocol/test_ws_stream.py::test_handle_closed - AttributeError:... FAILED tests/protocol/test_ws_stream.py::test_handle_connection - AttributeEr... FAILED tests/protocol/test_ws_stream.py::test_handle_request - AttributeError... FAILED tests/protocol/test_ws_stream.py::test_invalid_server_name - Attribute... FAILED tests/protocol/test_ws_stream.py::test_pings - AttributeError: 'corout... FAILED tests/protocol/test_ws_stream.py::test_send_accept - AttributeError: '... FAILED tests/protocol/test_ws_stream.py::test_send_accept_with_additional_headers FAILED tests/protocol/test_ws_stream.py::test_send_app_error_connected - Attr... FAILED tests/protocol/test_ws_stream.py::test_send_app_error_handshake - Attr... FAILED tests/protocol/test_ws_stream.py::test_send_connection - AttributeErro... FAILED tests/protocol/test_ws_stream.py::test_send_invalid_http_message[200-headers1-] FAILED tests/protocol/test_ws_stream.py::test_send_invalid_http_message[200-headers2-Body] FAILED tests/protocol/test_ws_stream.py::test_send_invalid_http_message[201 NO CONTENT-headers0-] FAILED tests/protocol/test_ws_stream.py::test_send_invalid_message_given_state[ASGIWebsocketState.CLOSED-websocket.http.response.body] FAILED tests/protocol/test_ws_stream.py::test_send_invalid_message_given_state[ASGIWebsocketState.CLOSED-websocket.http.response.start] FAILED tests/protocol/test_ws_stream.py::test_send_invalid_message_given_state[ASGIWebsocketState.CLOSED-websocket.send] FAILED tests/protocol/test_ws_stream.py::test_send_invalid_message_given_state[ASGIWebsocketState.CONNECTED-websocket.http.response.body] FAILED tests/protocol/test_ws_stream.py::test_send_invalid_message_given_state[ASGIWebsocketState.CONNECTED-websocket.http.response.start] FAILED tests/protocol/test_ws_stream.py::test_send_invalid_message_given_state[ASGIWebsocketState.HANDSHAKE-websocket.send] FAILED tests/protocol/test_ws_stream.py::test_send_invalid_message_given_state[ASGIWebsocketState.RESPONSE-websocket.accept] FAILED tests/protocol/test_ws_stream.py::test_send_invalid_message_given_state[ASGIWebsocketState.RESPONSE-websocket.send] FAILED tests/protocol/test_ws_stream.py::test_send_reject - AttributeError: '... FAILED tests/protocol/test_ws_stream.py::test_stream_idle[ASGIWebsocketState.CLOSED-True] FAILED tests/protocol/test_ws_stream.py::test_stream_idle[ASGIWebsocketState.CONNECTED-False] FAILED tests/protocol/test_ws_stream.py::test_stream_idle[ASGIWebsocketState.HANDSHAKE-False] FAILED tests/protocol/test_ws_stream.py::test_stream_idle[ASGIWebsocketState.HTTPCLOSED-True] FAILED tests/protocol/test_ws_stream.py::test_stream_idle[ASGIWebsocketState.RESPONSE-False]
Treecleaned: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=eaa6e4e7161d7914c7a7f49d8e4e9ee59e720d7a