Jump to content

Photo

building llvm-3.9.1

llvm

5 replies to this topic

#1
rsa4046

rsa4046

    Member

  • Members
  • PipPip
  • 12 posts

I'm working on a new funtoo install on an older core2 machine, running nicely so far, but I can't seem to rebuild sys-devel/llvm-3.9.1 or sys-devel/llvm-3.9.1-r1. Oddly, I was somehow able to build this version initially, but am now having segfaults in which the emerge fails with (e.g.),

/var/tmp/portage/sys-devel/llvm-3.9.1/work/llvm-3.9.1.src/include/llvm/ADT/iterator.h:178:73: internal compiler error: Segmentation fault

I've posted more of the tail of the build.log here: https://dolomit.geo....7kfsyL9faRQhCaI

The message asks that I

Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.funtoo.org> for instructions."

but I wanted to inquire if anyone had any suggestions before proceeding. I've tried rebuilding several times (also tried setting MAKEOPTS="-j1"), always failing, although not necessarily at the same place. My funtoo profile is


# epro show
=== Enabled Profiles: ===
        arch: x86-64bit
       build: current
     subarch: core2_64
      flavor: server
     mix-ins: kde-plasma-5
     mix-ins: console-extras
     mix-ins: dvd
     mix-ins: print

=== All inherited flavors from server flavor: ===
                            core (from server flavor)
                         minimal (from core flavor)

 

and /etc/make.conf is fairly empty:
MAKEOPTS="-j3"
VIDEO_CARDS="nouveau"
INPUT_DEVICES="evdev"
USE="X pdf jpeg"
CHOST="x86_64-pc-linux-gnu"

The complete build log is of course too large to post, but again is available in the folder linked here

https://dolomit.geo....7kfsyL9faRQhCaI

emerge.info is here Attached File  emerge.info.txt   4.31KB   30 downloads

build.log tail is here Attached File  llvm.txt   9.44KB   36 downloads

Thanks for any ideas any one can offer.



#2
hencb

hencb

    Member

  • Members
  • PipPip
  • 13 posts

Hi! I'd suggest posting a bug on bugs.funtoo.org, it's the right place to handle build failures.

 

Segmentation faults are caused by insufficient memory.

 https://bugs.funtoo.org/browse/FL-3503

 

Rule of thumb: ~1.25GB per thread. Try compiling with MAKEOPTS="-j1" 

Also, you might want to read up on how to debug such build failures:

 https://wiki.gentoo...._a_Failed_Build

 

 

If your hard drive, CPU or memory are faulty, this is going to show when compiling llvm. 

 https://bugs.funtoo.org/browse/FL-3498

 

I suggest running with -j1 and making sure the swap is turned on, and leave it to compile overnight.

 

 

I'd run memtest, check SMART for the hard drive, and there's mprime for the CPU or equivalent. I'll try emerging llvm on 

a core2 system I have and report the results.



#3
rsa4046

rsa4046

    Member

  • Members
  • PipPip
  • 12 posts

Hi! I'd suggest posting a bug on bugs.funtoo.org, it's the right place to handle build failures.

Segmentation faults are caused by insufficient memory.
https://bugs.funtoo.org/browse/FL-3503

Rule of thumb: ~1.25GB per thread. Try compiling with MAKEOPTS="-j1"
Also, you might want to read up on how to debug such build failures:
https://wiki.gentoo...._a_Failed_Build


If your hard drive, CPU or memory are faulty, this is going to show when compiling llvm.
https://bugs.funtoo.org/browse/FL-3498

I suggest running with -j1 and making sure the swap is turned on, and leave it to compile overnight.


I'd run memtest, check SMART for the hard drive, and there's mprime for the CPU or equivalent. I'll try emerging llvm on
a core2 system I have and report the results.

Hi, sorry for the late reply. Thanks so much for the kind advice -- I am giving these a shot ... will post back ASAP. Cheers!!

#4
hencb

hencb

    Member

  • Members
  • PipPip
  • 13 posts

Hi, sorry for the late reply. Thanks so much for the kind advice -- I am giving these a shot ... will post back ASAP. Cheers!!

 

Hey no problem, that's what the forums are for,  just leave a message and come back anytime.

Did the suggestion fix your problem compiling?



#5
rsa4046

rsa4046

    Member

  • Members
  • PipPip
  • 12 posts
Turned out: shifting back to gcc:4.9 from gcc:5 did the trick ... still don't quite understand the error, but the RAM passed memtest, so ... only thing left to try was the compiler. Thanks again for all your help!

#6
hencb

hencb

    Member

  • Members
  • PipPip
  • 13 posts

Did you follow http://www.funtoo.org/News:GCC_Update? Revdep-rebuild is a required step for the upgrade to gcc 5





Reply to this topic



  



Also tagged with one or more of these keywords: llvm

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users