Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Cross compiling to Alpha from i586....HELP.
@ 1998-02-28  5:00 Adrian Gartland
  1998-02-28  5:00 ` Greg Lindahl
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Gartland @ 1998-02-28  5:00 UTC (permalink / raw)



After falling into the rather nasty fclose() bug when using c++ I have
attempted several other ways to get around it...all failed :(...if no
one
can help I might have to resort to going back to Redhat 4.2, which I
really want to avoid if possible....but it at least worked there. (Did I
just get lucky
there? and c++ is broken on 4.2 too?)

1) Use egcs.
ok....got egcs....ok got that installed...but falls over badly on the
headers.
We're using stl and other gubbins....find in the egcs faq that
libg++2.8.<somehing>
is a version that is reported to work with egcs's c++....also isn't
available
for linux....last known version known to work with linux is
2.7.2...which
is the one that we alreay have...which doesn't like too much...doh.

Ok...hmm...nothing to lose..try 2.8.something.....no rpms available for
2.8.<something>...one available for 2.8.0 for i386...but no
src.rpm....ok..
get source from place mentioned in FAQ and compile up......
Compiled up....can't find libio....as mentioned in the faq..well...I
tried.

2) Cross compile on i586 to alpha and statically link with glibc 0.9...
Follow the instructions for doing cross compile stuff on egcs...follow
the faq from that faq that tells you all the tools you need.
Got binutils compiled up ok.

Instead of using gcc, used egcs ...and did a make cross, after doing
all the target=alpha-unknown-linux stuff as mentioned in the
cross compiling FAQ.
Sits there and does a few things for a few mins...and then fails
because it can't find string.h.....doh

So...tried gcc 2.8.0....failed on a simlar thing but on a different file

Tried 2.7.2.3, doesn't support alpha-unknown-linux.

Am I following the FAQ too close to the letter?

Has ANYONE managed to get a working C++ environment in RedHat
5.0 yet? Tips would be very welcome.. Completely wasted the day with
this stuff with nothing at the end...except the thought of going back to
4.2

Thanks!

--
Adrian Gartland              [Email:         ade@oregan.net]
Software Engineer            [WWW:   http://www.oregan.net/]
Oregan Networks              [Phone:     +44 (0)1530 563311]




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Cross compiling to Alpha from i586....HELP.
  1998-02-28  5:00 Cross compiling to Alpha from i586....HELP Adrian Gartland
@ 1998-02-28  5:00 ` Greg Lindahl
  0 siblings, 0 replies; 2+ messages in thread
From: Greg Lindahl @ 1998-02-28  5:00 UTC (permalink / raw)



Adrian Gartland <ade@virtual.foobar.co.uk> writes:

> 1) Use egcs.
> ok....got egcs....ok got that installed...but falls over badly on the
> headers.

I tried this too. egcs generates bogus assembler on my large bison
grammer. :-(

> Compiled up....can't find libio....as mentioned in the faq..well...I
> tried.

Hm. This works OK on RH50 for me. libio, btw, is part of glibc these days.

> 2) Cross compile on i586 to alpha and statically link with glibc 0.9...

Aieie. That's a really painful way to do it.

I think we should attack the library problem. The bug reported before
was that it dumps core on close(), which is actually in a free() in
that library routine.  Someone's corrupting the malloc arena, and I
bet it's libio. Maybe it doesn't deal with 64-bit systems adequately?

-- g



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-02-28  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-02-28  5:00 Cross compiling to Alpha from i586....HELP Adrian Gartland
1998-02-28  5:00 ` Greg Lindahl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox