Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mpd 0.20.10 won't compile [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
mani001
Guru
Guru


Joined: 04 Dec 2004
Posts: 323
Location: Oleiros

PostPosted: Tue Feb 06, 2018 8:32 pm    Post subject: mpd 0.20.10 won't compile [solved] Reply with quote

The recent update of dev-libs/icu forced emerge to recompile mpd, but

Code:
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.  -DNDEBUG -I./src -I/usr/include -DSYSTEM_CONFIG_FILE_LOCATION='"/etc/mpd.conf"' -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -pthread -O2 -pipe -march=native -floop-interchange -floop-strip-mine -floop-block -ftree-loop-distribution -fvisibility=hidden -fno-threadsafe-statics -fmerge-all-constants -ffast-math -ftree-vectorize -ffunction-sections -fdata-sections -Wall -Wextra -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wwrite-strings -Wsign-compare -c -o src/config/ConfigPath.o src/config/ConfigPath.cxx
src/pcm/dsd2pcm/dsd2pcm.c: In function ‘dsd2pcm_init’:
src/pcm/dsd2pcm/dsd2pcm.c:146:21: internal compiler error: in insert_value_copy_on_edge, at tree-outof-ssa.c:298
 extern dsd2pcm_ctx* dsd2pcm_init(void)


Anyone else hit by this?

Cheers.


Last edited by mani001 on Fri Feb 09, 2018 11:05 am; edited 1 time in total
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1296
Location: KUUSANKOSKI, Finland

PostPosted: Tue Feb 06, 2018 8:55 pm    Post subject: Reply with quote

It says it's an internal compiler error. I'd try to compile using clang.

as root:
echo -e 'CC="clang"\nCXX="clang++"' > /etc/portage/env/clang
echo -e 'media-sound/mpd clang' > /etc/portage/package.env/mpd

But first make sure directories /etc/portage/env/ and /etc/portage/package.env/ exist.
And, of course, make sure you have clang installed. ;)

More about clang and package.env.
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
mani001
Guru
Guru


Joined: 04 Dec 2004
Posts: 323
Location: Oleiros

PostPosted: Tue Feb 06, 2018 9:32 pm    Post subject: Reply with quote

Thanks for your prompt reply!!

With clang I get

