Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
qt-3.3.4-r3 gives segmentation fault
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Lorien
n00b
n00b


Joined: 14 Feb 2005
Posts: 9

PostPosted: Sun Jul 31, 2005 12:55 pm    Post subject: qt-3.3.4-r3 gives segmentation fault Reply with quote

hi....

i have installed gentoo (2005.0) from stage 1. but if fails to compile qt and because of that i couldn't compile many other imp applcns.
so please help. also i have compiled the kernel with no use flags as anytime i gave a list of use flags it failed to compile. plz suggest a solution.

Code:

>>> Source unpacked.
IBASE auto-detection...
  Could not find libgds.* anywhere in /lib /usr/lib
IBASE disabled.
MySQL auto-detection...
  Could not find libmysqlclient.* anywhere in /lib /usr/lib

MySQL disabled.
ODBC auto-detection...
  Could not find libodbc.* anywhere in /lib /usr/lib
ODBC disabled.
PostgreSQL auto-detection...
  Could not find libpq.* anywhere in /lib /usr/lib
PostgreSQL disabled.
NIS auto-detection... ()
  Found nsl lib in /usr/lib
  Found rpcsvc/ypclnt.h in /usr/include
  Found rpcsvc/yp_prot.h in /usr/include
NIS enabled.
CUPS auto-detection... ()
  Found cups lib in /usr/lib
  Found cups/cups.h in /usr/include
CUPS enabled.
OpenGL auto-detection... ()
  Found GLU lib in /usr/X11R6/lib
  Found GL lib in /usr/X11R6/lib
  Found Xmu lib in /usr/X11R6/lib
  Found GL/gl.h in /usr/X11R6/include
  Found GL/glu.h in /usr/X11R6/include
OpenGL enabled.
Xcursor auto-detection... ()
  Found Xcursor lib in /usr/X11R6/lib
  Found X11/Xcursor/Xcursor.h in /usr/X11R6/include
  Found Xcursor version 1.1
Xcursor enabled.
XRandR auto-detection... ()
  Found XRandR lib in /usr/X11R6/lib
  Found X11/extensions/Xrandr.h in /usr/X11R6/include
  Found XRandR version 1.1
XRandR enabled.
XRender auto-detection... ()
  Found XRender lib in /usr/X11R6/lib
  Found X11/extensions/Xrender.h in /usr/X11R6/include
XRender enabled.
Xft auto-detection... ()
  Found libXft.a in /usr/X11R6/lib
  Found libXft.a in /usr/lib
  Found X11/Xft/Xft.h in /usr/X11R6/include
  Found X11/Xft/Xft.h in /usr/include
  Found Xft version 2.1.6

 Found Freetype version 2.1.9
  Found freetype2/freetype/freetype.h in /usr/X11R6/include
  Found fontconfig/fontconfig.h in /usr/X11R6/include
Xft enabled.
XShape auto-detection... ()
  Found X11/extensions/shape.h in /usr/X11R6/include
XShape enabled.
XKB auto-detection... ()
  Found X11/XKBlib.h in /usr/X11R6/include
  XkbSetPerClientControls found.
XKB enabled.

This is the Qt/X11 Open Source Edition.

You are licensed to use this software under the terms of either
the Q Public License (QPL) or the GNU General Public License (GPL).

Type 'Q' to view the Q Public License.
Type 'G' to view the GNU General Public License.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.

Do you accept the terms of either license?


Creating qmake. Please wait...
g++ -c -o project.o -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/include/qmake -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/include -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/include -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP project.cpp
g++ -c -o property.o -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/include/qmake -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/include -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/include -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP property.cpp
g++ -c -o main.o -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/include/qmake -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/include -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/include -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP main.cpp
g++ -c -o makefile.o -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/include/qmake -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/include -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/include -DQT_NO_TEXTCODEC -DQT_NO_UNICODETAB

LES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP generators/makefile.cpp
g++ -c -o unixmake2.o -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/include/qmake -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/include -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/include -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP generators/unix/unixmake2.cpp
g++ -c -o unixmake.o -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/include/qmake -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/include -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/include -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP generators/unix/unixmake.cpp
g++ -c -o msvc_nmake.o -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/include/qmake -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/include -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/include -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP generators/win32/msvc_nmake.cpp

