NetBSD Problem Report #30377
From mange@freemail.hu Mon May 30 13:34:14 2005
Return-Path: <mange@freemail.hu>
Received: from pne-smtpout1-sn2.hy.skanova.net (pne-smtpout1-sn2.hy.skanova.net [81.228.8.83])
by narn.netbsd.org (Postfix) with ESMTP id 303CC63B104
for <gnats-bugs@gnats.NetBSD.org>; Mon, 30 May 2005 13:34:14 +0000 (UTC)
Message-Id: <200505301334.j4UDY8Om017469@zemdatav.stor.no-ip.org>
Date: Mon, 30 May 2005 15:34:08 +0200 (CEST)
From: Magnus Henoch <mange@freemail.hu>
To: gnats-bugs@netbsd.org
Subject: lang/nhc98 doesn't compile
X-Send-Pr-Version: 3.95
>Number: 30377
>Category: pkg
>Synopsis: lang/nhc98 doesn't compile
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kristerw
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 30 13:35:00 +0000 2005
>Closed-Date: Mon Dec 29 08:59:44 +0000 2014
>Last-Modified: Mon Dec 29 08:59:44 +0000 2014
>Originator: Magnus Henoch
>Release: NetBSD 3.99.3
>Organization:
>Environment:
System: NetBSD zemdatav 3.99.3 NetBSD 3.99.3 (IBOOKFAN) #19: Tue May 24 13:38:27 CEST 2005 magnus@zemdatav:/usr/src/sys/arch/macppc/compile/IBOOKFAN macppc
Architecture: powerpc
Machine: macppc
>Description:
lang/nhc98 (version 1.18, revision 1) fails to compile on
-current NetBSD/powerpc, with the following output:
cd BinArray; /usr/pkg/bin/gmake fromC
gmake[2]: Entering directory `/usr/pkgsrc/lang/nhc98/work/nhc98-1.18/src/prelude/BinArray'
cc -c -I/usr/pkgsrc/lang/nhc98/work/nhc98-1.18/include -DHIGH_BYTE_FIRST -I../Binary -o /usr/pkgsrc/lang/nhc98/work/nhc98-1.18/targets/powerpc-NetBSD/obj/prelude/BinArray/cLowUnboxedArray.o cLowUnboxedArray.c
In file included from /usr/include/machine/endian.h:3,
from /usr/include/sys/types.h:98,
from /usr/include/stdlib.h:41,
from cLowUnboxedArray.c:2:
/usr/include/sys/endian.h:68: error: `__uint32_t' redeclared as different kind of symbol
/usr/include/powerpc/int_types.h:51: error: previous declaration of `__uint32_t'
/usr/include/sys/endian.h:70: error: parse error before "__uint32_t"
/usr/include/sys/endian.h:70: error: conflicting types for `__uint32_t'
/usr/include/sys/endian.h:68: error: previous declaration of `__uint32_t'
In file included from /usr/include/machine/endian.h:3,
from /usr/include/sys/types.h:98,
from /usr/include/stdlib.h:41,
from cLowUnboxedArray.c:2:
/usr/include/sys/endian.h:223: error: parse error before "__uint32_t"
/usr/include/sys/endian.h: In function `be32enc':
/usr/include/sys/endian.h:225: error: `buf' undeclared (first use in this function)
/usr/include/sys/endian.h:225: error: (Each undeclared identifier is reported only once
/usr/include/sys/endian.h:225: error: for each function it appears in.)
/usr/include/sys/endian.h:227: error: `u' undeclared (first use in this function)
/usr/include/sys/endian.h: At top level:
/usr/include/sys/endian.h:234: error: parse error before "__uint32_t"
/usr/include/sys/endian.h: In function `le32enc':
/usr/include/sys/endian.h:236: error: `buf' undeclared (first use in this function)
/usr/include/sys/endian.h:238: error: `u' undeclared (first use in this function)
/usr/include/sys/endian.h: At top level:
/usr/include/sys/endian.h:245: error: conflicting declarations of `__uint32_t'
/usr/include/sys/endian.h:70: error: `__uint32_t' previously declared here
/usr/include/sys/endian.h:245: error: parse error before "be32dec"
/usr/include/sys/endian.h:253: error: parse error before "le32dec"
/usr/include/sys/endian.h: In function `be64enc':
/usr/include/sys/endian.h:265: error: called object is not a function
/usr/include/sys/endian.h:266: error: called object is not a function
/usr/include/sys/endian.h: In function `le64enc':
/usr/include/sys/endian.h:274: error: called object is not a function
/usr/include/sys/endian.h:275: error: called object is not a function
In file included from /usr/include/stdlib.h:41,
from cLowUnboxedArray.c:2:
/usr/include/sys/types.h: At top level:
/usr/include/sys/types.h:132: error: parse error before "blksize_t"
/usr/include/sys/types.h:156: error: parse error before "dev_t"
/usr/include/sys/types.h:157: error: parse error before "fixpt_t"
/usr/include/sys/types.h:164: error: parse error before "id_t"
/usr/include/sys/types.h:165: error: parse error before "ino_t"
/usr/include/sys/types.h:173: error: parse error before "nlink_t"
In file included from cLowUnboxedArray.c:2:
/usr/include/stdlib.h:259: error: parse error before "__mode_t"
/usr/include/stdlib.h:260: error: parse error before "getdevmajor"
gmake[2]: *** [/usr/pkgsrc/lang/nhc98/work/nhc98-1.18/targets/powerpc-NetBSD/obj/prelude/BinArray/cLowUnboxedArray.o] Error 1
gmake[2]: Leaving directory `/usr/pkgsrc/lang/nhc98/work/nhc98-1.18/src/prelude/BinArray'
gmake[1]: *** [BinArray.fromC] Error 2
gmake[1]: Leaving directory `/usr/pkgsrc/lang/nhc98/work/nhc98-1.18/src/prelude'
gmake: *** [targets/powerpc-NetBSD/prelude-gcc] Error 2
*** Error code 2
Stop.
make: stopped in /usr/pkgsrc/lang/nhc98
===>
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===> * log of the build
===> * /usr/pkgsrc/lang/nhc98/work/.work.log
===>
*** Error code 1
>How-To-Repeat:
cd /usr/pkgsrc/lang/nhc98
make
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->kristerw
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Mon, 30 May 2005 13:43:17 +0000
Responsible-Changed-Why:
Over to maintainer.
State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 09 Nov 2009 07:11:05 +0000
State-Changed-Why:
is this still a problem?
From: Magnus Henoch <magnus.henoch@gmail.com>
To: gnats-bugs@netbsd.org
Cc: kristerw@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org,
dholland@netbsd.org
Subject: Re: pkg/30377 (lang/nhc98 doesn't compile)
Date: Mon, 9 Nov 2009 17:34:00 +0000
Not sure; the machine I used had a hard drive failure and is not
usable at the moment.
I don't mind if you close this :)
State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 10 Nov 2009 06:18:36 +0000
State-Changed-Why:
Submitter can't test, but there does seem to be a (different?) problem on
powerpc.
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: kristerw@NetBSD.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
Magnus Henoch <mange@freemail.hu>
Subject: Re: pkg/30377 (lang/nhc98 doesn't compile)
Date: Tue, 10 Nov 2009 06:17:46 +0000
On Mon, Nov 09, 2009 at 05:35:03PM +0000, Magnus Henoch wrote:
> Not sure; the machine I used had a hard drive failure and is not
> usable at the moment.
>
> I don't mind if you close this :)
The last powerpc bulk build shows it passing that point but choking
later on:
/usr/pkgsrc/lang/nhc98/work/nhc98-1.18/script/nhc98 -c +CTS -lib -redefine -CTS -o /usr/pkgsrc/lang/nhc98/work/nhc98-1.18/targets/powerpc-NetBSD/obj/prelude/DErrNo/DErrNo.o DErrNo.hs
OS allocated a heap in high memory (>0x80000000)
which breaks this program's run-time system.
hpStart=0xefd04000, hpEnd=0xefd79300
so I suppose the PR ought to remain open.
--
David A. Holland
dholland@netbsd.org
From: Jan =?ISO-8859-2?Q?=A9mydke?= <jan.smydke@jh-inst.cas.cz>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/30377
Date: Thu, 11 Feb 2010 14:56:11 +0100
nhc98-1.18 from pkgsrc does not compile anyway (NetBSD 5.0.1 x86
2009Q4):
# make
=> Bootstrap dependency digest>=20010302: found
digest-20080510
[0,20/271] => Checksum SHA1 OK for nhc98src-1.18.tar.gz => Checksum
RMD160 OK for nhc98src-1.18.tar.gz => Checksum SHA1 OK for
nhc98-1.18-library-interfaces.tar.gz => Checksum RMD160 OK for
nhc98-1.18-library-interfaces.tar.gz ===> Installing dependencies for
nhc98-1.18nb2 => Build dependency gmake>=3.81: found gmake-3.81
===> Overriding tools for nhc98-1.18nb2
===> Extracting for nhc98-1.18nb2
===> Patching for nhc98-1.18nb2
=> Applying pkgsrc patches for nhc98-1.18nb2
===> Creating toolchain wrappers for nhc98-1.18nb2
===> Configuring for nhc98-1.18nb2
Configuring for nhc98... [ v1.18 (2005-03-11 version) ]
--------
Looking for already-installed Haskell compilers:
Found C compiler: /usr/pkgsrc/lang/nhc98/work/.wrapper/bin/cc
C compiler version: gcc (GCC) 4.1.3 20080704 prerelease (NetBSD nb2
20081120) Looking for hbc... (not found)
Note: LMLDIR/HBCDIR variables must be set to enable detection of hbc.
Looking for ghc... found 6.8.3
Looking for nhc98... (not found)
You said you want to use gcc to build hmake.
Now I'm creating targets/ix86-NetBSD/hmake3.config for your
installation. Done.
--------
Configuration report for nhc98.
(You can re-run configure to change settings before proceeding.)
You wish (eventually) to install the following components in these
locations: (Installation directories are not created/checked at this
stage.) Final install root: /usr/pkg
nhc98 binaries/libs: /usr/pkg/lib/nhc98/ix86-NetBSD
hmake binaries: /usr/pkg/lib/hmake/ix86-NetBSD
Interfaces/includes: /usr/pkg/include/nhc98
Scripts: /usr/pkg/bin
Man pages: /usr/pkg/man/man1
Html documents: /usr/pkg/share/doc/nhc98
Now we check/create your build directories:
Config directory: targets/ix86-NetBSD
Build directory root:
/usr/pkgsrc/lang/nhc98/work/nhc98-1.18/targets (exists)
Object files build in:
/usr/pkgsrc/lang/nhc98/work/nhc98-1.18/targets/ix86-NetBSD (exists)
Executables and libs:
/usr/pkgsrc/lang/nhc98/work/nhc98-1.18/lib/ix86-NetBSD (created)
You are going to build nhc98 with: gcc
nhc98comp uses RTS delimiters? yes
This machine's endian-ness is: -DLOW_BYTE_FIRST (detected)
Executables need .exe suffix? no (detected)
Found /usr/bin/true not /bin/true
Testing for the curses library: -lncurses (detected)
Testing for the readline library: no (detected)
Reading /usr/include/errno.h: script/config-errno.c: In function 'main':
script/config-errno.c:593: warning: incompatible implicit declaration
of built-in function 'printf' script/config-errno.c:691: warning:
incompatible implicit declaration of built-in function 'exit'
script/errnogen.c: In function 'main': script/errnogen.c:1289: warning:
incompatible implicit declaration of built-in function 'printf'
script/errnogen.c:1404: warning: incompatible implicit declaration of
built-in function 'exit' updated DErrNo.hs Default heap for compiled
programs is: 100000 words (cached)
Adding Makefile config script to
/usr/pkgsrc/lang/nhc98/work/nhc98-1.18/lib/ix86-NetBSD...
Adding build scripts to
/usr/pkgsrc/lang/nhc98/work/nhc98-1.18/script...
nhc98 hmake hmake-config hi greencard hsc2hs cpphs
Creating src/runtime/nhc98heap.c ...
Updating targets/ix86-NetBSD/hmake3.config...
fullname: not found
Saving current configuration in targets/ix86-NetBSD/config.cache
Done.
===> Building for nhc98-1.18nb2
/usr/pkgsrc/lang/nhc98/work/nhc98-1.18/lib/ix86-NetBSD/config:17: ***
missing separator. Stop. *** Error code 2
Stop.
make: stopped in /usr/pkgsrc/lang/nhc98
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/lang/nhc98
====================================
However, my native build of version 1.20 worked seamlessly by gcc and
then by the resulting nhc98 on amd64 and x86.
So I'd suggest upgrading pkgsrc to nhc98-1.20
JS
State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 29 Dec 2014 08:59:44 +0000
State-Changed-Why:
nhc98 is now at 1.22.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.