skwarkowe boje #01 glibc
Paweł Sikora
pluto w ds14.agh.edu.pl
Pią, 18 Cze 2004, 08:00:21 CEST
po kilku godzinach walki udalo mi sie zbudowac skrosne narzedzia
a nastepnie za ich pomoca skrosnego glibca(64). potem juz przy
pomocy lekko poprawionych specy zbudowalem sobie natywne
gcc-3.4.1-snap(z multilibem) i binutils. caly toolchain ladnie
buduje binarki tak jak mysle, ze powinien, a mianowicie:
# gcc test.c -s -m32 -o test32
# gcc test.c -s -m64 -o test64
# file test32 && ldd ./test32 && time ./test32
test32: ELF 32-bit MSB executable, SPARC, version 1 (SYSV), for GNU/Linux
2.4.6, dynamically linked (uses shared libs), stripped
libc.so.6 => /lib/libc.so.6 (0x7002c000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x70000000)
hello world
sizeof(char) = 1
sizeof(short) = 2
sizeof(int) = 4
sizeof(long) = 4
sizeof(long long) = 8
sizeof(void *) = 4
0.000u 0.000s 0:00.00 0.0% 0+0k 0+0io 61pf+0w
# file test64 && ldd ./test64 && time ./test64
test64: ELF 64-bit MSB executable, SPARC V9, version 1 (SYSV), for GNU/Linux
2.0.0, dynamically linked (uses shared libs), stripped
libc.so.6 => /lib64/libc.so.6 (0xfffff80000104000)
/lib64/ld-linux.so.2 => /lib64/ld-linux.so.2 (0xfffff80000000000)
hello world
sizeof(char) = 1
sizeof(short) = 2
sizeof(int) = 4
sizeof(long) = 8
sizeof(long long) = 8
sizeof(void *) = 8
0.000u 0.000s 0:00.00 0.0% 0+0k 0+0io 72pf+0w
teraz na natywnych 64-bitowych narzedziach i recznie zbudowanym glibcu(64)...
1848456 Jun 18 05:04 binutils-2.15.91.0.1-1.sparc64.rpm
77896 Jun 18 05:04 binutils-gasp-2.15.91.0.1-1.sparc64.rpm
285459 Jun 18 05:04 binutils-static-2.15.91.0.1-1.sparc64.rpm
162579 Jun 18 04:14 cpp-3.4.1-0.20040611.1.sparc64.rpm
3331519 Jun 18 04:14 gcc-3.4.1-0.20040611.1.sparc64.rpm
49688 Jun 18 04:14 libgcc-3.4.1-0.20040611.1.sparc64.rpm
...chcialem przebudowac sobie jeszcze raz glibca ze speca do rpma, a tu zonk:
sparc-pld-linux-gcc ../sysdeps/generic/mempcpy.c -c -std=gnu99
-O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings
-fcall-used-g6 -m64 -mcpu=ultrasparc -mvis -fcall-used-g6
(..inkludy..)
../sysdeps/sparc/sparc64/memset.S: Assembler messages:
../sysdeps/sparc/sparc64/memset.S:248:
Error: Architecture mismatch on "fzero".
(Requires v9a|v9b; requested architecture is v9.)
../sysdeps/sparc/sparc64/memset.S:251:
Error: Architecture mismatch on "fzero".
(Requires v9a|v9b; requested architecture is v9.)
ktos ma jakis pomysl odnosnie powyzszego bledu?
--
If you think of MS-DOS as mono, and Windows as stereo,
then Linux is Dolby Digital and all the music is free...
Więcej informacji o liście dyskusyjnej pld-devel-pl