Summary: | devel/elfutils: fails to build with GCC 9+: libelfP.h:47:30: error: '__elf32_msize' specifies less restrictive attribute | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Gerald Pfeifer <gerald> | ||||
Component: | Individual Port(s) | Assignee: | Tobias Kortkamp <tobik> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Some People | CC: | cem | ||||
Priority: | --- | Flags: | cem:
maintainer-feedback+
|
||||
Version: | Latest | ||||||
Hardware: | amd64 | ||||||
OS: | Any | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 238330 | ||||||
Attachments: |
|
Description
Gerald Pfeifer
![]() Created attachment 205449 [details] elfutils.diff - Cherry pick upstream commit be8080bdd746ac2b07fb0bcad23a9677844bb200 [1] to fix build with GCC 9 [1] https://sourceware.org/git/?p=elfutils.git;a=commitdiff;h=be8080bdd746ac2b07fb0bcad23a9677844bb200 No objection to backporting an upstream fix. Thanks! Committed, thanks! A commit references this bug: Author: tobik Date: Mon Jul 1 14:55:02 UTC 2019 New revision: 505576 URL: https://svnweb.freebsd.org/changeset/ports/505576 Log: devel/elfutils: Fix build with GCC 9 In file included from ../config.h:132, from elf32_fsize.c:31: libelfP.h:47:30: error: '__elf32_msize' specifies less restrictive attribute than its target 'elf32_fsize': 'const' [-Werror=missing-attributes] 47 | #define __elfw2_(Bits, Name) __elf##Bits##_##Name | ^~~~~ http://package22.nyi.freebsd.org/data/112amd64-default-PR238330/2019-06-09_20h29m30s/logs/errors/elfutils-0.174_2.log Cherry pick upstream commit be8080bdd746ac2b07fb0bcad23a9677844bb200 PR: 238538 Submitted by: tobik Reported by: gerald, antoine (via exp-run) Approved by: cem (maintainer) Changes: head/devel/elfutils/Makefile head/devel/elfutils/files/patch-git_be8080bdd746 |