[OSy] - prekladac
Marek Vasut
marek.vasut at gmail.com
Thu Oct 28 16:45:26 CEST 2010
On Thursday 28 October 2010 12:31:07 Petr Kellnhofer wrote:
> No, to jsem zkousel jako prvni, ovsem skoncilo to pak pri prekladu kalista
> volanim make
>
>
> /usr/local/cross//mips32/bin/mipsel-linux-gnu-gcc -O2
> -fno-optimize-sibling-calls -march=r4000 -mabi=32 -mgp32 -msoft-float
> -mlong32 -G 0 -mno-abicalls -fno-pic -fno-builtin -ffreestanding -nostdlib
> -nostdinc -pipe -Wall -Wextra -Werror -Wno-unused-parameter
> -Wmissing-prototypes -g3 -std=gnu99 -I. -S -o include/gen_offset.s
> include/gen_offset.c /usr/local/cross//mips32/bin/mipsel-linux-gnu-gcc:
> /lib/libc.so.6: version `GLIBC_2.11' not found (required by
> /usr/local/cross//mips32/bin/mipsel-linux-gnu-gcc) make[1]: *** No rule to
> make target `Makefile.depend', needed by `boot/loader.o'. Stop. make[1]:
> Leaving directory `/home/keni/osy/trunk/kalisto-0.8.8/kernel' make: ***
> [kernel] Error 2
>
> takze jsem usoudil, ze to je nedobre nainstalovane.
>
> Petr
>
>
http://wiki.debian.org/BuildingCrossCompilers
1) ARCH=mipsel
2) Pouzij gcc-4.5 (je to v debianu v experimentalu)
3) Pri buildeni binutils se nepouziva ten prikaz "fakeroot cosi", ale prikaz co
najdes v bintuils-.../debian/README.cross
4) Pokud ti to bude zkuhrat, ze nema nejake balicky, tak si je vyrob pomoci
dpkg-cross -A -a mipsel -b balik.deb (to tam je, ale -A to donuti, aby to
generovalo i prazdne baliky, coze je tam nekde potreba kvuli nejakym porouchanym
zavislostem)
Dalsi moznost je pouzit http://emdebian.org toolchain, ale to je jen gcc 4.4.
Takto to pouzivam ja.
>
> -----Original Message-----
> From: osy-bounces at d3s.mff.cuni.cz [mailto:osy-bounces at d3s.mff.cuni.cz] On
> Behalf Of Daniel Siptak Sent: Thursday, October 28, 2010 11:34 AM
> To: Operating Systems Course
> Subject: Re: [OSy] - prekladac
>
> Ja som mal tiez ten problem.
> Najlepsie je ked si sitahnes cisto tu binarku co je pre linux na
> strankach rozbalis ju do /usr/local/cross/mips32 a potom to uz pojde
> lebo v Makefile je priamo odkazovane na tu adressu. A binarky samotne
> stacia netreba to kompilovat u seba.
>
> 2010/10/28 Petr Kellnhofer <pkellnhofer at seznam.cz>:
> > Stale se mi nedari nainstalovat v Ubuntu 9.04 ten prekladac pro Kalisto.
> > Poustim ten skript sh... v contrib, ale vzdy to skonci
> >
> > checking for the correct version of the gmp/mpfr/mpc libraries... no
> > configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC
> > 0.8.0+.
> > Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
> > their locations. Source code for these libraries can be found at
> > their respective hosting sites as well as at
> > ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
> > http://gcc.gnu.org/install/prerequisites.html for additional info. If
> > you obtained GMP, MPFR and/or MPC from a vendor distribution package,
> > make sure that you have installed both the libraries and the header
> > files. They may be located in separate packages.
> >
> > Script failed: Error configuring GCC.
> >
> >
> > Pritom ty 3 knihovny jsem stahnul a nainstaloval
> >
> > .config
> > make
> > make check
> > make install
> >
> > bez chyb.
> >
> > Na Windows mi to rovnez nefunguje.
> >
> > Nevite co mi tam jeste chybi?
> >
> > Petr
> >
> >
> >
> >
> > -----Original Message-----
> > From: osy-bounces at d3s.mff.cuni.cz [mailto:osy-bounces at d3s.mff.cuni.cz] On
> > Behalf Of Marek Vasut
> > Sent: Thursday, October 28, 2010 2:51 AM
> > To: osy at d3s.mff.cuni.cz
> > Cc: Martin Decky
> > Subject: Re: [OSy] Keypressy
> >
> > On Wednesday 27 October 2010 08:54:25 Martin Decky wrote:
> >> > premyslim co udelat, kdyz mam situaci:
> >> >
> >> > * Nikdo necte z klavesnice
> >> > * BFU zmackne klavesu
> >> >
> >> > Co s tim keypressem -- ignorovat nebo bufferovat (a pozdeji az nekdo
> >> > zacne cist, tak to predat z bufferu) ?
> >>
> >> Jiste, klavesnicovy buffer je prima vec. Ma tu vyhodu, ze nemusite
> >> mackat klavesu na klavesnici presne v okamziku, kdy ji zrovna program
> >> chce precist :-D
> >
> > Pochopitelne, ovsem kdyz to nikdo necte, tak to nikoho nezajima, co si
> > BFU na te
> > klavesnici macka. Implementace stylu, ze se drzi jeden znak v nejake
> > promenne,
> > aby getc_try() mohl taky nekdy vratit znak misto -EWOULDBLOCK je
> > vyhovujici ?
> >
> >> M.D.
> >>
> >> _______________________________________________
> >> OSy mailing list
> >> OSy at d3s.mff.cuni.cz
> >> https://d3s.mff.cuni.cz/mailman/listinfo/osy
> >
> > _______________________________________________
> > OSy mailing list
> > OSy at d3s.mff.cuni.cz
> > https://d3s.mff.cuni.cz/mailman/listinfo/osy
> > Príchozí zpráva neobsahuje viry.
> > Zkontrolováno AVG - www.avg.cz
> > Verze: 9.0.864 / Virová báze: 271.1.1/3222 - Datum vydání: 10/27/10
> > 08:34:00
> >
> >
> >
> > _______________________________________________
> > OSy mailing list
> > OSy at d3s.mff.cuni.cz
> > https://d3s.mff.cuni.cz/mailman/listinfo/osy
>
> _______________________________________________
> OSy mailing list
> OSy at d3s.mff.cuni.cz
> https://d3s.mff.cuni.cz/mailman/listinfo/osy
>
> Príchozí zpráva neobsahuje viry.
> Zkontrolováno AVG - www.avg.cz
> Verze: 9.0.864 / Virová báze: 271.1.1/3222 - Datum vydání: 10/27/10
> 21:12:00
>
>
>
> _______________________________________________
> OSy mailing list
> OSy at d3s.mff.cuni.cz
> https://d3s.mff.cuni.cz/mailman/listinfo/osy
More information about the NSWI004
mailing list