Bug 198349 - [www/iojs-1.4.3] "error: 'FILE' has not name a type" while building on 8.4-RELEASE
Summary: [www/iojs-1.4.3] "error: 'FILE' has not name a type" while building on 8.4-RE...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Vanilla I. Shu
URL: http://portsmon.freebsd.org/portoverv...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-06 11:27 UTC by Marcin Cieślak
Modified: 2015-03-06 13:36 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Cieślak 2015-03-06 11:27:23 UTC
I tried to build iojs-1.4.3 using poudriere on 8.4-RELEASE, it fails on both amd64 and i386 with this:

  g++48 '-DV8_TARGET_ARCH_X64' '-DENABLE_DISASSEMBLER' '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' -I../deps/v8  -pthread -Wall -Wextra -Wno-unused-parameter -m64 -fno-strict-aliasing -I/usr/local/include -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fdata-sections -ffunction-sections -O3 -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF /wrkdirs/usr/ports/www/iojs/work/iojs-io.js-c49af34/out/Release/.deps//wrkdirs/usr/ports/www/iojs/work/iojs-io.js-c49af34/out/Release/obj.target/v8_base/deps/v8/src/allocation.o.d.raw -O2 -pipe -fstack-protector -Wl,-rpath=/usr/local/lib/gcc48 -fno-strict-aliasing -Wl,-rpath=/usr/local/lib/gcc48 -c -o /wrkdirs/usr/ports/www/iojs/work/iojs-io.js-c49af34/out/Release/obj.target/v8_base/deps/v8/src/allocation.o ../deps/v8/src/allocation.cc
In file included from ../deps/v8/src/allocation.cc:10:0:
../deps/v8/src/base/platform/platform.h:142:10: error: 'FILE' does not name a type
   static FILE* FOpen(const char* path, const char* mode);
          ^
../deps/v8/src/base/platform/platform.h:146:10: error: 'FILE' does not name a type
   static FILE* OpenTemporaryFile();
          ^
../deps/v8/src/base/platform/platform.h:158:22: error: 'FILE' has not been declared
   static void FPrint(FILE* out, const char* format, ...);
                      ^
../deps/v8/src/base/platform/platform.h:159:23: error: 'FILE' has not been declared
   static void VFPrint(FILE* out, const char* format, va_list args);
                       ^
deps/v8/tools/gyp/v8_base.target.mk:367: recipe for target '/wrkdirs/usr/ports/www/iojs/work/iojs-io.js-c49af34/out/Release/obj.target/v8_base/deps/v8/src/allocation.o' failed
gmake[1]: *** [/wrkdirs/usr/ports/www/iojs/work/iojs-io.js-c49af34/out/Release/obj.target/v8_base/deps/v8/src/allocation.o] Error 1
gmake[1]: Leaving directory '/wrkdirs/usr/ports/www/iojs/work/iojs-io.js-c49af34/out'
Makefile:35: recipe for target 'iojs' failed
gmake: *** [iojs] Error 2
*** Error code 1

Stop in /usr/ports/www/iojs.
====>> Cleaning up wrkdir

9.3 and 10.1 builds are fine

This is also confirmed on the cluster for iojs-1.2.0:

http://portsmon.freebsd.org/portoverview.py?category=&portname=iojs
Comment 1 Marcin Cieślak 2015-03-06 11:30:18 UTC
(In reply to Marcin Cieślak from comment #0)

====>> Building www/iojs
build started at Thu Mar  5 20:05:08 UTC 2015
port directory: /usr/ports/www/iojs
building for: FreeBSD iojs_8_4_amd64-default-job-01 8.4-RELEASE-p24 FreeBSD 8.4-RELEASE-p24 amd64
maintained by: linpct@gmail.com
Makefile ident:      $FreeBSD: head/www/iojs/Makefile 380406 2015-03-04 03:12:23Z vanilla $
Poudriere version: 3.1.1
Host OSVERSION: 1000713
Jail OSVERSION: 804000

---Begin Environment---
OSVERSION=804000
UNAME_v=FreeBSD 8.4-RELEASE-p24
UNAME_r=8.4-RELEASE-p24
FTP_PASSIVE_MODE=YES
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
SAVED_TERM=screen
MASTERMNT=/usr/local/poudriere/data/.m/iojs_8_4_amd64-default/ref
FORCE_PACKAGE=yes
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
POUDRIERE_BUILD_TYPE=bulk
PKGNAME=iojs-1.4.3
OLDPWD=/
PWD=/usr/local/poudriere/data/.m/iojs_8_4_amd64-default/ref/.p/pool
MASTERNAME=iojs_8_4_amd64-default
USER=root
HOME=/root
POUDRIERE_VERSION=3.1.1
LOCALBASE=/usr/local
PACKAGE_BUILDING=yes
---End Environment---

====>> Building www/iojs
build started at Thu Mar  5 23:50:41 UTC 2015
port directory: /usr/ports/www/iojs
building for: FreeBSD iojs_8_4_i386-default-job-01 8.4-RELEASE-p24 FreeBSD 8.4-RELEASE-p24 i386
maintained by: linpct@gmail.com
Makefile ident:      $FreeBSD: head/www/iojs/Makefile 380406 2015-03-04 03:12:23Z vanilla $
Poudriere version: 3.1.1
Host OSVERSION: 1000713
Jail OSVERSION: 804000

---Begin Environment---
UNAME_m=i386
UNAME_p=i386
OSVERSION=804000
UNAME_v=FreeBSD 8.4-RELEASE-p24
UNAME_r=8.4-RELEASE-p24
FTP_PASSIVE_MODE=YES
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
SAVED_TERM=screen
MASTERMNT=/usr/local/poudriere/data/.m/iojs_8_4_i386-default/ref
FORCE_PACKAGE=yes
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
POUDRIERE_BUILD_TYPE=bulk
PKGNAME=iojs-1.4.3
OLDPWD=/
PWD=/usr/local/poudriere/data/.m/iojs_8_4_i386-default/ref/.p/pool
MASTERNAME=iojs_8_4_i386-default
USER=root
HOME=/root
POUDRIERE_VERSION=3.1.1
LOCALBASE=/usr/local
PACKAGE_BUILDING=yes
---End Environment---
Comment 2 commit-hook freebsd_committer 2015-03-06 13:36:48 UTC
A commit references this bug:

Author: vanilla
Date: Fri Mar  6 13:36:14 UTC 2015
New revision: 380600
URL: https://svnweb.freebsd.org/changeset/ports/380600

Log:
  Fix build on 8.4-RELEASE

  PR:		198349
  Submitted by:	saper@saper.info
  Approved by:	maintainer

Changes:
  head/www/iojs/files/patch-deps_v8_src_base_platform_platform.h