Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 575324

Summary: bootstrap.sh from stage3 fails during llvm-3.5.2 build, libstdc++ > 4.6 required.
Product: Gentoo/Alt Reporter: stelicho
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: OS X   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log for llvm 3.5
build log from work around.

Description stelicho 2016-02-21 19:47:57 UTC
Created attachment 426144 [details]
build log for llvm 3.5

I have been trying to get around this error for two months. I cant get prefix set up on my system. llvm 3.5 fails telling me that I need a libstdc++ newer than 4.7. My system is OS X 10.7.5 (Kernel Version 11.4.2) I have tried to work around this with no success. Using more modern C compilers than those supplied by xcode, via macports, hasn't helped. Please help.
Comment 1 Fabian Groffen gentoo-dev 2016-02-29 18:33:02 UTC
I've tried working around this in
https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=48f8f07777a371fac6294c46ea98f24fbdcdd5d3
Comment 2 stelicho 2016-03-01 04:53:42 UTC
Thank you! I will give this a try tomorrow.
Comment 3 stelicho 2016-03-02 05:22:25 UTC
No dice, same error, same build :(
Comment 4 stelicho 2016-03-03 03:34:20 UTC
Created attachment 427260 [details]
build log from work around.

I was wrong. It's the same spot but a different error, and I don't quite get what it's telling me.
Comment 5 Fabian Groffen gentoo-dev 2016-03-03 06:50:05 UTC
In file included from /Users/stelicho/Gentoo/tmp/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src/include/llvm/ADT/SmallVector.h:17:
/Users/stelicho/Gentoo/tmp/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src/include/llvm/ADT/iterator_range.h:37:29: error: no member named 'move' in namespace 'std'
      : begin_iterator(std::move(begin_iterator)),
                       ~~~~~^
/Users/stelicho/Gentoo/tmp/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src/include/llvm/ADT/iterator_range.h:38:27: error: no member named 'move' in namespace 'std'
        end_iterator(std::move(end_iterator)) {}
                     ~~~~~^
/Users/stelicho/Gentoo/tmp/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src/include/llvm/ADT/iterator_range.h:49:33: error: no member named 'move' in namespace 'std'
  return iterator_range<T>(std::move(x), std::move(y));
                           ~~~~~^

that would mean 'std' is somehow incompatible, we'll have to figure out why
Comment 6 stelicho 2016-03-06 05:06:53 UTC
Can is it libstdc specifically?
Comment 7 Fabian Groffen gentoo-dev 2016-03-06 08:34:38 UTC
it seems like we need one, but libstdc++ 3.5 should be installed here

I think I hosed some dep because my platform provides this lib, so I didn't notice.
Comment 8 Fabian Groffen gentoo-dev 2016-03-06 08:44:43 UTC
What version of OSX are you installing on?

Also, do you have llvm-3.4.2 installed in your bootstrap prefix now?
Comment 9 stelicho 2016-03-07 05:53:30 UTC
I'm on OS X 10.7.5 Lion (Darwin 11.4.2)

stage2.log says:

>>> sys-devel/llvm-3.4.2 merged.
 * Messages for package sys-devel/llvm-3.4.2:
 * Failed to set PT_PAX markings -m Release/bin/llvm-rtdyld.
 * Failed to set XATTR_PAX markings -m Release/bin/llvm-rtdyld.
Comment 10 stelicho 2016-03-12 03:34:03 UTC
I guess I should ask, where should I see it installed in the prefix? it's not in /usr/bin
Comment 11 Fabian Groffen gentoo-dev 2016-03-12 08:20:57 UTC
the early stages will install stuff in tmp/usr/bin, I think the problem originates here, since the libs and stuff may be in two different locations
Comment 12 Fabian Groffen gentoo-dev 2020-12-13 17:02:40 UTC
we moved away from llvm/clang on macOS