On 5 April 2014 at 15:39, Ivo De Decker wrote: | Hi Dirk, | | On Sat, Apr 05, 2014 at 08:11:03AM -0500, Dirk Eddelbuettel wrote: | > That's a gcc error. | > | > I changed how to set CFLAGS etc by calling dpkg-buildflags so I am pretty | > much playing by the book. What do you suggest I do? Take out -O2 or -g on | > armhf? | | It's probably a good idea to submit a bug report against gcc, and to notify | the arm* porters, to make sure the gcc issue is investigated.
Can you take care of that, please? | In the mean time, however, the missing build on armhf will block migration to | testing, so if you can fix the build by changing the CFLAGS, that's probably | best for now. I had hope that using dpkg-buildflags would circumvent the need for these dance, but apparently not. I start by arch := $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU) buildarch := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) ## edd 26 Jul 2013 also use DEB_HOST_ARCH_OS to catch kFreeBSD buildos := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) [...] optimflags = $(shell dpkg-buildflags --get CFLAGS) and I still have all these special cases from way back when ## lam...@debian.org 06 Dec 2001 hppa needs -ffunction-sections ifeq ($(arch),hppa) optimflags = -O2 -ffunction-sections endif ## edd 20 Jun 2002 no optimisation or debugging on baby systems ## edd 02 Jun 2003 use this on arm only ## edd 12 May 2010 no longer use it on arm either -- thx Modestas ## edd 04 Aug 2010 on mips and mipsel, don't use -g ##ifneq "$(findstring $(arch), m68k arm)" "" #ifneq "$(findstring $(arch), arm)" "" ifneq "$(findstring $(arch), mips mipsel)" "" optimflags = -g0 #optimflags = -O0 -g0 endif ## edd 04 Apr 2009 Alpha dies on deriv.c, trying will less optimisation ## edd 16 Apr 2009 commented-out as Kurt Roeckx applied a gcc patch #ifeq ($(arch),alpha) #optimflags = -O2 -g0 #endif ## edd 09 Apr 2006 per patch from Andreas Jochens in #361604 ifeq ($(arch),powerpc64) optimflags += -mminimal-toc endif ## edd 26 Jul 2013 kFreeBSD wants -O2 per #714506 ifeq ($(buildos),kfreebsd) optimflags = -O2 -pipe endif Currently none for arm / armhf. Do you suggest setting armhf only? And to what? No debug? No optim? Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org