Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 631492 - dev-libs/libressl: mingw-w64: access violation when running wine during build.
Summary: dev-libs/libressl: mingw-w64: access violation when running wine during build.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo LibreSSL
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-20 08:38 UTC by hanetzer
Modified: 2018-07-31 21:16 UTC (History)
0 users

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


Attachments
i686-w64-mingw32-emerge --info (file_631492.txt,4.15 KB, text/plain)
2017-09-20 08:58 UTC, hanetzer
Details
build.log.gz (build.log.gz,41.57 KB, application/gzip)
2017-09-21 00:15 UTC, hanetzer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hanetzer 2017-09-20 08:38:19 UTC
As the title states. emerging dev-libs/libressl using crossdev's mingw-w64 toolchain ends up calling wine during 'Making all in ocspcheck'

Attached is a build.log showing the failure.
Comment 1 hanetzer 2017-09-20 08:56:56 UTC
Ok, attaching the build.log fail, think that is due to filesize. I've uploaded it here: https://bpaste.net/show/e62378b60b14
Comment 2 hanetzer 2017-09-20 08:58:55 UTC
Created attachment 495602 [details]
i686-w64-mingw32-emerge --info
Comment 3 Adam Feldman gentoo-dev 2017-09-20 23:43:21 UTC
(In reply to hanetzer from comment #1)
> Ok, attaching the build.log fail, think that is due to filesize. I've
> uploaded it here: https://bpaste.net/show/e62378b60b14

Can you gzip and attach it?
Comment 4 hanetzer 2017-09-21 00:15:38 UTC
Created attachment 495712 [details]
build.log.gz

Hopefully this works.
Comment 5 hanetzer 2018-07-26 08:47:32 UTC
Issue is not specific to libressl; gnu autotools, when
cross-compiling from linux to windows, will use winepath
in order to translate path types between linux and windows.
I've a patch to crossdev I've given to slyfox which should
rectify this issue here and on other autotools based builds.
Comment 6 Larry the Git Cow gentoo-dev 2018-07-31 06:44:35 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=b8ff8146edd5e182d61756c7fd1d99239d6100d4

commit b8ff8146edd5e182d61756c7fd1d99239d6100d4
Author:     Marty E. Plummer <hanetzer@startmail.com>
AuthorDate: 2018-07-26 08:07:37 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-07-31 06:44:15 +0000

    wrappers: prevent use of wine to convert between path types
    
    libtool.m4 uses lt_cv_to_host_file_cmd to store the name of a function
    used to convert between unix and win32 path styles; when doing a linux to
    mingw cross-compilation it ends up with func_convert_file_nix_to_w32
    which uses the winepath utility to do the job. However, using that tool
    will create a wineprefix in ${CATEGORY}/${P}/homedir and potentially
    cause access violations in sandbox.
    
    Bug: https://bugs.gentoo.org/631492
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 wrappers/site/config.site | 1 +
 wrappers/site/mingw       | 2 ++
 2 files changed, 3 insertions(+)
Comment 7 Larry the Git Cow gentoo-dev 2018-07-31 21:16:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f25356875b71b2a5c56abfbca0cca0651fd83c6c

commit f25356875b71b2a5c56abfbca0cca0651fd83c6c
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-07-31 21:14:01 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-07-31 21:14:01 +0000

    sys-devel/crossdev: bump up to 20180731
    
    Closes: https://bugs.gentoo.org/631492
    Package-Manager: Portage-2.3.44, Repoman-2.3.10

 sys-devel/crossdev/Manifest                 |  1 +
 sys-devel/crossdev/crossdev-20180731.ebuild | 39 +++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+)