Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24154 - gv fails to emerge using gcc 3.3
Summary: gv fails to emerge using gcc 3.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-09 04:10 UTC by Voltron Rex
Modified: 2003-09-11 19:11 UTC (History)
0 users

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


Attachments
fix gcc33 (gv-3.5.8-r2-gcc33.patch,490 bytes, patch)
2003-08-13 02:00 UTC, Alin Vaida
Details | Diff
fix gcc33 (gv-3.5.8-r2-gcc33.patch,490 bytes, patch)
2003-08-13 02:01 UTC, Alin Vaida
Details | Diff
fix gcc33 (gv-3.5.8-r2-gcc33.patch,490 bytes, patch)
2003-08-13 02:10 UTC, Alin Vaida
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Voltron Rex 2003-07-09 04:10:00 UTC
Greetings

Emerging the latest gv fails with lots of nifty preprocessing errors. I'm using
gcc3.3. Yes, evil, but sooner or later it'll be generally in use, yes?

The errors are long and ugly. There are some 100 errors, maybe more. They are
all something like this:

Aaa_intern.h:47:33: pasting "/" and "cursorfont" does not give a valid
preprocessing token

This comes from the INC_X11 macro:
#include INC_X11(Constraint.h)

The solution turns out to be very simple: 
in the file config.Unix put #define CONVERT_INCLUDE_DIRECTIVES somewhere outside
of the SCO specific defines, so that it's picked up on x86 architecture. As
there's not a linux/x86 #ifdef, I just put it near the top of the file. But this
obviously won't work for every architecture.

Defining this CONVERT_INCLUDE_DIRECTIVES does manual preprocessing with some
sort of script instead of depending on the compiler's preprocessor. And gv
compiles dandy after this.



Reproducible: Always
Steps to Reproduce:
1. emerge gcc 3.3
2. emerge gv
3. watch it fail

Actual Results:  
emerge gv failed

Expected Results:  
emerge should have succeeded

Portage 2.0.48-r1 (default-x86-1.4, gcc-3.3, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm) Processor
GENTOO_MIRRORS="http://highlander/ ftp://sunsite.informatik.rwth-aachen.de/pub/L
inux/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share
/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg kde gnome libg++ mikmod mm
x mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm be
rkdb slang readline arts svga java X sdl gpm tcpd pam libwww ssl perl python esd
 imlib oggvorbis gtk qt motif opengl acpi acpi4linux alsa gtk2 mozcalendar mozil
la ruby samba tcltk tetex usb xosd"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j7"
AUTOCLEAN="yes"
SYNC="rsync://highlander/gentoo-portage"
FEATURES="sandbox ccache distcc fixpackages"
Comment 1 Paper 2003-07-25 05:40:49 UTC
Same problem here, just after the upgrade to gcc 3.3:

In file included from Aaa_bison.c:56:
Aaa_intern.h:44:27: pasting "/" and "Xlib" does not give a valid preprocessing token
Aaa_intern.h:44:27: pasting "h" and ">" does not give a valid preprocessing token
Aaa_intern.h:45:32: pasting "/" and "Xresource" does not give a valid preprocessing token
Aaa_intern.h:45:32: pasting "h" and ">" does not give a valid preprocessing token
Aaa_intern.h:46:33: pasting "/" and "IntrinsicP" does not give a valid preprocessing token
Aaa_intern.h:46:33: pasting "h" and ">" does not give a valid preprocessing token
Aaa_intern.h:47:33: pasting "/" and "cursorfont" does not give a valid preprocessing token
Aaa_intern.h:47:33: pasting "h" and ">" does not give a valid preprocessing token
Aaa_intern.h:48:33: pasting "/" and "StringDefs" does not give a valid preprocessing token
Aaa_intern.h:48:33: pasting "h" and ">" does not give a valid preprocessing token
Aaa_intern.h:50:27: pasting "/" and "Misc" does not give a valid preprocessing token
Aaa_intern.h:50:27: pasting "h" and ">" does not give a valid preprocessing token
Aaa_intern.h:51:33: pasting "/" and "Converters" does not give a valid preprocessing token
Aaa_intern.h:51:33: pasting "h" and ">" does not give a valid preprocessing token
Comment 2 Alin Vaida 2003-08-13 02:00:13 UTC
Created attachment 16024 [details, diff]
fix gcc33
Comment 3 Alin Vaida 2003-08-13 02:01:58 UTC
Created attachment 16025 [details, diff]
fix gcc33
Comment 4 Alin Vaida 2003-08-13 02:10:00 UTC
Created attachment 16026 [details, diff]
fix gcc33
Comment 5 Alin Vaida 2003-08-13 02:13:33 UTC
Comment on attachment 16026 [details, diff]
fix gcc33

This patch is from
http://lists.freebsd.org/pipermail/freebsd-ports/2003-July/002933.html

(Sorry about multiple postings, I got the impression that it didn't work the
1st and 2nd time :( )
Comment 6 Travis Tilley (RETIRED) gentoo-dev 2003-08-15 08:42:08 UTC
bump?
this is still an issue with gcc 3.3.1 and the latest gv ebuild (gv-3.5.8-r2)
Comment 7 SpanKY gentoo-dev 2003-09-11 19:11:15 UTC
added to cvs, thanks :)