Bug 197794 - sysutils/cdrtools: fails to build on armv6
Summary: sysutils/cdrtools: fails to build on armv6
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm Any
: --- Affects Only Me
Assignee: Marius Strobl
URL: http://chips.ysv.freebsd.org/data/11a...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-18 17:52 UTC by Mikael Urankar
Modified: 2015-12-29 14:02 UTC (History)
1 user (show)

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


Attachments
fix build on armv6 (369 bytes, patch)
2015-02-18 17:53 UTC, Mikael Urankar
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mikael Urankar freebsd_committer 2015-02-18 17:52:32 UTC
Hi,

The port fails to build on armv6:
/nxb-bin/usr/bin/cc -O -pipe -fno-strict-aliasing -c -o OBJ/armv6-freebsd-cc/align_test.o align_test.c  
align_test.c:2:10: fatal error: 'schily/mconfig.h' file not found
#include <schily/mconfig.h>

I've tried to tweak CDRTLSTARGET to ${ARCH:S/armv6/arm/}-${OPSYS:tl}-cc to not avail, while it builds fine it won't install: it wants to install binaries from OBJ/armv6-freebsd-cc and not OBJ/arm-freebsd-cc.

The attached patch should fix that.

build log:
http://mikael.urankar.free.fr/FreeBSD/arm/build_logs/cdrtools-3.00_2.log
Comment 1 Bugzilla Automation freebsd_committer 2015-02-18 17:52:32 UTC
Auto-assigned to maintainer marius@FreeBSD.org
Comment 2 Mikael Urankar freebsd_committer 2015-02-18 17:53:01 UTC
Created attachment 153153 [details]
fix build on armv6
Comment 3 Marius Strobl freebsd_committer 2015-02-18 23:36:35 UTC
The patch in attachment 153153 [details] only hacks around the problem; please provide
the output of:
o `uname -m`,
o `uname -p`,
o `make -VARCH` in the directory of that port
on an armv6 host.
Comment 4 Mikael Urankar freebsd_committer 2015-02-19 08:02:38 UTC
Output of what you've requested:
uname -m = arm
uname -p = armv6
make -VARCH = armv6
Comment 5 Glen Barber freebsd_committer 2015-07-07 13:49:36 UTC
This is still an issue:

/bin/sh: makedepend: not found
../RULES/rules.top:70: ../RULES/arm-freebsd-cc.rul: No such file or directory
/nxb-bin/usr/bin/cc -O2 -pipe -mfloat-abi=softfp -fno-strict-aliasing -c -o OBJ/armv6-freebsd-cc/readcd.o readcd.c  
readcd.c:2:10: fatal error: 'schily/mconfig.h' file not found
#include <schily/mconfig.h>
         ^
1 error generated.
../RULES/r-gmake.obj:49: recipe for target 'OBJ/armv6-freebsd-cc/readcd.o' failed
gmake[2]: *** [OBJ/armv6-freebsd-cc/readcd.o] Error 1
gmake[2]: Leaving directory '/wrkdirs/usr/ports/sysutils/cdrtools/work/cdrtools-3.00/readcd'
        ==> MAKING "all" ON SUBDIRECTORY "SRCROOT/scgcheck"
gmake[2]: Entering directory '/wrkdirs/usr/ports/sysutils/cdrtools/work/cdrtools-3.00/scgcheck'
../RULES/rules.top:70: ../RULES/arm-freebsd-cc.rul: No such file or directory
        ==> MAKING SYMLINKS in .
        ==> MAKING DIRECTORY "OBJ/armv6-freebsd-cc"
        ==> MAKING DEPENDENCIES "OBJ/armv6-freebsd-cc/cd_misc.d"
/bin/sh: makedepend: not found
        ==> MAKING DEPENDENCIES "OBJ/armv6-freebsd-cc/scsi_cdr.d"
/bin/sh: makedepend: not found
        ==> MAKING DEPENDENCIES "OBJ/armv6-freebsd-cc/scsi_scan.d"
/bin/sh: makedepend: not found
        ==> MAKING DEPENDENCIES "OBJ/armv6-freebsd-cc/dmaresid.d"
/bin/sh: makedepend: not found
        ==> MAKING DEPENDENCIES "OBJ/armv6-freebsd-cc/sense.d"
/bin/sh: makedepend: not found
        ==> MAKING DEPENDENCIES "OBJ/armv6-freebsd-cc/scgcheck.d"
/bin/sh: makedepend: not found
../RULES/rules.top:70: ../RULES/arm-freebsd-cc.rul: No such file or directory
/nxb-bin/usr/bin/cc -O2 -pipe -mfloat-abi=softfp -fno-strict-aliasing -c -o OBJ/armv6-freebsd-cc/scgcheck.o scgcheck.c  
scgcheck.c:2:10: fatal error: 'schily/mconfig.h' file not found
#include <schily/mconfig.h>
         ^
1 error generated.
../RULES/r-gmake.obj:49: recipe for target 'OBJ/armv6-freebsd-cc/scgcheck.o' failed
gmake[2]: *** [OBJ/armv6-freebsd-cc/scgcheck.o] Error 1
gmake[2]: Leaving directory '/wrkdirs/usr/ports/sysutils/cdrtools/work/cdrtools-3.00/scgcheck'
RULES/rules1.dir:25: recipe for target 'all' failed
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/sysutils/cdrtools/work/cdrtools-3.00'
*** Error code 1

Stop.
make: stopped in /usr/ports/sysutils/cdrtools
====>> Cleaning up wrkdir
===>  Cleaning for cdrtools-3.00_2
build of sysutils/cdrtools ended at Thu Jul  2 11:09:39 UTC 2015
build time: 00:17:37
!!! build failure encountered !!!
Comment 6 commit-hook freebsd_committer 2015-12-29 00:33:24 UTC
A commit references this bug:

Author: marius
Date: Tue Dec 29 00:33:01 UTC 2015
New revision: 404710
URL: https://svnweb.freebsd.org/changeset/ports/404710

Log:
  - Update to 3.01
  - Fix build when `uname -m` != `uname -p` [1]

  PR:		191424, 197794 [1]

Changes:
  head/sysutils/cdrtools/Makefile
  head/sysutils/cdrtools/distinfo
  head/sysutils/cdrtools/files/patch-DEFAULTS__Defaults.freebsd
  head/sysutils/cdrtools/files/patch-RULES__cc-gcc.rul
  head/sysutils/cdrtools/files/patch-include__schily__sha2.h
  head/sysutils/cdrtools/files/patch-readcd__readcd.1
  head/sysutils/cdrtools/pkg-descr
Comment 7 Marius Strobl freebsd_committer 2015-12-29 13:43:56 UTC
Please give the cdrtools port as of r404710 a try.
Comment 8 Mikael Urankar freebsd_committer 2015-12-29 14:02:03 UTC
(In reply to Marius Strobl from comment #7)
It works fine! Thanks a lot.