g++ -c -o borland_bmake.o -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/include/qmake -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/include -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/include -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/var/tmp/portage/qt-3.3.4-r3/work/qt-x11-free-3.3.4/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP generators/win32/borland_bmake.cpp
generators/win32/borland_bmake.cpp: In member function `void
   BorlandMakefileGenerator::writeBorlandParts(QTextStream&)':
generators/win32/borland_bmake.cpp:107: internal compiler error: Segmentation
   fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
gmake: *** [borland_bmake.o] Error 1
qmake failed to build. Aborting.

!!! ERROR: x11-libs/qt-3.3.4-r3 failed.
!!! Function src_compile, Line 153, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message


$ cat /etc/make.conf
CFLAGS="-O3 -mcpu=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"


use flags used by me which gave the error:
#USE="xvmc arts dri xvid flac offensive 3dnowext 3dnow javascript sse mmx mmxext win32codecs divx4linux real stroke alsa apm avi berkdb bitmap-fonts crypt cups emboss encode foomaticdb gdbm gif gpm gtk gtk2 imlib ipv6 jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl spell ssl svga tcpd truetype truetype-fonts type1-fonts X xml2 xmms xine xv zlib unicode"
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Jul 31, 2005 1:11 pm    Post subject: Reply with quote

If a lot of other applications didn't compile, your compiler chain is probably broken or your hardware is.
Post the output of emerge info please.

Other things you can do:
    * Make sure you used to stagefile that fits your cpu (like not using a pentium4 stage with a pentium M)
    *Make sure you really have a pentium4, a pentium M is not a pentium4.
    * Don't overclock
    * Make sure your system isn't overheating
    * Check your memory by running all the tests of memtest86 several times (that takes a long time btw)

_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Lorien
n00b
n00b


Joined: 14 Feb 2005
Posts: 9

PostPosted: Sun Jul 31, 2005 1:37 pm    Post subject: Reply with quote

HI...

my processor is p4 HT 2.8 hence heating could be an issue.....how to tackle that then :(
output of emerge info is:
Code:


Gentoo Base System version 1.6.13
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.5-r0, 2.6.12-gentoo-r6 i686)
=================================================================
System uname: 2.6.12-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS=" http://gentoo.gg3.net/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts crypt cups emboss encode foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imlib ipv6 jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python
 qt quicktime readline sdl spell ssl tcpd tiff truetype truetype-fonts type1-fonts xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY



please elaborate on compiler chain and hardware chain which u mentioned.....

thank you
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Jul 31, 2005 2:46 pm    Post subject: Reply with quote

About the compiler chain: When you do a stage1 install you compile the compiler and tools like binutils. Those are then used to compile the rest of the system packages. If something goes slightly wrong with compiling those compiler chain parts, those tools will be broken and often will fail to compile other packages. The internal compiler error: Segmentation message is what you can get in such situations. The cause of such errors can be hard to track down. If you test your memory and it produces errors, you know you have faulty ram, however if you find no errors that doesn't prove the ram is good. Same with other hardware, it may be ok, it may be causing problems even though all seems to work as it should. So what can you do? Well, try to check the things I already mentioned. You can try reinstalling using a stage3 instead and rebuild the packages later if you want to optimise some. When you do a stage3 install you are sure to have a compiler chain that was built properly. If you then still get ice errors, you probably have some hardware problem.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Lorien
n00b
n00b


Joined: 14 Feb 2005
Posts: 9

PostPosted: Sun Jul 31, 2005 3:27 pm    Post subject: Reply with quote

Hi....

memtest gave 0 faults after 6 runs......previously i had tried to install gentoo with stage 3 but segmentations faults flooded....so went to stage 1.....now how do i know whether my cpu is overclocked or not.....how to prevent this....and most important what is exactly overclocking ( i googled but not clear ) ... now what should i do if it is hardware problem....also the cflags displayed in emerge info are deffnt from that specified in mine make.conf...why ?????......please reply........i ahve spent a lot of time trying to install gentoo and i don't want to give up at such a stage ....

thank you
Back to top
View user's profile Send private message
Lorien
n00b
n00b


Joined: 14 Feb 2005
Posts: 9

PostPosted: Fri Aug 05, 2005 8:15 am    Post subject: unable to compile qt Reply with quote

hi.....

i am installing gentoo from stage 1 and successfully compiled the kernel , X etc. But it fails to compile qt and sometimes gives segfaults and sometimes other errors. i posted them earlier and response was might be hardware prob or i am overclocking but then there was no reply and now i couldn't find that post either. However, why is qt required by so many progs - kate,kde,mplayer,firefox etc. and how to know whether i am overclocking my cpu or not and what exactly is overclocking....????? please reply................i have spent a lot of time on installing gentoo...........first i tried to use stage 3 but it gave segfaults even on compiling x...but now i used stage 1 and compiled x successfully but now i am stuck up because of the huge dependency of progs on qt...i have run memtest several times and response was 0 errors.......plz reply..

thanks
Back to top
View user's profile Send private message
anello
Guru
Guru


Joined: 17 Jul 2005
Posts: 557
Location: EU -> DE -> Stuttgart

PostPosted: Fri Aug 05, 2005 9:45 am    Post subject: Reply with quote

qt is a framework, that is needed for some GUI applications. But this shouldn't be a problem at all.

Also if you don't know whats overclocking, then you're prolly not doing it. ;)

So I come to the conclusion that you did something wrong in the installing process.

I would recommend you to start from the beginning again and follow all steps in the handbook for a stage3 installation. Shouldn't take you more than 3,5 hours if you have a decent inet connection or you use the universal CD. Then if you got a basic gentoo system running, you can start to get at X and desktop environments.
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Fri Aug 05, 2005 1:36 pm    Post subject: Reply with quote

Merged the two previous posts here, and moved from Installing Gentoo to Desktop Environments.

You can find your posts with the "View your posts" link at the top of the index page. :wink:
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum