Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9626 - ghostscript don't compile
Summary: ghostscript don't compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Donny Davies (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-24 17:51 UTC by Miguel Angel Medinilla Luque
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miguel Angel Medinilla Luque 2002-10-24 17:51:42 UTC
Several days ago, i can't compile ghostscript 7.05.5. I try to compile it 
without optimizations of /etc/make.conf too, but always I get the same 
error. This is the last log's line

./src/gdevmjc.c:1755: `k7' undeclared (first use in this function)
./src/gdevmjc.c:1755: (Each undeclared identifier is reported only once
./src/gdevmjc.c:1755: for each function it appears in.)
./src/gdevmjc.c:1755: warning: right shift count >= width of type
./src/gdevmjc.c:1757: `k8' undeclared (first use in this function)
./src/gdevmjc.c:1757: warning: right shift count >= width of type
./src/gdevmjc.c:1760: warning: left shift count >= width of type
./src/gdevmjc.c:1760: warning: left shift count >= width of type
./src/gdevmjc.c:1780: warning: right shift count >= width of type
./src/gdevmjc.c:1782: warning: right shift count >= width of type
./src/gdevmjc.c:1784: warning: right shift count >= width of type
./src/gdevmjc.c:1786: warning: right shift count >= width of type
./src/gdevmjc.c:1790: warning: left shift count >= width of type
./src/gdevmjc.c:1790: warning: left shift count >= width of type
./src/gdevmjc.c:1790: warning: left shift count >= width of type
./src/gdevmjc.c:1790: warning: left shift count >= width of type
make: *** [obj/gdevmjc.o] Error 1

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line -124, Exitcode 2
!!! make failed


THANKS
Comment 1 Ricardo Cordeiro 2002-11-02 15:31:55 UTC
Hi had the exact same problem. I have a AMD k6-2, gcc-2.95.3-r7.
My CFLAGS and CXXFLAGS were "-march=k6 -mcpu=k6 -O3 -pipe".

I changed them to
"-march=k6 -mcpu=k6 -O3"
"-march=k6 -mcpu=k6 -O2"
"-march=k6 -mcpu=k6"

none of them worked, the only workaround, that I found, was to disable all 
optimization.

Forum topic:

http://forums.gentoo.org/viewtopic.php?
t=20096&start=0&postdays=0&postorder=asc&highlight=
Comment 2 Donny Davies (RETIRED) gentoo-dev 2002-11-12 23:20:35 UTC
i cant access that forum posting.

is this still an issue?  because if it is, maybe
the only thing to do is filter the user's cflags
for him.

or else i'll close..
Comment 3 Ricardo Cordeiro 2002-11-17 10:29:00 UTC
Maybe it's not an issue anymore, beside the fact that changing the CFLAGS to 
something that should have meant the samething fixed the problem.

Well gcc-2.95 is history...

Thanks for listening...