[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#805422: ARM64 (AARCH64): Compiler accepts -fsanitize=undefined, without warning, but fails to link with "/usr/bin/ld: cannot find -lubsan"



Package: g++
Version: 4:4.9.2-2
Severity: normal

A compiler warning would be nice if the linker does not accept the
option. Otherwise, the compiler should not advertise it accepts the
option. Accepting it without warning has wasted hours of build time in
this emulated environment. (-fsanitize=address produces a warning, and
we skip the configuration during testing).

...
g++ -DDEBUG -g2 -O1 -std=c++03  -pipe -fsanitize=undefined -c fipsalgt.cpp
g++ -DDEBUG -g2 -O1 -std=c++03  -pipe -fsanitize=undefined -c dlltest.cpp
g++ -o cryptest.exe -DDEBUG -g2 -O1 -std=c++03  -pipe
-fsanitize=undefined bench.o bench2.o test.o validat1.o validat2.o
validat3.o adhoc.o datatest.o regtest.o fipsalgt.o dlltest.o
./libcryptopp.a -pthread
/usr/bin/ld: cannot find -lubsan
collect2: error: ld returned 1 exit status
GNUmakefile:367: recipe for target 'cryptest.exe' failed

**********

# uname -a
Linux core2 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u5
(2015-10-09) aarch64 GNU/Linux

debian-arm64:/# g++ --version
g++ (Debian/Linaro 4.9.2-10) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

**********

# apt-cache show g++
Package: g++
Source: gcc-defaults (1.136)
Version: 4:4.9.2-2
Installed-Size: 34
Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Architecture: arm64
Provides: c++-compiler
Depends: cpp (>= 4:4.9.2-2), gcc (>= 4:4.9.2-2), g++-4.9 (>=
4.6.4-1~), gcc-4.9 (>= 4.6.4-1~)
Description-en: GNU C++ compiler
 This is the GNU C++ compiler, a fairly portable optimizing compiler for C++.
 .
 This is a dependency package providing the default GNU C++ compiler.
Description-md5: 4d44b18774ae5123b7c3f70d940cf655
Build-Essential: yes
Tag: devel::compiler, devel::lang:c++, implemented-in::c,
 interface::commandline, role::dummy, role::metapackage, suite::gnu,
 works-with::software:source
Section: devel
Priority: optional
Filename: pool/main/g/gcc-defaults/g++_4.9.2-2_arm64.deb
Size: 1518
MD5sum: 6f12e1b386fb7056857365db6d8829d6
SHA1: e7e9581bdc59d2254e9a3636e0f7605da48d4270
SHA256: 28ec989b9e4e47ad25588fd2082ff5767767bb49ee37a30d184dd4a9bfa06a89


Reply to: