Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: [gentoo-alt] IRIX
Date: Wed, 19 Dec 2007 18:38:21
Message-Id: 20071219183746.GD4849@gentoo.org
1 ----- Forwarded message from Fabian Groffen <grobian@g.o> -----
2
3 I replied to the gentoo-alt list, as what you're doing is quite
4 interesting, and more people that may help or are interested are hanging
5 out there.
6
7 On 19-12-2007 17:23:56 +0000, Stuart Shelton wrote:
8 > With LDFLAGS and CPPFLAGS set for the initial build stage, wget
9 > doesn't compile as USE="ssl", but OpenSSL hasn't been installed within
10 > prefix-portage yet. It works fine with USE="-ssl".
11
12 The bootstrap guide for Solaris has the same.
13
14 > texinfo fails because 'help2man' (which it claims is optional) isn't
15 > available, so this must be installed first.
16
17 Hmmm... ok :(
18
19 > The next issue is with building coreutils, seemingly caused by the
20 > automake utilities (since the same package build without problems when
21 > using non-portage automake tools):
22
23 coreutils has an eautoreconf in it, apparently it doesn't like you.
24
25 > * Done with patching
26 > * Applying 6.9-iswblank.patch ... [ ok ]
27 > * Running eautoreconf in
28 > '/usr/opt/portage/var/tmp/portage/sys-apps/coreutils-6.9-r1/work/coreutils-6.9'
29 > ...
30 > * Running aclocal -I m4 ... [ !! ]
31 >
32 > * Failed Running aclocal !
33 > *
34 > * Include in your bugreport the contents of:
35 > *
36 > * /usr/opt/portage/var/tmp/portage/sys-apps/coreutils-6.9-r1/temp/aclocal-1944129.out
37
38 > $ cat /usr/opt/portage/var/tmp/portage/sys-apps/coreutils-6.9-r1/temp/aclocal-1944129.out
39 > ***** aclocal *****
40 >
41 > aclocal-1.10: autom4te failed with exit status: 1
42
43 Hmmm... might be your /bin/sh is too crappy for it to work, or the
44 wrapper isn't fully working yet.
45
46 > On 19/12/2007, Stuart Shelton <srcshelton@×××××.com> wrote:
47 > > Whist I remember, I also had to add "mips-irix" to portage/profiles/arch.list
48
49 Isn't it already in there?
50 It should, as it is in SVN.
51
52 > > If I interrupt ncurses, change those two Makefiles, and resume then it
53 > > builds successfully - and the only other problem is /bin/sh reporting
54 > > 'too many args' (event though ncargs is 20480) when installing
55 > > manpages. Commenting this out and running that command manually
56 > > (using bash rather than sh) fixed this.
57
58 I guess using bash for everything on IRIX is a good idea in any case.
59
60 > > bash then installed without issues.
61 > >
62 > > The next thing I'm stuck on is that '=autoconf-2.6*' and
63 > > '=automake-1.5*' want perl >= 5.005, whereas SGI's default is 5.00405.
64 > > There is perl-5.8.8 in my $PATH. but the package's configure scripts
65 > > aren't seeing it - does 'emerge' filter PATH?
66
67 Yep. It sanitises it, uses it's own path from the prefix environment
68 and adds /usr/bin and /bin.
69
70 > > symlinking perl-5.8.8 into $EPREFIX/bin solved this issue.
71
72 Beware that this will give you a collision once you install perl.
73
74 > > On 19/12/2007, Stuart Shelton <srcshelton@×××××.com> wrote:
75 > > > Hi Fabian,
76 > > >
77 > > > After a long break, I've again picked up prefix-portage on IRIX.
78
79 Nice to see!
80
81 > > > I'm building from the latest prefix overlays, etc., and I'll let you
82 > > > know how I get on.
83 > > >
84 > > > Can sys-apps/sed-4.1.4-r1 be marked as ~mips-irix?
85
86 I think no packages have the mips-irix keyword in the tree. I prefer to
87 wait with keywording once we know that we can do "system".
88
89 > > > sys-apps/sed-4.1.5 doesn't compile (with the platform compilers) as
90 > > > the following syntax isn't accepted:
91 > > >
92 > > > cc-1017 c99: ERROR File = regcomp.c, Line = 561
93 > > > An unmatched left bracket ("[") appears in an expression.
94 > > >
95 > > > [0 ... 0x80 / BITSET_WORD_BITS - 1] = BITSET_WORD_MAX
96 > > > ^
97
98 I have no idea what this actually is supposed to mean (the code), so I
99 can't come up with a fix.
100 I wonder if it really is a good idea to stay with MIPSpro... from my
101 perspective gcc is preferred, even though it doesn't have as good
102 performance. It may very well be like Sun Studio compilers that we
103 should come up with the ability to use a native compiler after
104 bootstrapping at your own risk or something.
105
106 > > > I've also noticed that, using the portage 'emerge' command built from
107 > > > bootstrap-prefix.sh, it hangs on completion (either after outputting
108 > > > build errors or the ">>> Completed installing sed-4.1.4-r1 into
109 > > > /usr/opt/portage/var/tmp/portage/sys-apps/sed-4.1.4-r1/image/opt/portage/"
110 > > > message - but not if package collisions are detected!).
111 > > >
112 > > > Update: After rebuilding with 'FEATURES="-collision-protect"', emerge
113 > > > completes - perhaps it was building a cache of some form? If this is
114 > > > the case, some notification would be useful: It really did look to
115 > > > have hung.
116
117 Hmmm... I recal seeing a hang, but we never really tackled it. Not much
118 I can say about it.
119
120 > > > Finally, and I guess there's no easy answer to this one, many packages
121 > > > override CFLAGS with "-O2 -g", which is insufficient for properly
122 > > > building on IRIX with MIPSpro compilers... I'm not sure if portage
123 > > > offers any mechanism to override this?
124
125 No packages should override CFLAGS. If they do, they are broken from
126 Gentoo's point of view, and should be fixed. You probably see Portage
127 setting CFLAGS to this value (it is its default, IMHO). Set CFLAGS in
128 etc/make.conf and Portage will obey your wishes.
129
130 > > > (For example, findutils resets CFLAGS to '-O2 -g', which drops the
131 > > > '-c99' option to enable C99-mode compilation, and enabling extended
132 > > > headers. The simplest solution to this is for set CC to c99 - but
133 > > > it's not a particularly elegant solution)
134
135 It should not be necessary, see above.
136
137 > > > A similar issue may occur with bash, which doesn't work properly on
138 > > > IRIX/MIPSpro if compiled above -O1. I think that an IRIX-specific
139 > > > 'replace-flags' in the ebuild would resolve this, though.
140
141 Yeah. [[ ${CHOST} == mips-sgi-irix* ]] && replace-flags -O? -O1 should
142 do the trick.
143
144 > > > Infact, bash relies on sys-libs/ncurses, and sys-libs/ncurses-5.6-r2
145 > > > appears to have CC hard-coded as 'gcc', despite the configure script
146 > > > correctly detecting 'c99' as the compiler.
147 > > > (And, after this failure, emerge has hung again - so it does look like
148 > > > a bug/incompatibility in Portage 2.2.00.8470-prefix. Additionally,
149 > > > running 'emerge --version' complains about 'gcc' not being found... is
150 > > > this a valid test on prefix-portage?)
151
152 We really assume a Gentoo toolchain, with exceptions only there where it
153 must (e.g. if binutils doesn't work, or doesn't produce working code).
154 So far all platforms use GCC of some form, with Darwin using the Apple
155 branch of GCC.
156
157 > > > With ncurses, work/narrowc/ncurses/Makefile contains BUILD_CC=gcc and
158 > > > work/narrowc/misc/Makefile contains HOSTCC=gcc - both obviously wrong
159 > > > <sigh>
160
161 Probably need to patch that.
162
163 > > > More as I work through it ;)
164
165 Keep the work going!
166
167
168 ----- End forwarded message -----
169
170 --
171 Fabian Groffen
172 Gentoo on a different level
173 --
174 gentoo-alt@g.o mailing list

Replies

Subject Author
Re: [gentoo-alt] IRIX Dirk Tilger <dirk@××××××.de>