pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/51198: lang/g95 fails to build on Linux



>Number:         51198
>Category:       pkg
>Synopsis:       lang/g95 fails to build on Linux
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 30 15:40:00 +0000 2016
>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.



Home | Main Index | Thread Index | Old Index