Bug 243616

Summary: deskutils/cfiles : Fails to build on FreeBSD 12.1-RELEASE-p1 powerpc 32 bit:error: 'for' loop initial declaration used outside C99 mode
Product: Ports & Packages Reporter: canardo <canardo909>
Component: Individual Port(s)Assignee: Yuri Victorovich <yuri>
Status: New ---    
Severity: Affects Only Me CC: danfe, pkubaj, powerpc, w.schwarzenfeld
Priority: ---    
Version: Latest   
Hardware: powerpc   
OS: Any   
URL: https://github.com/mananapr/cfiles/issues/51

Description canardo 2020-01-26 16:00:39 UTC
Problem found when building deskutils/cfiles on FreeBSD 12.1-RELEASE-p1 powerpc 32 bit, running on Apple Powerbook 17".



/usr/ports/deskutils/cfiles # make -DBATCH install clean
===>  License MIT accepted by the user
===>   cfiles-1.8_1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by cfiles-1.8_1 for building
===>  Extracting for cfiles-1.8_1
=> SHA256 Checksum OK for mananapr-cfiles-v1.8_GH0.tar.gz.
===>  Patching for cfiles-1.8_1
===>  Applying FreeBSD patches for cfiles-1.8_1
===>   cfiles-1.8_1 depends on file: /usr/local/lib/libncurses.so.6 - found
===>   cfiles-1.8_1 depends on package: pkgconf>=1.3.0_1 - found
===>  Configuring for cfiles-1.8_1
===>  Building for cfiles-1.8_1
cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  `pkg-config --cflags ncursesw` cf.c -o cfiles  `pkg-config --libs ncursesw`
cf.c: In function 'replace':
cf.c:592: error: 'for' loop initial declaration used outside C99 mode
*** [all] Error code 1

make[1]: stopped in /usr/ports/deskutils/cfiles/work/cfiles-1.8
1 error

make[1]: stopped in /usr/ports/deskutils/cfiles/work/cfiles-1.8
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/deskutils/cfiles
Comment 1 Piotr Kubaj freebsd_committer 2020-01-31 16:12:50 UTC
This port needs textproc/fzf, which uses go to build. Go is not available for powerpc.
Comment 2 Alexey Dokuchaev freebsd_committer 2020-02-01 01:40:59 UTC
(In reply to Piotr Kubaj from comment #1)
> This port needs textproc/fzf
It's just a run-time dependency.  Looking at the COMMENT, the port is a file manager, and textproc/fzf is one of the external tools it uses.  It has nothing to do with the build.
Comment 3 Yuri Victorovich freebsd_committer 2020-02-01 01:56:30 UTC
I reported it upstream.