Professional Web Applications Themes

segfaulting gcc - FreeBSD

Hello, I have system running: FreeBSD wopice.valleyofdeath.net 5.3-STABLE FreeBSD 5.3-STABLE #0: Wed Feb 16 13:05:24 CET 2005 valleyofdeath.net:/usr/obj/usr/src/sys/WOPICE i386 and I have noticed that lots of ports fail to build because of "internal compiler error" from GCC... Okay, so I supposed there is something rotten in GCC, so I've tried to upgrade to 5.4-PRERELEASE, and surprise surprise, I've got internal compiler error when building bootstrap tools: -------------------------------------------------------------- [/ref][/ref] -------------------------------------------------------------- cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj/usr/src/i386 DESTDIR= INSTALL="sh /usr/src/tools/install.sh" PATH=/usr/obj/usr/src/i386/legacy/usr/sbin:/usr/obj/usr/src/i386/legacy/usr/bin:/usr/obj/usr/src/i386/legacy/usr/games:/sbin:/bin:/usr/sbin:/usr/bin WORLDTMP=/usr/obj/usr/src/i386 MAKEFLAGS="-m /usr/src/tools/build/mk -m /usr/src/share/mk" make -f Makefile.inc1 BOOTSTRAPPING=503102 -DNOHTML -DNOINFO -DNOLINT -DNOMAN -DNOPIC -DNOPROFILE -DNOSHARED -DNO_CPU_CFLAGS -DNO_WARNS bootstrap-tools ===> gnu/usr.bin/gperf /usr/obj/usr/src/i386/usr/src/gnu/usr.bin/gperf created for /usr/src/gnu/usr.bin/gperf ...

  1. #1

    Default segfaulting gcc

    Hello,
    I have system running:
    FreeBSD wopice.valleyofdeath.net 5.3-STABLE FreeBSD 5.3-STABLE #0: Wed
    Feb 16 13:05:24 CET 2005
    valleyofdeath.net:/usr/obj/usr/src/sys/WOPICE i386
    and I have noticed that lots of ports fail to build because of "internal
    compiler error" from GCC... Okay, so I supposed there is something
    rotten in GCC, so I've tried to upgrade to 5.4-PRERELEASE, and surprise
    surprise, I've got internal compiler error when building bootstrap tools:
    -------------------------------------------------------------- [/ref][/ref]
    --------------------------------------------------------------
    cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj/usr/src/i386 DESTDIR=
    INSTALL="sh /usr/src/tools/install.sh"
    PATH=/usr/obj/usr/src/i386/legacy/usr/sbin:/usr/obj/usr/src/i386/legacy/usr/bin:/usr/obj/usr/src/i386/legacy/usr/games:/sbin:/bin:/usr/sbin:/usr/bin
    WORLDTMP=/usr/obj/usr/src/i386 MAKEFLAGS="-m /usr/src/tools/build/mk
    -m /usr/src/share/mk" make -f Makefile.inc1 BOOTSTRAPPING=503102
    -DNOHTML -DNOINFO -DNOLINT -DNOMAN -DNOPIC -DNOPROFILE -DNOSHARED
    -DNO_CPU_CFLAGS -DNO_WARNS bootstrap-tools
    ===> gnu/usr.bin/gperf
    /usr/obj/usr/src/i386/usr/src/gnu/usr.bin/gperf created for
    /usr/src/gnu/usr.bin/gperf
    ===> gnu/usr.bin/gperf/doc
    /usr/obj/usr/src/i386/usr/src/gnu/usr.bin/gperf/doc created for
    /usr/src/gnu/usr.bin/gperf/doc
    rm -f .depend
    mkdep -f .depend -a -I/usr/obj/usr/src/i386/legacy/usr/include
    -I/usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/lib
    -I/usr/src/gnu/usr.bin/gperf
    /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/bool-array.cc
    /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/gen-perf.cc
    /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/hash-table.cc
    /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/iterator.cc
    /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/key-list.cc
    /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/list-node.cc
    /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/main.cc
    /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/new.cc
    /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/options.cc
    /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/read-line.cc
    /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/trace.cc
    /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/vectors.cc
    /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/version.cc
    /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/lib/hash.cc
    In file included from
    /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/key-list.cc:0:
    <internal>:0: internal compiler error: Segmentation fault
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:http://gcc.gnu.org/bugs.html> for instructions.
    mkdep: compile failed
    *** Error code 1

    Stop in /usr/src/gnu/usr.bin/gperf.
    *** Error code 1

    Stop in /usr/src.
    *** Error code 1

    Stop in /usr/src.
    *** Error code 1

    Stop in /usr/src.
    rootwopice:/usr/src#
    ==
    no go... So my question is - is there some clean way to get out of this
    without reinstalling the system, or am I doomed?

    TIA
    --
    Jiri Novak

    Jiri Guest

  2. #2

    Default Re: segfaulting gcc

    Jiri Novak wrote:
     

    Does the error always occur in the same place? If not, then it is
    possible you have a hardware fault.

    A segmentation fault results from bad memory access, which could be a
    program(mer) fault, but in something as well developed as GCC, they
    ought never to happen.

    If it is a hardware fault, the likely culprits are memory and disk. Do
    you have any interesting messages in /var/log/messages?

    --Alex


    Alex Guest

  3. #3

    Default Re: segfaulting gcc

    Alex Zbyslaw wrote: 
    >
    >
    > Does the error always occur in the same place? If not, then it is
    > possible you have a hardware fault.
    >
    > A segmentation fault results from bad memory access, which could be a
    > program(mer) fault, but in something as well developed as GCC, they
    > ought never to happen.
    >
    > If it is a hardware fault, the likely culprits are memory and disk. Do
    > you have any interesting messages in /var/log/messages?
    >
    > --Alex[/ref]

    The error always occur at the same place, in ports (it was firefox and mplayer
    for sure, not quite sure about others) and in buildworld, so I don't suspect
    faulty hardware.
    No useful messages in /var/log/messages...
    Well, it seems that I'm doomed :(
    --
    Jiri Novak

    Jiri Guest

  4. #4

    Default [solved] Re: segfaulting gcc

    Jiri Novak wrote: 

    I hate to followup to myself, but I solved the problem... in a way :)
    I did download base distribution of 5.4-BETA1 and replaced my b0rken
    /usr/libexec/cc* binaries with "clean" ones. After that I'd rebuilt
    world and kernel with more sane optimization settings (I was using -O2,
    which probably caused the problem) and everything works happily, ports
    are building with no segfaults.
    If anybody have the same problem and is as desperate as I was (the system
    is physically almost unacessible for me), this may be the quick and dirty
    solution...
    --
    Jiri Novak

    Jiri Guest

  5. #5

    Default [solved] Re: segfaulting gcc

    Jiri Novak wrote: 

    I hate to followup to myself, but I solved the problem... in a way :)
    I did download base distribution of 5.4-BETA1 and replaced my b0rken
    /usr/libexec/cc* binaries with "clean" ones. After that I'd rebuilt
    world and kernel with more sane optimization settings (I was using -O2,
    which probably caused the problem) and everything works happily, ports
    are building with no segfaults.
    If anybody have the same problem and is as desperate as I was (the system
    is physically almost unacessible for me), this may be the quick and dirty
    solution...
    --
    Jiri Novak

    Jiri Guest

  6. #6

    Default [solved] Re: segfaulting gcc

    Jiri Novak wrote: 

    I hate to followup to myself, but I solved the problem... in a way :)
    I did download base distribution of 5.4-BETA1 and replaced my b0rken
    /usr/libexec/cc* binaries with "clean" ones. After that I'd rebuilt
    world and kernel with more sane optimization settings (I was using -O2,
    which probably caused the problem) and everything works happily, ports
    are building with no segfaults.
    If anybody have the same problem and is as desperate as I was (the system
    is physically almost unacessible for me), this may be the quick and dirty
    solution...
    --
    Jiri Novak

    Jiri Guest

Similar Threads

  1. ECPG Segfaulting on EXEC SQL connect
    By John Smith in forum PostgreSQL / PGSQL
    Replies: 3
    Last Post: January 19th, 05:07 PM
  2. Apache/Perl segfaulting on system calls
    By J. Gleixner in forum PERL Miscellaneous
    Replies: 2
    Last Post: July 7th, 03:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139