Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with tutuapp
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
brutico
Tux's lil' helper
Tux's lil' helper


Joined: 16 Feb 2014
Posts: 130

PostPosted: Mon Jul 02, 2018 8:32 pm    Post subject: Problem with tutuapp Reply with quote

I'm trying to compile tolu app and it shows me this error

Code:
>>> Failed to emerge dev-lua/toluapp-1.0.93, Log file:
>>>  '/tmp/portage/dev-lua/toluapp-1.0.93/temp/build.log'
>>> Jobs: 0 of 1 complete, 1 failed                 Load avg: 0.50, 1.37, 2.07
 * Package:    dev-lua/toluapp-1.0.93
 * Repository: gentoo
 * Maintainer: rafaelmartins@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux policykit userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking tolua++-1.0.93.tar.bz2 to /tmp/portage/dev-lua/toluapp-1.0.93/work
>>> Source unpacked in /tmp/portage/dev-lua/toluapp-1.0.93/work
>>> Preparing source in /tmp/portage/dev-lua/toluapp-1.0.93/work/tolua++-1.0.93 ...
>>> Source prepared.
>>> Configuring source in /tmp/portage/dev-lua/toluapp-1.0.93/work/tolua++-1.0.93 ...
>>> Source configured.
>>> Compiling source in /tmp/portage/dev-lua/toluapp-1.0.93/work/tolua++-1.0.93 ...
scons: Reading SConscript files ...

scons: warning: The Options class is deprecated; use the Variables class instead.
File "/tmp/portage/dev-lua/toluapp-1.0.93/work/tolua++-1.0.93/SConstruct", line 19, in <module>
********* tolua is  bin/tolua++_bootstrap
AttributeError: '_io.TextIOWrapper' object has no attribute 'xreadlines':
  File "/tmp/portage/dev-lua/toluapp-1.0.93/work/tolua++-1.0.93/SConstruct", line 160:
    SConscript('src/bin/SCsub')
  File "/usr/lib64/python3.5/site-packages/SCons/Script/SConscript.py", line 614:
    return method(*args, **kw)
  File "/usr/lib64/python3.5/site-packages/SCons/Script/SConscript.py", line 551:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/usr/lib64/python3.5/site-packages/SCons/Script/SConscript.py", line 256:
    call_stack[-1].globals)
  File "/tmp/portage/dev-lua/toluapp-1.0.93/work/tolua++-1.0.93/src/bin/SCsub", line 8:
    toluabind = env.LuaBinding('toluabind.c', 'tolua_scons.pkg', 'tolua', bootstrap = True)
  File "/tmp/portage/dev-lua/toluapp-1.0.93/work/tolua++-1.0.93/SConstruct", line 115:
    self.pkg_scan_dep(target, psource)
  File "/tmp/portage/dev-lua/toluapp-1.0.93/work/tolua++-1.0.93/SConstruct", line 68:
    for linea in pkg.xreadlines():
 * ERROR: dev-lua/toluapp-1.0.93::gentoo failed (compile phase):
 *   scons failed
 *
 * Call stack:
 *     ebuild.sh, line 124:  Called src_compile
 *   environment, line 805:  Called die
 * The specific snippet of code:
 *       scons CC="$(tc-getCC)" CCFLAGS="${CFLAGS} -ansi -Wall" CXX="$(tc-getCXX)" LINK="$(tc-getCC)" LINKFLAGS="${LDFLAGS}" shared=1 || die "scons failed"
 *
 * If you need support, post the output of `emerge --info '=dev-lua/toluapp-1.0.93::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lua/toluapp-1.0.93::gentoo'`.
 * The complete build log is located at '/tmp/portage/dev-lua/toluapp-1.0.93/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/dev-lua/toluapp-1.0.93/temp/environment'.
 * Working directory: '/tmp/portage/dev-lua/toluapp-1.0.93/work/tolua++-1.0.93'
 * S: '/tmp/portage/dev-lua/toluapp-1.0.93/work/tolua++-1.0.93'

 * Messages for package dev-lua/toluapp-1.0.93:

 * ERROR: dev-lua/toluapp-1.0.93::gentoo failed (compile phase):
 *   scons failed
 *
 * Call stack:
 *     ebuild.sh, line 124:  Called src_compile
 *   environment, line 805:  Called die
 * The specific snippet of code:
 *       scons CC="$(tc-getCC)" CCFLAGS="${CFLAGS} -ansi -Wall" CXX="$(tc-getCXX)" LINK="$(tc-getCC)" LINKFLAGS="${LDFLAGS}" shared=1 || die "scons failed"
 *
 * If you need support, post the output of `emerge --info '=dev-lua/toluapp-1.0.93::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lua/toluapp-1.0.93::gentoo'`.
 * The complete build log is located at '/tmp/portage/dev-lua/toluapp-1.0.93/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/dev-lua/toluapp-1.0.93/temp/environment'.
 * Working directory: '/tmp/portage/dev-lua/toluapp-1.0.93/work/tolua++-1.0.93'
 * S: '/tmp/portage/dev-lua/toluapp-1.0.93/work/tolua++-1.0.93'
 *
 * The following package has failed to build, install, or execute postinst:
 *
 *  (dev-lua/toluapp-1.0.93:0/0::gentoo, ebuild scheduled for merge), Log file:
 *   '/tmp/portage/dev-lua/toluapp-1.0.93/temp/build.log'
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30915
Location: here

