<div dir="ltr"><div><div><div>Hello Paul,<br><br></div>after looking at the config.log that I sent you I realized that all "unsafe for cross-compilation" message occur because the recipe tries to link against my local installation of postgresql-server-dev-9.3 and libpq-dev lying in /usr/lib. Consider the following line:<br><br>"skipping incompatible /usr/lib/libpq.so when searching for -lpq"<br><br></div>The recipe is doing right to skip the library, because I am using Ubuntu 64bit. Therefore my local installations of postgresql-server-dev-9.3 and libpq-dev are 64 bit versions. So yesterday evening/night I did the following:<br><br></div><div>- I installed a virtual machine Ubuntu 32 bit<br></div><div>- I downloaded the latest linux sources (edison-src-ww18-15-1.tgz)<br></div><div>- I added the meta-openembbed layer (daisy branch)<br></div><div>- I removed the php recipe from the daisy branch and replaced it by the latest from the master branch<br>- I added PACKAGECONFIG_pn-php = "mysql sqlite3 pgsql" in local.conf</div><div>- I added my own layer<br></div><div>- I built the image<br><br></div><div>Result: Everything builds fine from scratch beside the php recipe. I appended the latest config.log. As you can see some dependencies are missing resulting in linker errors and I still get the "unsafe for cross-compilation" error.<br></div><div><br></div><div>Is the approach of the recipe correct (linking against local packages?). What is your system configuration? Do you have any ideas or do you know a person who might help?<br><br></div><div>best regards <br><br></div><div>Philipp<br></div><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-22 18:49 GMT+02:00 Paul Eggleton <span dir="ltr"><<a href="mailto:paul.eggleton@linux.intel.com" target="_blank">paul.eggleton@linux.intel.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Friday 22 May 2015 16:40:15 yocto yocto wrote:<br>
> Hello Paul,<br>
><br>
> "build" does not exist. I attached the config.log from the following folder:<br>
><br>
> /development/edison-src/build/tmp/work/core2-32-poky-linux/php/5.5.24-r0/php<br>
> -5.5.24<br>
<br>
</span>Ah right, of course, in daisy we didn't use a separate build dir, I had<br>
forgotten.<br>
<span class=""><br>
> When you search for "unsafe" or "postgresql" you will see warnings and<br>
> errors. E.g. the following:<br>
><br>
> /home/kse/development/edison-src/build/tmp/sysroots/x86_64-linux/usr/libexec<br>
> /core2-32-poky-linux/gcc/i586-poky-linux/4.8.2/ld: warning: library search<br>
> path "/usr/lib" is unsafe for cross-compilation<br>
><br>
> According to<br>
> <a href="http://comments.gmane.org/gmane.linux.embedded.yocto.general/4859" target="_blank">http://comments.gmane.org/gmane.linux.embedded.yocto.general/4859</a> this<br>
> seems to generate the " autoconf log indicates errors" message. But I dont<br>
> know how to proceed?<br>
<br>
</span>Hmm, so this is very strange - I just switched to the daisy branch, copied in<br>
the php recipe from meta-oe master, set the config (in my case I simply set the<br>
PACKAGECONFIG_pn-php = "mysql sqlite3 pgsql" in local.conf, which should be<br>
pretty much equivalent to what you did), and built it, and I didn't get any<br>
errors at all. It's possible the issue may be triggered by something you have<br>
installed on your build host however (not that it should, it shouldn't be<br>
looking at the host at all - that's the source of this problem). Did you copy<br>
in any other recipes from master or just php?<br>
<br>
Cheers,<br>
<div class="HOEnZb"><div class="h5">Paul<br>
<br>
--<br>
<br>
Paul Eggleton<br>
Intel Open Source Technology Centre<br>
</div></div></blockquote></div><br></div>