Ticket #292 (reopened enhancement)

Opened 2 years ago

Last modified 23 months ago

patch to emerge python-2.6.4 with right pkg-config (now -r1)

Reported by: acevery Owned by:
Priority: blocker Milestone: milestone5
Component: target Keywords:
Cc:

Description

python-2.6.4 from openmoko overlay failed in cross-compile with LIBFFI='"/usr/lib/libffi-3.0.9/include/"

below patch use the correct pkg-config to fetch the correct LIBFFI in configure.in

Attachments

python-2.6.4.ebuild.patch (0.5 kB) - added by acevery 2 years ago.
patch to python-2.6.4.ebuild in openmoko overlay
python-2.6.4-cross-pkg-config.patch (0.5 kB) - added by acevery 2 years ago.
improved patch

Change History

Changed 2 years ago by acevery

patch to python-2.6.4.ebuild in openmoko overlay

Changed 2 years ago by sleipnir

  • milestone changed from unsorted to milestone5

Thanks for the patch. However, one question remains: If libffi was compiled with custom CFLAGS the variable "FFI_CFLAGS" might contain strings other than "-I<something>".

In other words, your approach would fail if FFI_CFLAGS contains e.g. -O3 or something. So could you please fix this case!?

Changed 2 years ago by acevery

improved patch

Changed 2 years ago by acevery

I updated the pkg-config patch to use ${PKG_CONFIG} to get the only interested part :)

Changed 2 years ago by sleipnir

  • status changed from new to closed
  • resolution set to fixed

Applied in revision 752. Thanks for your patch!

Changed 2 years ago by acevery

My pleasure :)

Changed 23 months ago by ikrabbe

  • status changed from closed to reopened
  • resolution fixed deleted
  • summary changed from patch to emerge python-2.6.4 with right pkg-config to patch to emerge python-2.6.4 with right pkg-config (now -r1)

I reopened this ticket as I watched a strange build.log in the cross part of the python build. Though the final error is still libffi it looks just wrong what happens before:

armv4tl-softfloat-linux-gnueabi-gcc -shared -L. -DNDEBUG -Os -pipe -march=armv4t -mtune=arm920t -fomit-frame-pointer -fwrapv -I. -IInclude -I./Include build/temp.linux-x86_64-2.6/usr/armv4tl-softfloat-linux-gnueabi/tmp/portage/dev-lang/python-2.6.4-r1/work/Python-2.6.4/Modules/_struct.o -L/usr/lib -L/usr/local/lib -L. -lpython2.6 -o build/lib.linux-x86_64-2.6/_struct.so
/usr/libexec/gcc/armv4tl-softfloat-linux-gnueabi/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/lib/libc.a: could not read symbols: File format not recognized

... and more of these

-L/usr/lib -L/usr/local/lib this looks as a configuration error.

anyway I will try to care about python-2.6.4-r1 later.

Note: See TracTickets for help on using tickets.