PostPosted: Tue Jul 03, 2018 5:44 am    Post subject: Reply with quote

You can post output of command
Code:
# emerge -pvq dev-util/scons

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
brutico
Tux's lil' helper
Tux's lil' helper


Joined: 16 Feb 2014
Posts: 130

PostPosted: Tue Jul 03, 2018 8:14 am    Post subject: Reply with quote

fedeliallalinea wrote:
You can post output of command
Code:
# emerge -pvq dev-util/scons


yes
Code:
ebuild   R   ] dev-util/scons-3.0.1-r100  USE="-doc {-test}" PYTHON_TARGETS="python2_7 python3_5 -python3_4 -python3_6"
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30915
Location: here

PostPosted: Tue Jul 03, 2018 8:21 am    Post subject: Reply with quote

I reproduced the error disabling python2.7 to scons package, but in your case is enabled.
Try to rebuild scons
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
brutico
Tux's lil' helper
Tux's lil' helper


Joined: 16 Feb 2014
Posts: 130

PostPosted: Tue Jul 03, 2018 8:47 am    Post subject: Reply with quote

fedeliallalinea wrote:
I reproduced the error disabling python2.7 to scons package, but in your case is enabled.
Try to rebuild scons



Thanks ... but tutuapp is still failing
Back to top
View user's profile Send private message
calebgray
n00b
n00b


Joined: 29 Mar 2010
Posts: 2
Location: Seattle, WA

PostPosted: Mon Oct 15, 2018 9:11 pm    Post subject: Reply with quote

Just ran into this myself while attempting to emerge conky.

This worked well for me as a workaround until the code is patched:

Code:

sudo -s
quickpkg dev-util/scons # Create a backup of current version.
PYTHON_TARGETS="python2_7" emerge scons # Install a working version of scons for toluapp.
emerge -1 toluapp # Or replace with whatever package you were trying to install, for me: emerge conky
emerge -1k scons # Reinstall the backup.


Hope this helps.
Back to top
View user's profile Send private message
thorsten164
n00b
n00b


Joined: 01 Jun 2014
Posts: 2

PostPosted: Fri Mar 29, 2019 4:56 pm    Post subject: Reply with quote

Hi,

for me
Code:
emerge -1 '=dev-util/scons-2.5.1'

did the trick in case anyone is looking for the answer.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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