Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 585250 - app-emulation/wine: compile error due to wrong check for builtin_ms_va_list
Summary: app-emulation/wine: compile error due to wrong check for builtin_ms_va_list
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Wine Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-07 07:39 UTC by Uladzimir Bely
Modified: 2016-06-07 17:16 UTC (History)
1 user (show)

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 Uladzimir Bely 2016-06-07 07:39:24 UTC
It seems this (wine ChangeLog)

  06 Jun 2016; Austin English <wizardedit@gentoo.org>
  +files/builtin_ms_va_list.c, wine-1.8-r1.ebuild, wine-1.8.1-r1.ebuild,
  wine-1.8.2.ebuild, wine-1.9.4-r1.ebuild, wine-1.9.5-r1.ebuild,
  wine-1.9.6-r1.ebuild, wine-1.9.7-r1.ebuild, wine-1.9.8.ebuild,
  wine-1.9.9.ebuild, wine-1.9.10.ebuild, wine-1.9.11.ebuild, wine-9999.ebuild:
  check if CC supports builtin_ms_va_list when attempting 64-bit support

is wrong because (ebuild)

	if use abi_x86_64 && einfo "Checking for builtin_ms_va_list ..." && \
	( $(tc-getCC) -O2 "${FILESDIR}"/builtin_ms_va_list.c -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) ; then
		einfo "$(tc-getCC) supports builtin_ms_va_list, enabling 64-bit wine"
	else
		eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine"
		eerror
		eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine"
		eerror
		return 1
	fi

doesn't allow to build abi_x86_32 only wine at all:

>>> Running pre-merge checks for app-emulation/wine-1.9.11
 * This version of gcc does not support builtin_ms_va_list, can't enable 64-bit wine
 * 
 * You need gcc-4.4+ or clang 3.8+ to build 64-bit wine
 

Reproducible: Always

Steps to Reproduce:
1. Try to build wine with ABI_X86="32 -64 (-x32)"

Actual Results:  
Compilation error.

Expected Results:  
Build OK.
Comment 1 Andreas Sturmlechner gentoo-dev 2016-06-07 13:15:48 UTC
Hit the same bug, attempt to fix: https://github.com/gentoo/gentoo/pull/1624
Comment 2 Adam Feldman gentoo-dev 2016-06-07 17:16:40 UTC
(In reply to Andreas Sturmlechner from comment #1)
> Hit the same bug, attempt to fix: https://github.com/gentoo/gentoo/pull/1624

Resolved in 1ea1516c59b79a1cdcbdc475b133faf8f65cb776

Thanks for the PR.