Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] x11-base/llvm* fails to compile on 179th package.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
roboto
Apprentice
Apprentice


Joined: 15 Feb 2017
Posts: 156
Location: My IP address.

PostPosted: Wed Feb 15, 2017 4:50 pm    Post subject: [SOLVED] x11-base/llvm* fails to compile on 179th package. Reply with quote

This is my first post. Is this the correct subforum to post? ':?:'

Please post relevant answers and tell me what my topics are supposed to be like.

Now, according to the topic, I successfully installed gentoo on my system, but X.org seems to be a problem. I've done the command: emerge --ask x11-base/xorg-server. Then, once it reaches the x11-base/llvm-3.7.1-r3 in this package there are 1126 packages in total, and particularly the 178th, 179th, and 182nd package fail to compile. When they do fail to compile, I would type:

emerge --resume

It resumes the package compilation; nevertheless, it still fails to compile.

The 178th or 179th or 182nd packages look like this:
Code:

[178/1126] /usr/bin/x86_64-pc-linux-gnu-g++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/IR -I/var/tmp/portage/sys-devel/llvm-3.7.1-r3/work/llvm-3.7.1.src/lib/IR -Iinclude -I/var/tmp/portage/sys-devel/llvm-3.7.1-r3/work/llvm-3.7.1.src/include -DNDEBUG -march=native -02 -pipe -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wno-comment -Werror=date-time -std=c++11 -ffunction-sections -fdata -fPIC -MD -MT lib/IR/CMakeFiles/LLVMCore.dir/Metadata.cpp.o -MF lib/IR/CMakeFiles/LLVMCore.dir/Metadata.cpp.o.d -o lib/IR/CMakeFiles/LLVMCore.dir/Metadata.cpp.o -c /var/tmp/portage/sys-devel/llvm-3.7.1-r3/work/llvm-3.7.1.src/lib/IR/Metadata.cpp

The "-march=native -02 -pipe" options are found in the CFLAGS variable in my make.conf file. All three packages (178th, 179th, and 182nd) are for Metadata.

Any answer will help! Thank you.

Edit: I am using Intel graphics drivers and i915. They both are in the VIDEO_CARDS variable in the make.conf file.

[Moderator edit: added [code] tags to preserve output layout. -Hu]


Last edited by roboto on Wed Mar 22, 2017 6:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 22327
Location: here

PostPosted: Wed Feb 15, 2017 5:14 pm    Post subject: Reply with quote

First welcome! :D

roboto wrote:
This is my first post. Is this the correct subforum to post? ':?:'

I think the best forum where post was "Portage & Programming".

Anyway you need to post complete build.log with wgetpaste (portage tells you where is when compilation fails).
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
roboto
Apprentice
Apprentice


Joined: 15 Feb 2017
Posts: 156
Location: My IP address.

PostPosted: Wed Feb 15, 2017 5:17 pm    Post subject: Reply with quote

And where do I find the build.log file?

Edit: I typed:

find build.log

output:

find: build.log: No such file or directory.

Edit #2: I typed:

wgetpaste build.log

output:

/usr/bin/wgetpaste: build.log No such file found.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 22327
Location: here

PostPosted: Wed Feb 15, 2017 5:38 pm    Post subject: Reply with quote

When a package fails compilation portage tells you where is build.log.
Usually the path is /var/tmp/portage/sys-devel/llvm-3.7.1-r3/temp/build.log
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
roboto
Apprentice
Apprentice


Joined: 15 Feb 2017
Posts: 156
Location: My IP address.

PostPosted: Wed Feb 15, 2017 5:43 pm    Post subject: Reply with quote

Thank you.

Output:

Your paste can be seen here: https://paste.pound-python.org/show/s6UCACI1YE85ebhfNilC/
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 22327
Location: here

PostPosted: Wed Feb 15, 2017 6:02 pm    Post subject: Reply with quote

You have break compilation with ctrl+C. You have to let that the compilation fails for the real error and then post build.log
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
roboto
Apprentice
Apprentice


Joined: 15 Feb 2017
Posts: 156
Location: My IP address.

PostPosted: Wed Feb 15, 2017 7:20 pm    Post subject: Reply with quote

I did Ctrl+C after another compilation.

The real error output that occured at 4:30 this morning says post the output of

emerge --info '=sys-devel/llvm-3.7.7-r3::gentoo'

output:
Code:

portage 2.3.3 (python 3.4.5-final-0, default/linux/amd64/13.0, gcc-4.9.4, glibc-2.23-r3, 4.9.6-gentoo-r1 x86_64)
===================================================
                                  System Settings
