New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 656818 link

Starred by 2 users

Issue metadata

Status: Verified
Owner:
Last visit > 30 days ago
Closed: Oct 2016
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

serf: cannot set cros compiler to build it.

Project Member Reported by yunlian@chromium.org, Oct 17 2016

Issue description

This 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.


 
Owner: yunlian@chromium.org

Comment 2 by vapier@chromium.org, 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.
Project Member

Comment 3 by bugdroid1@chromium.org, 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

Status: Fixed (was: Untriaged)

Comment 5 by dchan@google.com, Jan 21 2017

Labels: VerifyIn-57

Comment 6 by dchan@google.com, Mar 4 2017

Labels: VerifyIn-58
Status: Verified (was: Fixed)

Sign in to add a comment