NetBSD Problem Report #48890
From stix@stix.id.au Tue Jun 10 13:09:25 2014
Return-Path: <stix@stix.id.au>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 98D70A6526
for <gnats-bugs@gnats.netbsd.org>; Tue, 10 Jun 2014 13:09:25 +0000 (UTC)
Message-Id: <20140610130915.02C7319E75@stix.id.au>
Date: Tue, 10 Jun 2014 23:09:15 +1000 (EST)
From: stix@stix.id.au
Reply-To: stixpjr@gmail.com
To: gnats-bugs@gnats.NetBSD.org
Subject: avr-gcc fails to build runnable binaries for atmega2560
X-Send-Pr-Version: 3.95
>Number: 48890
>Category: pkg
>Synopsis: avr-gcc fails to build runnable binaries for atmega2560
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jun 10 13:10:14 +0000 2014
>Closed-Date: Fri Sep 26 07:09:46 +0000 2014
>Last-Modified: Fri Sep 26 07:09:46 +0000 2014
>Originator: Paul Ripke
>Release: NetBSD 6.1_STABLE
>Organization:
>Environment:
System: NetBSD slave 6.1_STABLE NetBSD 6.1_STABLE (SLAVE) #4: Fri May 23 23:42:30 EST 2014 stix@slave:/home/netbsd/netbsd-6/obj.amd64/home/netbsd/netbsd-6/src/sys/arch/amd64/compile/SLAVE amd64
Architecture: x86_64
Machine: amd64
>Description:
avr-gcc in pkgsrc has several bugs preventing it from building working
binaries for the atmega2560.
>How-To-Repeat:
Build simple LED flasher and upload to an atmega2560, and watch it fail.
>Fix:
It appears as though the patches found at:
http://distribute.atmel.no/tools/opensource/avr-gcc/gcc-4.5.1/
are required to successfully build working atmega2560 binaries (and probably
others).
As a quick fix, I managed to get gcc 4.8.3 to build via the following hacky
patch (diffed against pkgsrc-2014Q1), which appears to have all the necessary
atmel patches applied (I've successfully built and uploaded sketches that
previously failed):
Index: cross/avr-gcc/Makefile
===================================================================
RCS file: /home/netbsd/cvsroot/pkgsrc/cross/avr-gcc/Makefile,v
retrieving revision 1.33
diff -u -d -r1.33 Makefile
--- cross/avr-gcc/Makefile 8 Dec 2013 22:27:57 -0000 1.33
+++ cross/avr-gcc/Makefile 10 Jun 2014 12:31:24 -0000
@@ -1,17 +1,16 @@
# $NetBSD: Makefile,v 1.33 2013/12/08 22:27:57 joerg Exp $
-DISTNAME= gcc-4.5.3
-PKGNAME= avr-gcc-4.5.3
-PKGREVISION= 1
+DISTNAME= gcc-4.8.3
+PKGNAME= avr-gcc-4.8.3
CATEGORIES= cross
MASTER_SITES= ${MASTER_SITE_GNU:=gcc/releases/${DISTNAME}/}
EXTRACT_SUFX= .tar.bz2
-DISTFILES= ${DISTNAME:S/-/-core-/}${EXTRACT_SUFX} \
- ${DISTNAME:S/-/-g++-/}${EXTRACT_SUFX}
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
+PATCHDIR= ${.CURDIR}/../../lang/gcc48/patches
MAINTAINER= pkgsrc-users@NetBSD.org
-COMMENT= GNU gcc-4.5 for Atmel AVR 8-bit RISC microcontrollers
-LICENSE= gnu-gpl-v3
+COMMENT= GNU gcc-4.8 for Atmel AVR 8-bit RISC microcontrollers
+LICENSE= gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND gnu-lgpl-v3
DEPENDS+= avr-binutils-[0-9]*:../../cross/avr-binutils
@@ -19,14 +18,18 @@
GNU_CONFIGURE= yes
+USE_LANGUAGES= c c++
USE_TOOLS+= bison gmake lex perl tar msgfmt autoconf pod2man
USE_PKGLOCALEDIR= yes
USE_GNU_CONFIGURE_HOST= no
CONFIGURE_ARGS+= --target=avr
+CONFIGURE_ARGS+= '--enable-languages=c c++'
CONFIGURE_ARGS+= --disable-nls --disable-lto
+CONFIGURE_ARGS+= --disable-libquadmath-support
CONFIGURE_ARGS+= --enable-multilib
CONFIGURE_ARGS+= --with-system-zlib
+CONFIGURE_ARGS+= --disable-threads
MAKE_ENV+= MACHINE_ARCH=avr
MAKE_ENV+= SHELL=${CONFIG_SHELL}
Index: cross/avr-gcc/PLIST
===================================================================
RCS file: /home/netbsd/cvsroot/pkgsrc/cross/avr-gcc/PLIST,v
retrieving revision 1.5
diff -u -d -r1.5 PLIST
--- cross/avr-gcc/PLIST 7 Aug 2013 03:11:35 -0000 1.5
+++ cross/avr-gcc/PLIST 10 Jun 2014 06:38:08 -0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2013/08/07 03:11:35 mef Exp $
+@comment $NetBSD$
avr/bin/c++
avr/bin/g++
avr/bin/gcc
@@ -7,10 +7,14 @@
bin/avr-g++
bin/avr-gcc
bin/${PKGNAME}
-bin/avr-gccbug
+bin/avr-gcc-ar
+bin/avr-gcc-nm
+bin/avr-gcc-ranlib
bin/avr-gcov
lib/gcc/avr/${PKGVERSION}/avr25/libgcc.a
lib/gcc/avr/${PKGVERSION}/avr25/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avr25/tiny-stack/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avr25/tiny-stack/libgcov.a
lib/gcc/avr/${PKGVERSION}/avr3/libgcc.a
lib/gcc/avr/${PKGVERSION}/avr3/libgcov.a
lib/gcc/avr/${PKGVERSION}/avr31/libgcc.a
@@ -25,18 +29,30 @@
lib/gcc/avr/${PKGVERSION}/avr51/libgcov.a
lib/gcc/avr/${PKGVERSION}/avr6/libgcc.a
lib/gcc/avr/${PKGVERSION}/avr6/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avrxmega2/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avrxmega2/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avrxmega4/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avrxmega4/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avrxmega5/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avrxmega5/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avrxmega6/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avrxmega6/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avrxmega7/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avrxmega7/libgcov.a
lib/gcc/avr/${PKGVERSION}/include-fixed/README
lib/gcc/avr/${PKGVERSION}/include-fixed/limits.h
lib/gcc/avr/${PKGVERSION}/include-fixed/syslimits.h
lib/gcc/avr/${PKGVERSION}/include/float.h
lib/gcc/avr/${PKGVERSION}/include/iso646.h
+lib/gcc/avr/${PKGVERSION}/include/stdalign.h
lib/gcc/avr/${PKGVERSION}/include/stdarg.h
lib/gcc/avr/${PKGVERSION}/include/stdbool.h
lib/gcc/avr/${PKGVERSION}/include/stddef.h
+lib/gcc/avr/${PKGVERSION}/include/stdfix-gcc.h
lib/gcc/avr/${PKGVERSION}/include/stdfix.h
lib/gcc/avr/${PKGVERSION}/include/stdint-gcc.h
lib/gcc/avr/${PKGVERSION}/include/stdint.h
-lib/gcc/avr/${PKGVERSION}/include/tgmath.h
+lib/gcc/avr/${PKGVERSION}/include/stdnoreturn.h
lib/gcc/avr/${PKGVERSION}/include/unwind.h
lib/gcc/avr/${PKGVERSION}/include/varargs.h
lib/gcc/avr/${PKGVERSION}/install-tools/fixinc_list
@@ -47,8 +63,11 @@
lib/gcc/avr/${PKGVERSION}/install-tools/mkheaders.conf
lib/gcc/avr/${PKGVERSION}/libgcc.a
lib/gcc/avr/${PKGVERSION}/libgcov.a
+lib/gcc/avr/${PKGVERSION}/plugin/gtype.state
+lib/gcc/avr/${PKGVERSION}/plugin/include/ada/gcc-interface/ada-tree.def
lib/gcc/avr/${PKGVERSION}/plugin/include/alias.h
lib/gcc/avr/${PKGVERSION}/plugin/include/all-tree.def
+lib/gcc/avr/${PKGVERSION}/plugin/include/alloc-pool.h
lib/gcc/avr/${PKGVERSION}/plugin/include/ansidecl.h
lib/gcc/avr/${PKGVERSION}/plugin/include/auto-host.h
lib/gcc/avr/${PKGVERSION}/plugin/include/b-header-vars
@@ -56,19 +75,27 @@
lib/gcc/avr/${PKGVERSION}/plugin/include/bitmap.h
lib/gcc/avr/${PKGVERSION}/plugin/include/builtins.def
lib/gcc/avr/${PKGVERSION}/plugin/include/bversion.h
-lib/gcc/avr/${PKGVERSION}/plugin/include/c-common.def
-lib/gcc/avr/${PKGVERSION}/plugin/include/c-common.h
-lib/gcc/avr/${PKGVERSION}/plugin/include/c-pragma.h
-lib/gcc/avr/${PKGVERSION}/plugin/include/c-pretty-print.h
+lib/gcc/avr/${PKGVERSION}/plugin/include/c-family/c-common.def
+lib/gcc/avr/${PKGVERSION}/plugin/include/c-family/c-common.h
+lib/gcc/avr/${PKGVERSION}/plugin/include/c-family/c-objc.h
+lib/gcc/avr/${PKGVERSION}/plugin/include/c-family/c-pragma.h
+lib/gcc/avr/${PKGVERSION}/plugin/include/c-family/c-pretty-print.h
+lib/gcc/avr/${PKGVERSION}/plugin/include/c-tree.h
+lib/gcc/avr/${PKGVERSION}/plugin/include/cfg-flags.def
lib/gcc/avr/${PKGVERSION}/plugin/include/cfghooks.h
lib/gcc/avr/${PKGVERSION}/plugin/include/cfgloop.h
lib/gcc/avr/${PKGVERSION}/plugin/include/cgraph.h
lib/gcc/avr/${PKGVERSION}/plugin/include/cif-code.def
lib/gcc/avr/${PKGVERSION}/plugin/include/config.h
+lib/gcc/avr/${PKGVERSION}/plugin/include/config/avr/avr-arch.h
lib/gcc/avr/${PKGVERSION}/plugin/include/config/avr/avr-protos.h
+lib/gcc/avr/${PKGVERSION}/plugin/include/config/avr/avr-stdint.h
lib/gcc/avr/${PKGVERSION}/plugin/include/config/avr/avr.h
+lib/gcc/avr/${PKGVERSION}/plugin/include/config/avr/avrlibc.h
+lib/gcc/avr/${PKGVERSION}/plugin/include/config/avr/elf.h
lib/gcc/avr/${PKGVERSION}/plugin/include/config/dbxelf.h
-lib/gcc/avr/${PKGVERSION}/plugin/include/config/newlib-stdint.h
+lib/gcc/avr/${PKGVERSION}/plugin/include/config/elfos.h
+lib/gcc/avr/${PKGVERSION}/plugin/include/config/initfini-array.h
lib/gcc/avr/${PKGVERSION}/plugin/include/configargs.h
lib/gcc/avr/${PKGVERSION}/plugin/include/coretypes.h
lib/gcc/avr/${PKGVERSION}/plugin/include/cp/cp-tree.def
@@ -79,21 +106,26 @@
lib/gcc/avr/${PKGVERSION}/plugin/include/cpplib.h
lib/gcc/avr/${PKGVERSION}/plugin/include/debug.h
lib/gcc/avr/${PKGVERSION}/plugin/include/defaults.h
+lib/gcc/avr/${PKGVERSION}/plugin/include/diagnostic-core.h
lib/gcc/avr/${PKGVERSION}/plugin/include/diagnostic.def
lib/gcc/avr/${PKGVERSION}/plugin/include/diagnostic.h
lib/gcc/avr/${PKGVERSION}/plugin/include/double-int.h
+lib/gcc/avr/${PKGVERSION}/plugin/include/dumpfile.h
lib/gcc/avr/${PKGVERSION}/plugin/include/emit-rtl.h
lib/gcc/avr/${PKGVERSION}/plugin/include/except.h
lib/gcc/avr/${PKGVERSION}/plugin/include/filenames.h
lib/gcc/avr/${PKGVERSION}/plugin/include/fixed-value.h
+lib/gcc/avr/${PKGVERSION}/plugin/include/flag-types.h
lib/gcc/avr/${PKGVERSION}/plugin/include/flags.h
lib/gcc/avr/${PKGVERSION}/plugin/include/function.h
lib/gcc/avr/${PKGVERSION}/plugin/include/gcc-plugin.h
lib/gcc/avr/${PKGVERSION}/plugin/include/genrtl.h
lib/gcc/avr/${PKGVERSION}/plugin/include/ggc.h
+lib/gcc/avr/${PKGVERSION}/plugin/include/gimple-pretty-print.h
lib/gcc/avr/${PKGVERSION}/plugin/include/gimple.def
lib/gcc/avr/${PKGVERSION}/plugin/include/gimple.h
lib/gcc/avr/${PKGVERSION}/plugin/include/gsstruct.def
+lib/gcc/avr/${PKGVERSION}/plugin/include/gtm-builtins.def
lib/gcc/avr/${PKGVERSION}/plugin/include/gtype-desc.h
lib/gcc/avr/${PKGVERSION}/plugin/include/hard-reg-set.h
lib/gcc/avr/${PKGVERSION}/plugin/include/hashtab.h
@@ -105,16 +137,23 @@
lib/gcc/avr/${PKGVERSION}/plugin/include/insn-flags.h
lib/gcc/avr/${PKGVERSION}/plugin/include/insn-modes.h
lib/gcc/avr/${PKGVERSION}/plugin/include/insn-notes.def
+lib/gcc/avr/${PKGVERSION}/plugin/include/internal-fn.def
+lib/gcc/avr/${PKGVERSION}/plugin/include/internal-fn.h
lib/gcc/avr/${PKGVERSION}/plugin/include/intl.h
lib/gcc/avr/${PKGVERSION}/plugin/include/ipa-prop.h
+lib/gcc/avr/${PKGVERSION}/plugin/include/ipa-ref-inline.h
+lib/gcc/avr/${PKGVERSION}/plugin/include/ipa-ref.h
lib/gcc/avr/${PKGVERSION}/plugin/include/ipa-reference.h
lib/gcc/avr/${PKGVERSION}/plugin/include/ipa-utils.h
+lib/gcc/avr/${PKGVERSION}/plugin/include/is-a.h
+lib/gcc/avr/${PKGVERSION}/plugin/include/java/java-tree.def
lib/gcc/avr/${PKGVERSION}/plugin/include/langhooks.h
lib/gcc/avr/${PKGVERSION}/plugin/include/libiberty.h
lib/gcc/avr/${PKGVERSION}/plugin/include/line-map.h
lib/gcc/avr/${PKGVERSION}/plugin/include/machmode.h
lib/gcc/avr/${PKGVERSION}/plugin/include/md5.h
lib/gcc/avr/${PKGVERSION}/plugin/include/mode-classes.def
+lib/gcc/avr/${PKGVERSION}/plugin/include/objc/objc-tree.def
lib/gcc/avr/${PKGVERSION}/plugin/include/obstack.h
lib/gcc/avr/${PKGVERSION}/plugin/include/omp-builtins.def
lib/gcc/avr/${PKGVERSION}/plugin/include/options.h
@@ -122,7 +161,7 @@
lib/gcc/avr/${PKGVERSION}/plugin/include/output.h
lib/gcc/avr/${PKGVERSION}/plugin/include/params.def
lib/gcc/avr/${PKGVERSION}/plugin/include/params.h
-lib/gcc/avr/${PKGVERSION}/plugin/include/partition.h
+lib/gcc/avr/${PKGVERSION}/plugin/include/plugin-api.h
lib/gcc/avr/${PKGVERSION}/plugin/include/plugin-version.h
lib/gcc/avr/${PKGVERSION}/plugin/include/plugin.def
lib/gcc/avr/${PKGVERSION}/plugin/include/plugin.h
@@ -132,16 +171,20 @@
lib/gcc/avr/${PKGVERSION}/plugin/include/prefix.h
lib/gcc/avr/${PKGVERSION}/plugin/include/pretty-print.h
lib/gcc/avr/${PKGVERSION}/plugin/include/real.h
+lib/gcc/avr/${PKGVERSION}/plugin/include/realmpfr.h
lib/gcc/avr/${PKGVERSION}/plugin/include/reg-notes.def
lib/gcc/avr/${PKGVERSION}/plugin/include/rtl.def
lib/gcc/avr/${PKGVERSION}/plugin/include/rtl.h
lib/gcc/avr/${PKGVERSION}/plugin/include/safe-ctype.h
+lib/gcc/avr/${PKGVERSION}/plugin/include/sanitizer.def
lib/gcc/avr/${PKGVERSION}/plugin/include/sbitmap.h
lib/gcc/avr/${PKGVERSION}/plugin/include/splay-tree.h
lib/gcc/avr/${PKGVERSION}/plugin/include/statistics.h
lib/gcc/avr/${PKGVERSION}/plugin/include/symtab.h
lib/gcc/avr/${PKGVERSION}/plugin/include/sync-builtins.def
lib/gcc/avr/${PKGVERSION}/plugin/include/system.h
+lib/gcc/avr/${PKGVERSION}/plugin/include/target-hooks-macros.h
+lib/gcc/avr/${PKGVERSION}/plugin/include/target.def
lib/gcc/avr/${PKGVERSION}/plugin/include/target.h
lib/gcc/avr/${PKGVERSION}/plugin/include/timevar.def
lib/gcc/avr/${PKGVERSION}/plugin/include/timevar.h
@@ -156,16 +199,18 @@
lib/gcc/avr/${PKGVERSION}/plugin/include/tree-inline.h
lib/gcc/avr/${PKGVERSION}/plugin/include/tree-iterator.h
lib/gcc/avr/${PKGVERSION}/plugin/include/tree-pass.h
+lib/gcc/avr/${PKGVERSION}/plugin/include/tree-pretty-print.h
lib/gcc/avr/${PKGVERSION}/plugin/include/tree-ssa-alias.h
lib/gcc/avr/${PKGVERSION}/plugin/include/tree-ssa-operands.h
lib/gcc/avr/${PKGVERSION}/plugin/include/tree-ssa-sccvn.h
lib/gcc/avr/${PKGVERSION}/plugin/include/tree.def
lib/gcc/avr/${PKGVERSION}/plugin/include/tree.h
lib/gcc/avr/${PKGVERSION}/plugin/include/treestruct.def
-lib/gcc/avr/${PKGVERSION}/plugin/include/varray.h
lib/gcc/avr/${PKGVERSION}/plugin/include/vec.h
-lib/gcc/avr/${PKGVERSION}/plugin/include/vecprim.h
lib/gcc/avr/${PKGVERSION}/plugin/include/version.h
+lib/gcc/avr/${PKGVERSION}/tiny-stack/libgcc.a
+lib/gcc/avr/${PKGVERSION}/tiny-stack/libgcov.a
+lib/libiberty.a
libexec/gcc/avr/${PKGVERSION}/cc1
libexec/gcc/avr/${PKGVERSION}/cc1plus
libexec/gcc/avr/${PKGVERSION}/collect2
@@ -174,6 +219,7 @@
libexec/gcc/avr/${PKGVERSION}/install-tools/mkheaders
libexec/gcc/avr/${PKGVERSION}/install-tools/mkinstalldirs
libexec/gcc/avr/${PKGVERSION}/lto-wrapper
+libexec/gcc/avr/${PKGVERSION}/plugin/gengtype
man/man1/avr-cpp.1
man/man1/avr-g++.1
man/man1/avr-gcc.1
@@ -181,3 +227,4 @@
man/man7/fsf-funding.7
man/man7/gfdl.7
man/man7/gpl.7
+@pkgdir share/info
Index: cross/avr-gcc/distinfo
===================================================================
RCS file: /home/netbsd/cvsroot/pkgsrc/cross/avr-gcc/distinfo,v
retrieving revision 1.8
diff -u -d -r1.8 distinfo
--- cross/avr-gcc/distinfo 7 Aug 2013 03:11:35 -0000 1.8
+++ cross/avr-gcc/distinfo 10 Jun 2014 12:40:55 -0000
@@ -1,12 +1,45 @@
$NetBSD: distinfo,v 1.8 2013/08/07 03:11:35 mef Exp $
-SHA1 (gcc-core-4.5.3.tar.bz2) = 5edd2a4ae5a265df716550079995c0a0bc7be564
-RMD160 (gcc-core-4.5.3.tar.bz2) = ef6b9cddc3bcd9884766645659d03f460aab443d
-Size (gcc-core-4.5.3.tar.bz2) = 28252641 bytes
-SHA1 (gcc-g++-4.5.3.tar.bz2) = fde6d16c2d4a2ab21abeaa7dc8e73e22557e8a2d
-RMD160 (gcc-g++-4.5.3.tar.bz2) = 5ef37a35671b475c1f86962dfa796133c80e6549
-Size (gcc-g++-4.5.3.tar.bz2) = 6475820 bytes
-SHA1 (patch-ab) = 4396719b8398cf9eb1f939c447dede250ceb4e26
-SHA1 (patch-gcc_config_avr_driver-avr_c) = 882b1ef0f9bb12338e1b0de2941d2d4164039082
-SHA1 (patch-gcc_cp_cfns.h) = d657e8ecde1fc73eebccb4f790f3b266ee2d7a6d
-SHA1 (patch-libiberty_Makefile.in) = 063c763dc379faf5c74cd0d50ec0d8e26f246bb0
+SHA1 (gcc-4.8.3.tar.bz2) = da0a2b9ec074f2bf624a34f3507f812ebb6e4dce
+RMD160 (gcc-4.8.3.tar.bz2) = 2c7214ff607cbe822282c04d1d6f9fea765c82c5
+Size (gcc-4.8.3.tar.bz2) = 86126808 bytes
+SHA1 (patch-gcc-config-vax-constraints.md) = e6cea7a5334b5b124ca3e8b62eba45423e788e55
+SHA1 (patch-gcc-config-vax-vax.c) = 02e389ec418a0fee1431ecd61d65b7f8d7629785
+SHA1 (patch-gcc-config-vax-vax.md) = e06696be85641cbe9131ecc10bb28c45a465916d
+SHA1 (patch-gcc_Makefile.in) = b2bceb34537de1cf704f18a59aa4e4d4a4551c62
+SHA1 (patch-gcc_config.gcc) = ac175c5eecf3dd53508479b30bf5c59cc0a5fca9
+SHA1 (patch-gcc_config.host) = 1b1e11cd199eb93f49443d51c0063b09b7327858
+SHA1 (patch-gcc_config_dragonfly-stdint.h) = 740dc819b446d5f1476506322c4b280ffdb5a6c0
+SHA1 (patch-gcc_config_dragonfly.h) = 82f549cdc7543b4bf413a44d481ef42b10f59c82
+SHA1 (patch-gcc_config_dragonfly.opt) = 92f615c73c2e94664bae5b5935ab8b09bca15f73
+SHA1 (patch-gcc_config_host-netbsd.c) = 8f13b09dd7006d456cd1c66e895be504e9537880
+SHA1 (patch-gcc_config_i386_dragonfly.h) = 0d3f785434c02beb9c4561fe59842a970e8f7896
+SHA1 (patch-gcc_config_netbsd-stdint.h) = 025fc883101a187e84ed4c0772406720d645d550
+SHA1 (patch-gcc_config_x-netbsd) = 6dc3d78e26df62054ea29f98ca51592858e671e3
+SHA1 (patch-gcc_configure) = a4b670d0c54c410d38715b7a2a572a7048e3ec5e
+SHA1 (patch-gcc_fortran_f95-lang.c) = 945aacf6b307f2120a4105c833b45a40feced68e
+SHA1 (patch-gcc_ggc-common.c) = fa577bc25260d7e6304f166686ba51c0b677d7f6
+SHA1 (patch-gcc_ginclude_stddef.h) = 50be7c9469ac58c79e10abda5e7cfef5f91dd249
+SHA1 (patch-gcc_system.h) = 4c959a6b1c4d524cbdf44cfb80f0e5758ec20783
+SHA1 (patch-include_libiberty.h) = ad2c64e9a14405c89b02ff68811b1c889405d0a1
+SHA1 (patch-libgcc_config.host) = 1807e784c9808243d1a99b19534d94752d81ce6d
+SHA1 (patch-libgcc_config_i386_dragonfly-unwind.h) = 9d77252dd982495e90f95b82706bab29e581df9f
+SHA1 (patch-libgcc_crtstuff.c) = 88500ea895cd683608f8f2b7177149f11947e3b4
+SHA1 (patch-libgcc_unwind-dw2-fde-dip.c) = 770f04f3cbeb0d794fa297b328f06f6e687419c0
+SHA1 (patch-libgo_Makefile.in) = 612987541f745c7be6835ce7fb7119884db294c3
+SHA1 (patch-libjava_boehm.cc) = b18bc9d410a62543583c77e011f50b86f41ca18a
+SHA1 (patch-libjava_configure) = 48ea2baffe87e09dda8133d286bd9b1bfe4c3f8a
+SHA1 (patch-libjava_contrib_rebuild-gcj-db.in) = bb01d738fc7db05046ae37e8ade32574de1d8297
+SHA1 (patch-libsanitizer_configure.tgt) = a56ba5e2dc6bc413e80358353af16e6910b0e106
+SHA1 (patch-libstdc++-v3_config_locale_dragonfly_c__locale.cc) = 5c0ccc6b90e3508b03ed399e8e9e300a6aa9cbb7
+SHA1 (patch-libstdc++-v3_config_locale_dragonfly_ctype__members.cc) = 876a754c7fcb1c4a362ca7b2655da6cdbb784ccc
+SHA1 (patch-libstdc++-v3_config_os_bsd_dragonfly_ctype__base.h) = 12b8e3b998ae1c4b6641d8f9e26e7430c58bb7bc
+SHA1 (patch-libstdc++-v3_config_os_bsd_dragonfly_ctype__configure__char.cc) = d5649f42b61ff3c27d60e813cc844b820525aee4
+SHA1 (patch-libstdc++-v3_config_os_bsd_dragonfly_ctype__inline.h) = 3e8cbedb167fc623f184a59b1f4b330544b08939
+SHA1 (patch-libstdc++-v3_config_os_bsd_dragonfly_os__defines.h) = 9a45ecb4309c50ca90008b2fc7d3b44d002698b4
+SHA1 (patch-libstdc++-v3_config_os_bsd_netbsd_ctype__base.h) = 014d442c885b9c51d1a4af05205279c274a9559d
+SHA1 (patch-libstdc++-v3_config_os_bsd_netbsd_ctype__configure__char.cc) = b63c2682336c9b6f0e0d7b900d6f40ad6e7a5ec4
+SHA1 (patch-libstdc++-v3_config_os_bsd_netbsd_ctype__inline.h) = 626fc1f9c035ac5cef30a92d525af4e778835ebf
+SHA1 (patch-libstdc++-v3_configure) = 3821275fa698221d7665ea3c98b0a24f33954a5a
+SHA1 (patch-libstdc++-v3_configure.host) = 7426ea4a9735e5f886f4a3ffb4a9ba62734178c4
+SHA1 (patch-libstdc++-v3_libsupc++_unwind-cxx.h) = 9784bfa4323f8498b36565d0fea28fce69ffdbb1
>Release-Note:
>Audit-Trail:
From: Paul Ripke <stix@stix.id.au>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/48890: avr-gcc fails to build runnable binaries for atmega2560
Date: Thu, 12 Jun 2014 11:09:26 +1000
I should note: cross/avr-libc builds fine after this patch, but
emulators/simulavr does not, failing to build example code due
to real bugs the more picky compiler finds.
From: "Makoto Fujiwara" <mef@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/48890 CVS commit: pkgsrc/cross/avr-gcc
Date: Fri, 29 Aug 2014 04:26:46 +0000
Module Name: pkgsrc
Committed By: mef
Date: Fri Aug 29 04:26:46 UTC 2014
Modified Files:
pkgsrc/cross/avr-gcc: Makefile PLIST buildlink3.mk distinfo
Removed Files:
pkgsrc/cross/avr-gcc/patches: patch-gcc_config_avr_driver-avr_c
patch-libiberty_Makefile.in
Log Message:
PR pkg/48890 was proposed. Thanks. But this commit is slightly
different from the PR (When submitting patch to pkgsrc with
adding more patches, submitter should do cvs add
patches/patch-hoge, before creating the pkgsrc patch, thanks).
I belive both simulavr and avr-libc will be packaged fine with this.
(upstream)
4.7.3 to 4.8.3 -- From grepping 'avr' from NEWS file:
--------------
On AVR, the configure option --with-avrlibc supported since GCC 4.7.2
is turned on per default for all non-RTEMS configurations. This option
arranges for a better integration of [3]AVR Libc with avr-gcc. For
technical details, see [4]PR54461. To turn off the option in non-RTEMS
configurations, use --with-avrlibc=no. If the compiler is configured
for RTEMS, the option is always turned off.
* Support has been added for the AVR-specific configure option
--with-avrlibc=yes in order to arrange for better integration of
[3]AVR-Libc. This configure option is supported in avr-gcc 4.7.2
and newer and will only take effect in non-RTEMS configurations. If
avr-gcc is configured for RTEMS, the option will be ignored which
is the same as specifying --with-avrlibc=no. See [4]PR54461 for
more technical details.
3. http://www.nongnu.org/avr-libc/
4. http://gcc.gnu.org/PR54461
#include <avr/io.h> /* Port Definitions from AVR-LibC */
* [297]14064 [avr-elf] -fdata-sections triggers ICE
* [302]16884 [avr-elf] [fweb related] bug while initializing
4.5.3 to 4.7.3
--------------
For the changes for 4.7, see following page.
http://gcc.gnu.org/gcc-4.7/changes.html
(Picking up AVR related topic from above info):
The AVR port's libgcc has been improved and its multilib
structure has been enhanced. As a result, all objects
contributing to an application must either be compiled with
GCC versions up to 4.6.x or with GCC versions 4.7.1 or
later. If the compiler is used with AVR Libc, you need a
version that supports the new layout, i.e. implements #35407.
The AVR port's -mshort-calls command-line option has been
deprecated. It will be removed in the GCC 4.8 release. See
-mrelax for a replacement.
The AVR port only references startup code that clears .bss and
the common section resp. initializes the .data and .rodata
section provided respective sections (or subsections thereof)
are not empty, see PR18145.
Applications that put all static storage objects into
non-standard sections and / or define all static storage
objects in assembler modules, must reference __do_clear_bss
resp. __do_copy_data by hand or undefine the symbol(s) by
means of -Wl,-u,__do_clear_bss resp. -Wl,-u,__do_copy_data.
To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 pkgsrc/cross/avr-gcc/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/cross/avr-gcc/PLIST
cvs rdiff -u -r1.1 -r1.2 pkgsrc/cross/avr-gcc/buildlink3.mk
cvs rdiff -u -r1.8 -r1.9 pkgsrc/cross/avr-gcc/distinfo
cvs rdiff -u -r1.1 -r0 \
pkgsrc/cross/avr-gcc/patches/patch-gcc_config_avr_driver-avr_c \
pkgsrc/cross/avr-gcc/patches/patch-libiberty_Makefile.in
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: mef@NetBSD.org
State-Changed-When: Fri, 29 Aug 2014 04:55:58 +0000
State-Changed-Why:
Thanks for the patches. avr-gcc is updated 4.5.3 to 4.8.3.
Could you let me know the status ? (Sorry for late response).
From: Paul Ripke <stix@stix.id.au>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/48890: avr-gcc fails to build runnable binaries for atmega2560
Date: Fri, 26 Sep 2014 15:08:38 +1000
Confirmed checked in patch builds runnable avr binaries just fine.
Thanks!
State-Changed-From-To: feedback->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Fri, 26 Sep 2014 07:09:46 +0000
State-Changed-Why:
Confirmed fixed, thanks for the feedback!
>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.