Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] ERROR: sys-devel/llvm-3.5.0 failed (compile phase)
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
davidbrooke
Guru
Guru


Joined: 03 Jan 2015
Posts: 341

PostPosted: Sat Jan 03, 2015 12:39 am    Post subject: [SOLVED] ERROR: sys-devel/llvm-3.5.0 failed (compile phase) Reply with quote

I am getting this error message while installing xorg-x11:
ERROR: sys-devel/llvm-3.5.0 failed (compile phase):emake failed
I have tried three times with the same results.

This is my equipment:
CI7 4770
8 GB ram

This is what I have done so far:
1. Installed Gentoo on a primary partition 230 GB.
2. There are no other partitions ie boot, swap, etc...
3. Didn't install a boot loader.
4. I have two other Arch installs of which one has Grub installed.
5. Installed the gen kernel 3.17.7 as suggested by the install instructions.
6. /etc/make.conf:
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
USE="mmx sse sse2 sse3 ssse3 sse4"
VIDEO_CARDS="intel"
MAKEOPTS="-j9"
7. Upon first reboot I execute emerge --ask xorg-x11 and get the above stated error message.
Any help would be appreciated.
Thanks

How do I post / attach the build log? The build log gets truncated if I use code.

Here is the build log:

http://pastebin.com/0gaLtGnb


Last edited by davidbrooke on Fri Jan 09, 2015 6:35 pm; edited 2 times in total
Back to top
View user's profile Send private message
vexatious
Tux's lil' helper
Tux's lil' helper


Joined: 24 Aug 2010
Posts: 77

PostPosted: Sat Jan 03, 2015 5:31 am    Post subject: [SOLVED KIND OF] LLVM-3.5.0 errors when emerging Reply with quote

Using ~AMD64 and ABI_x86="64 32".

I get the following ending while trying to emerge llvm-3.5.0:
Code:
.x86/lib/CodeGen/Release/VirtRegMap.o
ranlib /var/tmp/portage/sys-devel/llvm-3.5.0/work/llvm-3.5.0.src-abi_x86_32.x86/Release/lib/libLLVMCodeGen.a
make[2]: Leaving directory '/var/tmp/portage/sys-devel/llvm-3.5.0/work/llvm-3.5.0.src-abi_x86_32.x86/lib/CodeGen'
make[1]: Leaving directory '/var/tmp/portage/sys-devel/llvm-3.5.0/work/llvm-3.5.0.src-abi_x86_32.x86/lib'
/var/tmp/portage/sys-devel/llvm-3.5.0/work/llvm-3.5.0.src/Makefile.rules:878: recipe for target 'all' failed
make: *** [all] Error 1
 * ERROR: sys-devel/llvm-3.5.0::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-devel/llvm-3.5.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/llvm-3.5.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-devel/llvm-3.5.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/llvm-3.5.0/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/llvm-3.5.0/work/llvm-3.5.0.src-abi_x86_32.x86'
 * S: '/var/tmp/portage/sys-devel/llvm-3.5.0/work/llvm-3.5.0.src'

>>> Failed to emerge sys-devel/llvm-3.5.0, Log file:

>>>  '/var/tmp/portage/sys-devel/llvm-3.5.0/temp/build.log'

 * Messages for package sys-devel/llvm-3.5.0:

 * ERROR: sys-devel/llvm-3.5.0::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-devel/llvm-3.5.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/llvm-3.5.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-devel/llvm-3.5.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/llvm-3.5.0/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/llvm-3.5.0/work/llvm-3.5.0.src-abi_x86_32.x86'
 * S: '/var/tmp/portage/sys-devel/llvm-3.5.0/work/llvm-3.5.0.src'
 * unmounting tmpfs ...                                                   [ ok ]
bleh portage #


cat /etc/portage/env/sys-devel/llvm :
Code:
bleh portage # cat /etc/portage/env/sys-devel/llvm
#LDFLAGS="-pthread"
CFLAGS="-O2 -pipe -fPIC -mtune=bdver2"
CXXFLAGS="$CFLAGS"

_________________
Gentoo
Slackware


Last edited by vexatious on Sun Jan 04, 2015 1:02 am; edited 1 time in total
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6229
Location: Room 101

PostPosted: Sat Jan 03, 2015 5:41 am    Post subject: Re: LLVM-3.5.0 errors when emerging Reply with quote

vexatious ...

