NetBSD Problem Report #54511

From www@netbsd.org  Fri Aug 30 15:33:49 2019
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 2A8A77A188
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 30 Aug 2019 15:33:49 +0000 (UTC)
Message-Id: <20190830153347.C194F7A1DD@mollari.NetBSD.org>
Date: Fri, 30 Aug 2019 15:33:47 +0000 (UTC)
From: demonicjerseycow@gmail.com
Reply-To: demonicjerseycow@gmail.com
To: gnats-bugs@NetBSD.org
Subject: pkgsrc bootstrap fails on IRIX 6.5
X-Send-Pr-Version: www-1.0

>Number:         54511
>Category:       pkg
>Synopsis:       pkgsrc bootstrap fails on IRIX 6.5
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 30 15:35:00 +0000 2019
>Last-Modified:  Sat Sep 07 18:05:01 +0000 2019
>Originator:     Mark Kirby
>Release:        pkgsrc current
>Organization:
>Environment:
IRIX64 drool 6.5 07202013 IP30
>Description:
When bootstrapping pkgsrc using MIPSpro Compilers: Version 7.30 make fail's in parse.c due to the use of __func__. mipspro 7.3 is not C99 compatible.

out put below.

cc -c -g -I. -I/mnt/pkgsrc/bootstrap/work/bmake -DHAVE_CONFIG_H -I/mnt/pkgsrc/bootstrap/work/bmake/missing -DNEED_HOST_CDEFS_H -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o parse.o /mnt/pkgsrc/bootstrap/work/bmake/parse.c
cc-1020 cc: ERROR File = /mnt/pkgsrc/bootstrap/work/bmake/parse.c, Line = 859
  The identifier "__FUNCTION__" is undefined.

        fprintf(debug_file, "# %s: added child %s - %s\n", __func__,
                                                           ^

cc-1020 cc: ERROR File = /mnt/pkgsrc/bootstrap/work/bmake/parse.c, Line = 1036
  The identifier "__FUNCTION__" is undefined.

                    __func__, predecessor->name, gn->name);
                    ^

cc-1020 cc: ERROR File = /mnt/pkgsrc/bootstrap/work/bmake/parse.c, Line = 2336
  The identifier "__FUNCTION__" is undefined.

            "${.INCLUDEDFROMFILE} = `%s'\n", __func__, pd, pf);
                                             ^

cc-1020 cc: ERROR File = /mnt/pkgsrc/bootstrap/work/bmake/parse.c, Line = 2379
  The identifier "__FUNCTION__" is undefined.

            __func__, pd, pf);
            ^

cc-1020 cc: ERROR File = /mnt/pkgsrc/bootstrap/work/bmake/parse.c, Line = 2442
  The identifier "__FUNCTION__" is undefined.

            __func__, name, line, fd, nextbuf, arg);
            ^

cc-1020 cc: ERROR File = /mnt/pkgsrc/bootstrap/work/bmake/parse.c, Line = 2514
  The identifier "__FUNCTION__" is undefined.

            fprintf(debug_file, "%s: %s\n", __func__, file);
                                            ^

cc-1020 cc: ERROR File = /mnt/pkgsrc/bootstrap/work/bmake/parse.c, Line = 2573
  The identifier "__FUNCTION__" is undefined.

            fprintf(debug_file, "%s: %s\n", __func__, variable);
                                            ^

cc-1174 cc: WARNING File = /mnt/pkgsrc/bootstrap/work/bmake/parse.c, Line = 79
  The variable "rcsid" was declared but never referenced.

  __RCSID("$NetBSD: parse.c,v 1.10 2015/05/19 22:01:19 joerg Exp $");
  ^

7 errors detected in the compilation of "/mnt/pkgsrc/bootstrap/work/bmake/parse.c".
===> exited with status 1


>How-To-Repeat:
try to bootstrap pkgsrc with a non C99 compatible compiler.
>Fix:
Unknown but if someone can give me a clue I'm happy to give it a try.

>Audit-Trail:
From: coypu@sdf.org
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/54511: pkgsrc bootstrap fails on IRIX 6.5
Date: Sat, 7 Sep 2019 18:02:59 +0000

 I vaguely recall someone got GCC 7 or 8 working on IRIX. I guess the
 right thing to do is to document how to set it up in
 pkgsrc/bootstrap/README.IRIX.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.