New issue
Advanced search Search tips

Issue 703730 link

Starred by 1 user

Issue metadata

Status: Archived
Owner: ----
Closed: Jan 10
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

libcxxrt cannot be built with clang.

Project Member Reported by yunlian@chromium.org, Mar 21 2017

Issue description

emerge-arm-generic libcxxrt

__NTH (memset (void *const __clang_pass_object_size0 __dest, int __ch,
       ^
libelftc_dem_gnu3.c:3632:3: warning: 'memcpy' is deprecated: called with bigger length than the destination buffer [-Wdeprecated-declarations]
                memcpy(&f, buf, FLOAT_EXTENED_BYTES);
                ^
../../../../../../../usr/include/bits/string3.h:64:8: note: 'memcpy' has been explicitly marked deprecated here
__NTH (memcpy (void *__restrict const __clang_pass_object_size0 __dest,
       ^
5 warnings generated.
armv7a-cros-linux-gnueabi-clang++ -fPIC -nodefaultlibs -O2 -O2 -O2 -pipe -march=armv7-a -mtune=cortex-a15 -mfpu=neon -mfloat-abi=hard -g       -clang-syntax -Wl,-O1 -Wl,-O2 -Wl,--as-needed -Wl,-z,defs -shared -Wl,-soname,libcxxrt.so.1 -o libcxxrt.so.1 dynamic_cast.So exception.So guard.So stdexcept.So typeinfo.So memory.So auxhelper.So libelftc_dem_gnu3.So -ldl -lgcc_s -lc
/usr/x86_64-pc-linux-gnu/armv7a-cros-linux-gnueabi/binutils-bin/2.25.51/ld.gold.real: internal error in thumb_branch_common, at /var/tmp/portage/cross-armv7a-cros-linux-gnueabi/binutils-2.25.51-r63/work/binutils-2.25.51/binutils-2.25/gold/arm.cc:4161
clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:20: libcxxrt.so.1] Error 1

 
Project Member

Comment 1 by bugdroid1@chromium.org, Mar 23 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/71163b7421f043db4f2cff14873ccfdef576bb48

commit 71163b7421f043db4f2cff14873ccfdef576bb48
Author: Yunlian Jiang <yunlian@google.com>
Date: Thu Mar 23 20:47:21 2017

libcxxrt: use gcc to build.

libcxxrt cannot be built with llvm, so we need to
build it with gcc for now.

BUG= chromium:703730 
TEST=emerge-arm-generic libcxxrt passes.

Change-Id: Ief3c49ccb0e998d243e008bc03f8ef5e40646605
Reviewed-on: https://chromium-review.googlesource.com/457843
Commit-Ready: Yunlian Jiang <yunlian@chromium.org>
Tested-by: Yunlian Jiang <yunlian@chromium.org>
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>

[modify] https://crrev.com/71163b7421f043db4f2cff14873ccfdef576bb48/chromeos/config/env/sys-libs/libcxxrt

Status: Archived (was: Untriaged)
Archiving P3s older than 1 year with no owner or component.

Sign in to add a comment