ltib
[Top][All Lists]
Advanced

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

Re: [Ltib] Building python extensions


From: Philippe Normand
Subject: Re: [Ltib] Building python extensions
Date: Wed, 02 Apr 2008 16:27:23 +0200

Le mercredi 02 avril 2008 à 15:10 +0100, Stuart Hughes a écrit :
> Hi Philippe,
> 
> That option to gcc looks bogus.  Can you check what your CFLAGS are set
> to in LTIB, you can do this by:
> 
> $  grep TOOLCHAIN_CFLAGS config/platform/imx31ads/.config
> 

CONFIG_TOOLCHAIN_CFLAGS="-O2 -fsigned-char -msoft-float"

> Another thing you can do is to get the spoofer to display the exact gcc
> line that gets passed to the cross compiler.  To do this, before running
> ltib:
> 
> $ export FS_DEBUG=1
> 

Thanks for the tip, I now see the failing command :)

building '_weakref' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -fno-strict-aliasing
-I.
-I/home/phil/mx31/ltib-imx31ads-20071008/rpm/BUILD/Python-2.4.4/./Include 
-I/home/phil/mx31/ltib-imx31ads-20071008/rpm/BUILD/Python-2.4.4/Include 
-I/home/phil/mx31/ltib-imx31ads-20071008/rpm/BUILD/Python-2.4.4 -c 
/home/phil/mx31/ltib-imx31ads-20071008/rpm/BUILD/Python-2.4.4/Modules/_weakref.c
 -o build/temp.linux-i686-2.4/_weakref.o
arm-none-linux-gnueabi-as --traditional-format -Qy -o
build/temp.linux-i686-2.4/_weakref.o /tmp/ccFwIsXg.s
arm-none-linux-gnueabi-as: unrecognized option `-Qy'



> Regards, Stuart
> 
> On Wed, 2008-04-02 at 13:16 +0200, Philippe Normand wrote:
> > Hi,
> > 
> > I'm trying to build Python 2.4 but I get some strange things:
> > 
> > gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -fno-strict-aliasing
> > -I.
> > -I/home/phil/mx31/ltib-imx31ads-20071008/rpm/BUILD/Python-2.4.4/./Include 
> > -I/home/phil/mx31/ltib-imx31ads-20071008/rpm/BUILD/Python-2.4.4/Include 
> > -I/home/phil/mx31/ltib-imx31ads-20071008/rpm/BUILD/Python-2.4.4 -c 
> > /home/phil/mx31/ltib-imx31ads-20071008/rpm/BUILD/Python-2.4.4/Modules/timingmodule.c
> >  -o build/temp.linux-i686-2.4/timingmodule.o
> > arm-none-linux-gnueabi-as: unrecognized option `-Qy'
> > 
> > I see no -Qy option in the commandline above. Moreover when I start a
> > shell (with ltib -m shell) and try the command, it succeeds. But when I
> > try ./hostpython setup.py build, it produces messages like the one
> > pasted above.
> > 
> > Any idea? I searched for the place where that Qy option is used by gcc
> > but haven't found it so far... :/
> > 
> > Philippe
> > 
> > 
> > 
> > _______________________________________________
> > LTIB home page: http://bitshrine.org
> > 
> > Ltib mailing list
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/ltib





reply via email to

[Prev in Thread] Current Thread [Next in Thread]