serf: cannot set cros compiler to build it. |
|||||
Issue descriptionThis is blocking us from using gcc for guado-moblab. CC=x86_64-cros-linux-gnu-gcc CXX=x86_64-cros-linux-gnu-g++ emerge-guado_moblab serf configure: WARNING: openssl/opensslv.h: section "Present But Cannot Be Compiled" configure: WARNING: openssl/opensslv.h: proceeding with the compiler's result checking for openssl/opensslv.h... no configure: error: We require OpenSSL; try --with-openssl This is because in the configure Configuring Apache Portable Runtime library... checking for APR... yes setting CPP to "x86_64-pc-linux-gnu-gcc -E" setting APR_LIBTOOL to "/build/guado_moblab/usr/share/build-1/libtool" adding "-pthread" to CFLAGS setting CPPFLAGS to " -DLINUX -D_REENTRANT -D_GNU_SOURCE" setting LTFLAGS to "--silent" This is checking host compiler, since we set CC here, it uses the cros compiler instead of host compiler.
,
Oct 18 2016
sounds like the cross-compile logic of serf is messed up. but that's not really a surprise given other problems we've seen with it in the past, and the interaction with apache tools.
,
Oct 19 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/0f0e7732e08c99d4af1dac864ffd84b24e3a09c0 commit 0f0e7732e08c99d4af1dac864ffd84b24e3a09c0 Author: Yunlian Jiang <yunlian@google.com> Date: Tue Oct 18 15:40:58 2016 profiles: unset CC and CXX for serf. This unsets CC and CXX for serf. Otherwise, it will use target compiler as host compiler and causes configure error. BUG= chromium:656818 TEST=CC=x86_64-cros-linux-gnu-gcc CXX=x86_64-cros-linux-gnu-g++ emerge-guado_moblab serf Change-Id: I3c57f03d82fb0daefad6ec516fd9767c5ec82d5b Reviewed-on: https://chromium-review.googlesource.com/400027 Commit-Ready: Luis Lozano <llozano@chromium.org> Tested-by: Luis Lozano <llozano@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org> [modify] https://crrev.com/0f0e7732e08c99d4af1dac864ffd84b24e3a09c0/chromeos/config/env/net-libs/serf
,
Oct 19 2016
,
Jan 21 2017
,
Mar 4 2017
,
Mar 17 2017
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by yunlian@chromium.org
, Oct 17 2016