[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v4 07/44] x86emul: also allow running the 32-bit harness on a 64-bit distro



>>> On 12.11.18 at 18:50, <andrew.cooper3@xxxxxxxxxx> wrote:
> On 25/09/18 14:29, Jan Beulich wrote:
>> In order to be able to verify the 32-bit variant builds and runs,
>> introduce a respective target (and the necessary other adjustments).
>>
>> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
> 
> I tried this, but got:
> 
> make: Entering directory '/local/xen.git/tools/tests/x86_emulator/32'
> gcc -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer 
> -fno-strict-aliasing -Wdeclaration-after-statement -m32 
> -I/local/xen.git/tools/tests/x86_emulator/32/../../../../tools/include -I.  
> -D__XEN_TOOLS__ -c -g -o x86-emulate.o ../x86-emulate.c
> gcc -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer 
> -fno-strict-aliasing -Wdeclaration-after-statement -m32 
> -I/local/xen.git/tools/tests/x86_emulator/32/../../../../tools/include -I.  
> -o test_x86_emulator x86-emulate.o ../test_x86_emulator.o ../evex-disp8.o 
> ../wrappers.o
> /usr/bin/ld: i386:x86-64 architecture of input file `../test_x86_emulator.o' 
> is incompatible with i386 output
> /usr/bin/ld: i386:x86-64 architecture of input file `../evex-disp8.o' is 
> incompatible with i386 output
> /usr/bin/ld: i386:x86-64 architecture of input file `../wrappers.o' is 
> incompatible with i386 output
> collect2: error: ld returned 1 exit status
> ../Makefile:153: recipe for target 'test_x86_emulator' failed

Hmm, nothing I can reproduce. I don't understand why it tries to use
../*.o instead of building 32-bit variants in the current directory.
Perhaps a make version difference in how VPATH gets handled? But
I know I've tried with different versions, which will make it rather
hard for me to diagnose the issue. Could you see whether replacing

VPATH += ..

by

vpath %.c ..

helps in your case?

>> --- a/tools/tests/x86_emulator/Makefile
>> +++ b/tools/tests/x86_emulator/Makefile
>> @@ -1,5 +1,7 @@
>>  
>> +ifeq ($(XEN_ROOT),)
>>  XEN_ROOT=$(CURDIR)/../../..
>> +endif
> 
> How about ?= ?

I can switch to that (provided I run into no issues).

Jan



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.