Gentoo Archives: gentoo-alt

From: yegle <cnyegle@×××××.com>
To: "gentoo-alt@l.g.o" <gentoo-alt@l.g.o>
Subject: [gentoo-alt] RAP on Ubuntu
Date: Wed, 24 Feb 2016 19:21:44
Message-Id: CAFL5w3X+oZ3vJ+Tp4QUbT86h0spb7ZfH35NDski-u7=5WXX98g@mail.gmail.com
1 Hi list,
2
3 I'm trying to get a gentoo prefix working in an Ubuntu 14.04 system. With
4 some hack to bootstrap-rap.sh (LATEST_TREE_YES, fix snapshot URL etc) I
5 managed to do the bootstrap until stage3 before building GCC. It failed
6 during configuring gcc-4.8.5.
7
8 The conftest is to compile a test C program with following flags and see if
9 the binary runs:
10
11 gcc -O2 -pipe -I$EPREFIX/usr/include -L$EPREFIX/usr/lib
12 -Wl,--dynamic-linker=$EPREFIX/lib64/ld-linux-x86-64.so.2 conftest.c
13
14 This cmd does generate a.out but it segment fault when trying to run it:
15
16 (gdb) run
17 Starting program: XXXX/a.out
18
19 Program received signal SIGSEGV, Segmentation fault.
20 __libc_start_main (main=0x400560 <main>, argc=1, argv=0x7fffffffdf98,
21 init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>,
22 stack_end=0x7fffffffdf88) at libc-start.c:256
23 256 libc-start.c: No such file or directory.
24
25 So is it still possible to bootstrap Gentoo RAP? Thank you.
26
27 --
28 Yuchen Ying
29 http://about.me/yegle