Code:
checking for style of include used by make... GNU                                                               
checking for x86_64-pc-linux-gnu-gcc... clang                                                                   
checking whether the C compiler works... no                                                                     
configure: error: in `/var/tmp/portage/media-sound/mpd-0.20.10/work/mpd-0.20.10':                               
configure: error: C compiler cannot create executables 


I'm probably missing something because I've never used clang before. By the way, I tested clang on a hello-world program and it *is* able to create executables.

Cheers.
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1296
Location: KUUSANKOSKI, Finland

PostPosted: Tue Feb 06, 2018 10:36 pm    Post subject: Reply with quote

Can you run programs under /var/tmp/portage/? Create some shell script there that contains "echo success". Then chmod +x <that script> and try to run it.
I once had wrong permissions on portage temp dir that denied runninf anything under it.'
Also make sure you have free space there.

These are pretty much now blind guesses as you already mentioned that you managed to compile other packages. :P
But those errors make no sense...
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
mani001
Guru
Guru


Joined: 04 Dec 2004
Posts: 323
Location: Oleiros

PostPosted: Wed Feb 07, 2018 2:57 pm    Post subject: Reply with quote

Yes, I can run programs under /var/tmp/portage, and I have lots of free space :?
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1296
Location: KUUSANKOSKI, Finland

PostPosted: Wed Feb 07, 2018 4:04 pm    Post subject: Reply with quote

Hmmm...
Please, post the output of emerge --info.
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
mani001
Guru
Guru


Joined: 04 Dec 2004
Posts: 323
Location: Oleiros

PostPosted: Wed Feb 07, 2018 6:05 pm    Post subject: Reply with quote

Code:
Portage 2.3.19 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop/plasma/systemd, gcc-6.4.0, glibc-2.25-r9, 4.9.76-gentoo-r1 x86_64)
=================================================================
System uname: Linux-4.9.76-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5-6600K_CPU_@_3.50GHz-with-gentoo-2.4.1
KiB Mem:    32911768 total,  29794344 free
KiB Swap:    1023996 total,   1023996 free
Timestamp of repository gentoo: Tue, 06 Feb 2018 19:45:01 +0000
Head commit of repository gentoo: 9f52f6421ecbe3ec235979016783f9af9371714f
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r9::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync1.de.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:

localmanu
    location: /usr/local/portage
    masters: gentoo

mva
    location: /var/lib/layman/mva
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50

torbrowser
    location: /var/lib/layman/torbrowser
    masters: gentoo
    priority: 50

wjn-overlay
    location: /var/lib/layman/wjn-overlay
    masters: gentoo
    priority: 50

Installed sets: @cuda-nvidia-for-tensorflow
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -floop-interchange -floop-strip-mine -floop-block -ftree-loop-distribution"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /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/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native -floop-interchange -floop-strip-mine -floop-block -ftree-loop-distribution"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict 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="http://trumpetti.atm.tut.fi/gentoo/"
LANG="es_ES.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="es es_ES"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli corefonts crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode epub exif fam fat flac fortran gdbm gif glamor gpm gtk iconv icu ipv6 java jpeg kde kipi kwallet lcms ldap libass libnotify linguas_es lirc mad matroska mng modules mp3 mp4 mpeg mtp multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qml qt3support qt5 readline scanner sdl seccomp semantic-desktop spell ssl startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb uxa vdpau vorbis widgets wxwidgets x264 xattr xcb xcomposite xml xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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="krita" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" L10N="es es-ES es_ES" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="devinput" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby23" SANE_BACKENDS="hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005 hpsj5s hs2p" USERLAND="GNU" VIDEO_CARDS="intel i965 nvidia 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1296
Location: KUUSANKOSKI, Finland

PostPosted: Thu Feb 08, 2018 11:34 am    Post subject: Reply with quote

I don't see anything wrong threre.
I wish ./configure would tell what is it trying to do at "checking whether the C compiler works... no".

Does any other program compile fine with clang?

EDIT: You may need to give full paths to the compilers in /etc/portage/env/clang.
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 12356

PostPosted: Fri Feb 09, 2018 3:02 am    Post subject: Reply with quote

Zucca wrote:
I wish ./configure would tell what is it trying to do at "checking whether the C compiler works... no".
It does, but only in the log file, not on stdout. This is why we need config.log (and why the package manager told the OP to post it).
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1296
Location: KUUSANKOSKI, Finland

PostPosted: Fri Feb 09, 2018 9:24 am    Post subject: Reply with quote

I ran CC="clang" CXX="${CC}++" emerge -vB =media-sound/mpd-0.20.10 and got the same error. With gcc mpd compiles fine.
My config.log had these errors:
config.log:
clang-3.9: error: unknown argument: '-frecord-gcc-switches'
clang-3.9: error: unknown argument: '-mvzeroupper'

I remember -mvzeroupper causing problems with clang before. I could remove it since it really doesn't affect anything much.
And rather naturally -frecord-gcc-switches isn't available on clang. :P

However the internal compiler error in more interesting case... I can't reproduce th error here on gcc 6.4.0.
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
mani001
Guru
Guru


Joined: 04 Dec 2004
Posts: 323
Location: Oleiros

PostPosted: Fri Feb 09, 2018 11:05 am    Post subject: Reply with quote

I figured it out: the problem is my CFLAGS

Code:
CFLAGS="-O2 -march=native -pipe -floop-interchange -floop-strip-mine -floop-block"


If I set
Code:
CFLAGS="-O2 -march=native"

then, it compiles without a glitch. Hence, the problem is with the graphite-related stuff. I tried different combinations of -pipe, -floop-interchange...but couldn't find any (I wasn't very thorough, though) that allowed the merge except removing all the stuff.

Anyway, thanks both for your help (specially Zucca)!! I'm adding "solved" on top.

Cheers.
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1296
Location: KUUSANKOSKI, Finland

PostPosted: Fri Feb 09, 2018 12:31 pm    Post subject: Reply with quote

Out of curiosity - Did you use clang or gcc?
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
mani001
Guru
Guru


Joined: 04 Dec 2004
Posts: 323
Location: Oleiros

PostPosted: Fri Feb 09, 2018 12:42 pm    Post subject: Reply with quote

I used gcc. Since you too had an issue with clang, I assumed this must be one of those packages which still don't get along with Clang
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1296
Location: KUUSANKOSKI, Finland

PostPosted: Fri Feb 09, 2018 5:08 pm    Post subject: Reply with quote

Based on the config.log clang also failed because of presence of some compiler flags it couldn't use/handle. So it should be able to compile mpd too.
But most importantly it now compiles on gcc at least. :)
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
benchaney
n00b
n00b


Joined: 28 Dec 2017
Posts: 26

PostPosted: Sun Feb 11, 2018 1:14 am    Post subject: Reply with quote

When I had a similar problem, someone told me that "internal compiler error" usually means that gcc ran out of memory. If I had to guess I would say that is your problem as well. Removing -pipe is probably what eventually solved your problem because it causes a lot more memory to be used.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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