New issue
Advanced search Search tips

Issue 707983 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Apr 2017
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug

Blocking:
issue 707958



Sign in to add a comment

chromeos-base/chromeos-installer build fails with llvm-next

Project Member Reported by rahulchaudhry@chromium.org, Apr 3 2017

Issue description

chromeos-base/chromeos-installer fails to build with llvm-next.

The build fails with a few "error: format string is not a string literal [-Werror,-Wformat-nonliteral]" messages.

For example, see this build log from the llvm-next toolchain-buildbot for amd64: https://uberchromegw.corp.google.com/i/chromeos/builders/amd64-llvm-next-toolchain/builds/213/steps/BuildPackages%20%5Bafdo_use%5D/logs/stdio

Similar failures are present on arm and arm64 toolchain buildbots as well.

 
Blocking: 707958
Labels: -Pri-2 Pri-1
Owner: aaboagye@chromium.org
https://chromium-review.googlesource.com/465420 is causing this. Assign to the CL author aaboagye@.
This is blocking llvm-next rebase.
Status: Started (was: Untriaged)
CL here: https://chromium-review.googlesource.com/467046
Project Member

Comment 3 by bugdroid1@chromium.org, Apr 4 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform2/+/b2d9fd1b7fcd386ab518b4aa60668195a9f808c1

commit b2d9fd1b7fcd386ab518b4aa60668195a9f808c1
Author: Aseda Aboagye <aaboagye@google.com>
Date: Tue Apr 04 21:08:15 2017

installer: Add format attribute to VbExError().

Apparently LLVM requires a format attribute for printf style functions.
This commit adds that attribute.

BUG= chromium:707983 ,chromium:695151
BRANCH=None
TEST=`USE="llvm-next" sudo emerge llvm clang; emerge-elm
chromeos-installer`

Change-Id: I18e905a65861961a891443fcae2dea50a03875e4
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Reviewed-on: https://chromium-review.googlesource.com/467046
Commit-Ready: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>

[modify] https://crrev.com/b2d9fd1b7fcd386ab518b4aa60668195a9f808c1/installer/inst_util.cc

Status: Verified (was: Started)
Verified locally when uploading CL.
Thanks for the quick fix.

Sign in to add a comment