[maemo-community] Unrecognized Option in ARM Build on Fremantle

From: Ed Bartosh bartosh at gmail.com
Date: Mon Apr 27 23:09:06 EEST 2009
Hi Ken,

Sorry for the delay. I wasn't able to read my mail last days.

2009/4/23 Kenneth Loafman <kenneth at loafman.com>:
> I'm getting an unrecognized option in the ARM build for Fremantle and the
> build fails, of course.  I don't specify this anywhere, so where is it
> coming from and how do I nuke it?
The reason of this error is that scratchbox is using it's own python
by default. As far as I remember it's python 2.3. The problem is that
scratchbox python has bugs when building extensions as you can see.
And it's not only one problem with it, believe me :)

The solution is to use python2.5 from extras repository. To do that
you should replace python to python2.5 in debian/rules of your

--- rules.orig  2009-04-27 23:05:57.000000000 +0300
+++ rules       2009-04-27 23:04:19.000000000 +0300
@@ -19,6 +19,8 @@
 # we use dpatch
 include /usr/share/dpatch/dpatch.make

 configure: configure-stamp
@@ -32,7 +34,7 @@

 # Add here commands to compile the package.
-       python setup.py build
+       $(PYTHON) setup.py build
        touch build-stamp

@@ -54,7 +56,7 @@

 # Add here commands to install the package into debian/duplicity.
-       python setup.py install --prefix=$(PREFIX) --no-compile
--install-layout=deb || python setup.py install --prefix=$(PREFIX)
+       $(PYTHON) setup.py install --prefix=$(PREFIX) --no-compile
--install-layout=deb || $(PYTHON) setup.py install --prefix=$(PREFIX)

 # remove docs as we create them with debhelper
        rm -rf $(PREFIX)/share/doc/duplicity-*

It should do the trick for you.


> ...Thanks,
> ...Ken
> running build_ext
> building 'duplicity._librsync' extension
> creating build/temp.linux-arm-2.3
> /scratchbox/compilers/host-gcc/bin/gcc
> -specs=/scratchbox/compilers/host-gcc/host-gcc.specs -pthread
> -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
> -I/scratchbox/tools/include/python2.3 -c _librsyncmodule.c -o
> build/temp.linux-arm-2.3/_librsyncmodule.o
> /scratchbox/compilers/cs2007q3-glibc2.5-arm7/bin/sbox-arm-none-linux-gnueabi-as:
> unrecognized option `-Qy'
> error: command '/scratchbox/compilers/host-gcc/bin/gcc' failed with exit
> status 1
> make: *** [build-stamp] Error 1
> _______________________________________________
> maemo-community mailing list
> maemo-community at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-community


More information about the maemo-community mailing list