* [Fwd: kernel compilation fails]
@ 2005-06-16 9:37 Tomáš Vrána
0 siblings, 0 replies; 3+ messages in thread
From: Tomáš Vrána @ 2005-06-16 9:37 UTC (permalink / raw)
To: linux-mips
Hi,
did I just ask a real stupid question, or is my question unclear ? or...
just give some feedback, please.
TIA, Tom
-------- Original Message --------
Subject: kernel compilation fails
Date: Wed, 15 Jun 2005 23:54:18 +0200
From: Tom Vrána <tom@voda.cz>
Organization: VODA IT consulting
To: linux-mips@linux-mips.org
Hi,
I am desperately trying to compile 2.4.30 mips kernel using uclibc
buildroot gcc 3.3.4 It fails in the following manner:
mipsel-linux-gcc -D__KERNEL__
-I/store/devel/adm/linux-2.4.30-mipscvs-20050614/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -I
/store/devel/adm/linux-2.4.30-mipscvs-20050614/include/asm/gcc -G 0
-mno-abicalls -fno-pic -pipe -finline-limit=100000 -mabi=32
-march=r4600 -Wa,-32 -Wa,-march=r4600 -Wa,-mips3 -Wa,--trap -c
mipsIRQ.S -o mipsIRQ.o
/store/devel/adm/linux-2.4.30-mipscvs-20050614/include/asm/hazards.h:
Assembler messages:
/store/devel/adm/linux-2.4.30-mipscvs-20050614/include/asm/hazards.h:172:
Error: unrecognized opcode `__asm__('
/store/devel/adm/linux-2.4.30-mipscvs-20050614/include/asm/hazards.h:173:
Warning: rest of line ignored; first ignored character is `"'
/store/devel/adm/linux-2.4.30-mipscvs-20050614/include/asm/hazards.h:174:
Warning: rest of line ignored; first ignored character is `"'
/store/devel/adm/linux-2.4.30-mipscvs-20050614/include/asm/hazards.h:175:
Warning: rest of line ignored; first ignored character is `"'
/store/devel/adm/linux-2.4.30-mipscvs-20050614/include/asm/hazards.h:176:
Warning: rest of line ignored; first ignored character is `"'
/store/devel/adm/linux-2.4.30-mipscvs-20050614/include/asm/hazards.h:177:
Warning: rest of line ignored; first ignored character is `"'
/store/devel/adm/linux-2.4.30-mipscvs-20050614/include/asm/hazards.h:178:
Warning: rest of line ignored; first ignored character is `"'
Looks like a stupid typo somewhere, but I lack experience to find. BTW,
the some code is taken from 2.4.18 kernel...
Can anyone please tell me where to look ?
Thanks, Tom
--
Tomas Vrana <tom@voda.cz>
--------------------------
VODA IT consulting, Borkovany 48, 691 75
http://www.voda.cz/
phone: +420 519 419 416 mobile: +420 603 469 305 UIN: 105142752
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re:[Fwd: kernel compilation fails]
@ 2005-06-16 9:54 Philippe De Swert
2005-06-16 10:20 ` [Fwd: " Ralf Baechle
0 siblings, 1 reply; 3+ messages in thread
From: Philippe De Swert @ 2005-06-16 9:54 UTC (permalink / raw)
To: tom; +Cc: linux-mips
Hello Tom,
> I am desperately trying to compile 2.4.30 mips kernel using uclibc
> buildroot gcc 3.3.4 It fails in the following manner:
<snip> relevant error output </snip>
>
> Looks like a stupid typo somewhere, but I lack experience to find. BTW,
> the some code is taken from 2.4.18 kernel...
> Can anyone please tell me where to look ?
Basically 2.4.18 code is too old to compile as is with gcc 3.3.4. The
assembler code needs to be inlined with a different syntax. Just look at
similar files to see how it is done.
As a quick hint here is some code to show how it should look like.
__asm__(".set\tmips3\n\t"
"wait\n\t"
".set\tmips0");
Notice the \n and \t parts. You are probabely missing those.
Otherwise use an older compiler (2.95).
Cheers,
Philippe
| Philippe De Swert
|
| Stag developer http://stag.mind.be/
| Emdebian developer: http://www.emdebian.org
|
| Please do not send me documents in a closed
| format.(*.doc,*.xls,*.ppt)
| Use the open alternatives. (*.pdf,*.ps,*.html,*.txt)
| http://www.gnu.org/philosophy/no-word-attachments.html
-------------------------------------------------------
NOTE! My email address is changing to ... @scarlet.be
Please make the necessary changes in your address book.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Fwd: kernel compilation fails]
2005-06-16 9:54 Re:[Fwd: kernel compilation fails] Philippe De Swert
@ 2005-06-16 10:20 ` Ralf Baechle
0 siblings, 0 replies; 3+ messages in thread
From: Ralf Baechle @ 2005-06-16 10:20 UTC (permalink / raw)
To: Philippe De Swert; +Cc: tom, linux-mips
On Thu, Jun 16, 2005 at 10:54:43AM +0100, Philippe De Swert wrote:
> Basically 2.4.18 code is too old to compile as is with gcc 3.3.4. The
> assembler code needs to be inlined with a different syntax. Just look at
> similar files to see how it is done.
Not true. Gcc 3.3 is probably even is the most commonly used compiler
with 2.4-based systems. Builds with gcc 3.4 will fail for some 2.4
kernel configurations but at the very least throw loads of warnings.
> As a quick hint here is some code to show how it should look like.
>
>
> __asm__(".set\tmips3\n\t"
> "wait\n\t"
> ".set\tmips0");
>
> Notice the \n and \t parts. You are probabely missing those.
Actually more and more code it being formatted using tabs instead of the
\t escape sequence for readability.
Ralf
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-06-16 10:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-16 9:54 Re:[Fwd: kernel compilation fails] Philippe De Swert
2005-06-16 10:20 ` [Fwd: " Ralf Baechle
-- strict thread matches above, loose matches on Subject: below --
2005-06-16 9:37 Tomáš Vrána
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox