Jump to content
rsa4046

building llvm-3.9.1

Recommended 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.uni-bremen.de/owncloud/index.php/s/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.uni-bremen.de/owncloud/index.php/s/7kfsyL9faRQhCaI

emerge.info is here emerge.info.txt

build.log tail is here llvm.txt

Thanks for any ideas any one can offer.

Share this post


Link to post
Share on other sites

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.org/wiki/Sakaki%27s_EFI_Install_Guide/Building_the_Gentoo_Base_System_Minus_Kernel#Troubleshooting_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.

Share this post


Link to post
Share on other sites

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.org/wiki/Sakaki%27s_EFI_Install_Guide/Building_the_Gentoo_Base_System_Minus_Kernel#Troubleshooting_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!!

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...