Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 533616 - crossdev-20140917 error generating mingw32
Summary: crossdev-20140917 error generating mingw32
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-26 18:00 UTC by Jean-Claude Gervais
Modified: 2015-02-04 22:45 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Claude Gervais 2014-12-26 18:00:06 UTC
crossdev -t i686-pc-mingw32	

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
* crossdev version: 20140917
* Host Portage ARCH: amd64
* Target Portage ARCH: x86
* Target System: i686-pc-mingw32
* Stage: 4 (C/C++ compiler)
* ABIs: default

* binutils: binutils-[latest]
* gcc: gcc-[latest]
* headers: w32api-[latest]
* libc: mingw-runtime-[latest]

* CROSSDEV_OVERLAY: /usr/local/overlays/my_overlays
* PORT_LOGDIR: /var/log/portage
* PORTAGE_CONFIGROOT:
* Portage flags:
_ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~
* leaving sys-devel/binutils in /usr/local/overlays/my_overlays
* leaving sys-devel/gcc in /usr/local/overlays/my_overlays
* leaving dev-util/w32api in /usr/local/overlays/my_overlays
* leaving dev-util/mingw-runtime in /usr/local/overlays/my_overlays
* leaving sys-devel/gdb in /usr/local/overlays/my_overlays
* leaving metadata/layout.conf alone in /usr/local/overlays/my_overlays
_ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~
* Log: /var/log/portage/cross-i686-pc-mingw32-binutils.log
* Emerging cross-binutils ... [ ok ]
* Log: /var/log/portage/cross-i686-pc-mingw32-w32api-quick.log
* Emerging cross-w32api-quick ... [ ok ]
* Log: /var/log/portage/cross-i686-pc-mingw32-mingw-runtime-headers.log
* Emerging cross-mingw-runtime-headers ... [ ok ]
* Log: /var/log/portage/cross-i686-pc-mingw32-gcc-stage1.log
* Emerging cross-gcc-stage1 ... [ ok ]
* Log: /var/log/portage/cross-i686-pc-mingw32-w32api.log
* Emerging cross-w32api ... [ ok ]
* Log: /var/log/portage/cross-i686-pc-mingw32-mingw-runtime.log
* Emerging cross-mingw-runtime ... [ ok ]
* Log: /var/log/portage/cross-i686-pc-mingw32-gcc-stage2.log
* Emerging cross-gcc-stage2 ...

* gcc failed :(	


The relevant portion of errors:

/var/tmp/portage/cross-i686-pc-mingw32/gcc-4.8.3/work/gcc-4.8.3/libsanitizer/interception/interception_win.cc: In function ‘void __interception::WriteJumpInstruction(char*, char*)’:
/var/tmp/portage/cross-i686-pc-mingw32/gcc-4.8.3/work/gcc-4.8.3/libsanitizer/interception/interception_win.cc:52:3: error: ‘ptrdiff_t’ was not declared in this scope
ptrdiff_t offset = to - jmp_from - 5;
^
/var/tmp/portage/cross-i686-pc-mingw32/gcc-4.8.3/work/gcc-4.8.3/libsanitizer/interception/interception_win.cc:52:13: error: expected ‘;’ before ‘offset’
ptrdiff_t offset = to - jmp_from - 5;
^
/var/tmp/portage/cross-i686-pc-mingw32/gcc-4.8.3/work/gcc-4.8.3/libsanitizer/interception/interception_win.cc:54:15: error: expected primary-expression before ‘)’ token
*(ptrdiff_t*)(jmp_from + 1) = offset;
^
/var/tmp/portage/cross-i686-pc-mingw32/gcc-4.8.3/work/gcc-4.8.3/libsanitizer/interception/interception_win.cc:54:33: error: ‘offset’ was not declared in this scope
*(ptrdiff_t*)(jmp_from + 1) = offset;
^
Makefile:338: recipe for target 'interception_win.lo' failed
make[3]: *** [interception_win.lo] Error 1
make[3]: Leaving directory '/var/tmp/portage/cross-i686-pc-mingw32/gcc-4.8.3/work/build/i686-pc-mingw32/libsanitizer/interception'
Makefile:326: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/cross-i686-pc-mingw32/gcc-4.8.3/work/build/i686-pc-mingw32/libsanitizer'
Makefile:9764: recipe for target 'all-target-libsanitizer' failed
make[1]: *** [all-target-libsanitizer] Error 2
make[1]: Leaving directory '/var/tmp/portage/cross-i686-pc-mingw32/gcc-4.8.3/work/build'
Makefile:853: recipe for target 'all' failed
make: *** [all] Error 2	

gcc-config -l	
[1] i686-pc-mingw32-4.8.3 *

[2] x86_64-pc-linux-gnu-4.7.3
[3] x86_64-pc-linux-gnu-4.8.3 *
Comment 1 Jean-Claude Gervais 2014-12-26 20:11:49 UTC
Resovled: 
Add -sanitize to USE variable
Comment 2 Lars 2015-02-04 22:45:00 UTC
(In reply to Jean-Claude Gervais from comment #1)
> Resovled: 
> Add -sanitize to USE variable

I had the same issue. I wonder why I have to explicitly disable this USE flag although I never enabled it in /etc/portage/make.conf? Shouldn't this be mentioned in http://wiki.gentoo.org/wiki/Mingw?