Bug 205607

Summary: lang/fpc Building for fpc-3.0.0 fails on i386
Product: Ports & Packages Reporter: p5B2EA84B3
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: marino
Priority: ---    
Version: Latest   
Hardware: i386   
OS: Any   

Description p5B2EA84B3 2015-12-25 22:44:05 UTC
Building lang/fpc fails on poudriere i386 like this:

===>  Building for fpc-3.0.0
##### STARTING COMPILER #####
(cd /wrkdirs/usr/ports/lang/fpc/work/fpc-release_3_0_0/compiler && /usr/bin/env XDG_DATA_HOME=/wrkdirs/usr/ports/lang/fpc/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/lang/fpc/work  HOME=/wrkdirs/usr/ports/lang/fpc/work TMPDIR="/tmp" NO_PIE=yes NO_DEBUG_FILES=yes SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  LIBDIR="/usr/lib"  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector -fno-strict-aliasing"  CPP="cpp" CPPFLAGS=""  LDFLAGS=" -fstack-protector" LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector -fno-strict-aliasing "  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 444"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"  LDVER=ld.bfd gmake cycle FPCMAKE=/wrkdirs/usr/ports/lang/fpc/work/fpc-release_3_0_0/utils/fpcm/bin/i386-freebsd/fpcmake  FPCTARGET=i386-freebsd  ARCH=i386  OPT=""  BSDHIER=1  INSTALL="install  -m 0644"  INSTALLEXE="install  -s -m 555"  INSTALLSCR="install  -m 555"  INSTALL_PREFIX=/wrkdirs/usr/ports/lang/fpc/work/stage/usr/local DESTDIR=/wrkdirs/usr/ports/lang/fpc/work/stage PP=/wrkdirs/usr/ports/lang/fpc/work/ppc386-2.6.4-freebsd)
gmake[1]: Entering directory '/wrkdirs/usr/ports/lang/fpc/work/fpc-release_3_0_0/compiler'
gmake tempclean ppc3.exe
gmake[2]: Entering directory '/wrkdirs/usr/ports/lang/fpc/work/fpc-release_3_0_0/compiler'
/bin/rm -f ppcross ppc ppc1.exe ppc2.exe ppc3.exe ./msg2inc.exe pp1.wpo pp2.wpo
gmake 'OLDFPC=' next CYCLELEVEL=1
gmake[3]: Entering directory '/wrkdirs/usr/ports/lang/fpc/work/fpc-release_3_0_0/compiler'
gmake rtlclean rtl
gmake[4]: Entering directory '/wrkdirs/usr/ports/lang/fpc/work/fpc-release_3_0_0/compiler'
gmake -C  clean
gmake[5]: Entering directory '/wrkdirs/usr/ports/lang/fpc/work/fpc-release_3_0_0/compiler'
gmake[5]: *** clean: No such file or directory.  Stop.
gmake[5]: Leaving directory '/wrkdirs/usr/ports/lang/fpc/work/fpc-release_3_0_0/compiler'
Makefile:4078: recipe for target 'rtlclean' failed
gmake[4]: *** [rtlclean] Error 2
gmake[4]: Leaving directory '/wrkdirs/usr/ports/lang/fpc/work/fpc-release_3_0_0/compiler'
Makefile:3967: recipe for target 'next' failed
gmake[3]: *** [next] Error 2
gmake[3]: Leaving directory '/wrkdirs/usr/ports/lang/fpc/work/fpc-release_3_0_0/compiler'
Makefile:3972: recipe for target 'ppc1.exe' failed
gmake[2]: *** [ppc1.exe] Error 2
gmake[2]: Leaving directory '/wrkdirs/usr/ports/lang/fpc/work/fpc-release_3_0_0/compiler'
Makefile:3984: recipe for target 'cycle' failed
gmake[1]: *** [cycle] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/lang/fpc/work/fpc-release_3_0_0/compiler'
*** Error code 2

Stop.
make: stopped in /usr/ports/lang/fpc
====>> Cleaning up wrkdir
===>  Cleaning for fpc-3.0.0
[1;33m====>>[0;0m [1;33mWarning: Leftover processes:
[0;0mUSER   PID %CPU %MEM   VSZ  RSS TT  STAT STARTED    TIME COMMAND
build of lang/fpc ended at Fri Dec 25 23:33:02 CET 2015
build time: 00:00:30
!!! build failure encountered !!!
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2015-12-25 22:44:05 UTC
Maintainer informed via mail
Comment 2 John Marino freebsd_committer freebsd_triage 2015-12-26 00:34:43 UTC
http://portsmon.freebsd.org/portoverview.py?category=lang&portname=fpc

There are fresh packages in ALL versions of i386.
9.3, 10.1, and current.

Thus, it builds on i386 on known clean jails.

Maybe you can use poudriere to ensure a clean jail during the build.
Comment 3 John Marino freebsd_committer freebsd_triage 2015-12-26 00:37:53 UTC
re-reading I see you did use poudriere.

Nevertheless, it's building fine on official package builders.
Comment 4 p5B2EA84B3 2015-12-30 19:52:31 UTC
(In reply to John Marino from comment #2)

> There are fresh packages in ALL versions of i386.
> 9.3, 10.1, and current.

What about 10.2? Here runs:
building for: FreeBSD 10_2i386-default-mybox-job-02 10.2-RELEASE-p2 FreeBSD 10.2-RELEASE-p2 i386

Did you notice this ppc386-2.6.4 in my build log?
INSTALL_PREFIX=/wrkdirs/usr/ports/lang/fpc/work/stage/usr/local DESTDIR=/wrkdirs/usr/ports/lang/fpc/work/stage PP=/wrkdirs/usr/ports/lang/fpc/work/ppc386-2.6.4-freebsd)
Comment 5 John Marino freebsd_committer freebsd_triage 2015-12-30 20:36:45 UTC
You need a pascal compiler to build a pascal compiler.

FPC 2.6.4. is building FPC 3.0.0.  This is intended.

You aren't really proposing that FreeBSD 10.1/i386 works but globally (for everybody) FPC won't build on 10.2/i386 are you?

I think I even tested it on 10.2/i386 myself before this was committed.
Comment 6 John Marino freebsd_committer freebsd_triage 2016-01-09 12:08:05 UTC
Okay, portsmon is still all green with regards to FPC 3.0.0, all platforms, all archs.

I did confirm that it's 10.1 that is building the packages, but I think that just means the official are comfortable that 10.2 will run all 10.1 packages (the policy is to use earlier releases to build packages when that's the case)

Given that and time passed since last feedback, I'm closing the PR.  Please reopen in new information comes.