Summary: | sys-devel/llvm-3.3-r1 with sys-devel/gcc-4.8.1 - formatted_raw_ostream_test.cpp:(.text+0x237): undefined reference to `llvm::formatted_raw_ostream::current_pos() const' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Steve Warren <warrensg2001> |
Component: | [OLD] Development | Assignee: | Bernard Cafarelli <voyageur> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | cJ-gentoo, mgorny, xp.vit.blr |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build log
build envionment |
Description
Steve Warren
2013-10-29 06:19:03 UTC
Created attachment 362186 [details]
build log
Created attachment 362188 [details]
build envionment
I can confirm this with llvm 3.3-r1 and gcc 4.8.1 on 32 bit system. llvm-3.3-r1 successfully emerges with when compiled with gcc-4.6.3 or gcc-4.7.3 on ppc. + + static-analyzer : Install the Clang static analyzer (requires USE=clang) The clang USE flag is not required for successful emerging with those versions. Disabling libffi and static-analyzer does not prevent the error under gcc-4.8.1. I can confirm that this bug still reproducible while building sys-devel/llvm-3.3-r1 on: Portage 2.2.7 (default/linux/amd64/13.0/desktop, gcc-4.8.2, glibc-2.17, 3.5.4-gentoo x86_64). This is result of functions inlining - usual problems, escalating from GCC 4.6 to 4.7 to 4.8. In this case there are "-finline-functions-called-once" (by -Os). Workarounds (amd64): is-flag -Os && append-flags -fno-inline-functions-called-once or is-flag -Os && append-flags -finline-small-functions or upgrade inlining from -Os to -O2 (IMHO best): is-flag -Os && append-flags -finline-small-functions -findirect-inlining Or, common way - to find affected (bad inlined) function and make them "noinline". PS My own 4.8 global stabilization flags addon (to -Os/-O2/-O3/-Ofast): -finline-small-functions -findirect-inlining -fno-graphite-identity -fno-inline-functions and optional: -fno-ipa-cp-clone (may be omitted with special care about few packets) Cleaning old llvm/clang bugs. Newer versions (tested with 3.7.0 but I think 3.6.0 was ok too) compile fine with -Os and gcc-4.8, so marking this one as fixed! |