NetBSD Problem Report #51198
From www@NetBSD.org Mon May 30 15:36:38 2016
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 "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 3DA797ABC4
for <gnats-bugs@gnats.NetBSD.org>; Mon, 30 May 2016 15:36:38 +0000 (UTC)
Message-Id: <20160530153636.C894D7ABD1@mollari.NetBSD.org>
Date: Mon, 30 May 2016 15:36:36 +0000 (UTC)
From: bsiegert@NetBSD.org
Reply-To: bsiegert@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: lang/g95 fails to build on Linux
X-Send-Pr-Version: www-1.0
>Number: 51198
>Category: pkg
>Synopsis: lang/g95 fails to build on Linux
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: maya
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 30 15:40:00 +0000 2016
>Closed-Date: Tue Oct 24 08:00:16 +0000 2017
>Last-Modified: Tue Oct 24 08:00:16 +0000 2017
>Originator: Benny Siegert
>Release: pkgsrc-current as of 2016-05-30
>Organization:
The NetBSD Foundation
>Environment:
Linux pkgsrc 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u4 (2016-02-29) x86_64 GNU/Linux
>Description:
Installing numpy depends on lang/g95 (g95-0.93nb7) as a dependency. However, building it on Linux blows up spectacularly as soon as it tries to compile the CRT:
/opt/pkgsrc/lang/g95/work/gcc-4.1.2/g95/./gcc/xgcc -B/opt/pkgsrc/lang/g95/work/gcc-4.1.2/g95/./gcc/ -B/usr/pkg/x86_64-debian-linux/bin/ -B/usr/pkg/x86_64-debian-linux/lib/ -isystem /usr/pkg/x86_64-debian-linux/include -isystem /usr/pkg/x86_64-debian-linux/sys-include -O2 -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno
-zero-initialized-in-bss -fno-unit-at-a-time -fno-omit-frame-pointer -fno-asynchronous-unwind-tables \
-c ../../gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
In file included from /usr/include/stdio.h:27,
from ../../gcc/tsystem.h:90,
from ../../gcc/crtstuff.c:68:
/usr/include/features.h:374:25: error: sys/cdefs.h: No such file or directory
/usr/include/features.h:398:23: error: gnu/stubs.h: No such file or directory
In file included from ../../gcc/tsystem.h:90,
from ../../gcc/crtstuff.c:68:
/usr/include/stdio.h:35:25: error: bits/types.h: No such file or directory
In file included from ../../gcc/tsystem.h:90,
from ../../gcc/crtstuff.c:68:
/usr/include/stdio.h:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'struct'
/usr/include/stdio.h:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
/usr/include/stdio.h:53: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__USING_NAMESPACE_STD'
And many more screenfuls of crap.
>How-To-Repeat:
cd lang/g95
bmake package-install
>Fix:
Should this be using gfortran instead of some ancient thing? Maybe gcc 4.1 is a little too old for the includes on this system.
>Release-Note:
>Audit-Trail:
From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/51198: lang/g95 fails to build on Linux
Date: Mon, 30 May 2016 18:13:46 +0200
On Mon, May 30, 2016 at 03:40:01PM +0000, bsiegert@NetBSD.org wrote:
> >Fix:
> Should this be using gfortran instead of some ancient thing? Maybe gcc 4.1 is a little too old for the includes on this system.
You can decide the Fortran implementation to use. The point of g95 as
default was and still is that it is lighter than a full gcc49 or
whatever build.
Joerg
From: Benny Siegert <bsiegert@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org,
gnats-admin@netbsd.org,
pkgsrc-bugs@netbsd.org,
bsiegert@NetBSD.org
Subject: Re: pkg/51198: lang/g95 fails to build on Linux
Date: Fri, 3 Jun 2016 22:14:39 +0200
> You can decide the Fortran implementation to use. The point of g95 as
> default was and still is that it is lighter than a full gcc49 or
> whatever build.
Given that g95 does not build on modern Linux systems: can we flip the =
default *for Linux* to gfortran?=
From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
bsiegert@NetBSD.org
Subject: Re: pkg/51198: lang/g95 fails to build on Linux
Date: Fri, 3 Jun 2016 22:43:17 +0200
On Fri, Jun 03, 2016 at 08:15:01PM +0000, Benny Siegert wrote:
> The following reply was made to PR pkg/51198; it has been noted by GNATS.
>
> From: Benny Siegert <bsiegert@gmail.com>
> To: gnats-bugs@NetBSD.org
> Cc: pkg-manager@netbsd.org,
> gnats-admin@netbsd.org,
> pkgsrc-bugs@netbsd.org,
> bsiegert@NetBSD.org
> Subject: Re: pkg/51198: lang/g95 fails to build on Linux
> Date: Fri, 3 Jun 2016 22:14:39 +0200
>
> > You can decide the Fortran implementation to use. The point of g95 as
> > default was and still is that it is lighter than a full gcc49 or
> > whatever build.
>
> Given that g95 does not build on modern Linux systems: can we flip the =
> default *for Linux* to gfortran?=
Well, you can just as well install the Fortran frontend of your
distribution, right?
Joerg
From: Benny Siegert <bsiegert@gmail.com>
To: Joerg Sonnenberger <joerg@bec.de>
Cc: gnats-bugs@NetBSD.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org,
pkgsrc-bugs@netbsd.org, bsiegert@NetBSD.org
Subject: Re: pkg/51198: lang/g95 fails to build on Linux
Date: Sat, 4 Jun 2016 22:02:54 +0200
On Fri, 3 Jun 2016 22:43:17 +0200
Joerg Sonnenberger <joerg@bec.de> wrote:
> Well, you can just as well install the Fortran frontend of your
> distribution, right?
Ah, I didn't try that -- if I don't touch the default for PKGSRC_FORTRAN but install the gfortran package, will that work?
--
Benny Siegert <bsiegert@gmail.com>
From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
bsiegert@NetBSD.org
Subject: Re: pkg/51198: lang/g95 fails to build on Linux
Date: Sat, 4 Jun 2016 22:19:23 +0200
On Sat, Jun 04, 2016 at 08:05:01PM +0000, Benny Siegert wrote:
> > Well, you can just as well install the Fortran frontend of your
> > distribution, right?
>
> Ah, I didn't try that -- if I don't touch the default for PKGSRC_FORTRAN but install the gfortran package, will that work?
It should (TM).
Joerg
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/51198: lang/g95 fails to build on Linux
Date: Sat, 11 Jun 2016 20:53:35 +0000
On Mon, May 30, 2016 at 03:40:01PM +0000, bsiegert@NetBSD.org wrote:
> >Description:
> Installing numpy depends on lang/g95 (g95-0.93nb7) as a
> dependency. However, building it on Linux blows up spectacularly as
> soon as it tries to compile the CRT:
>
> [...]
> /usr/include/features.h:374:25: error: sys/cdefs.h: No such file or directory
> /usr/include/features.h:398:23: error: gnu/stubs.h: No such file or directory
> [...]
> /usr/include/stdio.h:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'struct'
> /usr/include/stdio.h:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
> /usr/include/stdio.h:53: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__USING_NAMESPACE_STD'
...so the linux system's own header files don't work?
--
David A. Holland
dholland@netbsd.org
From: coypu@SDF.ORG
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/51198: lang/g95 fails to build on Linux
Date: Fri, 23 Sep 2016 18:04:55 +0000
despite appearances, it's the same bug as PR 51402:
pkgsrc-2016Q2/lang/g95 does not build on NetBSD7.0.1/arm7hf
(raspberrypi2)
xgcc built by this package can't compile really basic code.
(it's nice to know it is broken on amd64 too, that narrows down the
problem list and can compile a good deal faster!)
From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/51198 CVS commit: pkgsrc/lang/g95
Date: Wed, 18 Oct 2017 09:38:23 +0000
Module Name: pkgsrc
Committed By: maya
Date: Wed Oct 18 09:38:23 UTC 2017
Modified Files:
pkgsrc/lang/g95: Makefile
Log Message:
g95: fix build on linux
force passing asprintf test which is incorrectly not found due to FORTIFY
pass LIBRARY_PATH so crtn.o and crti.o are found on Ubuntu & friends
Note many reporters need to install g++-multilib as a package to overcome
the errors they reported in the bugs (missing <sys/cdefs.h>)
PR pkg/51198, PR pkg/51690, PR pkg/52116
To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 pkgsrc/lang/g95/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Responsible-Changed-From-To: pkg-manager->maya
Responsible-Changed-By: maya@NetBSD.org
Responsible-Changed-When: Wed, 18 Oct 2017 09:48:34 +0000
Responsible-Changed-Why:
Mine.
State-Changed-From-To: open->feedback
State-Changed-By: maya@NetBSD.org
State-Changed-When: Wed, 18 Oct 2017 09:48:34 +0000
State-Changed-Why:
if you install g++-multilib, does it work after the commit?
From: "Benny Siegert" <bsiegert@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/51198 CVS commit: [pkgsrc-2017Q3] pkgsrc/lang/g95
Date: Thu, 19 Oct 2017 17:56:46 +0000
Module Name: pkgsrc
Committed By: bsiegert
Date: Thu Oct 19 17:56:46 UTC 2017
Modified Files:
pkgsrc/lang/g95 [pkgsrc-2017Q3]: Makefile
Log Message:
Pullup ticket #5583 - requested by maya
lang/g95: Linux build fix
Revisions pulled up:
- lang/g95/Makefile 1.29
---
Module Name: pkgsrc
Committed By: maya
Date: Wed Oct 18 09:38:23 UTC 2017
Modified Files:
pkgsrc/lang/g95: Makefile
Log Message:
g95: fix build on linux
force passing asprintf test which is incorrectly not found due to FORTIFY
pass LIBRARY_PATH so crtn.o and crti.o are found on Ubuntu & friends
Note many reporters need to install g++-multilib as a package to overcome
the errors they reported in the bugs (missing <sys/cdefs.h>)
PR pkg/51198, PR pkg/51690, PR pkg/52116
To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.28.6.1 pkgsrc/lang/g95/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: feedback->closed
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Tue, 24 Oct 2017 08:00:16 +0000
State-Changed-Why:
Works now, thanks!
>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.