Bug#871077: gnu-smalltalk: FTBFS: configure: error: Synchronization primitives not found, please use a newer compiler.
control: tags -1 pending Uploading shortly the following debdiff thanks Adrian! G. On Thu, 1 Feb 2018 18:31:13 +0200 Adrian Bunk wrote: > Control: tags -1 patch > > On Sun, Aug 06, 2017 at 05:59:50PM -0400, Lucas Nussbaum wrote: > >... > > > checking for LIBFFI... yes > > > checking for sigsegv_install_handler in -lsigsegv... no > > > > > > Platform environment: > > > checking whether the host supports __sync_fetch_and_add... no > > > configure: error: Synchronization primitives not found, please use a > > > newer compiler. > > > debian/rules:16: recipe for target 'configure-stamp' failed > >... > > The actual error is according to config.log: > cc1: error: -Wformat-security ignored without -Wformat > [-Werror=format-security] > > Fix: > > --- debian/rules.old 2018-02-01 14:55:54.960603766 + > +++ debian/rules 2018-02-01 14:58:04.752602528 + > @@ -8,6 +8,7 @@ > QUILT_STAMPFN = patch-stamp > include /usr/share/quilt/quilt.make > > +export DEB_BUILD_MAINT_OPTIONS = hardening=-format > DPKG_EXPORT_BUILDFLAGS = 1 > include /usr/share/dpkg/buildflags.mk > > > There is now also a second build failure later related to Tcl 8.6, > upstream fix for that is attached. > > > cu > Adrian > > -- > >"Is there not promise of rain?" Ling Tan asked suddenly out > of the darkness. There had been need of rain for many days. >"Only a promise," Lao Er said. >Pearl S. Buck - Dragon Seed > diff -u gnu-smalltalk-3.2.5/debian/changelog gnu-smalltalk-3.2.5/debian/changelog --- gnu-smalltalk-3.2.5/debian/changelog +++ gnu-smalltalk-3.2.5/debian/changelog @@ -1,3 +1,13 @@ +gnu-smalltalk (3.2.5-1.1) unstable; urgency=medium + + * Non-maintainer upload. + + [ Adrian Bunk ] + * debian/patches/09_tcl_ftbfs.patch: +- fix build with new toolchain (Closes: #871077) + + -- Gianfranco Costamagna Fri, 02 Feb 2018 17:40:01 +0100 + gnu-smalltalk (3.2.5-1) unstable; urgency=medium * Acknowledge NMU. Thanks Andreas! diff -u gnu-smalltalk-3.2.5/debian/patches/series gnu-smalltalk-3.2.5/debian/patches/series --- gnu-smalltalk-3.2.5/debian/patches/series +++ gnu-smalltalk-3.2.5/debian/patches/series @@ -6,0 +7 @@ +09_tcl_ftbfs.patch diff -u gnu-smalltalk-3.2.5/debian/rules gnu-smalltalk-3.2.5/debian/rules --- gnu-smalltalk-3.2.5/debian/rules +++ gnu-smalltalk-3.2.5/debian/rules @@ -8,6 +8,7 @@ QUILT_STAMPFN = patch-stamp include /usr/share/quilt/quilt.make +export DEB_BUILD_MAINT_OPTIONS = hardening=-format DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk only in patch2: unchanged: --- gnu-smalltalk-3.2.5.orig/debian/patches/09_tcl_ftbfs.patch +++ gnu-smalltalk-3.2.5/debian/patches/09_tcl_ftbfs.patch @@ -0,0 +1,51 @@ +From 84fc8a50f692624921d4233dec1a3c8796f5b5da Mon Sep 17 00:00:00 2001 +From: Holger Hans Peter Freyther +Date: Mon, 26 May 2014 07:53:05 +0200 +Subject: blox: Direct usage of result is deprecated and stops working + +Use Tcl_GetStringResult(interp) instead of interp->result on +newer versions of Tcl. It looks like Tcl_GetStringResult has +been present in the entire 8.0 series. + +2014-05-26 Holger Hans Peter Freyther + + * BloxTK.c: Use Tcl_GetStringResult to access the result. +--- + packages/blox/tk/BloxTK.c | 4 ++-- + packages/blox/tk/ChangeLog | 4 + 2 files changed, 6 insertions(+), 2 deletions(-) + +diff --git a/packages/blox/tk/BloxTK.c b/packages/blox/tk/BloxTK.c +index 2ba40b81..2f06b7f0 100644 +--- a/packages/blox/tk/BloxTK.c b/packages/blox/tk/BloxTK.c +@@ -173,12 +173,12 @@ tclInit (void) + + if (Tcl_Init (interp) == TCL_ERROR) + { +- fprintf (stderr, "Tcl_Init failed: %s\n", interp->result); ++ fprintf (stderr, "Tcl_Init failed: %s\n", Tcl_GetStringResult(interp)); + exit (1); + } + if (Tk_Init (interp) == TCL_ERROR) + { +- fprintf (stderr, "Tk_Init failed: %s\n", interp->result); ++ fprintf (stderr, "Tk_Init failed: %s\n", Tcl_GetStringResult(interp)); + exit (1); + } + Tcl_CreateCommand (interp, "callback", doCallback, NULL, NULL); +diff --git a/packages/blox/tk/ChangeLog b/packages/blox/tk/ChangeLog +index aefd2dcb..159b1776 100644 +--- a/packages/blox/tk/ChangeLog b/packages/blox/tk/ChangeLog +@@ -1,3 +1,7 @@ ++2014-05-26 Holger Hans Peter Freyther ++ ++ * BloxTK.c: Use Tcl_GetStringResult to access the result. ++ + 2010-12-04 Paolo Bonzini + + * package.xml: Remove now superfluous tags. +-- +2.11.0 + signature.asc Description: OpenPGP digital signature
Processed: Re: Bug#871077: gnu-smalltalk: FTBFS: configure: error: Synchronization primitives not found, please use a newer compiler.
Processing control commands: > tags -1 pending Bug #871077 [src:gnu-smalltalk] gnu-smalltalk: FTBFS: configure: error: Synchronization primitives not found, please use a newer compiler. Added tag(s) pending. -- 871077: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871077 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
Processed: Re: Bug#871077: gnu-smalltalk: FTBFS: configure: error: Synchronization primitives not found, please use a newer compiler.
Processing control commands: > tags -1 patch Bug #871077 [src:gnu-smalltalk] gnu-smalltalk: FTBFS: configure: error: Synchronization primitives not found, please use a newer compiler. Added tag(s) patch. -- 871077: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871077 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
Bug#871077: gnu-smalltalk: FTBFS: configure: error: Synchronization primitives not found, please use a newer compiler.
Control: tags -1 patch On Sun, Aug 06, 2017 at 05:59:50PM -0400, Lucas Nussbaum wrote: >... > > checking for LIBFFI... yes > > checking for sigsegv_install_handler in -lsigsegv... no > > > > Platform environment: > > checking whether the host supports __sync_fetch_and_add... no > > configure: error: Synchronization primitives not found, please use a newer > > compiler. > > debian/rules:16: recipe for target 'configure-stamp' failed >... The actual error is according to config.log: cc1: error: -Wformat-security ignored without -Wformat [-Werror=format-security] Fix: --- debian/rules.old2018-02-01 14:55:54.960603766 + +++ debian/rules2018-02-01 14:58:04.752602528 + @@ -8,6 +8,7 @@ QUILT_STAMPFN = patch-stamp include /usr/share/quilt/quilt.make +export DEB_BUILD_MAINT_OPTIONS = hardening=-format DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk There is now also a second build failure later related to Tcl 8.6, upstream fix for that is attached. cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed >From 84fc8a50f692624921d4233dec1a3c8796f5b5da Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 26 May 2014 07:53:05 +0200 Subject: blox: Direct usage of result is deprecated and stops working Use Tcl_GetStringResult(interp) instead of interp->result on newer versions of Tcl. It looks like Tcl_GetStringResult has been present in the entire 8.0 series. 2014-05-26 Holger Hans Peter Freyther * BloxTK.c: Use Tcl_GetStringResult to access the result. --- packages/blox/tk/BloxTK.c | 4 ++-- packages/blox/tk/ChangeLog | 4 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/blox/tk/BloxTK.c b/packages/blox/tk/BloxTK.c index 2ba40b81..2f06b7f0 100644 --- a/packages/blox/tk/BloxTK.c +++ b/packages/blox/tk/BloxTK.c @@ -173,12 +173,12 @@ tclInit (void) if (Tcl_Init (interp) == TCL_ERROR) { - fprintf (stderr, "Tcl_Init failed: %s\n", interp->result); + fprintf (stderr, "Tcl_Init failed: %s\n", Tcl_GetStringResult(interp)); exit (1); } if (Tk_Init (interp) == TCL_ERROR) { - fprintf (stderr, "Tk_Init failed: %s\n", interp->result); + fprintf (stderr, "Tk_Init failed: %s\n", Tcl_GetStringResult(interp)); exit (1); } Tcl_CreateCommand (interp, "callback", doCallback, NULL, NULL); diff --git a/packages/blox/tk/ChangeLog b/packages/blox/tk/ChangeLog index aefd2dcb..159b1776 100644 --- a/packages/blox/tk/ChangeLog +++ b/packages/blox/tk/ChangeLog @@ -1,3 +1,7 @@ +2014-05-26 Holger Hans Peter Freyther + + * BloxTK.c: Use Tcl_GetStringResult to access the result. + 2010-12-04 Paolo Bonzini * package.xml: Remove now superfluous tags. -- 2.11.0
Bug#871077: gnu-smalltalk: FTBFS: configure: error: Synchronization primitives not found, please use a newer compiler.
Source: gnu-smalltalk Version: 3.2.5-1 Severity: serious Tags: buster sid User: debian...@lists.debian.org Usertags: qa-ftbfs-20170805 qa-ftbfs Justification: FTBFS on amd64 Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part (hopefully): > checking for LIBFFI... yes > checking for sigsegv_install_handler in -lsigsegv... no > > Platform environment: > checking whether the host supports __sync_fetch_and_add... no > configure: error: Synchronization primitives not found, please use a newer > compiler. > debian/rules:16: recipe for target 'configure-stamp' failed The full build log is available from: http://aws-logs.debian.net/2017/08/05/gnu-smalltalk_3.2.5-1_unstable.log A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute! About the archive rebuild: The rebuild was done on EC2 VM instances from Amazon Web Services, using a clean, minimal and up-to-date chroot. Every failed build was retried once to eliminate random failures.