* [gentoo-user] can't compile some C++ apps
@ 2006-02-02 3:21 Daniel Vrcic
2006-02-02 4:33 ` Richard Fish
0 siblings, 1 reply; 7+ messages in thread
From: Daniel Vrcic @ 2006-02-02 3:21 UTC (permalink / raw
To: gentoo-user
Hi list!
I have some strange problems with compilation of C++ apps. I've done
numerous emerges today and it turns out that _only_ compilation of
some C++ applications fail(?!). I get always the same error message:
"internal compiler error: Segmentation fault". For example avidemux has
some part of source written in C++. While compilation of .c part goes
very well it suddenly breaks with compiling .cpp file (some of .cpp
files actually pass) and emerge spits out:
---------
ADM_vorbis::run(uint8_t*, unsigned int, uint8_t*, uint32_t*)':
audiocodec_ogg.cpp:187: internal compiler error: Segmentation fault
---------
I get the similar error with wxGTK, kdelibs, libvisual-plugins and few
others, but not with filelight for example(see below).
wxGTK
*--------
from
/var/tmp/portage/wxGTK-2.6.2-r1/work/wxWidgets-2.6.2/src/common/appbase.cpp:34:
/var/tmp/portage/wxGTK-2.6.2-r1/work/wxWidgets-2.6.2/include/wx/longlong.h:
In member function `bool wxULongLongNative::operator<(long unsigned int) const':
/var/tmp/portage/wxGTK-2.6.2-r1/work/wxWidgets-2.6.2/include/wx/longlong.h:472:
internal compiler error: Segmentation fault
---------
kdelibs
*--------
kshortcut.cpp: In member function `bool KKeySequence::init(const KKeySequence&)':
kshortcut.cpp:262: internal compiler error: Segmentation fault
---------
libvisual-plugins
*--------
UtilStr.cpp: In member function `void UtilStr::Assign(CEgIStream&, long int)':
UtilStr.cpp:299: internal compiler error: Segmentation fault
---------
I have also successfully compiled some C applications today and none of
them teased me as C++ ones had.
[11] % genlop --list --date yesterday today
* sys-fs/mdadm
Wed Feb 1 14:51:52 2006 >>> sys-fs/mdadm-1.12.0
Wed Feb 1 15:07:09 2006 >>> media-sound/xmms-1.2.10-r15
Wed Feb 1 17:31:08 2006 >>> media-libs/libvisual-0.2.0
Wed Feb 1 17:31:42 2006 >>> media-plugins/xmms-libvisual-0.2.0
Wed Feb 1 18:09:02 2006 >>> www-client/elinks-0.10.6
Wed Feb 1 22:59:54 2006 >>> sys-apps/memtester-4.0.3
Wed Feb 1 23:21:02 2006 >>> net-analyzer/tcpdump-3.9.3
Wed Feb 1 23:22:41 2006 >>> media-fonts/terminus-font-4.14-r1
Wed Feb 1 23:29:16 2006 >>> net-news/liferea-1.0-r1
Wed Feb 1 23:30:13 2006 >>> media-sound/beep-media-player-0.9.7-r8
Thu Feb 2 02:14:24 2006 >>> media-libs/libvisual-0.2.0
Thu Feb 2 02:44:55 2006 >>> dev-libs/libcdio-0.73
Thu Feb 2 02:47:06 2006 >>> media-video/vcdimager-0.7.21
Thu Feb 2 03:32:14 2006 >>> media-video/mplayer-1.0_pre7-r1
Thu Feb 2 03:50:22 2006 >>> kde-misc/filelight-1.0_beta6
+ three manual kernel compilations.
I have three RAM modules and memtest86+ doesn't report any error on
either of them. I also don't experience any sudden application crashes
(except emerging :) ).
You might be interested at
[12] % gcc-config -l
[1] i686-pc-linux-gnu-3.3.6 *
[2] i686-pc-linux-gnu-3.3.6-hardened
[3] i686-pc-linux-gnu-3.3.6-hardenednopie
[4] i686-pc-linux-gnu-3.3.6-hardenednopiessp
[5] i686-pc-linux-gnu-3.3.6-hardenednossp
[13] % eix '^glibc$' | grep Installed
Installed: 2.3.5-r1
[14] % emerge info
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer -mfpmath=sse
-mmmx -msse2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/ qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer -mfpmath=sse
-mmmx -msse2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distribution s/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X abook apm audiofile avi berkdb bitmap-fonts bonobo bzip2 cdb
cdparanoia cdr crypt cscope cups curl divx4linux doc dvd dvdr dvdread
eds emboss encode exif expat fam ffmpeg fl ac foomaticdb fortran gd
gdbm gif gimpprint glut gnome gpm gstreamer gtk gtk2 gtkhtml guile idn
imagemagick imlib ipv6 java jpeg ldap libg++ libwww lirc mad maildir
matroska mbox mikmo d mmx mmx2 mmxext mng motif mp3 mpeg mysql ncurses
nls nvidia ogg oggvorbis opengl oss pam p cre pdflib perl png python qt
quicktime readline recode rtc ruby sblive sdl slang spell sse sse2 ssl
svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev usb
v4l v4l2 vo rbis win32codecs xgetdefault xine xml xml2 xmms xosd xv xvid
zlib zvbi userland_GNU kernel_l inux elibc_glibc"
Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
The only significant thing I've done recently and think it's worth of
mentioning is that I've moved / and /home from reiserfs to ext3.
Please, can someone shed up some light on this.
Cheers,
--
Daniel Vrcic
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] can't compile some C++ apps
2006-02-02 3:21 [gentoo-user] can't compile some C++ apps Daniel Vrcic
@ 2006-02-02 4:33 ` Richard Fish
2006-02-03 16:54 ` Daniel Vrcic
0 siblings, 1 reply; 7+ messages in thread
From: Richard Fish @ 2006-02-02 4:33 UTC (permalink / raw
To: gentoo-user
On 2/1/06, Daniel Vrcic <daniel.vrcic@si.htnet.hr> wrote:
> Hi list!
>
> I have some strange problems with compilation of C++ apps. I've done
> numerous emerges today and it turns out that _only_ compilation of
> some C++ applications fail(?!). I get always the same error message:
> "internal compiler error: Segmentation fault". For example avidemux has
> some part of source written in C++. While compilation of .c part goes
> very well it suddenly breaks with compiling .cpp file (some of .cpp
> files actually pass) and emerge spits out:
Segfaults compiling are almost always a hardware issue. memtest86 is
just about useless today, as it cannot detect problems due to dma or
memory timings.
Try the memtest script available at:
http://people.redhat.com/dledford/memtest.html
The other thing I would try is to take out the -mmmx, -msse2, and
-mfpmath=sse flags. They will be enabled for those ebuilds where it
is safe to do so by the USE flags.
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] can't compile some C++ apps
2006-02-02 4:33 ` Richard Fish
@ 2006-02-03 16:54 ` Daniel Vrcic
2006-02-03 21:05 ` Benno Schulenberg
0 siblings, 1 reply; 7+ messages in thread
From: Daniel Vrcic @ 2006-02-03 16:54 UTC (permalink / raw
To: gentoo-user
Hi,
* Richard Fish <bigfish@asmallpond.org> [06-02-02 10:04]:
thanks for reply!
> Segfaults compiling are almost always a hardware issue. memtest86 is
> just about useless today, as it cannot detect problems due to dma or
> memory timings.
>
> Try the memtest script available at:
>
> http://people.redhat.com/dledford/memtest.html
I ran it twice yesterday and it didn't print anything on stdout which
means that those tests passed.
I've also run it today with NR_PASSES=10:
[36] % ./memtest.sh
./memtest.sh 288.38s user 441.55s system 9% cpu 2:01:45.25 total
> The other thing I would try is to take out the -mmmx, -msse2, and
> -mfpmath=sse flags. They will be enabled for those ebuilds where it
> is safe to do so by the USE flags.
Doh, I forgot to say in the original post that I've already tried
removing those flags, but that, unfortunately, didn't help. :(
I'm still not able to compile the newest avidemux, k3b, kpdf, amarok...
Isn't that strange that _all_ C compiles (including some bigger apps
like kernel, mplayer, glib, gtk+) went fine apart from only few C++'s
(I think two)? If I have a hardware issue, how come that compilation of
those programs always break, and always on the same file and line of
certain source?
Please, any more tips, advices?
Cheers,
--
Daniel Vrcic
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] can't compile some C++ apps
2006-02-03 16:54 ` Daniel Vrcic
@ 2006-02-03 21:05 ` Benno Schulenberg
2006-02-03 21:18 ` Werner Otto
2006-02-05 12:22 ` Daniel Vrcic
0 siblings, 2 replies; 7+ messages in thread
From: Benno Schulenberg @ 2006-02-03 21:05 UTC (permalink / raw
To: gentoo-user
Daniel Vrcic wrote:
> Isn't that strange that _all_ C compiles (including some bigger
> apps like kernel, mplayer, glib, gtk+) went fine apart from only
> few C++'s (I think two)?
Maybe because c++ compilation eats loads of memory and thus hits the
fishy parts?
> If I have a hardware issue, how come
> that compilation of those programs always break, and always on
> the same file and line of certain source?
Maybe a broken compiler. Try recompiling your toolchain (binutils,
glibc, gcc) without the funny stuff in the CFLAGS, twice. Then try
compiling the failing packages again.
> Please, any more tips, advices?
Pull out two of the RAM modules and use only one, trying each of
them in turn. Make sure you have enough swap (500 MB will do).
Maybe all modules are individually okay but can't work together.
Benno
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] can't compile some C++ apps
2006-02-03 21:05 ` Benno Schulenberg
@ 2006-02-03 21:18 ` Werner Otto
2006-02-04 15:32 ` Neil Bothwick
2006-02-05 12:22 ` Daniel Vrcic
1 sibling, 1 reply; 7+ messages in thread
From: Werner Otto @ 2006-02-03 21:18 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1069 bytes --]
On 2/3/06, Benno Schulenberg <benno.schulenberg@gmail.com> wrote:
>
> Daniel Vrcic wrote:
> > Isn't that strange that _all_ C compiles (including some bigger
> > apps like kernel, mplayer, glib, gtk+) went fine apart from only
> > few C++'s (I think two)?
>
> Maybe because c++ compilation eats loads of memory and thus hits the
> fishy parts?
>
> > If I have a hardware issue, how come
> > that compilation of those programs always break, and always on
> > the same file and line of certain source?
>
> Maybe a broken compiler. Try recompiling your toolchain (binutils,
> glibc, gcc) without the funny stuff in the CFLAGS, twice. Then try
> compiling the failing packages again.
>
> > Please, any more tips, advices?
>
> Pull out two of the RAM modules and use only one, trying each of
> them in turn. Make sure you have enough swap (500 MB will do).
> Maybe all modules are individually okay but can't work together.
>
> Benno
> --
> gentoo-user@gentoo.org mailing list
>
>
Stupid question, but how do I unsubscribe from this list?
[-- Attachment #2: Type: text/html, Size: 1476 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] can't compile some C++ apps
2006-02-03 21:18 ` Werner Otto
@ 2006-02-04 15:32 ` Neil Bothwick
0 siblings, 0 replies; 7+ messages in thread
From: Neil Bothwick @ 2006-02-04 15:32 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 402 bytes --]
On Fri, 3 Feb 2006 21:18:38 +0000, Werner Otto wrote:
> Stupid question, but how do I unsubscribe from this list?
Follow the instructions that can be found in the mail you were sent
confirming your subscription, the mailing lists page on the Gentoo site
and the headers of every mail you receive from the list.
--
Neil Bothwick
Psychiatrists say that 1 of 4 people are mentally ill.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] can't compile some C++ apps
2006-02-03 21:05 ` Benno Schulenberg
2006-02-03 21:18 ` Werner Otto
@ 2006-02-05 12:22 ` Daniel Vrcic
1 sibling, 0 replies; 7+ messages in thread
From: Daniel Vrcic @ 2006-02-05 12:22 UTC (permalink / raw
To: gentoo-user
Hi,
* Benno Schulenberg <benno.schulenberg@gmail.com> [06-02-03 22:59]:
> Daniel Vrcic wrote:
...
> > If I have a hardware issue, how come that compilation of those programs
> > always break, and always on the same file and line of certain source?
> Maybe a broken compiler. Try recompiling your toolchain (binutils,
> glibc, gcc) without the funny stuff in the CFLAGS, twice. Then try
> compiling the failing packages again.
Hmm, seems that that helped. I didn't change CFLAGS, instead I kept the
original. Hey, I was afraid of compiling gcc and glibc with "broken"
compiler until today. ;)
[...]
Thanks Benno!
Cheers,
--
Daniel Vrcic
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-02-05 12:26 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-02 3:21 [gentoo-user] can't compile some C++ apps Daniel Vrcic
2006-02-02 4:33 ` Richard Fish
2006-02-03 16:54 ` Daniel Vrcic
2006-02-03 21:05 ` Benno Schulenberg
2006-02-03 21:18 ` Werner Otto
2006-02-04 15:32 ` Neil Bothwick
2006-02-05 12:22 ` Daniel Vrcic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox