Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 599066 - dev-python/cffi-1.8.3 fails with Access Violaten
Summary: dev-python/cffi-1.8.3 fails with Access Violaten
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-06 15:05 UTC by Sven Müller
Modified: 2016-12-01 08:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,10.23 KB, text/plain)
2016-11-06 15:05 UTC, Sven Müller
Details
emerge --info (emerge_info.txt,5.32 KB, text/plain)
2016-11-06 15:06 UTC, Sven Müller
Details
sandbox log (also shown in build.log) (sandbox-23586.log,684 bytes, text/plain)
2016-11-06 15:07 UTC, Sven Müller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Müller 2016-11-06 15:05:51 UTC
Created attachment 452530 [details]
build.log

Build finished. The HTML pages are in build/html.
make: Leaving directory '/var/tmp/portage/dev-python/cffi-1.8.3/work/cffi-1.8.3-python3_4/doc'
>>> Source compiled.
 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/var/log/sandbox/sandbox-23586.log"
 * 


Removing sandbox from FEATURES in make.conf didn't help. Got it installed by doing the build steps manually.

ebuild cffi-1.8.3.ebuild install
ebuild cffi-1.8.3.ebuild qmerge
Comment 1 Sven Müller 2016-11-06 15:06:25 UTC
Created attachment 452532 [details]
emerge --info
Comment 2 Sven Müller 2016-11-06 15:07:01 UTC
Created attachment 452534 [details]
sandbox log (also shown in build.log)
Comment 3 Chris White 2016-11-07 06:35:35 UTC
I'm having the darndest time trying to reproduce this. Can you output your USE flags for `=dev-lang/python-2.7.12` and `=dev-lang/python-3.4.5`? Also I noticed you're doing ebuild phases, so I also want to make sure the deps are installed as well. Try doing `emerge -o dev-python/cffi` to pull in deps only before doing the ebuild phases.
Comment 4 Sven Müller 2016-11-07 14:15:45 UTC
 emerge -o dev-python/cffi

 * IMPORTANT: 12 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

Calculating dependencies... done!
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.


In the meantime I'm quite sure, this issue doesn't belong to cffi. I got some other python problems. So I guess, something in my python environment is broken. 
(maybe related to this: https://bugs.gentoo.org/show_bug.cgi?id=599122)
Comment 5 Sven Müller 2016-11-09 17:46:10 UTC
Tested a little bit around and found the reason. The error was:

F: open_wr
S: deny
P: /usr/lib/python3.4/lib2to3/PatternGrammar3.4.5.final.0.pickle

So, I compared the python installation on my desktop machine (amd64) and on my nas (arm). on the desktop machine exist the following files: 

/usr/lib/python3.4/lib2to3/PatternGrammar3.4.5.final.0.pickle
/usr/lib/python3.4/lib2to3/Grammar3.4.5.final.0.pickle

On the arm machine these files are missing. I copied the missing files to the arm installation and it worked. 

The source of the problem isn't cffi but python. For some reason on my arm machine python3.4 and python3.5 didn't install/generate the related files. Tried it directly on the machine (hangs in install process), in a qemu-user environment (hangs too) and with the cross-compiler in the host environment (armv7a-hardfloat-linux-gnueabi-emerge) - compiles without error, but doesn't install those files. 

I will investigate this a little bit more and post my results into the other bug-report I opened directly to python. Any ideas about the reason?
Comment 6 Sven Müller 2016-11-30 16:58:33 UTC
As this incident is a problem of the python installation and definitely not of the cffi package, I would suggest to close this issue as "invalid". I can only change the state to "resolved", so someone of the maintainers should close this entry.
Comment 7 Mike Gilbert gentoo-dev 2016-11-30 17:27:37 UTC
(In reply to Sven Müller from comment #5)
> I will investigate this a little bit more and post my results into the other
> bug-report I opened directly to python. Any ideas about the reason?

Can you provide a link to the other bug report?
Comment 8 Sven Müller 2016-12-01 08:16:04 UTC
bug 599122