Code:
 * If you need support, post the output of `emerge --info '=sys-devel/llvm-3.5.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/llvm-3.5.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-devel/llvm-3.5.0/temp/build.log'.

... pastebin is probably best as I imagine the build.log may be large.

best ... khay
Back to top
View user's profile Send private message
vexatious
Tux's lil' helper
Tux's lil' helper


Joined: 24 Aug 2010
Posts: 77

PostPosted: Sat Jan 03, 2015 5:44 am    Post subject: Re: LLVM-3.5.0 errors when emerging Reply with quote

khayyam wrote:

... pastebin is probably best as I imagine the build.log may be large.

How do I do that?

Code:
[ebuild   R   ] sys-devel/llvm-3.5.0  USE="clang libffi multitarget ncurses static-analyzer xml -debug -doc -gold -libedit -ocaml -python {-test}" ABI_X86="32* (64) (-x32)" PYTHON_TARGETS="python2_7 -pypy" VIDEO_CARDS="-radeon"

 * IMPORTANT: 10 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

_________________
Gentoo
Slackware
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6229
Location: Room 101

PostPosted: Sat Jan 03, 2015 6:20 am    Post subject: Re: LLVM-3.5.0 errors when emerging Reply with quote

vexatious wrote:
khayyam wrote:
... pastebin is probably best as I imagine the build.log may be large.

How do I do that?

vexatious ... something like the following, and post the resulting links:

Code:
# emerge wgetpaste
# wgetpaste /var/tmp/portage/sys-devel/llvm-3.5.0/temp/build.log
# emerge --info '=sys-devel/llvm-3.5.0::gentoo' | wgetpaste

best ... khay
Back to top
View user's profile Send private message
davidbrooke
Guru
Guru


Joined: 03 Jan 2015
Posts: 341

PostPosted: Sat Jan 03, 2015 8:46 am    Post subject: Reply with quote

I found these two urls:

https://forums.gentoo.org/viewtopic-t-987072-view-next.html?sid=3561e2b60267ad89ed1a9a447a9de417
https://bugs.gentoo.org/show_bug.cgi?id=500032

There seems to be a bug still present with compiling llvm.3.5.0. The above urls gave several possible remedies which meant I had to systematically run through the options. I ended up successfully finding:

Make.conf:
CFLAGS="-O2 -pipe"
CXXFLAGS="${CFLAGS}"
for compiling llvm.3.5.0 first

then changing the make.conf:
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
for the rest of xorg-x11
Back to top
View user's profile Send private message
davidbrooke
Guru
Guru


Joined: 03 Jan 2015
Posts: 341

PostPosted: Sat Jan 03, 2015 9:38 am    Post subject: Reply with quote

I decided to do a clean install since I had been re-running the emerge --ask xorg-x11 command while making the CFLAG changes in make.conf. I applied the resulting working scenario from the previous post and it failed. Not only that I was getting a constant 3 min 20 sec to 3 min 30 sec window of failure time no matter what option I tested. Now the failure can happen any time.
So currently I have re-run:

# emerge --ask sys-devel/llvm

10 times and I get random failure times of 5 seconds to 4 min. 4 min 20 sec in the completed install time.
I have no clue how to approach this issue.
Back to top
View user's profile Send private message
davidbrooke
Guru
Guru


Joined: 03 Jan 2015
Posts: 341

PostPosted: Sat Jan 03, 2015 10:25 am    Post subject: Reply with quote

Decided to try another make.conf...the one that was created during the initial install.

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="bindist mmx sse sse2"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"

The successful compile time was 15 min 14 sec for sys-devel/llvm.

Currently compiling and installing xorg-x11 with my make.conf.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 6868
Location: almost Mile High in the USA

PostPosted: Sat Jan 03, 2015 2:06 pm    Post subject: Reply with quote

Well, it looks like you got your build working, but wanted to comment

Code:
/var/tmp/portage/sys-devel/llvm-3.5.0/work/llvm-3.5.0.src/lib/IR/Function.cpp:825:1: internal compiler error: Segmentation fault


This is why Portage stopped the llvm build the first time around. Usually this error indicates hardware trouble though the next line of debug would be gcc trouble (which version of gcc, and did you try other versions of gcc?) As you did you perturbed the build process and probably ended up using another set of instructions fed to your CPU, and this ended up getting it to build. You probably should look into hardware issues lest it pop up again someday.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
hinshelwood
n00b
n00b


Joined: 10 Jun 2014
Posts: 14

PostPosted: Sat Jan 03, 2015 2:49 pm    Post subject: Reply with quote

I am having the same problem.

Here is my build.log: https://bpaste.net/show/772db09afd99

Below is the output of emerge --info

Code:

desktop ~ # emerge --info '=sys-devel/llvm-3.5.0'
!!! Repository 'x-portage' is missing masters attribute in '/usr/local/portage/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility
Invalid package name in package.provided: dev-tex/bibtexu
Invalid package name in package.provided: virtual/latex-base
See portage(5) for correct package.provided usage.
Portage 2.2.14 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop, gcc-4.8.3, glibc-2.19-r1, 3.17.7-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.17.7-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9650_@_3.00GHz-with-gentoo-2.2
KiB Mem:     8175756 total,   1250880 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sat, 03 Jan 2015 03:00:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.9-r1, 3.3.5-r1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
USE="X a52 aac acl acpi alisp alsa amd64 avahi berkdb bindist bluetooth branding bzip2 cairo cdda cdr cleartype cli consolekit corefonts cracklib crypt cups cxx dbus debug dmalloc dot dri dts dvd dvdr emboss encode euse exif extra fam firefox flac fontconfig fortran gbm gcj gd gdbm gif glamor gpm gtk hesiod hpcups iconv icu ipv6 jadetex jpeg kde latex lcms libass libkms libnotify libtirpc mad mate minizip mmx mng modules mount-locking mp3 mp4 mpeg multilib ncurses nls nptl ogg open_perms opengl openmp pam pango pcre pdf peer_perms png policykit ppds python qt3support qt4 readline sasl sdl session snmp spell sqlite sse sse2 ssl startup-notification svg tcpd tiff truetype type1 ubac udev udisks unconfined unicode upower usb vorbis wxwidgets x264 xa xcb xft xinerama xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias auth_digest" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

sys-devel/llvm-3.5.0 was built with the following:
USE="debug libffi ncurses python static-analyzer xml -clang -doc -gold -libedit -multitarget -ocaml -test" ABI_X86="64 -32 -x32" PYTHON_TARGETS="python2_7 -pypy" VIDEO_CARDS="-radeon"

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


Joined: 03 Jan 2015
Posts: 341

PostPosted: Sat Jan 03, 2015 4:09 pm    Post subject: Reply with quote

I'm back will a similar error.
After installing xorg-x11, I changed a make.conf variable...

VIDEO_CARDS="intel"
to
VIDEO_CARDS="intel i965"

then executed:

emerge --ask --changed-use --deep @world

and got the same basic error for a different file.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 12945

PostPosted: Sat Jan 03, 2015 4:34 pm    Post subject: Reply with quote

I concur with eccerr0r. This sounds like a hardware problem. Software issues that cause a segmentation fault during build should be extremely reproducible, but your failures are random. Check your system cooling and your RAM. The existence of working Arch installs suggests that RAM is probably fine or you would have seen random failures there too, if you stress the Arch system hard enough to use all the installed memory. Are both the Arch systems amd64?

Building large packages, such as llvm, can push your CPU temperature up well above the idle level. If your cooling is insufficient, this can sometimes drive the CPU to a temperature that causes crashes.
Back to top
View user's profile Send private message
hinshelwood
n00b
n00b


Joined: 10 Jun 2014
Posts: 14

PostPosted: Sat Jan 03, 2015 5:16 pm    Post subject: Reply with quote

Well I was able to compile by setting:

CFLAGS="-O2 -pipe -march=native"
CXXFLAGS="${CFLAGS}"

and removing "debug" from my USE in /etc/portage/make.conf

Here are the package settings from the output of emerge --info after the build

Code:

=================================================================
                        Package Settings
=================================================================

sys-devel/llvm-3.5.0 was built with the following:
USE="clang libffi ncurses python static-analyzer xml -debug -doc -gold -libedit -multitarget -ocaml -test" ABI_X86="64 -32 -x32" PYTHON_TARGETS="python2_7 -pypy" VIDEO_CARDS="-radeon"

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


Joined: 03 Jan 2015
Posts: 341

PostPosted: Sat Jan 03, 2015 5:54 pm    Post subject: Reply with quote

Hu wrote:
I concur with eccerr0r. This sounds like a hardware problem. Software issues that cause a segmentation fault during build should be extremely reproducible, but your failures are random. Check your system cooling and your RAM. The existence of working Arch installs suggests that RAM is probably fine or you would have seen random failures there too, if you stress the Arch system hard enough to use all the installed memory. Are both the Arch systems amd64?


Yes both Arch installs are AMD64 and I have stressed them with kdenlive. I use this system 24 hours a day as a media center, media editor, desktop and for testing new linux distros. I don't and have never had any random failures / issues. I just preforms reliably. If there are hardware issues I have never seen them.

Quote:
Building large packages, such as llvm, can push your CPU temperature up well above the idle level. If your cooling is insufficient, this can sometimes drive the CPU to a temperature that causes crashes.


Cooling system is overrated for this computer system. Heat isn't issue and there wasn't any real difference when installing Gentoo.
Back to top
View user's profile Send private message
davidbrooke
Guru
Guru


Joined: 03 Jan 2015
Posts: 341

PostPosted: Sat Jan 03, 2015 6:12 pm    Post subject: Reply with quote

Decided to review and clean the computer. Visually looks fine and there was minimal dust.
Upon completion I re-ran the sys-devel/llvm install and it failed in the previously stated time window of 3min 20 sec to 3 min to 30 sec.
Also I wanted to note that the bug report has never been rectified.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6229
Location: Room 101

PostPosted: Sat Jan 03, 2015 6:36 pm    Post subject: Reply with quote

vexatious, hinshelwood ... seems that this issue is the same as the one reported by davidbrooke. I'm asking the mods that the threads be merged.

If it is a bug one or other of you should report it.

best ... khay
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6552
Location: Saint Amant, Acadiana

PostPosted: Sat Jan 03, 2015 6:49 pm    Post subject: Reply with quote

I had a slightly overclocked PC. Everything ran great, emerge -e @world, video transcoding, you name it, no problem. Vorbis encoder caused a hardware crash every time it ran over 2-3 minutes. I dropped back to the stock frequency and the problem went away. Go figure.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
vexatious
Tux's lil' helper
Tux's lil' helper


Joined: 24 Aug 2010
Posts: 77

PostPosted: Sun Jan 04, 2015 12:58 am    Post subject: Reply with quote

hinshelwood wrote:
Well I was able to compile by setting:

CFLAGS="-O2 -pipe -march=native"
CXXFLAGS="${CFLAGS}"

and removing "debug" from my USE in /etc/portage/make.conf

Here are the package settings from the output of emerge --info after the build

Code:

=================================================================
                        Package Settings
=================================================================

sys-devel/llvm-3.5.0 was built with the following:
USE="clang libffi ncurses python static-analyzer xml -debug -doc -gold -libedit -multitarget -ocaml -test" ABI_X86="64 -32 -x32" PYTHON_TARGETS="python2_7 -pypy" VIDEO_CARDS="-radeon"


USE="-multitarget" and ABI_x86="64 -32 -x32" in package.use from your package settings and it works! Package builds minimal multilib and portage says "P * abi_x86_64.amd64: running multilib-minimal_abi_src_configure" but no error. CFLAGS conservative. Thanks! Seems a multilib problem with USE="multitarget" and ABI_X86="64 32 x32".
_________________
Gentoo
Slackware
Back to top
View user's profile Send private message
moaxcp
n00b
n00b


Joined: 17 Dec 2014
Posts: 52
Location: Ashburn, VA USA

PostPosted: Sun Jan 04, 2015 5:26 am    Post subject: Reply with quote

I am having the same issue on my sony vaio p

https://bpaste.net/show/d4d6998e1d4f

https://bpaste.net/show/ece06034540e

I'm new to gentoo and can't get it to compile at all. Thank for any help!
Back to top
View user's profile Send private message
davidbrooke
Guru
Guru


Joined: 03 Jan 2015
Posts: 341

PostPosted: Fri Jan 09, 2015 6:32 pm    Post subject: Reply with quote

I decided to start testing my system. Started with the memory and both modules had a few random failures during the +6 hour test. I replaced the memory and have succussfully installed gentoo with KDE. In reviewing my posted issues most of them it seems were due to the memory problem. During my successful install I did incur a couple of "econf" and "compile" errors which I found out the cause was an empty tar file. Once I deleted the /var/tmp/portage/currently_compiling directory I was able to compile the problem file again without issue.
Thanks to all that helped!
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 6868
Location: almost Mile High in the USA

PostPosted: Sat Jan 10, 2015 9:23 pm    Post subject: Reply with quote

When you run a new emerge, it blows away that same temporary build directory and recreates it, sort of to some peoples' chagrin when they want to continue building in that directory. Nope, not supported (yet?)

I had to build llvm on my celeron-m machine (1.5GHz) recently and it has become one of my least favorite packages to build along with boost, firefox, and OO. Grr. gcc is getting there...soon...

Speaking of building, I just got my Atom to segfault while compiling LLVM as well. Yowch. Different file, too. Alas the Celeron built it just fine.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 6868
Location: almost Mile High in the USA

PostPosted: Wed Jan 14, 2015 6:19 am    Post subject: Reply with quote

I'm revisiting this topic.

I think that perhaps there may really be a bug in gcc with -march=native. On my Atom (Diamondville), it seems way too consistent to always crash while building llvm. I think all of my machines are either gcc 4.7.3 or 4.8.3 and does not appear to matter.

I have one machine with -march=i686 that though took a while to get built, will succeed (this is my Celeron-M, a Tualatin core). Also my i7 (Sandy) and Core2Quad (York) (both running amd64) that do not have -march was able to build it. A VM on the C2Q was also able to build llvm with -mtune=i686 was able to successfully build.

I'm currently trying without -march on my Atom to see if it will build. If it builds, something is very fishy with gcc.

[EDIT]

Yes, my Atom was finally able to build llvm when -march=native was removed...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
jcdx
n00b
n00b


Joined: 16 Dec 2013
Posts: 25

PostPosted: Fri Jan 23, 2015 8:06 am    Post subject: Reply with quote

Hi,

I am using gentoo_prefix on Mac OS 10.10

I also have troubles to build llvm-3.5.

Here is my emerge --info
Code:
$ emerge --info '=sys-devel/llvm-3.5.0::gentoo_prefix'
Portage 2.2.14-prefix (python 3.3.3-final-0, prefix/darwin/macos/10.10/x64, gcc-4.7.3, unavailable, 14.0.0 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Darwin-14.0.0-x86_64-i386-64bit
Timestamp of tree: Wed, 21 Jan 2015 09:35:35 +0000
app-shells/bash:      4.2_p53
dev-lang/perl:        5.20.1-r4
dev-lang/python:      2.7.8, 3.3.3
dev-util/cmake:       3.0.2
dev-util/pkgconfig:   0.28-r2
sys-devel/autoconf:   2.69
sys-devel/automake:   1.14.1
sys-devel/gcc:        4.7.3-r1
sys-devel/gcc-config: 1.8-r1
sys-devel/libtool:    2.4.2-r1
sys-devel/make:       4.1-r1
Repositories: gentoo_prefix sage-on-gentoo sys-libs
ACCEPT_KEYWORDS="~amd64 ~x64-macos"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-apple-darwin14"
CFLAGS="-march=nocona -march=native -O2 -pipe"
CHOST="x86_64-apple-darwin14"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=nocona -march=native -O2 -pipe"
DISTDIR="/gentoo/usr/portage/distfiles"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs case-insensitive-fs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-dead_strip_dylibs"
MAKEOPTS="-j3"
PKGDIR="/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/gentoo/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/gentoo/var/tmp"
PORTDIR="/gentoo/usr/portage"
PORTDIR_OVERLAY="/gentoo/var/lib/layman/sage-on-gentoo /gentoo/usr/local/portage"
USE="aqua coreaudio cracklib cxx fontconfig ipv6 mmx mmxext modules ncurses nls objc objc++ prefix prefix-guest readline sse sse2 ssl unicode x64-macos zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="Darwin" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

$ emerge -pqv '=sys-devel/llvm-3.5.0::gentoo_prefix'
[ebuild  N    ] sys-devel/llvm-3.5.0  USE="clang libffi ncurses static-analyzer -debug -doc -gold -libedit -multitarget -ocaml -python {-test} -xml" PYTHON_TARGETS="python2_7 (-pypy)" VIDEO_CARDS="-radeon"
[ebuild  N    ] sys-devel/clang-3.5.0-r100  USE="static-analyzer -debug -multitarget -python"


The build log is here https://app.box.com/s/gxmj43az149380qf8ek1i6j2y0lzfye8

I get an error message for gcc-4.7.3 on gentoo prefix.
Code:
$ gcc -c -Q -march=native --help=target
Segmentation fault: 11

The same for
Code:
$ gcc -c -Q -march=nocona --help=target
Segmentation fault: 11

When I use the gcc-4.9 from homebrew I get
Code:
$ /usr/local/bin/gcc-4.9 -march=native -Q --help=target
The following options are target specific:
  -Wnonportable-cfstrings           [enabled]
  -fapple-kext                      [disabled]
  -iframework <dir>                 
  -m128bit-long-double              [enabled]
  -m16                              [disabled]
  -m32                              [disabled]
  -m3dnow                           [disabled]
  -m3dnowa                          [disabled]
  -m64                              [enabled]
  -m80387                           [enabled]
  -m8bit-idiv                       [disabled]
  -m96bit-long-double               [disabled]
  -mabi=                            sysv
  -mabm                             [disabled]
  -maccumulate-outgoing-args        [disabled]
  -maddress-mode=                   short
  -madx                             [disabled]
  -maes                             [enabled]
  -malign-double                    [disabled]
  -malign-functions=                0
  -malign-jumps=                    0
  -malign-loops=                    0
  -malign-stringops                 [enabled]
  -march=                           westmere
  -masm=                            att
  -matt-stubs                       [enabled]
  -mavx                             [disabled]
  -mavx2                            [disabled]
  -mavx256-split-unaligned-load    [disabled]
  -mavx256-split-unaligned-store    [disabled]
  -mavx512cd                        [disabled]
  -mavx512er                        [disabled]
  -mavx512f                         [disabled]
  -mavx512pf                        [disabled]
  -mbmi                             [disabled]
  -mbmi2                            [disabled]
  -mbranch-cost=                    0
  -mcld                             [disabled]
  -mcmodel=                         32
  -mconstant-cfstrings              [enabled]
  -mcpu=                            
  -mcrc32                           [disabled]
  -mcx16                            [enabled]
  -mdispatch-scheduler              [disabled]
  -mdump-tune-features              [disabled]
  -mdynamic-no-pic                  [disabled]
  -mf16c                            [disabled]
  -mfancy-math-387                  [enabled]
  -mfentry                          [enabled]
  -mfix-and-continue                [disabled]
  -mfma                             [disabled]
  -mfma4                            [disabled]
  -mforce-drap                      [disabled]
  -mfp-ret-in-387                   [enabled]
  -mfpmath=                         387
  -mfsgsbase                        [disabled]
  -mfused-madd                      
  -mfxsr                            [enabled]
  -mhard-float                      [enabled]
  -mhle                             [disabled]
  -mieee-fp                         [enabled]
  -mincoming-stack-boundary=        0
  -minline-all-stringops            [disabled]
  -minline-stringops-dynamically    [disabled]
  -mintel-syntax                    
  -mkernel                          [disabled]
  -mlarge-data-threshold=           0x10000
  -mlong-double-128                 [disabled]
  -mlong-double-64                  [disabled]
  -mlong-double-80                  [enabled]
  -mlwp                             [disabled]
  -mlzcnt                           [disabled]
  -mmacosx-version-min=             10.10.0
  -mmemcpy-strategy=                
  -mmemset-strategy=                
  -mmmx                             [enabled]
  -mmovbe                           [disabled]
  -mms-bitfields                    [disabled]
  -mno-align-stringops              [disabled]
  -mno-default                      [disabled]
  -mno-fancy-math-387               [disabled]
  -mno-push-args                    [disabled]
  -mno-red-zone                     [disabled]
  -mno-sse4                         [disabled]
  -momit-leaf-frame-pointer         [disabled]
  -mone-byte-bool                   [disabled]
  -mpc32                            [disabled]
  -mpc64                            [disabled]
  -mpc80                            [disabled]
  -mpclmul                          [enabled]
  -mpopcnt                          [enabled]
  -mprefer-avx128                   [disabled]
  -mpreferred-stack-boundary=       0
  -mprefetchwt1                     [disabled]
  -mprfchw                          [disabled]
  -mpush-args                       [enabled]
  -mrdrnd                           [disabled]
  -mrdseed                          [disabled]
  -mrecip                           [disabled]
  -mrecip=                          
  -mred-zone                        [enabled]
  -mregparm=                        0
  -mrtd                             [disabled]
  -mrtm                             [disabled]
  -msahf                            [enabled]
  -msha                             [disabled]
  -msoft-float                      [disabled]
  -msse                             [enabled]
  -msse2                            [enabled]
  -msse2avx                         [disabled]
  -msse3                            [enabled]
  -msse4                            [enabled]
  -msse4.1                          [enabled]
  -msse4.2                          [enabled]
  -msse4a                           [disabled]
  -msse5                            
  -msseregparm                      [disabled]
  -mssse3                           [enabled]
  -mstack-arg-probe                 [disabled]
  -mstack-protector-guard=          tls
  -mstackrealign                    [enabled]
  -mstringop-strategy=              [default]
  -mtbm                             [disabled]
  -mtls-dialect=                    gnu
  -mtls-direct-seg-refs             [disabled]
  -mtune-ctrl=                      
  -mtune=                           westmere
  -mveclibabi=                      [default]
  -mvect8-ret-in-mem                [disabled]
  -mvzeroupper                      [disabled]
  -mx32                             [disabled]
  -mxop                             [disabled]
  -mxsave                           [disabled]
  -mxsaveopt                        [disabled]

  Known assembler dialects (for use with the -masm-dialect= option):
    att intel

  Known ABIs (for use with the -mabi= option):
    ms sysv

  Known code models (for use with the -mcmodel= option):
    32 kernel large medium small

  Valid arguments to -mfpmath=:
    387 387+sse 387,sse both sse sse+387 sse,387

  Known vectorization library ABIs (for use with the -mveclibabi= option):
    acml svml

  Known address mode (for use with the -maddress-mode= option):
    long short

  Known stack protector guard (for use with the -mstack-protector-guard= option):
    global tls

  Valid arguments to -mstringop-strategy=:
    byte_loop libcall loop rep_4byte rep_8byte rep_byte unrolled_loop
    vector_loop

  Known TLS dialects (for use with the -mtls-dialect= option):
    gnu gnu2


Code:
$ /usr/local/bin/gcc-4.9 -c -Q -march=nocona --help=target
The following options are target specific:
  -Wnonportable-cfstrings           [enabled]
  -fapple-kext                      [disabled]
  -iframework <dir>                 
  -m128bit-long-double              [enabled]
  -m16                              [disabled]
  -m32                              [disabled]
  -m3dnow                           [disabled]
  -m3dnowa                          [disabled]
  -m64                              [enabled]
  -m80387                           [enabled]
  -m8bit-idiv                       [disabled]
  -m96bit-long-double               [disabled]
  -mabi=                            sysv
  -mabm                             [disabled]
  -maccumulate-outgoing-args        [disabled]
  -maddress-mode=                   short
  -madx                             [disabled]
  -maes                             [disabled]
  -malign-double                    [disabled]
  -malign-functions=                0
  -malign-jumps=                    0
  -malign-loops=                    0
  -malign-stringops                 [enabled]
  -march=                           nocona
  -masm=                            att
  -matt-stubs                       [enabled]
  -mavx                             [disabled]
  -mavx2                            [disabled]
  -mavx256-split-unaligned-load    [disabled]
  -mavx256-split-unaligned-store    [disabled]
  -mavx512cd                        [disabled]
  -mavx512er                        [disabled]
  -mavx512f                         [disabled]
  -mavx512pf                        [disabled]
  -mbmi                             [disabled]
  -mbmi2                            [disabled]
  -mbranch-cost=                    0
  -mcld                             [disabled]
  -mcmodel=                         32
  -mconstant-cfstrings              [enabled]
  -mcpu=                            
  -mcrc32                           [disabled]
  -mcx16                            [disabled]
  -mdispatch-scheduler              [disabled]
  -mdump-tune-features              [disabled]
  -mdynamic-no-pic                  [disabled]
  -mf16c                            [disabled]
  -mfancy-math-387                  [enabled]
  -mfentry                          [enabled]
  -mfix-and-continue                [disabled]
  -mfma                             [disabled]
  -mfma4                            [disabled]
  -mforce-drap                      [disabled]
  -mfp-ret-in-387                   [enabled]
  -mfpmath=                         387
  -mfsgsbase                        [disabled]
  -mfused-madd                      
  -mfxsr                            [disabled]
  -mhard-float                      [enabled]
  -mhle                             [disabled]
  -mieee-fp                         [enabled]
  -mincoming-stack-boundary=        0
  -minline-all-stringops            [disabled]
  -minline-stringops-dynamically    [disabled]
  -mintel-syntax                    
  -mkernel                          [disabled]
  -mlarge-data-threshold=           0x10000
  -mlong-double-128                 [disabled]
  -mlong-double-64                  [disabled]
  -mlong-double-80                  [enabled]
  -mlwp                             [disabled]
  -mlzcnt                           [disabled]
  -mmacosx-version-min=             10.10.0
  -mmemcpy-strategy=                
  -mmemset-strategy=                
  -mmmx                             [disabled]
  -mmovbe                           [disabled]
  -mms-bitfields                    [disabled]
  -mno-align-stringops              [disabled]
  -mno-default                      [disabled]
  -mno-fancy-math-387               [disabled]
  -mno-push-args                    [disabled]
  -mno-red-zone                     [disabled]
  -mno-sse4                         [enabled]
  -momit-leaf-frame-pointer         [disabled]
  -mone-byte-bool                   [disabled]
  -mpc32                            [disabled]
  -mpc64                            [disabled]
  -mpc80                            [disabled]
  -mpclmul                          [disabled]
  -mpopcnt                          [disabled]
  -mprefer-avx128                   [disabled]
  -mpreferred-stack-boundary=       0
  -mprefetchwt1                     [disabled]
  -mprfchw                          [disabled]
  -mpush-args                       [enabled]
  -mrdrnd                           [disabled]
  -mrdseed                          [disabled]
  -mrecip                           [disabled]
  -mrecip=                          
  -mred-zone                        [enabled]
  -mregparm=                        0
  -mrtd                             [disabled]
  -mrtm                             [disabled]
  -msahf                            [disabled]
  -msha                             [disabled]
  -msoft-float                      [disabled]
  -msse                             [disabled]
  -msse2                            [disabled]
  -msse2avx                         [disabled]
  -msse3                            [disabled]
  -msse4                            [disabled]
  -msse4.1                          [disabled]
  -msse4.2                          [disabled]
  -msse4a                           [disabled]
  -msse5                            
  -msseregparm                      [disabled]
  -mssse3                           [disabled]
  -mstack-arg-probe                 [disabled]
  -mstack-protector-guard=          tls
  -mstackrealign                    [enabled]
  -mstringop-strategy=              [default]
  -mtbm                             [disabled]
  -mtls-dialect=                    gnu
  -mtls-direct-seg-refs             [disabled]
  -mtune-ctrl=                      
  -mtune=                           
  -mveclibabi=                      [default]
  -mvect8-ret-in-mem                [disabled]
  -mvzeroupper                      [disabled]
  -mx32                             [disabled]
  -mxop                             [disabled]
  -mxsave                           [disabled]
  -mxsaveopt                        [disabled]

  Known assembler dialects (for use with the -masm-dialect= option):
    att intel

  Known ABIs (for use with the -mabi= option):
    ms sysv

  Known code models (for use with the -mcmodel= option):
    32 kernel large medium small

  Valid arguments to -mfpmath=:
    387 387+sse 387,sse both sse sse+387 sse,387

  Known vectorization library ABIs (for use with the -mveclibabi= option):
    acml svml

  Known address mode (for use with the -maddress-mode= option):
    long short

  Known stack protector guard (for use with the -mstack-protector-guard= option):
    global tls

  Valid arguments to -mstringop-strategy=:
    byte_loop libcall loop rep_4byte rep_8byte rep_byte unrolled_loop
    vector_loop

  Known TLS dialects (for use with the -mtls-dialect= option):
    gnu gnu2

Somehow I stuck. Can someone give me a hint what to do?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6229
Location: Room 101

PostPosted: Fri Jan 23, 2015 11:21 am    Post subject: Reply with quote

jcdx wrote:
Code:
CFLAGS="-march=nocona -march=native -O2 -pipe"

jcdx ... I'm not sure what the effect of defining -march twice would be, but I'd suggest you only define it once. Your homebrew gcc uses '-march=westmere', rather than '-march=nocona', but I would opt for '-march=native'.

jcdx wrote:
The build log is here https://app.box.com/s/gxmj43az149380qf8ek1i6j2y0lzfye8

I can't view that ... it probably requires javascript or something. You should probably use pastebin (see the above tip on using app-text/wgetpaste).

jcdx wrote:
I get an error message for gcc-4.7.3 on gentoo prefix.
Code:
$ gcc -c -Q -march=native --help=target
Segmentation fault: 11

OK, so your problem isn't really with the llvm build, it seems you have a broken toolchain ... gcc shouldn't segfault for no particular reason. So, what process did you follow, has anything been compiled from the stage3 you are using, did the above occur after having emerged some part of the toolchain and/or glibc? Were the above CFLAGS in effect ... in short, how did it break?

best ... khay
Back to top
View user's profile Send private message
moaxcp
n00b
n00b


Joined: 17 Dec 2014
Posts: 52
Location: Ashburn, VA USA

PostPosted: Fri Jan 23, 2015 4:22 pm    Post subject: Reply with quote

eccerr0r, Thanks for the tip. I will try removing march later today and see if it works. My current solution to update my system is to mask this version of llvm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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