Bug 199471 - [PATCH] [mips] devel/icu fails to build on mips
Summary: [PATCH] [mips] devel/icu fails to build on mips
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: mips Any
: --- Affects Some People
Assignee: FreeBSD Office Team (Nobody)
URL:
Keywords:
Depends on: 196044
Blocks:
  Show dependency treegraph
 
Reported: 2015-04-15 21:01 UTC by Sean Bruno
Modified: 2015-06-29 15:23 UTC (History)
4 users (show)

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


Attachments
set CPPFLAGS to define internal big endian flag (577 bytes, text/plain)
2015-05-04 00:33 UTC, Sean Bruno
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Bruno freebsd_committer 2015-04-15 21:01:15 UTC
Building icu for mips, seem to break down in some checksumming or test bits.

rm -rf icupkg.inc
mkdir ./out
mkdir ./out/build
mkdir ./out/build/icudt53b
mkdir ./out/build/icudt53b/curr
mkdir ./out/build/icudt53b/lang
mkdir ./out/build/icudt53b/region
mkdir ./out/build/icudt53b/zone
mkdir ./out/build/icudt53b/brkitr
mkdir ./out/build/icudt53b/coll
mkdir ./out/build/icudt53b/rbnf
mkdir ./out/build/icudt53b/translit
mkdir ./out/tmp
mkdir ./out/tmp/curr
mkdir ./out/tmp/lang
mkdir ./out/tmp/region
mkdir ./out/tmp/zone
mkdir ./out/tmp/coll
mkdir ./out/tmp/rbnf
mkdir ./out/tmp/translit
mkdir ./out/tmp/brkitr
mv build-dir.tmp build-dir
LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH  ../bin/icupkg -tb ./in/icudt53l.dat ./out/icudt53b.dat
udata_swapDataHeader(): header size mismatch - headerSize 32768 infoSize 5120 length 1024
Makefile:168: recipe for target 'out/icudt53b.dat' failed
gmake[2]: *** [out/icudt53b.dat] Error 8
gmake[2]: *** Waiting for unfinished jobs....
gmake[3]: Leaving directory '/wrkdirs/usr/ports/devel/icu/work/icu/source/data'
gmake[2]: Leaving directory '/wrkdirs/usr/ports/devel/icu/work/icu/source/data'
Makefile:141: recipe for target 'all-recursive' failed
gmake[1]: *** [all-recursive] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/devel/icu/work/icu/source'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Comment 1 Sean Bruno freebsd_committer 2015-05-04 00:33:40 UTC
Created attachment 156307 [details]
set CPPFLAGS to define internal big endian flag

RedHat bug https://bugzilla.redhat.com/show_bug.cgi?id=889781 gave me the hint that the icu build needs an explicit CPPFLAGS set for bigendian architectures.

This Makefile patch does that for the bigendian architectures that are supported.
Comment 3 commit-hook freebsd_committer 2015-05-31 18:52:09 UTC
A commit references this bug:

Author: sbruno
Date: Sun May 31 18:51:28 UTC 2015
New revision: 388126
URL: https://svnweb.freebsd.org/changeset/ports/388126

Log:
  Fix builds on big-endian architectures by declaring a CPPFLAG used internally
  by the source to handle big vs little endianess.

  PR:		199471

Changes:
  head/devel/icu/Makefile