|
From: Andrew S. <and...@su...> - 2003-03-27 18:40:58
|
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-sha= red --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. Pro= bably > it should be there more parameters in config (some link to 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 > compilation (only make, not "make bootstrap"). Compiling logged as 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 s= ame) > --prefix=3D/usr/local/sh5 (the same as for binutils) > --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 > (imlpicit declarations)and (probably because of this) also to some pars= e > 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' undeclared (first use in this function)" > "imlicit declaration of 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...]=20 > 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 w= ould > 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=20 > > 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=20 > > 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=20 > > 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 | ------------------------------------------------------------------------ |