Bug 15758

Summary: When compiling /usr/ports/graphics/aview, I get compile errors
Product: Base System Reporter: Donn Miller <dmmiller>
Component: binAssignee: David E. O'Brien <obrien>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-CURRENT   
Hardware: Any   
OS: Any   

Description Donn Miller 1999-12-29 06:30:01 UTC
When I tried to compile aview in the ports collection, I get the following errors:

===>  Building for aview-1.2
cc -mpentium -O3 -pipe  -I/usr/X11R6/include -I/usr/local/include -c main.c
cc -mpentium -O3 -pipe  -I/usr/X11R6/include -I/usr/local/include -c ui.c
cc -mpentium -O3 -pipe  -I/usr/X11R6/include -I/usr/local/include -c shrink.c
cc -mpentium -O3 -pipe  -I/usr/X11R6/include -I/usr/local/include -c image.c
cc -mpentium -O3 -pipe  -I/usr/X11R6/include -I/usr/local/include -O -o aview main.o  ui.o  shrink.o  image.o -laa -lncurses -lm    -L/usr/X11R6/lib -lX11 -L/usr/local/lib -L/usr/local/lib
cc -mpentium -O3 -pipe  -I/usr/X11R6/include -I/usr/local/include -c flip.c
flip.c: In function `dcd_delta_flc':
sstring.h:493: Invalid `asm' statement:
sstring.h:493: fixed or forbidden register 2 (cx) was spilled for class CREG.
flip.c: In function `dcd_delta_fli':
sstring.h:493: Invalid `asm' statement:
sstring.h:493: fixed or forbidden register 2 (cx) was spilled for class CREG.
flip.c: In function `dcd_byte_run':
sstring.h:493: Invalid `asm' statement:
sstring.h:493: fixed or forbidden register 2 (cx) was spilled for class CREG.
flip.c: In function `dcd_black':
sstring.h:669: Invalid `asm' statement:
sstring.h:669: fixed or forbidden register 2 (cx) was spilled for class CREG.
flip.c: In function `processframechunk':
sstring.h:493: Invalid `asm' statement:
sstring.h:493: fixed or forbidden register 2 (cx) was spilled for class CREG.
*** Error code 1

Stop in /usr/ports/graphics/aview/work/aview-1.2.
*** Error code 1

Stop in /usr/ports/graphics/aview.
*** Error code 1

Stop in /usr/ports/graphics/aview.
*** Error code 1

Stop in /usr/ports/graphics/aview.
*** Error code 1

Stop in /usr/ports/graphics/aview.

Fix: 

Not known.  (If I did, I wouldn't be submitting this report. :-)
How-To-Repeat: 
Just try building aview in /usr/ports/graphics/aview
Comment 1 Steve Price freebsd_committer freebsd_triage 1999-12-31 20:05:14 UTC
Responsible Changed
From-To: freebsd-ports->obrien

This is believed to be a compiler issue in current and not necessarily a 
problem with the port. 

Comment 2 David O'Brien 2000-01-16 03:23:06 UTC
This port's source contains bogus ASM code.  So it actually is a problem
with the port itself.  GCC versions prior to 2.95 was just willing to
tolerate the bogus code.
Comment 3 David E. O'Brien freebsd_committer freebsd_triage 2000-01-16 06:38:11 UTC
State Changed
From-To: open->closed

Bogus ASM fixed.