Gentoo Archives: gentoo-bsd

From: Yuta SATOH <nigoro@×××××××××.jp>
To: gentoo-bsd@l.g.o
Subject: Re: [gentoo-bsd] Two issues.
Date: Tue, 15 Jan 2013 12:02:29
Message-Id: 20130115210223.5B33.56A83CC2@gentoo.gr.jp
In Reply to: [gentoo-bsd] Two issues. by Robert Raitz
1 Hi,
2
3 On Wed, 9 Jan 2013 02:28:37 -0800 (PST)
4 Robert Raitz <pappy_mcfae@×××××.com> wrote:
5
6 > The first issue is a segfault when issuing startx.
7 > It looks like the segfault happens as dri2 is initializing.
8
9 Does this bug will not be helpful to you ?
10 https://bugs.gentoo.org/435648
11
12 > I'm thinking I'm going to backtrack to xorg-server-1.7.7-r1, as I have a
13 > backup from this machine when it was running that version of xorg-server
14 > as well as KDE3. Considering that FreeBSD 9.0 is using that version, or
15 > close to it, it should work for me as well. Sure, I'll have to re-enable
16 > the hal USE flag, but I've done that before.
17 >
18 > The second problem is a bit more perplexing. When trying to setup the
19 > cross-compiler for using distcc with the Gentoo/FBSD hybrid, things fail
20 > with freebsd-libs dying over lack of libutil.h. Here's the snippet from
21 > the log:
22 >
23 > /var/tmp/portage/cross-i686-gentoo-freebsd9.0/freebsd-lib-8.2-r1/work/lib/libc/posix1e/extattr.c:37:21: fatal error: libutil.h: No such file or directory
24 > compilation terminated.
25 > *** Error code 1
26 >
27 > Stop.
28 > pmake: stopped in /var/tmp/portage/cross-i686-gentoo-freebsd9.0/freebsd-lib-8.2-r1/work/lib/libc
29 > ?* ERROR: cross-i686-gentoo-freebsd9.0/freebsd-lib-8.2-r1 failed (compile phase):
30 > ?*?? make libc failed
31 > ?*
32 > ?* Call stack:
33 > ?*???? ebuild.sh, line? 93:? Called src_compile
34 > ?*?? environment, line 2765:? Called die
35 > ?* The specific snippet of code:
36 > ?*?????????? $(freebsd_get_bmake) ${mymakeopts} || die "make libc failed";
37 >
38 > When trying to get any freebsd-lib package to take, I run into them all
39 > NOT including the amd64 or ~amd-64 keywords. In other words, they are
40 > all keyword masked. I'd like to unmask, but I worry that I'll break the
41 > machine I'm using to cross-compile. I'd really rather not do that if at
42 > all possible. If I am to use the freebsd-lib version that goes with my
43 > hybrid, that version is keyword masked. As a matter of fact, it seems
44 > the only one I can get to take is freebsd-lib-8.2-r1, and that's not the
45 > version I am running.
46 >
47 > So, my question is, how to set up the cross-compiler such that it works,
48 > and doesn't break anything else? Do I have to redo the ebuilds to force
49 > things to work?
50
51 Are you using crossdev ?
52 cross-*-freebsd-lib should automatically be unmasked by crossdev.
53
54 I have confirmed that cross compiler is completed on Gentoo/Linux amd64
55 in the next step.
56
57 1. emerge sys-devel/crossdev
58 2. cd /usr/portage/sys-freebsd/freebsd-lib
59 3. wget -O freebsd-lib-9.1_rc3-r1.ebuild \
60 "http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-bsd.git;a=blob_plain;f=sys-freebsd/freebsd-lib/freebsd-lib-9.1_rc3-r1.ebuild;h=d4f4b85f9a07aa502b36678a756ca759def52d2a;hb=d92895be6230221821bc177e251139b5cad05155"
61 4. ebuild freebsd-lib-9.1_rc3-r1.ebuild digest
62 5. mkdir /etc/portage/package.keywords
63 6. echo 'sys-freebsd/freebsd-mk-defs ~amd64' >> /etc/portage/package.keywords/local
64 7. echo 'sys-apps/mtree ~amd64' >> /etc/portage/package.keywords/local
65 8. crossdev --g '>4.7' i686-gentoo-freebsd9.1
66
67 >
68 > The xorg-server issue I'll deal with on my own. I just have to find the
69 > DVD with the last stage-4 I did with this machine in the older
70 > configuration, unless there are other suggestions for getting this
71 > version of xorg-server (1.13) to work..
72 >
73 > Cheers,
74 > Pappy
75
76
77
78 Regards,
79 --
80 Yuta SATOH

Replies

Subject Author
Re: [gentoo-bsd] Two issues. Robert Raitz <pappy_mcfae@×××××.com>