Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
media-libs/libffado-2.2.1-r3::proaudio failed to emerge
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
cyber_sapien
n00b
n00b


Joined: 31 May 2015
Posts: 23

PostPosted: Thu Sep 08, 2016 7:12 pm    Post subject: media-libs/libffado-2.2.1-r3::proaudio failed to emerge Reply with quote

I tried installing libffado-2.2.1-r3 from proaudio overlay and ran into that circular dependency error (libffado needs jack-audio-connection-kit needs libffado). The hint from Gentoo Studio
"emerge --nodeps libffado" failed too
Code:

scons: *** [src/bebob/bebob_avplug.os] Error 1
scons: *** [src/fireworks/audiofire/audiofire_device.os] Error 1
scons: building terminated because of errors.
 * ERROR: media-libs/libffado-2.2.1-r3::proaudio failed (compile phase):
 *   escons failed.
 *
 * Call stack:
 *     ebuild.sh, line  133:  Called src_compile
 *   environment, line 3607:  Called multilib-minimal_src_compile
 *   environment, line 2029:  Called multilib_foreach_abi 'multilib-minimal_abi_src_compile'
 *   environment, line 2260:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 1964:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 1962:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile'
 *   environment, line  363:  Called multilib-minimal_abi_src_compile
 *   environment, line 2023:  Called multilib_src_compile
 *   environment, line 2481:  Called myescons
 *   environment, line 2536:  Called escons
 *   environment, line 1105:  Called die
 * The specific snippet of code:
 *                   die "escons failed."
 *
 * If you need support, post the output of `emerge --info '=media-libs/libffado-2.2.1-r3::proaudio'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/libffado-2.2.1-r3::proaudio'`.
 * The complete build log is located at '/var/tmp/portage/media-libs/libffado-2.2.1-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/libffado-2.2.1-r3/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/libffado-2.2.1-r3/work/libffado-2.2.1-abi_x86_64.amd64'
 * S: '/var/tmp/portage/media-libs/libffado-2.2.1-r3/work/libffado-2.2.1'


any idea? help please.

[Moderator edit: Changed title to show that this is a package from the proaudio overlay. Original title was LIBFFADO failed to emerge. -Hu]
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Thu Sep 08, 2016 9:08 pm    Post subject: Reply with quote

This is the post-error message. Where is the error? You better use wgetpaste to pastebin the full log, and make sure you used -j1.
Back to top
View user's profile Send private message
cyber_sapien
n00b
n00b


Joined: 31 May 2015
Posts: 23

PostPosted: Fri Sep 09, 2016 7:49 am    Post subject: Reply with quote

Thank you Buffoon.
I changend MAKEOPTS to-j1. Did not solve the problem.
Full output of emerge libffado
http://bpaste.net/show/ef7b73d33020
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 22194
Location: here

PostPosted: Fri Sep 09, 2016 8:57 am    Post subject: Reply with quote

Code:
/usr/include/libxml++-2.6/libxml++/exceptions/parse_error.h:39:16: error: expected ‘;’ at end of member declaration
   ~parse_error() noexcept override;
                ^
/usr/include/libxml++-2.6/libxml++/exceptions/parse_error.h:39:18: error: ‘noexcept’ does not name a type
   ~parse_error() noexcept override;
                  ^
/usr/include/libxml++-2.6/libxml++/exceptions/parse_error.h:41:16: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
   void Raise() const override;
                ^
/usr/include/libxml++-2.6/libxml++/exceptions/parse_error.h:42:22: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
   exception* Clone() const override;

Try to add -std=gnu++11 in CXXFLAGS with package.env
Code:
# mkdir -p /etc/portage/env/
# echo "CFLAGS=\"\${CFLAGS}\"" >> /etc/portage/env/force-gnu++11.conf
# echo "CXXFLAGS=\"\${CXXFLAGS} -std=gnu++11\"" >> /etc/portage/env/force-gnu++11.conf
# echo "media-libs/libffado force-gnu++11.conf" >> /etc/portage/package.env
# emerge libffado

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
cyber_sapien
n00b
n00b


Joined: 31 May 2015
Posts: 23

PostPosted: Fri Sep 09, 2016 9:30 am    Post subject: Reply with quote

Thank you fedeliallalinea for your help.
But emerge failed again
http://bpaste.net/show/b06bbe9b3c8d
Do you have another idea what could solve the problem?
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 22194
Location: here

PostPosted: Fri Sep 09, 2016 9:38 am    Post subject: Reply with quote

Or you disable USE flag test-programs or you apply a patch (according with a debian bug).
For apply patch at this package
Code:
# mkdir -p /etc/portage/patches/media-libs/libffado-2.2.1-r3

In this directory create a file libffado-test.patch with this content:
Code:
diff -Naur libffado-2.2.1.orig/tests/test-enhanced-mixer.cpp libffado-2.2.1/tests/test-enhanced-mixer.cpp
--- libffado-2.2.1.orig/tests/test-enhanced-mixer.cpp   2008-05-29 10:24:21.000000000 +0200
+++ libffado-2.2.1/tests/test-enhanced-mixer.cpp        2016-09-09 11:27:52.910177603 +0200
@@ -77,7 +77,7 @@
         exit(0);
     }
 
-    int errno = 0;
+    extern int errno;
     char* tail;
     int node_id = strtol( argv[1], &tail, 0 );
     int fb_id   = strtol( argv[2], &tail, 0 );
diff -Naur libffado-2.2.1.orig/tests/test-volume.cpp libffado-2.2.1/tests/test-volume.cpp
--- libffado-2.2.1.orig/tests/test-volume.cpp   2008-05-05 23:29:40.000000000 +0200
+++ libffado-2.2.1/tests/test-volume.cpp        2016-09-09 11:29:49.730179101 +0200
@@ -127,7 +127,7 @@
         exit(0);
     }
 
-    int errno = 0;
+    extern int errno;
     char* tail;
     int node_id = strtol( argv[1], &tail, 0 );
     int fb_id   = strtol( argv[2], &tail, 0 );

Create file /etc/portage/bashrc if not exists (this because this ebuild not have epatch_user function, see documentation) with content:
Code:
pre_src_prepare() {
    [[ ${EAPI:-0} == [012345] ]] || return
    if ! type epatch_user > /dev/null 2>&1; then
        local names="EPATCH_USER_SOURCE epatch_user epatch evar_push evar_push_set evar_pop estack_push estack_pop"
        source <(awk "/^# @(FUNCTION|VARIABLE): / { p = 0 } /^# @(FUNCTION|VARIABLE): (${names// /|})\$/ { p = 1 } p { print }" ${PORTDIR}/eclass/eutils.eclass)
    fi

    epatch_user

    for name in $names; do
        unset $name
    done
}

Finally
Code:
# emerge libffado

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
cyber_sapien
n00b
n00b


Joined: 31 May 2015
Posts: 23

PostPosted: Fri Sep 09, 2016 9:50 am    Post subject: Reply with quote

Thank you fedeliallalinea, you are my hero.
To disable the USE test-programs solved the problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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