Bug 231944 - sysutils/fusefs-sshfs: fix build with base GCC
Summary: sysutils/fusefs-sshfs: fix build with base GCC
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: Muhammad Moinur Rahman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-04 14:50 UTC by Piotr Kubaj
Modified: 2018-11-05 23:31 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (bofh)


Attachments
patch (1.34 KB, patch)
2018-10-04 14:50 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 2018-10-04 14:50:15 UTC
Created attachment 197779 [details]
patch

When compiling with base GCC, as is on architectures that use GCC in base, building this port fails.
FAILED: sshfs@exe/cache.c.o
cc -Isshfs@exe -I. -I.. -I../ -I/usr/local/include/fuse3 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -pipe -D_FILE_OFF
SET_BITS=64 -Wall -Winvalid-pch -O3 -D_REENTRANT -DHAVE_CONFIG_H -Wall -Wextra -Wno-sign-compare -Wmissing-declarations -Wwrite-strings -Wno-unused-result -O2
-DNDEBUG -fno-strict-aliasing -pthread -DFUSE_USE_VERSION=31  -MD -MQ 'sshfs@exe/cache.c.o' -MF 'sshfs@exe/cache.c.o.d' -o 'sshfs@exe/cache.c.o' -c ../cache.c
cc1: error: unrecognized command line option "-Wno-unused-result"

Fix it by not using "-Wno-unused-result" flag.

Tested on powerpc64 and amd64.

Hardware sponsored by IntegriCloud.
Comment 1 commit-hook freebsd_committer freebsd_triage 2018-11-05 23:31:30 UTC
A commit references this bug:

Author: linimon
Date: Mon Nov  5 23:30:50 UTC 2018
New revision: 484258
URL: https://svnweb.freebsd.org/changeset/ports/484258

Log:
  On architectures that use GCC in base, the "-Wno-unused-result" flag
  must be disabled to fix the build.

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

Changes:
  head/sysutils/fusefs-sshfs/Makefile
  head/sysutils/fusefs-sshfs/files/patch-meson.build