All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: cross compiling 32 bit Xen on an x86_64 system
@ 2005-03-21 23:00 Ian Pratt
  2005-03-21 23:42 ` Michal Ostrowski
  2005-03-22  9:18 ` Keir Fraser
  0 siblings, 2 replies; 9+ messages in thread
From: Ian Pratt @ 2005-03-21 23:00 UTC (permalink / raw)
  To: Jerone Young, Subrahmanian, Raj; +Cc: xen-devel, ian.pratt

> Here is the gcc line it comes up with:
> gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -m64 -
> D_GNU_SOURCE -fPIC -m32 -march=i686 -fPIC -
> I../../tools/python/xen/lowlevel/xu -I../../tools/libxc -
> I../../tools/libxutil -I../../tools/xcs -Ixen/lowlevel/xc -
> I/usr/include/python2.3 -c xen/lowlevel/xc/xc.c -o build/temp.linux-
> x86_64-2.3/xen/lowlevel/xc/xc.o -fno-strict-aliasing -Wall -Werror
> In file included from /usr/include/python2.3/Python.h:48,
>                  from xen/lowlevel/xc/xc.c:7:
> /usr/include/python2.3/pyport.h:554:2: #error "LONG_BIT definition
> appears wrong for platform (bad gcc/glibc config?).
> 
> You will notice both "-m64" & "-m32 -march=i686" ("-m32 & -march=i686"
> are the CFLAGS we are specifying). This is were the problem is. The
> first set of CFLAGS with "-m64" are assumed by python.
> 
> On a normal x86-64 compile you get: 
> gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -m64 -
> D_GNU_SOURCE -fPIC -m64 -fPIC -I../../tools/python/xen/lowlevel/xu -
> I../../tools/libxc -I../../tools/libxutil -I../../tools/xcs -
> Ixen/lowlevel/xc -I/usr/include/python2.3 -c xen/lowlevel/xc/xc.c -o
> build/temp.linux-x86_64-2.3/xen/lowlevel/xc/xc.o 
> -fno-strict-aliasing -
> Wall -Werror
> 
> So it's figuring out where python is getting these CFLAGS.

Interesting.

It seems to be coming from the following lines in
/usr/lib64/python2.3/config/Makefile
Not sure how to fix it...

# Compiler options
OPT=            -DNDEBUG -O2 -g -pipe -m64 -D_GNU_SOURCE -fPIC
BASECFLAGS=      -fno-strict-aliasing
CFLAGS=         $(BASECFLAGS) $(OPT)



Ian


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click

^ permalink raw reply	[flat|nested] 9+ messages in thread
* cross compiling 32 bit Xen on an x86_64 system
@ 2005-03-21 20:37 Subrahmanian, Raj
  2005-03-21 21:55 ` Jerone Young
  2005-03-22  9:07 ` Keir Fraser
  0 siblings, 2 replies; 9+ messages in thread
From: Subrahmanian, Raj @ 2005-03-21 20:37 UTC (permalink / raw)
  To: xen-devel

All,

I am trying to cross-compile 32 Xen on my x86_64 box.

I turned on XEN_TARGET_ARCH=x86_32

There are problems with incompatible header files while compiling the python subdirectory. 
Is anyone else running into similar problems? 

thanks
Raj


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-03-22 15:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-21 23:00 cross compiling 32 bit Xen on an x86_64 system Ian Pratt
2005-03-21 23:42 ` Michal Ostrowski
2005-03-22  0:12   ` Jacob Gorm Hansen
2005-03-22  1:57     ` Anthony Liguori
2005-03-22  9:18 ` Keir Fraser
  -- strict thread matches above, loose matches on Subject: below --
2005-03-21 20:37 Subrahmanian, Raj
2005-03-21 21:55 ` Jerone Young
2005-03-22  9:07 ` Keir Fraser
2005-03-22 15:44   ` Jerone Young

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.