Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 119655 - lrmi-0.9 failes to compile using gcc 4.1
Summary: lrmi-0.9 failes to compile using gcc 4.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-20 02:16 UTC by Zhang Le (RETIRED)
Modified: 2006-01-22 22:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
make lrmi-0.9 compiles using gcc 4.1 (lrmi-0.9-gcc4.patch,862 bytes, patch)
2006-01-20 02:17 UTC, Zhang Le (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zhang Le (RETIRED) gentoo-dev 2006-01-20 02:16:17 UTC
cc -c  -O2 -march=pentium-m -pipe -fomit-frame-pointer -o lrmi.o lrmi.c
{standard input}: Assembler messages:
{standard input}:712: Error: suffix or operands invalid for `mov'
{standard input}:723: Error: suffix or operands invalid for `mov'
make: *** [lrmi.o] Error 1

I think the cause of this error is
Using "movl" while the destination operand is %gs
Insteadof "movl", "movw" should be used here

I created a patch which can make lrmi compiles using gcc4.1
Comment 1 Zhang Le (RETIRED) gentoo-dev 2006-01-20 02:17:54 UTC
Created attachment 77626 [details, diff]
make lrmi-0.9 compiles using gcc 4.1
Comment 2 Mark Loeser (RETIRED) gentoo-dev 2006-01-22 14:34:30 UTC
Not a problem with gcc-4.1  You are probably using a -* binutils.  Here is the upstream fix:

http://cvs.sourceforge.net/viewcvs.py/lrmi/lrmi/lrmi.c?r1=1.12&r2=1.13&diff_format=u
Comment 3 Zhang Le (RETIRED) gentoo-dev 2006-01-22 22:19:56 UTC
(In reply to comment #2)
> Not a problem with gcc-4.1  You are probably using a -* binutils.  Here is the
> upstream fix:
> 
> http://cvs.sourceforge.net/viewcvs.py/lrmi/lrmi/lrmi.c?r1=1.12&r2=1.13&diff_format=u
> 

Thanks for point this out