Gentoo Archives: gentoo-user

From: Robert Persson <ireneshusband@××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] using g++ instead of gcc to build abiword
Date: Sat, 22 Oct 2005 03:26:39
Message-Id: 200510212014.32056.ireneshusband@yahoo.co.uk
In Reply to: Re: [gentoo-user] using g++ instead of gcc to build abiword by Richard Fish
1 I just did CC=g++ and I now get a different error, both with 1.2.11 and 1.4.1,
2 namely:
3
4 cdump.c: In function `int main(int, char**)':
5 cdump.c:99: error: invalid conversion from `void*' to `unsigned char*'
6
7 for 1.2.11 and something similar for 1.4.1.
8
9 zebedee ~ # emerge --info
10 Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.5-r2,
11 2.6.13-mm1 i686)
12 =================================================================
13 System uname: 2.6.13-mm1 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
14 Gentoo Base System version 1.6.13
15 ccache version 2.3 [disabled]
16 dev-lang/python: 2.3.5-r2, 2.4.2
17 sys-apps/sandbox: 1.2.12
18 sys-devel/autoconf: 2.13, 2.59-r6
19 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
20 sys-devel/binutils: 2.15.92.0.2-r10
21 sys-devel/libtool: 1.5.20
22 virtual/os-headers: 2.6.11-r2
23 ACCEPT_KEYWORDS="x86"
24 AUTOCLEAN="yes"
25 CBUILD="i686-pc-linux-gnu"
26 CFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer -mfpmath=sse"
27 CHOST="i686-pc-linux-gnu"
28 CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
29 CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
30 CXXFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer -mfpmath=sse"
31 DISTDIR="/usr/portage/distfiles"
32 FEATURES="autoconfig distlocks sandbox sfperms strict"
33 GENTOO_MIRRORS="http://distfiles.gentoo.org
34 http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
35 MAKEOPTS="-j3"
36 PKGDIR="/usr/portage/packages"
37 PORTAGE_TMPDIR="/var/tmp"
38 PORTDIR="/usr/portage"
39 PORTDIR_OVERLAY="/usr/local/portage"
40 SYNC="rsync://rsync.gentoo.org/gentoo-portage"
41 USE="3dfx 3dnow 3dnowext X X509 aac acpi aim alsa apache2 apm arts artsd
42 audiofile avi bash-completion berkdb bindist bitmap-fonts bzlib calendar
43 cdparanoia cdr crypt cups curl dba dga directfb divx4linux doc dvb dvd dvdr
44 eds emacs emboss encode erandom esd fam ffmpeg flac flash foomaticdb fortran
45 freetds gcj gd gdbm gif gimpprint gphoto2 gpm gstreamer gtk gtk2 gtkhtml
46 guile hal i8x0 icc ieee1394 imagemagick imap imlib innodb insecure-drivers
47 ithreads jack jack-tmpfs java jikes jpeg jpeg2k junit kde kdeenablefinal
48 kerberos krb4 ladcca ladspa ldap libg++ libwww lm_sensors lzo mad maildir
49 matroska md5sum memlimit mikmod mime ming mmx motif mozilla mp3 mpeg
50 multitarget mysql nas ncurses network nls nptl nptlonly objc odbc offensive
51 ogg oggvorbis openal openexr opengl oss pam pcre pdflib perl php png
52 portaudio postgres povray ppds python qt quicktime rdesktop readline real
53 rrdtool rtc samba scanner sdk sdl session slang slp sndfile speex spell sse
54 sse2 ssl svg svga tcltk tcpd tetex theora threads tiff truetype
55 truetype-fonts type1-fonts udev unicode usb v4l v4l2 vhosts vorbis wmf x86
56 xanim xine xinerama xml xml2 xmms xprint xscreensaver xv xvid xvmc yahoo
57 zeroconf zlib userland_GNU kernel_linux elibc_glibc"
58 Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
59
60 zebedee ~ # emerge -pv gcc
61
62 These are the packages that I would merge, in order:
63
64 Calculating dependencies ...done!
65 [ebuild R ] sys-devel/gcc-3.4.4-r1 (-altivec) -bootstrap -boundschecking
66 -build +fortran +gcj +gtk -hardened -ip28 (-multilib) -multislot (-n32)
67 (-n64) +nls -nocxx -nopie -nossp +objc -static -vanilla 26,919 kB
68
69 Total size of downloads: 26,919 kB
70
71 On October 21, 2005 05:14 pm Richard Fish was like:
72 > Also, gcc will do "g++" automatically if the source files are named
73 > correctly (.cxx, .cc, or .cpp). So the CC= trick should really not be
74 > necessary. But rather than editing any files, you can try:
75 >
76 > CC=g++ emerge abiword
77 >
78 > If that doesn't work, I suggest posting the output of emerge --info and
79 > emerge --verbose --pretend gcc.
80 >
81 > -Richard
82
83 --
84 Robert Persson
85
86 "Don't use nuclear weapons to troubleshoot faults."
87 (US Air Force Instruction 91-111, 1 Oct 1997)
88
89 --
90 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] using g++ instead of gcc to build abiword Robert Persson <ireneshusband@××××××××.uk>
Re: [gentoo-user] using g++ instead of gcc to build abiword - more weirdness Robert Persson <ireneshusband@××××××××.uk>
Re: [gentoo-user] using g++ instead of gcc to build abiword Richard Fish <bigfish@××××××××××.org>