Title: Matplotlib generates invalid ft2font if -fno-lto gcc CFLAGS used · Issue #19227 · matplotlib/matplotlib · GitHub
Open Graph Title: Matplotlib generates invalid ft2font if -fno-lto gcc CFLAGS used · Issue #19227 · matplotlib/matplotlib
X Title: Matplotlib generates invalid ft2font if -fno-lto gcc CFLAGS used · Issue #19227 · matplotlib/matplotlib
Description: Bug report Bug summary If matplotlib is build with -fno-lto CFLAGS then the build is completed "successfully" but will fail to import This was 1st spotted with matplotlib-3.3.0 and did not occur again with later versions until 3.3.3 TEST...
Open Graph Description: Bug report Bug summary If matplotlib is build with -fno-lto CFLAGS then the build is completed "successfully" but will fail to import This was 1st spotted with matplotlib-3.3.0 and did not occur ag...
X Description: Bug report Bug summary If matplotlib is build with -fno-lto CFLAGS then the build is completed "successfully" but will fail to import This was 1st spotted with matplotlib-3.3.0 and did no...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/19227
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Matplotlib generates invalid ft2font if -fno-lto gcc CFLAGS used","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nIf matplotlib is build with -fno-lto CFLAGS then the build is completed \"successfully\" but will fail to import\r\nThis was 1st spotted with matplotlib-3.3.0 and did not occur again with later versions until 3.3.3\r\n\r\n\r\nTEST 1: \r\nCFLAGS=\"-O2 -pipe -fomit-frame-pointer -march=native\" \r\n\r\n```\r\nemerge matplotlib\r\nCalculating dependencies... done!\r\n\u003e\u003e\u003eVerifying ebuild manifests\r\n\u003e\u003e\u003eEmerging (1 of 1) dev-python/matplotlib-3.3.3::gentoo\r\n\u003e\u003e\u003eInstalling (1 of 1) dev-python/matplotlib-3.3.3::gentoo\r\n\u003e\u003e\u003e Jobs: 1 of 1 complete Load avg: 0.93, 0.65, 0.92\r\n\u003e\u003e\u003eAuto-cleaning packages...\r\n```\r\n```\r\nfluidmotion ~ # python\r\nPython 3.8.7 (default, Dec 22 2020, 17:30:32)\r\n[GCC 10.2.0] on linux\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\u003e\u003e\u003e import matplotlib\r\n\u003e\u003e\u003e\r\n\r\n```\r\n\r\n\r\nBUILD LOG: dev-python:matplotlib-3.3.3:20210103-123758.log\r\n\r\n---------------------------------------------------------------------------\r\n\r\nTEST 2: \r\nCFLAGS=\"-O2 -pipe -fomit-frame-pointer -march=native -fno-lto\" \r\n\r\n```\r\nemerge matplotlib\r\nCalculating dependencies... done!\r\n\u003e\u003e\u003e Verifying ebuild manifests\r\n\u003e\u003e\u003e Emerging (1 of 1) dev-python/matplotlib-3.3.3::gentoo\r\n\u003e\u003e\u003e Installing (1 of 1) dev-python/matplotlib-3.3.3::gentoo\r\n\u003e\u003e\u003e Jobs: 1 of 1 complete Load avg: 0.73, 0.57, 0.84\r\n\u003e\u003e\u003e Auto-cleaning packages...\r\n```\r\n```\r\nfluidmotion /var/log/portage # python\r\nPython 3.8.7 (default, Dec 22 2020, 17:30:32)\r\n[GCC 10.2.0] on linux\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\u003e\u003e\u003e import matplotlib\r\n\r\nTraceback (most recent call last):\r\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n File \"/usr/lib/python3.8/site-packages/matplotlib/__init__.py\", line 174, in \u003cmodule\u003e\r\n _check_versions()\r\n File \"/usr/lib/python3.8/site-packages/matplotlib/__init__.py\", line 159, in _check_versions\r\n from . import ft2font\r\nImportError: dynamic module does not define module export function (PyInit_ft2font)\r\n\u003e\u003e\u003e\r\n```\r\n\r\nBUILD LOG:dev-python:matplotlib-3.3.3:20210103-124106.log\r\n\r\n\r\n\r\nDifference:\r\n/var/tmp/portage/dev-python/matplotlib-3.3.3/work/matplotlib-3.3.3-python3_8/build/temp.linux-x86_64-3.8/src/checkdep_freetype2.o: plugin needed to handle lto object\r\n/var/tmp/portage/dev-python/matplotlib-3.3.3/work/matplotlib-3.3.3-python3_8/build/temp.linux-x86_64-3.8/src/checkdep_freetype2.o: plugin needed to handle lto object\r\n/var/tmp/portage/dev-python/matplotlib-3.3.3/work/matplotlib-3.3.3-python3_8/build/temp.linux-x86_64-3.8/src/ft2font.o: plugin needed to handle lto object\r\n/var/tmp/portage/dev-python/matplotlib-3.3.3/work/matplotlib-3.3.3-python3_8/build/temp.linux-x86_64-3.8/src/ft2font.o: plugin needed to handle lto object\r\n/var/tmp/portage/dev-python/matplotlib-3.3.3/work/matplotlib-3.3.3-python3_8/build/temp.linux-x86_64-3.8/src/ft2font_wrapper.o: plugin needed to handle lto object\r\n/var/tmp/portage/dev-python/matplotlib-3.3.3/work/matplotlib-3.3.3-python3_8/build/temp.linux-x86_64-3.8/src/ft2font_wrapper.o: plugin needed to handle lto object\r\n/var/tmp/portage/dev-python/matplotlib-3.3.3/work/matplotlib-3.3.3-python3_8/build/temp.linux-x86_64-3.8/src/mplutils.o: plugin needed to handle lto object\r\n/var/tmp/portage/dev-python/matplotlib-3.3.3/work/matplotlib-3.3.3-python3_8/build/temp.linux-x86_64-3.8/src/mplutils.o: plugin needed to handle lto object\r\n/var/tmp/portage/dev-python/matplotlib-3.3.3/work/matplotlib-3.3.3-python3_8/build/temp.linux-x86_64-3.8/src/py_converters.o: plugin needed to handle lto object\r\n/var/tmp/portage/dev-python/matplotlib-3.3.3/work/matplotlib-3.3.3-python3_8/build/temp.linux-x86_64-3.8/src/py_converters.o: plugin needed to handle lto object\r\n/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/crtendS.o: plugin needed to handle lto object\r\n\r\n\r\n\r\nRAW build logs can be found here: https://bugs.gentoo.org/736122\r\n","author":{"url":"https://github.com/eeyrjmr","@type":"Person","name":"eeyrjmr"},"datePublished":"2021-01-03T17:33:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/19227/matplotlib/issues/19227"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c9531fd7-e3f0-17c9-447b-4fe439875ab4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E7BE:2039A5:184FD:1FD77:6A551995 |
| html-safe-nonce | 3b3fdac98dd199116179ba31954f209e5f83974af07d0d8561474c360e06c2d9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0JFOjIwMzlBNToxODRGRDoxRkQ3Nzo2QTU1MTk5NSIsInZpc2l0b3JfaWQiOiIzOTc1ODYxNjgxNjQxNTYwNDY5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | af4706c2fb6d1868da2826756836184d5d5a545c095dffdb3e21a0cbc15067c2 |
| hovercard-subject-tag | issue:777682534 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/19227/issue_layout |
| twitter:image | https://opengraph.githubassets.com/24b903eb3e52758ef68bb08643a9cf257407d2bd88c72241062b8c8e37ed63ed/matplotlib/matplotlib/issues/19227 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/24b903eb3e52758ef68bb08643a9cf257407d2bd88c72241062b8c8e37ed63ed/matplotlib/matplotlib/issues/19227 |
| og:image:alt | Bug report Bug summary If matplotlib is build with -fno-lto CFLAGS then the build is completed "successfully" but will fail to import This was 1st spotted with matplotlib-3.3.0 and did not occur ag... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | eeyrjmr |
| hostname | github.com |
| expected-hostname | github.com |
| None | 682d273eacb2ac51680c6eb9c0b270f029f7ce74c32090f319083c34497e28a5 |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b6d37c6470adadff4194742daaab9a817cc4980 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width