pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/51523: gcc7snapshot fails to build on NetBSD
>Number: 51523
>Category: pkg
>Synopsis: gcc7snapshot fails to build on NetBSD
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 02 09:00:00 +0000 2016
>Originator: Kai-Uwe Eckhardt
>Release: 7.99.39 amd64
>Organization:
>Environment:
>Description:
Make fails with:
echo timestamp > s-options
/usr/bin/awk -f ../../gcc-7-20160925/gcc/opt-functions.awk -f ../../gcc-7-20160925/gcc/opt-read.awk \
-f ../../gcc-7-20160925/gcc/opth-gen.awk \
< optionlist > tmp-options.h
/bin/sh ../../gcc-7-20160925/gcc/../move-if-change tmp-options.h options.h
echo timestamp > s-options-h
gmake[3]: *** No rule to make target 'i386/i386-protos.h', needed by 's-gtype'. Stop.
gmake[3]: Leaving directory '/usr/pkgsrc/wip/gcc7snapshot/work/build/gcc'
Makefile:4578: recipe for target 'all-stage1-gcc' failed
gmake[2]: *** [all-stage1-gcc] Error 2
gmake[2]: Leaving directory '/usr/pkgsrc/wip/gcc7snapshot/work/build'
Makefile:26134: recipe for target 'stage1-bubble' failed
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory '/usr/pkgsrc/wip/gcc7snapshot/work/build'
Makefile:950: recipe for target 'all' failed
gmake: *** [all] Error 2
*** Error code 2
Stop.
make[1]: stopped in /usr/pkgsrc/wip/gcc7snapshot
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/wip/gcc7snapshot
>How-To-Repeat:
>Fix:
Apply this patch to patch-gcc_config.gcc to fix a typo:
--- patch-gcc_config.gcc.orig 2016-10-02 10:46:28.803910265 +0200
+++ patch-gcc_config.gcc 2016-10-01 19:32:19.367939735 +0200
@@ -1,6 +1,6 @@
-$NetBSD: patch-gcc_config.gcc,v 1.2 2014/12/17 21:51:02 keckhardt Exp $
+$NetBSD$
---- gcc/config.gcc.orig 2014-11-21 16:04:20.000000000 +0000
+--- gcc/config.gcc.orig 2016-09-23 10:41:04.000000000 +0000
+++ gcc/config.gcc
@@ -762,10 +762,16 @@ case ${target} in
target_has_targetcm=yes
@@ -14,7 +14,7 @@
+ # cabs/cabsf are renamed to __c99_cabs/cabsf
+ tm_p_file="${tm_p_file} netbsd-protos.h"
-+ target_gtfiles="${tm_p_file} \$(srcdir)/config/netbsd.c"
++ target_gtfiles="${target_gtfiles} \$(srcdir)/config/netbsd.c"
+ extra_objs="${extra_objs} netbsd.o"
+
# NetBSD 2.0 and later get POSIX threads enabled by default.
make install worked after applying the patch.
Kind regards,
Kai-Uwe
Home |
Main Index |
Thread Index |
Old Index