Summary: | [PowerPC] sysutils/libcdio fails to build on FreeBSD 12.1-RELEASE-p1 32 bit: libapr-1.so: pragma GCC diagnostic not allowed inside functions | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | canardo <canardo909> | ||||||
Component: | Individual Port(s) | Assignee: | Jason E. Hale <jhale> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Only Me | CC: | mikael, powerpc | ||||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(jhale) |
||||||
Version: | Latest | ||||||||
Hardware: | powerpc | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
canardo
2019-12-17 22:17:09 UTC
Created attachment 210068 [details]
Disable GCC diagnostic pragma for older GCC
Canardo, could you please test this patch and report back? I am not able to test it myself.
Hi Jason, kind warning : I'm no developer, but I tried my best. Based on doc '4.4. Patching' Here is what I did: save the attach file (46 lines of text), under the name 'patch-lib_iso9660_iso9660.c' tranfert it to the FreeBSD machine, in folder '/usr/ports/sysutils/libcdio/files' then # cd /usr/ports/sysutils/libcdio # make clean # make install clean Then I get the same error as before, but I'm not sure your patch has been properly applied. Please find the full log attached. Any guidance is welcome, I'm willing to learn. Created attachment 210069 [details]
log after applying patch
(In reply to canardo from comment #3) Try this instead: rm /usr/ports/sysutils/libcdio/files/patch-lib_iso9660_iso9660.c fetch -o libcdio.patch 'https://bz-attachments.freebsd.org/attachment.cgi?id=210068&action=diff&format=raw&headers=1' patch -d /usr/ports/ < libcdio.patch make -C /usr/ports/sysutils/libcdio/ clean install (In reply to mikael.urankar from comment #4) Following your command lines above, patch has been successfully applied, and sysutils/libcdio is now built without errors. Thanks a lot for your help. A commit references this bug: Author: jhale Date: Fri Dec 20 13:03:25 UTC 2019 New revision: 520503 URL: https://svnweb.freebsd.org/changeset/ports/520503 Log: sysutils/libcdio: Fix build with GCC versions older than 4.6.0 which do not allow "#pragma GCC diagnostic" to be used inside of functions PR: 242693 Reported by: canardo <canardo909@gmx.com> Changes: head/sysutils/libcdio/files/patch-lib_iso9660_iso9660.c Patch committed. Thanks for the report and for testing! |