Bug 204645 - devel/binutils: Fails to build if earlier version is present
Summary: devel/binutils: Fails to build if earlier version is present
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Baptiste Daroussin
URL:
Keywords: easy, needs-qa, patch
Depends on:
Blocks:
 
Reported: 2015-11-17 21:53 UTC by Sergey Voytenko
Modified: 2018-02-23 23:22 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (bapt)
koobs: merge-quarterly?


Attachments
Patch for port's Makefile (368 bytes, patch)
2015-11-17 21:53 UTC, Sergey Voytenko
no flags Details | Diff
another way to fix (379 bytes, patch)
2016-09-11 21:26 UTC, Baptiste Daroussin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Voytenko 2015-11-17 21:53:47 UTC
Created attachment 163267 [details]
Patch for port's Makefile

OS version: FreeBSD 10.2-RELEASE-p7
Arch: amd64

Previous version of binutils is 2.23.2

Build error caused by new define "ATTRIBUTE_RETURNS_NONNULL". I didn't remove
old version before build new one. So, in /usr/local/include was ansidecl.h from old package version. Solution for me was to add "-I../include" before usual path in Makefile's variable "CFLAGS" (see attachment).
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2015-11-18 03:05:38 UTC
Might be worth isolating why the -I../Include path isn't already in (and before all other include paths) in CFLAGS. Feels like a root cause begging to be identified and fixed (and sent upstream)
Comment 2 Baptiste Daroussin freebsd_committer freebsd_triage 2016-09-11 21:26:53 UTC
Created attachment 174666 [details]
another way to fix
Comment 3 Baptiste Daroussin freebsd_committer freebsd_triage 2016-09-11 21:27:10 UTC
can you try the new patch?
Comment 4 Sergey Voytenko 2016-09-17 14:05:59 UTC
Sorry, I can't. I have no suitable workspace now.
Comment 5 Walter Schwarzenfeld freebsd_triage 2018-01-14 00:08:05 UTC
10.2 is EOL. We have version 2.28. Is this still relevant? Or overcome by events?