Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 627474 - sys-libs/compiler-rt-4.0.1 : CMake will not be able to correctly generate this project.
Summary: sys-libs/compiler-rt-4.0.1 : CMake will not be able to correctly generate t...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-10 17:17 UTC by Toralf Förster
Modified: 2022-08-24 04:59 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.93 KB, text/plain)
2017-08-10 17:18 UTC, Toralf Förster
Details
CMakeError.log (CMakeError.log,3.36 KB, text/plain)
2017-08-10 17:18 UTC, Toralf Förster
Details
CMakeOutput.log (CMakeOutput.log,987 bytes, text/plain)
2017-08-10 17:18 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,151.96 KB, text/plain)
2017-08-10 17:18 UTC, Toralf Förster
Details
environment (environment,154.83 KB, text/plain)
2017-08-10 17:18 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.01 KB, application/x-bzip)
2017-08-10 17:18 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,1.51 KB, application/x-bzip)
2017-08-10 17:18 UTC, Toralf Förster
Details
sys-libs:compiler-rt-4.0.1:20170809-212900.log (sys-libs:compiler-rt-4.0.1:20170809-212900.log,4.71 KB, text/plain)
2017-08-10 17:18 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,35.34 KB, application/x-bzip)
2017-08-10 17:18 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-08-10 17:17:58 UTC
  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:12 (project)


  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 13.0-desktop-plasma_libressl_20170806-123532

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.4.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.6 (fallback)
  [3]   python2.7 (fallback)

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.5.1 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv sys-libs/compiler-rt
[ebuild  N    ] sys-libs/compiler-rt-4.0.1  USE="clang {test}"
Comment 1 Toralf Förster gentoo-dev 2017-08-10 17:18:01 UTC
Created attachment 488528 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-08-10 17:18:05 UTC
Created attachment 488530 [details]
CMakeError.log
Comment 3 Toralf Förster gentoo-dev 2017-08-10 17:18:08 UTC
Created attachment 488532 [details]
CMakeOutput.log
Comment 4 Toralf Förster gentoo-dev 2017-08-10 17:18:11 UTC
Created attachment 488534 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2017-08-10 17:18:15 UTC
Created attachment 488536 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2017-08-10 17:18:18 UTC
Created attachment 488538 [details]
etc.portage.tbz2
Comment 7 Toralf Förster gentoo-dev 2017-08-10 17:18:21 UTC
Created attachment 488540 [details]
logs.tbz2
Comment 8 Toralf Förster gentoo-dev 2017-08-10 17:18:25 UTC
Created attachment 488542 [details]
sys-libs:compiler-rt-4.0.1:20170809-212900.log
Comment 9 Toralf Förster gentoo-dev 2017-08-10 17:18:28 UTC
Created attachment 488544 [details]
temp.tbz2
Comment 10 Ulenrich 2017-08-11 07:55:24 UTC
Same for me. But the weird thing:
At first this ebuild was compiling but then broke when 
1. upgrading to: glibc-2.25-r2 gcc-6.4.0 binutils-2.28.1
2. rebuild of all libs and @system and llvm/clang, all went through but:

Fact is:
I have an installed sys-libs/compiler-rt-4.0.1
but cannot rebuild that specific ebuild: 
errors out like @Toralf
Comment 11 fio2003 2017-08-11 09:59:53 UTC
(In reply to Ulenrich from comment #10)
> Same for me. But the weird thing:
> At first this ebuild was compiling but then broke when 
> 1. upgrading to: glibc-2.25-r2 gcc-6.4.0 binutils-2.28.1
> 2. rebuild of all libs and @system and llvm/clang, all went through but:
> 
> Fact is:
> I have an installed sys-libs/compiler-rt-4.0.1
> but cannot rebuild that specific ebuild: 
> errors out like @Toralf

I have the same trouble with glibc-2.25-r2 gcc-5.4.0-r3 binutils-2.28.1.
Last successful compilation was 30.06.2017.
Comment 12 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-08-11 14:25:58 UTC
I have no clue why it suddenly started failing. I can reproduce the failure even on my test chroot which is severely outdated:

  sys-libs/glibc 2.23-r3
  sys-devel/gcc 4.9.4
  sys-devel/binutils 2.25.1-r1

So it's rather unrelated to system upgrades. And since the same version used to build fine, it's not something in compiler-rt either.
Comment 13 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-08-11 14:31:05 UTC
It's the flag stripping not working properly for some reason. I'm going to revert that for now.


commit 0e6d20439e89c82fa99bbaefbe2a728efc77631c
Author: Michał Górny <mgorny@gentoo.org>
Date:   Sat Jul 1 18:14:44 2017

    flag-o-matic.eclass: Strip LDFLAGS unsupported by the C compiler, #621274
    
    Include LDFLAGS in the variables stripped by strip-unsupported-flags.
    The code reuses the current functions for testing CC, and so only remove
    LDFLAGS that are rejected by the C compiler and not the linker. This
    solves the case of bug #621274 where LDFLAGS contained GCC-specific
    -flto flag.
Comment 14 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-08-11 14:36:05 UTC
commit 28dd7e772d7245723a725ea13673b3419139cd43
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: Fri Aug 11 16:33:18 2017
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: Fri Aug 11 16:35:09 2017

    flag-o-matic.eclass: Revert "Strip LDFLAGS unsupported by the C..."
    
    The current logic strips too much, causing build failures. Revert it
    until we get it right.
    
    Bug: https://bugs.gentoo.org/627474
Comment 15 Ulenrich 2017-08-12 00:06:33 UTC
@Michał Górny very thanks 
Compiles now again. My gosh - there are kind of bugs:
I was caught in a bigger upgrade and then naturally thinking about having done it using unstable gcc~ and glibc~  
Now, having solved the last and only problem recompiling my system, I must say Gentoo~unstable works reliable for me again and again after all those years
 :)
Comment 16 Larry the Git Cow gentoo-dev 2022-08-24 04:56:59 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ddba1d149e82dba88b72f992729ad4158f640e32

commit ddba1d149e82dba88b72f992729ad4158f640e32
Author:     Alexander Miller <alex.miller@gmx.de>
AuthorDate: 2022-08-07 01:34:33 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-08-24 04:55:53 +0000

    flag-o-matic.eclass: test-flag-PROG, strip unused args that generate warnings
    
    A number of configure checks used by CMake and autoconf (and probably
    other build systems) relies on warning-free compiler runs. A combination
    of compiler and flags that always generates warnings can cause
    misconfiguration and/or build failures.
    
    Since commit ae9870d9f6b1394ede86176443770b36d7e60ac1, flags that
    generate warnings that could be suppressed with -Qunused-arguments
    are accepted anyway to avoid stripping all linker flags (#627474).
    But commit 28d6437fc7009002f98f28e8900e994109927726 added linker
    invocation for linker flags tests, so the workaround shouldn't be
    necessary any more.
    
    Drop the extra -Qunused-arguments check and reject all flags that
    generate warnings to avoid configuration issues.
    
    If it turns out that stripping these unused flags is still problematic,
    we could accept them and actually add -Qunused-arguments to the
    relevant *FLAGS to silence the warnings, but that would require
    bigger changes, so let's try the simpler and cleaner solution first.
    
    Bug: https://bugs.gentoo.org/627474
    Bug: https://bugs.gentoo.org/714742
    Bug: https://bugs.gentoo.org/862798
    Signed-off-by: Alexander Miller <alex.miller@gmx.de>
    Closes: https://github.com/gentoo/gentoo/pull/26773
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/flag-o-matic.eclass | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)