===================================================
System uname: Linux-4.9.6-gentoo-r1-x86_64-Intel-R-_Pentium-R-_D_CPU_3.40GHz-with-gentoo-2.3
KiB Mem:          1007744 total,        139304 free
KiB Swap:                     0 total,                  0 free
Timestamp of repository gentoo: Wed, 15 Feb 2017 04:30:01 +0000
sh bash 4.3_p48-r1
Id GNU Id (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:                  4.3_p48-r1::gentoo
dev-lang/perl:                       5.22.3_rc4::gentoo
dev-lang/python:                  2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:                    3.7.2::gentoo
dev-util/pkgconfig:                0.28-r2::gentoo
sys-apps/baselayout:          2.3::gentoo
sys-apps/openrc:                0.22.4::gentoo
sys-apps/sandbox:             2.10-r3::gentoo
sys-devel/autoconf:             2.69::gentoo
sys-devel/automake:           1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:                2.25.1-r1::gentoo
sys-devel/gcc:                     4.9.4::gentoo
sys-devel/gcc-config:          1.7.3::gentoo
sys-devel/libtool:                  2.4.6-r2::gentoo
sys-devel/make:                  4.2.1::gentoo
sys-kernel/linux-headers:    4.4::gentoo (virtual/os-headers)
sys-libs/glibc:                       2.23-r3::gentoo
Repositories:

gentoo
       location: /usr/portage
       sync-type: rsync
       sync-url: rsync://rsync.gentoo.org/gentoo-portage
       priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS-"-march=native -02 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT"/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -02 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-02 -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 xattr"
FFLAGS="-02 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="Wl,-01 -Wl,--as-needed"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gbdm iconv ipv6 modules multilib ncurses nls nptl openmp pam pcre readline seccomp session ssl suid tcpd udev unicode xattr xorg zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 ens1938 ens1968 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS='"df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES"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-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="intel i915" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tar pit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 22327
Location: here

PostPosted: Wed Feb 15, 2017 8:21 pm    Post subject: Reply with quote

I need full build log, without we can't help you (the output of first post does not include errors).
Run command emerge -1 =sys-devel/llvm-3.7.1-r3 and when fails post build.log
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
roboto
Apprentice
Apprentice


Joined: 15 Feb 2017
Posts: 156
Location: My IP address.

PostPosted: Wed Feb 15, 2017 9:40 pm    Post subject: Reply with quote

It's this one:
https://paste.pound-python.org/show/Ce4BDVK6fQy46iZIeP7k/
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Wed Feb 15, 2017 9:45 pm    Post subject: Reply with quote

Code:
x86_64-pc-linux-gnu-g++: internal compiler error: Killed (program cc1plus)

This is OOM killer in action.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
roboto
Apprentice
Apprentice


Joined: 15 Feb 2017
Posts: 156
Location: My IP address.

PostPosted: Wed Feb 15, 2017 9:51 pm    Post subject: Reply with quote

How do I stop OOM killer then?

P.S. Is the x11-base/llvm-3.7.1-r1 package for LVM?
If so, then I don't need this package because I don't use LVM.
If this is for LVM, please post an answer on how to skip this package while installing Xorg.
_________________
Answers please.

The true hater of man expects nothing from him and is indiscriminate to his works.
-Ayn Rand
Quote:
Dude. Minus 30 credibility points.

Yep
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 14183

PostPosted: Thu Feb 16, 2017 3:12 am    Post subject: Reply with quote

There is no such package x11-base/llvm in the main tree. Per your output, both here in the thread and in the pastebin'd build.log, you are dealing with sys-devel/llvm. According to the package description, LLVM is Low Level Virtual Machine, so no, it is not related to the Logical Volume Manager. You need this package because the ebuild says you need it. Sometimes dependencies are wrong, but this is not one of those times. You can skip this package by removing the package(s) which depend on it. There is a good chance that one of the packages that you would need to skip is critical to proper use of Xorg, so skipping those packages might mean you cannot use Xorg.

You can stop the OOM killer by not running out of memory. How much RAM do you have? How much swap? How many CPUs? I see that you are building using ninja. I seem to recall seeing threads here that suggested ninja defaulted to guessing how many jobs to run, and that its guesses tended to be wildly optimistic.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


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

PostPosted: Thu Feb 16, 2017 3:46 am    Post subject: Reply with quote

Hu wrote:
[...] There is a good chance that one of the packages that you would need to skip is critical to proper use of Xorg, so skipping those packages might mean you cannot use Xorg.

Hu, roboto ... it is pulled in by media-libs/mesa[llvm]

equery -NC u media-libs/mesa | grep llvm:
 - - llvm    : Enable LLVM backend for Gallium3D.

That is IUSE="+llvm" but it's not critical for xorg.

best ... khay
Back to top
View user's profile Send private message
roboto
Apprentice
Apprentice


Joined: 15 Feb 2017
Posts: 156
Location: My IP address.

PostPosted: Thu Feb 16, 2017 4:17 am    Post subject: Reply with quote

You can stop the OOM killer by not running out of memory. How much RAM do you have? How much swap? How many CPUs? I see that you are building using ninja. I seem to recall seeing threads here that suggested ninja defaulted to guessing how many jobs to run, and that its guesses tended to be wildly optimistic.[/quote]

I have 1024 MB of RAM. I have one CPU. I don't have any swap space.

I don't use Gallium3D, I use intel graphics and i915. I have tried to compile this specific Metadata package multiple times and they all are fails.

How do I use something different from ninja then? If ninja is a problem.

I have tried to skip compilation with:

emerge --buildpkgonly --ask sys-devel/llvm

Nevertheless, it still compiles and fails.

And also, how do I remove the packages that depend on it.

I have tried:

emerge --ask media-libs/mesa

It still fails to compile the 179th package of LLVM.
_________________
Answers please.

The true hater of man expects nothing from him and is indiscriminate to his works.
-Ayn Rand
Quote:
Dude. Minus 30 credibility points.

Yep
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 22327
Location: here

PostPosted: Thu Feb 16, 2017 6:45 am    Post subject: Reply with quote

You can create temporary swap space.
With only 1Gb of ram is not a good idea remove swap space.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
roboto
Apprentice
Apprentice


Joined: 15 Feb 2017
Posts: 156
Location: My IP address.

PostPosted: Thu Feb 16, 2017 3:22 pm    Post subject: Reply with quote

I followed your steps and retried my compilation and it worked! javascript:emoticon(':lol:')

I also removed the -march=native flag from the CFlags variable to aid with the compilation. Thank you all!
_________________
Answers please.

The true hater of man expects nothing from him and is indiscriminate to his works.
-Ayn Rand
Quote:
Dude. Minus 30 credibility points.

Yep
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
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