Gentoo Archives: gentoo-dev

From: Chris Gianelloni <wolf31o2@g.o>
To: Josh Glover <gentoo@××××××.net>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Pentium M stages
Date: Sun, 09 May 2004 18:11:03
Message-Id: 1084126255.28105.6.camel@localhost
In Reply to: [gentoo-dev] Pentium M stages by Josh Glover
1 On Sun, 2004-05-09 at 13:58, Josh Glover wrote:
2 > I am very interested in using Catalyst to make Stages 1-3 for Pentium M
3 > CPUs. The problem with just using Pentium 3 stages is that Pentium M
4 > supports SSE2 instructions, whereas P3 does not. Adding -msse2 to my
5 > CFLAGS is fine for me, but when I want to reinstall or setup a Faketoo[1]
6 > instance for Portage development on my laptop, I don't want to have to
7 > start from Stage 1. Even if no-one else in the world is interested in
8 > Pentium M stage tarballs (which I seriously doubt is the case), I would
9 > like them for my own use.
10 >
11 > I tried first with this specfile:
12 >
13 > subarch: pentium-m
14 > version_stamp: 20040509
15 > target: stage1
16 > rel_type: default
17 > rel_version: 2004.1
18 > profile: default-pentium3-2004.1
19 > snapshot: 20040413
20 > source_subpath: default/stage3-pentium3-2004.1
21 >
22 > But the result was (not surprisingly for those of you who are familiar
23 > with Catalyst):
24 >
25 > : jmglov@laurana; sudo catalyst -f /etc/catalyst/pentium-m-stage1-20040509.spec
26 > Setting storedir to default value "/var/tmp/catalyst"
27 > Setting portdir to default value "/usr/portage"
28 > Setting distdir to config file value "/usr/portage/distfiles"
29 > Setting options to config file value "ccache pkgcache"
30 > Setting sharedir to config file value "/usr/lib/catalyst"
31 > Compiler cache support enabled.
32 > Package cache support enabled.
33 > Traceback (most recent call last):
34 > File "/usr/bin/catalyst", line 100, in ?
35 > mytarget=targetmap[myspec["target"]](myspec,addlargs)
36 > File "/usr/lib/catalyst/modules/targets.py", line 367, in __init__
37 > generic_stage_target.__init__(self,spec,addlargs)
38 > File "/usr/lib/catalyst/modules/targets.py", line 73, in __init__
39 > self.arch=self.subarchmap[self.settings["subarch"]](self.settings)
40 > KeyError: 'pentium-m'
41 >
42 > So I altered the specfile to this:
43 >
44 > subarch: pentium3
45 > version_stamp: 20040509
46 > target: stage1
47 > rel_type: default
48 > rel_version: 2004.0
49 > profile: default-pentium3-2004.0
50 > snapshot: 20040413
51 > source_subpath: default/stage3-pentium3-2004.1
52 >
53 > (I tweaked the rel_version and profile back to 2004.0 because setting
54 > them to 2004.1 was resulting in a bad symlink which killed Catalyst
55 > at a later point.)
56 >
57 > I also added an envscript, containing the single line:
58 >
59 > export CFLAGS="-O2 -march=pentium3 -msse2 -fomit-frame-pointer -pipe"
60 >
61 > The problem is that my CFLAGS seem to be ignored when Catalyst starts
62 > to build the stage.
63 >
64 > Anyone have any ideas as to what I am doing wrong?
65
66 I was under the impression that stage1 is always a stage1 and doesn't
67 have optimizations. See if when you get to stage2 it doesn't start
68 using your optimizations as placed in your envscript.
69
70 --
71 Chris Gianelloni
72 Developer, Gentoo Linux
73 Games Team
74
75 Is your power animal a pengiun?
76
77
78 --
79 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] Pentium M stages John Davis <zhen@g.o>