|
From: <Jar...@cm...> - 2003-04-02 10:33:10
|
Hi, Why to rebuild Barcelona? Because I didn't find the Barcelona binaries = on the ftp.uk.superh.com. There is some file /pub/x86Linux.tar.gz, but it doesn't look like the binaries for SH5. Jaromir. -----Original Message----- From: Andrew Stubbs [mailto:and...@su...]=20 Sent: Thursday, March 27, 2003 7:46 PM To: Jarom=EDr Brambor Cc: lin...@li... Subject: RE: [linuxsh-shmedia-dev] How to build Barcelona-20030310 Why do you want to rebuild barcelona? Did you not download the binaries? = I suppose there may be many reasons for this. The target we use for all the tools is sh64-superh-linux-gnu. I haven't tested sh64-linux so I can't say that it works. Just 'sh' is definitely wrong as that would be SH1-4, but not 5. gcc is configured with --target=3D... --prefix=3D... = --with-headers=3D... --with-libs=3D... --enable-languages=3D... --without-newlib = --disable-shared --disable-multilib --disable-nls The binary barcelona gcc will actually tell you what it was configured = with if you use the -v option. The --with-headers and --with-libs should point at an installation of = glibc. These are always required for a cross compiler (for the target = libraries), but if you do not have this then you can omit them and NOT build c++. = Then when you have a C cross compiler use that to build glibc and then = rebuild the compiler with the c++ afterwards. The c++ doesn't work very well = anyway. I'll assume you know how to build glibc till you say otherwise. HTH Andrew On Thu, 2003-03-27 at 13:43, Jarom=EDr Brambor wrote: > Thanks, > I never built any gcc compiler, so I don't know what to do exactly.=20 > Probably it should be there more parameters in config (some link to=20 > something).... But I don't know. >=20 > I built binutils and it seems to be ok. > Configure for binutils: > --target=3Dsh64-linux > --prefix=3D/usr/local/sh5 >=20 > After that, I tried to configure gcc (passed ok), but fails on gcc=20 > compilation (only make, not "make bootstrap"). Compiling logged as=20 > root (should not be a problem with the rights). >=20 > Configure for gcc: > --target=3Dsh64-linux (I tried also only --target=3Dsh, but it is the=20 > same) --prefix=3D/usr/local/sh5 (the same as for binutils)=20 > --enable-languages=3Dc,c++ maybe it fails some other parameter... >=20 > what stage it fails? > in compiling ...gcc/unwind-dw2.c with warnings in its include files=20 > (imlpicit declarations)and (probably because of this) also to some=20 > parse error. for all see the attachement. The end is like this: >=20 > ... > "In function 'uw_install_context_1'" > "syntax error before "once_registers"" > "imlicit declaration of function '__gthread_once'" "'once_regsizes'=20 > undeclared (first use in this function)" "imlicit declaration of=20 > function 'memcpy'" and after that > make[2] *** [libgcc/./unwind-dw2.o] Error 1 > make[2]Leaving directory '....../gcc/gcc' > make[1] *** [stmp-multilib] Error 2 > make[1]Leaving directory '....../gcc/gcc' > make *** [all-gcc] Error 2 >=20 >=20 > Do you have any idea? > Thank you, > Jaromir >=20 >=20 > -----Original Message----- > From: Andrew Stubbs [mailto:and...@su...] > Sent: Thursday, March 27, 2003 1:04 PM > To: Jarom=EDr Brambor > Subject: Re: [linuxsh-shmedia-dev] How to build Barcelona-20030310 >=20 >=20 > I could spend ages finding out exactly what all the steps are, but it=20 > would be easier if you could give some idea what your problem is. >=20 > Have you built binutils ok? > What configure command are you using? > At what stage is the build failing? >=20 > On Thu, 2003-03-27 at 10:11, Jarom=EDr Brambor wrote: > > Hi, > > I'm trying to build SH5 cross-compiler on x86Linux from the > > Barcelona-20030310, but I have some problems, so I think I'm doinng=20 > > something wrong. > >=20 > > Could anyone provide little list of the necessery steps I should do > > for successful build? > >=20 > > Thanks (very much for any idea). > >=20 > > Jaromir > >=20 > >=20 > > --------------------------------- > > Jaromir Brambor > > Centre de Morphologie Mathematique > > Ecole des Mines de Paris > > 35, Rue Saint Honore, > > 77300 Fontainebleau, France > > email: br...@cm... > >=20 > >=20 > >=20 > > ------------------------------------------------------- > > This SF.net email is sponsored by: > > The Definitive IT and Networking Event. Be There! > > NetWorld+Interop Las Vegas 2003 -- Register today! > > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > > _______________________________________________ > > Linuxsh-shmedia-dev mailing list > > Lin...@li... > > https://lists.sourceforge.net/lists/listinfo/linuxsh-shmedia-dev --=20 ------------------------------------------------------------------------ | Andrew Stubbs, | E-mail: And...@su... | | SuperH (UK) Ltd., | or st...@su... | | 2410 Aztec West, | | | Almondsbury, | Tel: +44 (0)1454 465671 | | Bristol, BS32 4QX, U.K. | Fax: +44 (0)1454 465601 | ------------------------------------------------------------------------ |