Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
failed to compile lz4-0_p120
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
sprech
n00b
n00b


Joined: 22 Mar 2016
Posts: 2

PostPosted: Tue Mar 22, 2016 11:19 pm    Post subject: failed to compile lz4-0_p120 Reply with quote

I am new to gentoo, and not sure how to aproach troubleshooting a build issue yet. As per the handbook, I selected the profile (in my case 12 which has systemd) and acordingly I executed the manditory command for systemd users:

emerge --ask --update --deep --newuse --ask @world

I am performing these from within a chroot environment as my current system is arch.

emerge --info '=app-arch/lz4-0_p120::gentoo'

Code:

Portage 2.2.26 (python 3.4.3-final-0, default/linux/amd64/13.0/systemd, gcc-4.9.3, glibc-2.21-r2, 4.4.5-1-ARCH x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.4.5-1-ARCH-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9650_@_3.00GHz-with-gentoo-2.2
KiB Mem:    12308100 total,   6055776 free
KiB Swap:    2093052 total,   2093052 free
Timestamp of repository gentoo: Tue, 22 Mar 2016 22:30:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::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.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r2::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -msse4 -msse4.1"
 19 sys-devel/autoconf:       2.69::gentoo
 20 sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
 21 sys-devel/binutils:       2.25.1-r1::gentoo
 22 sys-devel/gcc:            4.9.3::gentoo
 23 sys-devel/gcc-config:     1.7.3::gentoo
 24 sys-devel/libtool:        2.4.6::gentoo
 25 sys-devel/make:           4.1-r1::gentoo
 26 sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
 27 sys-libs/glibc:           2.21-r2::gentoo
 28 Repositories:
 29
 30 gentoo
 31     location: /usr/portage
 32     sync-type: rsync
 33     sync-uri: rsync://rsync.gentoo.org/gentoo-portage
 34     priority: -1000
 35
 36 ACCEPT_KEYWORDS="amd64"
 37 ACCEPT_LICENSE="* -@EULA"
 38 CBUILD="x86_64-pc-linux-gnu"
 39 CFLAGS="-march=core2 -O2 -pipe -msse4 -msse4.1"
 40 CHOST="x86_64-pc-linux-gnu"
 41 CONFIG_PROTECT="/etc"
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=core2 -O2 -pipe -msse4 -msse4.1"
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 xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirrors.tera-byte.com/pub/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="j5"
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"
USE="acl amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx mmxext modules multilib ncurses nls nptl openmp pam pcre readline seccomp session sse sse2 ssl systemd tcpd udev unicode xattr 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2OLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


I am thinking this might have something to do with my make.conf but not sure what. I did forget a = for CFLAGS when i first did a emerge-webrsync which I later fixed and reissued the command.

Any guidence would be apreciated. Thank you.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21706

PostPosted: Wed Mar 23, 2016 1:24 am    Post subject: Reply with quote

You said you have a problem with =app-arch/lz4-0_p120::gentoo and provided us with your overall system configuration, but you did not provide the error message. There are many ways a build can fail. Please pastebin the build log from a failed compilation so that we can see exactly what went wrong.
Back to top
View user's profile Send private message
sprech
n00b
n00b


Joined: 22 Mar 2016
Posts: 2

PostPosted: Wed Mar 23, 2016 1:34 am    Post subject: [Solved] Reply with quote

[Solved: See tail]

Thanks for pointing that out, I overlooked it. The error I am given is
Quote:

* ERROR: app-arch/lz4-0_p120::gentoo failed (compile phase):
* emake failed


I looked at https://wiki.gentoo.org/wiki/Portage_log#Build_logs which indicated a default location of /var/log/portage for the build logs,
all I could find in there was summary.log, which this pastebin contains: http://pastebin.com/iS5DLrsY

[tail ~]

overlooked a directory /var/tmp/portage/app-arch/lz4-0_p120/temp

which had the build log, inside I found a reference to j5 being a wrong target, in which I realized my make.conf I forgot to put a - before my j5

Quote:

MAKEOPTS="J5"
becomes
MAKEOPTS="-J5"


I have to restart the whole thing as I was in what I thought was another tmux window, doing rsync stuff and some rm's and it turns out I ended up doing a rm -rf * on something inside the chroot, I should pay more attention to where I am working.[/quote]
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Wed Mar 23, 2016 7:52 am    Post subject: Re: [Solved] Reply with quote

sprech wrote:
[Solved: See tail]

Thanks for pointing that out, I overlooked it. The error I am given is
Quote:

* ERROR: app-arch/lz4-0_p120::gentoo failed (compile phase):
* emake failed


I looked at https://wiki.gentoo.org/wiki/Portage_log#Build_logs which indicated a default location of /var/log/portage for the build logs,
all I could find in there was summary.log, which this pastebin contains: http://pastebin.com/iS5DLrsY

What if first solving these warnings
http://pastebin.com/raw/iS5DLrsY wrote:
WARN: pretend
Unable to find kernel sources at /usr/src/linux
Unable to calculate Linux Kernel version for build, attempting to use running version
ERROR: pretend
  CONFIG_FW_LOADER_USER_HELPER: should not be set. But it is.

Using eselect kernel list, then setting the actual kernel version and removing the CONFIG_FW_LOADER_USER_HELPER should help.
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
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