You are not logged in.

#1 2009-04-03 16:19:23

runiteking1
Member
Registered: 2008-12-13
Posts: 4

gcc Segmentation Fault

Hello,

(I'm not sure if this post should go here, but I am new to linux)

I was trying to install xulrunner-1.8 to later install Aptana when this error popped up.

==> Starting build()...
patching file widget/src/gtk2/nsWindow.cpp
Hunk #1 succeeded at 3692 (offset 180 lines).
Hunk #2 succeeded at 3717 (offset 180 lines).
Hunk #3 succeeded at 3727 (offset 180 lines).
Hunk #4 succeeded at 3771 (offset 180 lines).
patching file uriloader/exthandler/Makefile.in
Hunk #1 succeeded at 103 (offset 1 line).
patching file uriloader/exthandler/unix/nsGNOMERegistry.cpp
patching file uriloader/exthandler/unix/nsGNOMERegistry.h
patching file uriloader/exthandler/unix/nsOSHelperAppService.cpp
patching file uriloader/exthandler/unix/nsMIMEInfoUnix.cpp
patching file uriloader/exthandler/unix/nsMIMEInfoUnix.h
patching file config/bdate.pl
patching file toolkit/content/jar.mn
patching file toolkit/themes/winstripe/global/jar.mn
/bin/sh: mozilla/.mozconfig.out: No such file or directory
/bin/sh: mozilla/.mozconfig.out: No such file or directory
make[1]: Entering directory `/tmp/yaourt-tmp-marshall/aur-xulrunner-1.8/xulrunner-1.8/src/xulrunner-1.8.1.14'
cd /tmp/yaourt-tmp-marshall/aur-xulrunner-1.8/xulrunner-1.8/src/xulrunner-1.8.1.14
./configure
Adding configure options from ./.mozconfig:
  --enable-application=xulrunner
  --with-system-nspr
  --with-system-nss
  --with-system-jpeg
  --with-system-zlib
  --with-system-png
  --with-system-mng
  --disable-tests
  --disable-installer
  --enable-canvas
  --enable-svg
  --enable-xft
  --enable-pango
  --enable-ldap
  --disable-freetype2
  --prefix=/usr
  --enable-optimize
  --enable-default-toolkit=gtk2
  --enable-system-cairo
  --disable-xprint
  --disable-gnomevfs
  --with-default-mozilla-five-home=/usr/lib/xulrunner
  --enable-strip
  --disable-debug
  --disable-javaxpcom
  --enable-extensions=default,cookie,permissions,spellcheck
  --disable-gnomeui
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for gawk... gawk
checking for nsinstall... no
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
*** Fix above errors and then restart with               "make -f client.mk build"
make[1]: *** [configure] Error 1
make[1]: Leaving directory `/tmp/yaourt-tmp-marshall/aur-xulrunner-1.8/xulrunner-1.8/src/xulrunner-1.8.1.14'
make: *** [/tmp/yaourt-tmp-marshall/aur-xulrunner-1.8/xulrunner-1.8/src/xulrunner-1.8.1.14/Makefile] Error 2
==> ERROR: Build Failed.
    Aborting...
Error: Makepkg was unable to build xulrunner-1.8 package.

If I try to do gcc -Wall hello.c -o hello on hello.c

#include<stdio.h>

void main()
{
    printf("Hello, World!");
}

The error it comes up is

gcc: Internal error: Segmentation fault (program cc1)

My gcc -v

Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../configure --prefix=/usr --enable-shared --enable-languages=c,c++,fortran,objc,obj-c++,treelang --enable-threads=posix --mandir=/usr/share/man --infodir=/usr/share/info --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch --with-tune=generic
Thread model: posix
gcc version 4.3.3 (GCC)

I already tried to reinstall gcc and gcc-libs.

Any help would be appreciated,

Thank you!

Offline

#2 2009-04-03 16:32:07

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: gcc Segmentation Fault

I would try a 'memtest' - 'gcc' is notoriously hard on memory - about the worst there is.

Offline

#3 2009-04-03 17:01:52

runiteking1
Member
Registered: 2008-12-13
Posts: 4

Re: gcc Segmentation Fault

perbh wrote:

I would try a 'memtest' - 'gcc' is notoriously hard on memory - about the worst there is.

The 'memtest' passed without error.

Offline

#4 2009-04-03 17:16:08

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: gcc Segmentation Fault

runiteking1 wrote:
perbh wrote:

I would try a 'memtest' - 'gcc' is notoriously hard on memory - about the worst there is.

The 'memtest' passed without error.

Unfortunately memtest needs to run many tests before you can be sure that it's not a memory problem. One or two passes only checks for a small fraction of possible problems. 12 to 24 hours is what I've read is recommended

Offline

#5 2009-04-03 22:17:01

runiteking1
Member
Registered: 2008-12-13
Posts: 4

Re: gcc Segmentation Fault

I have to run THAT much?! Alright, I'll let it run through the night. But assuming that either it is the memory's fault, what could I do to fix it. Also, what if after tonight nothing else pops up, is there any other way to proceed?

Offline

#6 2020-10-11 15:27:17

BenniTec
Member
Registered: 2020-09-11
Posts: 24

Re: gcc Segmentation Fault

buy new RAM

Offline

#7 2020-10-11 15:30:28

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: gcc Segmentation Fault

BenniTec wrote:

buy new RAM

You really think they're looking for an answer eleven and a half years later?

Online

#8 2020-10-11 16:03:08

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: gcc Segmentation Fault

Using this opportunity to close this ancient thread.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB