Debian Bug report logs - #835582
llvm-toolchain-3.6: FTBFS with gcc-6

version graph

Package: src:llvm-toolchain-3.6; Maintainer for src:llvm-toolchain-3.6 is (unknown);

Reported by: Samuel Thibault <sthibault@debian.org>

Date: Sat, 27 Aug 2016 09:06:02 UTC

Severity: serious

Found in version llvm-toolchain-3.6/1:3.6.2-3

Fixed in version llvm-toolchain-3.6/1:3.6.2-4

Done: Gianfranco Costamagna <locutusofborg@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>:
Bug#835582; Package src:llvm-toolchain-3.6. (Sat, 27 Aug 2016 09:06:05 GMT) (full text, mbox, link).


Acknowledgement sent to Samuel Thibault <sthibault@debian.org>:
New Bug report received and forwarded. Copy sent to LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>. (Sat, 27 Aug 2016 09:06:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Samuel Thibault <sthibault@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: llvm-toolchain-3.6: FTBFS with gcc-6
Date: Sat, 27 Aug 2016 11:03:51 +0200
Source: llvm-toolchain-3.6
Version: 1:3.6.2-3
Severity: serious
Justification: FTBFS

Hello,

llvm-toolchain-3.6 FTBFS with the new gcc default, gcc-6:

make[1]: gcc-6.1: Command not found

It should indeed call gcc-6. The "crappy workaround" in debian/rules
could be updated :)

Samuel

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.7.0 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-- 
Samuel
 je n ai cité aucun message et sur irc on parle effectivement comme des
 enfants de 5 ans na!
 > 3. Quand tu cite un message, répond _après_ ce que tu cites !
 -+- Yota in : Guide du Neuneu d'Usenet - A un Yota près c'était bon -+-



Information forwarded to debian-bugs-dist@lists.debian.org, LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>:
Bug#835582; Package src:llvm-toolchain-3.6. (Sun, 28 Aug 2016 22:39:05 GMT) (full text, mbox, link).


Acknowledgement sent to Samuel Thibault <sthibault@debian.org>:
Extra info received and forwarded to list. Copy sent to LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>. (Sun, 28 Aug 2016 22:39:05 GMT) (full text, mbox, link).


Message #10 received at 835582@bugs.debian.org (full text, mbox, reply):

From: Samuel Thibault <sthibault@debian.org>
To: 835582@bugs.debian.org
Subject: Re: Bug#835582: llvm-toolchain-3.6: FTBFS with gcc-6
Date: Mon, 29 Aug 2016 00:38:00 +0200
Control: clone -1 -2
Control: reassign -2 llvm-toolchain-3.7
Control: retitle -2 llvm-toolchain-3.7: FTBFS with gcc-6

Hello,

Samuel Thibault, on Sat 27 Aug 2016 11:03:51 +0200, wrote:
> llvm-toolchain-3.6 FTBFS with the new gcc default, gcc-6:
> 
> make[1]: gcc-6.1: Command not found

The same happens with llvm-toolchain-3.7.

Samuel



