Bug 235991 - sysutils/moosefs3-client: fix build with GCC-based architectures
Summary: sysutils/moosefs3-client: fix build with GCC-based architectures
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Mark Linimon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-24 12:23 UTC by Piotr Kubaj
Modified: 2019-03-10 19:50 UTC (History)
4 users (show)

See Also:
freebsd: maintainer-feedback+


Attachments
patch (359 bytes, patch)
2019-02-24 12:23 UTC, Piotr Kubaj
no flags Details | Diff
patch (852 bytes, patch)
2019-02-24 14:42 UTC, Piotr Kubaj
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Kubaj freebsd_committer freebsd_triage 2019-02-24 12:23:22 UTC
Created attachment 202322 [details]
patch

Add USES=compiler:c11 to fix build on GCC architectures. GCC 8 doesn't seem to have the bug that base GCC has.

Tested on powerpc64 and amd64.

Hardware sponsored by IntegriCloud.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2019-02-24 13:52:19 UTC
I'm confused.  There is no 'compiler:c11' in the patch.
Comment 2 Piotr Kubaj freebsd_committer freebsd_triage 2019-02-24 14:42:35 UTC
Created attachment 202329 [details]
patch

Sorry, it needed to be added to the master port.
Comment 3 Piotr Konopelko (MooseFS) 2019-02-25 18:32:56 UTC
Jakub @acid,
Could you please take a look at this patch?

Thanks,
Piotr
Comment 4 commit-hook freebsd_committer freebsd_triage 2019-03-10 16:58:39 UTC
A commit references this bug:

Author: linimon
Date: Sun Mar 10 16:57:37 UTC 2019
New revision: 495300
URL: https://svnweb.freebsd.org/changeset/ports/495300

Log:
  Add compiler:c11 to USES to fix build on gcc-based architectures.

  PR:		235991
  Submitted by:	Piotr Kubaj
  Approved by:	portmgr (tier-2 blanket)

Changes:
  head/sysutils/moosefs3-master/Makefile
Comment 5 Piotr Konopelko (MooseFS) 2019-03-10 17:08:47 UTC
Hello,
Thanks for the patch. We were discussing it internally but I forgot to update this thread, I'm sorry.

We tested this change on our builders and everything was built fine.

We formally use gnu99 standard in MooseFS (not c11) and I wanted to ask, why there is "compiler:c11" in the patch and not something like "gcc >= 8"? (As stated in comment #0, CGG 8 doesn't seem to have this bug).

Thanks,
Piotr
Comment 6 Piotr Kubaj freebsd_committer freebsd_triage 2019-03-10 19:49:01 UTC
(In reply to Piotr Robert Konopelko (MooseFS) from comment #5)
Adding USES=compiler is just a much simpler fix than adding .if block with USE_GCC.

Besides, I'm not really sure whether it was fixed in GCC 8, or earlier.
Comment 7 Piotr Konopelko (MooseFS) 2019-03-10 19:50:35 UTC
(In reply to Piotr Kubaj from comment #6)

Thanks Piotr for clarification.

Cheers,
Piotr