From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,7335514f7bc39dfb,start X-Google-Attributes: gid111c93,public From: Adrian Gartland Subject: Cross compiling to Alpha from i586....HELP. Date: 1998/02/28 Message-ID: <34F76014.D61A19D2@virtual.foobar.co.uk>#1/1 X-Deja-AN: 329330313 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Oregan Networks Newsgroups: comp.os.linux.alpha 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. 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....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]