Bug 835582 cloned as bug 835869 Request was from Samuel Thibault <sthibault@debian.org> to 835582-submit@bugs.debian.org. (Sun, 28 Aug 2016 22:39:05 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>:
Bug#835582; Package src:llvm-toolchain-3.6. (Tue, 27 Sep 2016 15:51:02 GMT) (full text, mbox, link).


Acknowledgement sent to Nish Aravamudan <nish.aravamudan@canonical.com>:
Extra info received and forwarded to list. Copy sent to LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>. (Tue, 27 Sep 2016 15:51:02 GMT) (full text, mbox, link).


Message #17 received at 835582@bugs.debian.org (full text, mbox, reply):

From: Nish Aravamudan <nish.aravamudan@canonical.com>
To: 835582@bugs.debian.org
Subject: Possible fix
Date: Tue, 27 Sep 2016 08:47:47 -0700
This gets the build going, but then it eventually seems to fail with:

********************
Failing Tests (2):
    LLVM-Unit :: ADT/Release/ADTTests/APIntTest.LargeAPIntConstruction
    LLVM-Unit :: ADT/Release/ADTTests/APIntTest.nearestLogBase2

Details on the fails I see (with both 16.10 and sid):

FAIL: LLVM-Unit :: ADT/Release/ADTTests/APIntTest.LargeAPIntConstruction (11248 of 12318)
******************** TEST 'LLVM-Unit :: ADT/Release/ADTTests/APIntTest.LargeAPIntConstruction' FAILED ********************
Note: Google Test filter = APIntTest.LargeAPIntConstruction
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from APIntTest
[ RUN      ] APIntTest.LargeAPIntConstruction
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
0  libLLVM-3.6.so.1 0x00007f65fa969b22 llvm::sys::PrintStackTrace(_IO_FILE*) + 50
1  libLLVM-3.6.so.1 0x00007f65fa968251
2  libpthread.so.0  0x00007f65f9b09670
3  libc.so.6        0x00007f65f91c77ef gsignal + 159
4  libc.so.6        0x00007f65f91c93ea abort + 362
5  libstdc++.so.6   0x00007f65f980158d __gnu_cxx::__verbose_terminate_handler() + 365
6  libstdc++.so.6   0x00007f65f97ff336
7  libstdc++.so.6   0x00007f65f97ff381
8  libstdc++.so.6   0x00007f65f97ff599
9  libstdc++.so.6   0x00007f65f97ffb5c
10 libLLVM-3.6.so.1 0x00007f65fa92e9b8 llvm::APInt::initSlowCase(unsigned int, unsigned long, bool) + 40
11 ADTTests         0x0000563e2728033a
12 ADTTests         0x0000563e2741ba3a testing::Test::Run() + 186
13 ADTTests         0x0000563e2741bb80 testing::TestInfo::Run() + 272
14 ADTTests         0x0000563e2741bc45 testing::TestCase::Run() + 165
15 ADTTests         0x0000563e2741f897 testing::internal::UnitTestImpl::RunAllTests() + 583
16 ADTTests         0x0000563e2741fb82 testing::UnitTest::Run() + 34
17 ADTTests         0x0000563e27243c56 main + 70
18 libc.so.6        0x00007f65f91b23f1 __libc_start_main + 241
19 ADTTests         0x0000563e27243cba _start + 42

********************

FAIL: LLVM-Unit :: ADT/Release/ADTTests/APIntTest.nearestLogBase2 (11269 of 12318)
******************** TEST 'LLVM-Unit :: ADT/Release/ADTTests/APIntTest.nearestLogBase2' FAILED ********************
Note: Google Test filter = APIntTest.nearestLogBase2
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from APIntTest
[ RUN      ] APIntTest.nearestLogBase2
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
0  libLLVM-3.6.so.1 0x00007f71055cab22 llvm::sys::PrintStackTrace(_IO_FILE*) + 50
1  libLLVM-3.6.so.1 0x00007f71055c9251
2  libpthread.so.0  0x00007f710476a670
3  libc.so.6        0x00007f7103e287ef gsignal + 159
4  libc.so.6        0x00007f7103e2a3ea abort + 362
5  libstdc++.so.6   0x00007f710446258d __gnu_cxx::__verbose_terminate_handler() + 365
6  libstdc++.so.6   0x00007f7104460336
7  libstdc++.so.6   0x00007f7104460381
8  libstdc++.so.6   0x00007f7104460599
9  libstdc++.so.6   0x00007f7104460b5c
10 libLLVM-3.6.so.1 0x00007f710558f9b8 llvm::APInt::initSlowCase(unsigned int, unsigned long, bool) + 40
11 ADTTests         0x000056207be123f8
12 ADTTests         0x000056207bfa7a3a testing::Test::Run() + 186
13 ADTTests         0x000056207bfa7b80 testing::TestInfo::Run() + 272
14 ADTTests         0x000056207bfa7c45 testing::TestCase::Run() + 165
15 ADTTests         0x000056207bfab897 testing::internal::UnitTestImpl::RunAllTests() + 583
16 ADTTests         0x000056207bfabb82 testing::UnitTest::Run() + 34
17 ADTTests         0x000056207bdcfc56 main + 70
18 libc.so.6        0x00007f7103e133f1 __libc_start_main + 241
19 ADTTests         0x000056207bdcfcba _start + 42

********************

The patch I applied is:

diff -Nru llvm-toolchain-3.6-3.6.2/debian/rules llvm-toolchain-3.6-3.6.2/debian/rules
--- llvm-toolchain-3.6-3.6.2/debian/rules       2015-10-20 09:40:08.000000000 -0700
+++ llvm-toolchain-3.6-3.6.2/debian/rules       2016-09-26 16:38:48.000000000 -0700
@@ -3,9 +3,10 @@
 TARGET_BUILD   := build-llvm
 DEB_INST               := $(CURDIR)/debian/tmp/
 #GCC_VERSION     := 4.8
-# The 5| in the regexp is a crappy workaround. g++ 5.2 in Debian is not providing a g++-5.2 binary (only g++-5)
-# accomodate that by hardcoding the 5 detection
-GCC_VERSION     := $(shell dpkg-query -W -f '$${Version}' g++ | sed -rne 's,^([0-9]+:)?(5|[0-9]+\.[0-9]+|[0-9]+).*$$,\2,p')
+# The 5|6 in the regexp is a crappy workaround. g++ 5.2 in Debian is not
+# providing a g++-5.2 binary (only g++-5). Similar for g++ 6.x
+# accomodate that by hardcoding the 5/6 detection
+GCC_VERSION     := $(shell dpkg-query -W -f '$${Version}' g++ | sed -rne 's,^([0-9]+:)?(5|6|[0-9]+\.[0-9]+|[0-9]+).*$$,\2,p')
 LLVM_VERSION   := 3.6
 LLVM_VERSION_FULL := $(LLVM_VERSION).2
 SONAME_EXT      := 1

Thanks,
Nish



Reply sent to Gianfranco Costamagna <locutusofborg@debian.org>:
You have taken responsibility. (Fri, 07 Oct 2016 18:51:05 GMT) (full text, mbox, link).


Notification sent to Samuel Thibault <sthibault@debian.org>:
Bug acknowledged by developer. (Fri, 07 Oct 2016 18:51:05 GMT) (full text, mbox, link).


Message #22 received at 835582-close@bugs.debian.org (full text, mbox, reply):

From: Gianfranco Costamagna <locutusofborg@debian.org>
To: 835582-close@bugs.debian.org
Subject: Bug#835582: fixed in llvm-toolchain-3.6 1:3.6.2-4
Date: Fri, 07 Oct 2016 18:49:34 +0000
Source: llvm-toolchain-3.6
Source-Version: 1:3.6.2-4

We believe that the bug you reported is fixed in the latest version of
llvm-toolchain-3.6, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 835582@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Gianfranco Costamagna <locutusofborg@debian.org> (supplier of updated llvm-toolchain-3.6 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Fri, 07 Oct 2016 08:21:03 +0200
Source: llvm-toolchain-3.6
Binary: clang-3.6 clang-format-3.6 cpp11-migrate-3.6 clang-modernize-3.6 clang-tidy-3.6 clang-3.6-doc libclang1-3.6 libclang1-3.6-dbg libclang-3.6-dev libclang-common-3.6-dev python-clang-3.6 clang-3.6-examples libllvm3.6v5 libllvm3.6-dbg llvm-3.6 llvm-3.6-runtime llvm-3.6-dev llvm-3.6-tools libllvm-3.6-ocaml-dev llvm-3.6-doc llvm-3.6-examples lldb-3.6 liblldb-3.6 python-lldb-3.6 liblldb-3.6-dev lldb-3.6-dev
Architecture: source
Version: 1:3.6.2-4
Distribution: unstable
Urgency: medium
Maintainer: LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Changed-By: Gianfranco Costamagna <locutusofborg@debian.org>
Description:
 clang-3.6  - C, C++ and Objective-C compiler (LLVM based)
 clang-3.6-doc - C, C++ and Objective-C compiler (LLVM based) - Documentation
 clang-3.6-examples - Clang examples
 clang-format-3.6 - Tool to format C/C++/Obj-C code
 clang-modernize-3.6 - Tool to convert C++98 and C++03 code to C++11
 clang-tidy-3.6 - clang-based C++ linter tool
 cpp11-migrate-3.6 - Tool to convert C++98 and C++03 code to C++11 - transition packag
 libclang-3.6-dev - clang library - Development package
 libclang-common-3.6-dev - clang library - Common development package
 libclang1-3.6 - C interface to the clang library
 libclang1-3.6-dbg - clang library
 liblldb-3.6 - Next generation, high-performance debugger, library
 liblldb-3.6-dev - Next generation, high-performance debugger - Header files
 libllvm-3.6-ocaml-dev - Modular compiler and toolchain technologies, OCaml bindings
 libllvm3.6-dbg - Modular compiler and toolchain technologies, debugging libraries
 libllvm3.6v5 - Modular compiler and toolchain technologies, runtime library
 lldb-3.6   - Next generation, high-performance debugger
 lldb-3.6-dev - transitional dummy package to liblldb-3.6-dev
 llvm-3.6   - Modular compiler and toolchain technologies
 llvm-3.6-dev - Modular compiler and toolchain technologies, libraries and header
 llvm-3.6-doc - Modular compiler and toolchain technologies, documentation
 llvm-3.6-examples - Modular compiler and toolchain technologies, examples
 llvm-3.6-runtime - Modular compiler and toolchain technologies, IR interpreter
 llvm-3.6-tools - Modular compiler and toolchain technologies, tools
 python-clang-3.6 - Clang Python Bindings
 python-lldb-3.6 - Next generation, high-performance debugger, python lib
Closes: 835582
Changes:
 llvm-toolchain-3.6 (1:3.6.2-4) unstable; urgency=medium
 .
   * Team upload
 .
   [ Gianfranco Costamagna ]
   * Import some changes from Ubuntu.
   * Fix powerpc sadness by not using gold linker.
 .
   [ Matthias Klose ]
   * d/p/rL235088.diff:
     - [AArch64] Fix invalid use of references to BuildMI, taken from the trunk.
   * d/p/no-version-script-for-executables.diff:
     - Do not link executables with a version script.
 .
   [ Louis Bouchard ]
   * d/rules: Fix the regex for the GCC_VERSION so it takes version 6
     into account. Otherwise, this causes an FTBS (Closes: #835582)
Checksums-Sha1:
 7b7fecdc23a559df0a420ec07cc0b947f41c2474 5947 llvm-toolchain-3.6_3.6.2-4.dsc
 9cb4e7f3d8b85b9425c4ce8cf37535ce7e207b71 49440 llvm-toolchain-3.6_3.6.2-4.debian.tar.xz
Checksums-Sha256:
 d88c45037d8abf876883938d0e4b92a543f9cf23af88784eda1350f1e03e75d4 5947 llvm-toolchain-3.6_3.6.2-4.dsc
 6f8a6c850af0355662d402862a10ac462757dc96d3907a1d087c6a9ec5c746e1 49440 llvm-toolchain-3.6_3.6.2-4.debian.tar.xz
Files:
 e65f35499f2a89a4268d8fa83d932287 5947 devel optional llvm-toolchain-3.6_3.6.2-4.dsc
 316dc730912eddf971885ae3ca702a91 49440 devel optional llvm-toolchain-3.6_3.6.2-4.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJX9+cmAAoJEPNPCXROn13Zdw8QAKuD0Cw3nt25+0tVxHivnrKc
5mjXqc05Kj5ZO31KWFydZNqYA2N6HwnszD64wDDqDq6i9+tqAydgRFKvTKLAzGgi
Yao8IFsy5SLYQq33S5SgvPCrwtekKNUWVatLi8EE00Cf6S5SgNxt+EQa8N4pAMgV
gI3uCsD26y1Nd7MoG0aJw/o8xRIiP9xKLW0vwm2cH3quvhrKEL9pMBZ/hAlGR2Fo
ldLTvTf2xIUPEZMCQf5Bvq/8f8mNXEmbVD+RXgvtDsvW/ctS25QyhREpklKqqQDe
KSaVBuS4h+i//jxTvkr5ZnltA94kSCtFUo4PVJ5sCOV0tz7Mpcq1AN0ADuPdWk2N
e5QQ046SkAiD4+bTWjEGqvCJVh8H9Rm2sRrUYfK0USJr4NhKonYpiqUhal3AnI2T
k4YL2vXigIBTQNGO3DVA5JBPRhPZJGqiyuTW2ubwbmNPsLNZV71JcXvW68OTzweA
ZfndRcd4rGzWQr6CkCG4zJkrbROD3IKyOX5r1s8tkDmBx3sY+FgwmjMEPAwn/RRc
PLGwU5i2jCIsfS5H/z+U3XWdpayxWTrYRcXOrZEYTq6HQa0wdBf1K3fRIcmOikCj
7m/15C9oan/dbWj1LM15JKMOe4SEfqSJRGLohWjGwdNrPk4dOSZ5ahitShyV8wfe
3J7ch10LlRNjIakTEwuO
=pj4N
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 06 Nov 2016 07:30:25 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Jan 6 15:21:55 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.