Assembler errors in interlocked.c 0.9.61/1.1.12

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Fallenblood
Newbie
Newbie
Posts: 2
Joined: Thu Jun 12, 2008 11:19 pm

Assembler errors in interlocked.c 0.9.61/1.1.12

Post by Fallenblood »

Hi. I've decided to do a regression test in order to find out what's wrong with Dreamfall (see AppDB), and that involves comparing releases 0.9.61 and 1.1.12 (reports have been "garbage" ever since 1.0.0, but with errors different from mine). However, when building for the first time, this error occurs:

Code: Select all

ccache gcc -c -I. -I. -I../../include -I../../include  -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wtype-limits -Wpointer-arith  -g -O2 -D__i386__  -o interlocked.o interlocked.c
{standard input}: Assembler messages:
{standard input}:38: Error: suffix or operands invalid for `push'
{standard input}:39: Error: suffix or operands invalid for `push'
{standard input}:46: Error: suffix or operands invalid for `pop'
{standard input}:47: Error: suffix or operands invalid for `pop'
make[2]: *** [interlocked.o] Error 1
make[2]: Leaving directory `/home/egasimus/wine-regression-testing/wine-git/libs/port'
make[1]: *** [port] Error 2
make[1]: Leaving directory `/home/egasimus/wine-regression-testing/wine-git/libs'
make: *** [libs] Error 2
Said lines contain some obscure assembler instructions. Can anyone help me fix this so I can continue with my regression testing?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Assembler errors in interlocked.c 0.9.61/1.1.12

Post by vitamin »

Fallenblood wrote:Said lines contain some obscure assembler instructions. Can anyone help me fix this so I can continue with my regression testing?
If you on x86_64 make sure to add ' -m32' to the CC:

Code: Select all

CC='ccache gcc -m32' ./configure ...
James McKenzie

Assembler errors in interlocked.c 0.9.61/1.1.12

Post by James McKenzie »

Fallenblood wrote:
I am using that. The exact line I run is:

Code:
CC="ccache gcc" CFLAGS="-g -O0" ./configure --verbose && make depend && make


but it happens without CFLAGS all the same.

What version of Linux are you using and what type of CPU does your
computer have? If it is a 64 bit processor, you WILL have to use the
-m32 flag or Wine will not compile properly. Yes, we are working on
making Wine build properly for future versions.

James McKenzie
Locked