Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Witam
próbuje skompilować jądro 2.4.8 w moim laptopie
wydaje polecenia:
make clean
make dep
wszystko ok a przy make bzImage wyskakuje mi następujący bład:
laptop:~# cd /usr/src/linux laptop:/usr/src/linux# make bzImage gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586 -c -o init/main.o init/main.c In file included from /usr/src/linux/include/net/checksum.h:33, from /usr/src/linux/include/linux/raid/md.h:34, from init/main.c:24: /usr/src/linux/include/asm/checksum.h:72:30: missing terminating " character In file included from /usr/src/linux/include/net/checksum.h:33, from /usr/src/linux/include/linux/raid/md.h:34, from init/main.c:24: /usr/src/linux/include/asm/checksum.h: In function `ip_fast_csum': /usr/src/linux/include/asm/checksum.h:73: error: syntax error before "movl" /usr/src/linux/include/asm/checksum.h:75:17: invalid suffix "f" on integer constant /usr/src/linux/include/asm/checksum.h:82:17: invalid suffix "b" on integer constant /usr/src/linux/include/asm/checksum.h:90:13: missing terminating " character /usr/src/linux/include/asm/checksum.h:105:17: missing terminating " character /usr/src/linux/include/asm/checksum.h: In function `csum_fold': /usr/src/linux/include/asm/checksum.h:106: error: syntax error before "addl" /usr/src/linux/include/asm/checksum.h:108:17: missing terminating " character /usr/src/linux/include/asm/checksum.h:121:13: missing terminating " character /usr/src/linux/include/asm/checksum.h: In function `csum_tcpudp_nofold': /usr/src/linux/include/asm/checksum.h:122: error: syntax error before "addl" /usr/src/linux/include/asm/checksum.h:126:9: missing terminating " character /usr/src/linux/include/asm/checksum.h:128: error: `__x' undeclared (first use in this function) /usr/src/linux/include/asm/checksum.h:128: error: (Each undeclared identifier is reported only once /usr/src/linux/include/asm/checksum.h:128: error: for each function it appears in.) /usr/src/linux/include/asm/checksum.h: At top level: /usr/src/linux/include/asm/checksum.h:128: error: syntax error before ')' token /usr/src/linux/include/asm/checksum.h:161:17: missing terminating " character /usr/src/linux/include/asm/checksum.h: In function `csum_ipv6_magic': /usr/src/linux/include/asm/checksum.h:162: error: syntax error before "addl" /usr/src/linux/include/asm/checksum.h:173:17: missing terminating " character /usr/src/linux/include/asm/checksum.h:176: error: `__x' undeclared (first use in this function) /usr/src/linux/include/asm/checksum.h:176: warning: no return statement in function returning non-void /usr/src/linux/include/asm/checksum.h: At top level: /usr/src/linux/include/asm/checksum.h:176: error: syntax error before ')' token /usr/src/linux/include/asm/checksum.h:176: error: syntax error before "__u32" make: *** [init/main.o] Error 1 laptop:/usr/src/linux#
Dodam że szukałem w googlach ale na nic nie trafiłem, może czegoś brakuje?
Pozdrawiam
Offline
Zainstaluj sobie gcc 2.95 to może da rade.
Offline
Niestety po instalacji gcc-2.95 (apt-get install gcc-2.95) jest jeszcze gorzej...
laptop:/usr/src/linux# make bzImage gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -march=i586 -c -o init/main.o init/main.c make: gcc: Command not found make: *** [init/main.o] Error 127 laptop:/usr/src/linux#
Offline
Wyglada na to ze system nie widzi polecenia gcc.
1. Sprawdz najpierw czy na pewno masz zainstalowana jakakolwiek wersje gcc.
2. Wpisz wkonsoli gcc i nacisnij 2 razy tab, jezeli masz poprawnie zainstalowane gcc-2.95 to na liscie powinno sie pojawic 'gcc-2.95'.
3. Jesli juz masz odpowiednie gcc w systemie to przed kompilacja jadra napisz alias gcc='gcc-2.95'.
Offline
Witam
gcc version 3.3.5 (Debian 1:3.3.5-13)
Wpisuje gcc='3.3.5' jak i 2.95 ale nic to nie pomaga :(
Musze skompilować jądro bo podczas startu systemu mam błędy
set_multmode: status=0x51 { DriveReady SeekComplete Error } set_multmode: error=0x04 { DriveStatusError }
Offline
Wpisuje gcc='3.3.5' jak i 2.95 ale nic to nie pomaga :(
[/quote]
Sprawdz czy masz zainstalowana wersje 2.95 (np. wpisz w konsoli gcc-2.95). Potem wpisz w konsoli tuz przed sama kompilacjaKod:
alias gcc='gcc-2.95'moze to pomoze
Offline
[b]tome[/b] doinstalowałem gcc-2.95 i dodałem alias przed kompilacją ale dalej mam ten sam błąd.. ściągam kernela 2.4.28 może pod nim się bedzie dało.
[b]Update[/b]
Wersja 2.4.28 sie u mnie kompiluje bez problemu :) i chodzi zajebiście!
Offline
Time (s) | Query |
---|---|
0.00013 | SET CHARSET latin2 |
0.00008 | SET NAMES latin2 |
0.00159 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.149.26.47' WHERE u.id=1 |
0.00096 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.149.26.47', 1731816171) |
0.00075 | SELECT * FROM punbb_online WHERE logged<1731815871 |
0.00107 | DELETE FROM punbb_online WHERE ident='18.213.240.226' |
0.00125 | DELETE FROM punbb_online WHERE ident='44.193.102.198' |
0.00104 | SELECT topic_id FROM punbb_posts WHERE id=43562 |
0.00013 | SELECT id FROM punbb_posts WHERE topic_id=5558 ORDER BY posted |
0.00080 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=5558 AND t.moved_to IS NULL |
0.00008 | SELECT search_for, replace_with FROM punbb_censoring |
0.00285 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=5558 ORDER BY p.id LIMIT 0,25 |
0.00102 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=5558 |
Total query time: 0.01175 s |