mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] glib can't find libffi for target platform
@ 2016-05-26 14:12 desmond
  2016-05-31  5:45 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: desmond @ 2016-05-26 14:12 UTC (permalink / raw)
  To: ptxdist

Hello, 

I have been using ptxdist2013.12.0 for sometime now with ubuntu15.04 without 
any problems. 

I recently upgraded to Ubuntu16 and I am running into a problem when the 
build system tries to build glib for the target platform. It can't seem to 
find libffi.

This is under the .prepare step for the target build. libffi was successfully 
built for the target already.

--------------------
target: glib.prepare
--------------------

checking for LIBFFI... no
configure: error: in `home/Toolchain/TQMa28/TQ-ARM-BSP-REV.0109/platform-
tqma28/build-target/glib-2.36.4':
configure: error: The pkg-config script could not be found or is too old.  
Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables LIBFFI_CFLAGS
and LIBFFI_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

I had downgraded gawk to 4.1.1 because I was getting a ton of warning. I also 
tried export LIBFFI_CFLAGS and LIBFFI_LIBS, but I think ptxdist discard the 
environment variables that I set.

I can provide more of the log if needed.

Any help will be much appreciated. 

Thanks


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] glib can't find libffi for target platform
  2016-05-26 14:12 [ptxdist] glib can't find libffi for target platform desmond
@ 2016-05-31  5:45 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2016-05-31  5:45 UTC (permalink / raw)
  To: ptxdist

Hi,

On Thu, May 26, 2016 at 02:12:45PM +0000, desmond wrote:
> I have been using ptxdist2013.12.0 for sometime now with ubuntu15.04 without 
> any problems. 
> 
> I recently upgraded to Ubuntu16 and I am running into a problem when the 
> build system tries to build glib for the target platform. It can't seem to 
> find libffi.
> 
> This is under the .prepare step for the target build. libffi was successfully 
> built for the target already.
> 
> --------------------
> target: glib.prepare
> --------------------
> 
> checking for LIBFFI... no
> configure: error: in `home/Toolchain/TQMa28/TQ-ARM-BSP-REV.0109/platform-
> tqma28/build-target/glib-2.36.4':
> configure: error: The pkg-config script could not be found or is too old.  
> Make sure it
> is in your PATH or set the PKG_CONFIG environment variable to the full
> path to pkg-config.
> 
> Alternatively, you may set the environment variables LIBFFI_CFLAGS
> and LIBFFI_LIBS to avoid the need to call pkg-config.
> See the pkg-config man page for more details.
> 
> I had downgraded gawk to 4.1.1 because I was getting a ton of warning. I also 
> tried export LIBFFI_CFLAGS and LIBFFI_LIBS, but I think ptxdist discard the 
> environment variables that I set.
> 
> I can provide more of the log if needed.
> 
> Any help will be much appreciated. 

If I remember correctly, that is because your bash is no longer vulnerable
to Shellshock :-/. The fixes for that disabled a 'feature' that ptxdist
relied on. The details are in the commit message for the fix
974f2aa064fc302be9cd5250a761d16b3993ceb0 ("pkg-config-wrapper: don't use
check_pipe_status").

To fix this in a BSP you need to copy scripts/pkg-config-wrapper and
rules/cross-pkg-config-wrapper.make from a later ptxdist version that
contains this fix into your BSP and then modify the paths in
cross-pkg-config-wrapper.make to install your new version of
pkg-config-wrapper.

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2016-05-31  5:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-26 14:12 [ptxdist] glib can't find libffi for target platform desmond
2016-05-31  5:45 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox