Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 612656 - dev-libs/libFuzzer-3.9.1: build fails on x86: FuzzerLoop.cpp:369:72: error: no matching function for call to ‘max(long unsigned int, size_t)’
Summary: dev-libs/libFuzzer-3.9.1: build fails on x86: FuzzerLoop.cpp:369:72: error: n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-14 21:16 UTC by Toralf Förster
Modified: 2017-03-14 23:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,5.96 KB, text/plain)
2017-03-14 21:16 UTC, Toralf Förster
Details
dev-libs:libFuzzer-3.9.1:20170314-114300.log (dev-libs:libFuzzer-3.9.1:20170314-114300.log,16.62 KB, text/plain)
2017-03-14 21:16 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,506.95 KB, text/plain)
2017-03-14 21:16 UTC, Toralf Förster
Details
environment (environment,137.08 KB, text/plain)
2017-03-14 21:17 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,33.66 KB, application/x-bzip)
2017-03-14 21:17 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-03-14 21:16:37 UTC
/usr/bin/x86_64-pc-linux-gnu-g++ -m32    -DNDEBUG -O2 -pipe -march=native -std=c++11   -o CMakeFiles/LLVMFuzzerNoMainObjects.dir/FuzzerLoop.o -c /var/tmp/portage/dev-libs/libFuzzer-3.9.1/work/llvm-3.9.1.src/lib/Fuzzer/FuzzerLoop.cpp
/var/tmp/portage/dev-libs/libFuzzer-3.9.1/work/llvm-3.9.1.src/lib/Fuzzer/FuzzerLoop.cpp: In member function ‘void fuzzer::Fuzzer::TruncateUnits(std::vector<std::vector<unsigned char> >*)’:
/var/tmp/portage/dev-libs/libFuzzer-3.9.1/work/llvm-3.9.1.src/lib/Fuzzer/FuzzerLoop.cpp:369:72: error: no matching function for call to ‘max(long unsigned int, size_t)’
   size_t TruncatePoints = std::max(1ul, TruncateMaxRuns / Corpus.size());
                                                                        ^
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/algorithm:61:0,

  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named desktop-abi32+64_20170228-084815) at a hardened host acting as a tinderbox.

  -----------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-5.4.0 *
llvm-config:
3.9.1
Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.6 (fallback)
  [3]   python2.7 (fallback)
  [4]   pypy (fallback)
  [5]   jython2.7 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
1)	IcedTea JDK 7.2.6.9 [icedtea-7]
*)	IcedTea JDK 7.2.6.9 [icedtea-bin-7]
3)	IcedTea JDK 3.3.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-7 
  [2]   icedtea-bin-7  system-vm
  [3]   icedtea-bin-8
Comment 1 Toralf Förster gentoo-dev 2017-03-14 21:16:44 UTC
Created attachment 467058 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-03-14 21:16:50 UTC
Created attachment 467060 [details]
dev-libs:libFuzzer-3.9.1:20170314-114300.log
Comment 3 Toralf Förster gentoo-dev 2017-03-14 21:16:55 UTC
Created attachment 467062 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-03-14 21:17:00 UTC
Created attachment 467064 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-03-14 21:17:06 UTC
Created attachment 467066 [details]
etc.portage.tbz2
Comment 6 SpanKY gentoo-dev 2017-03-14 23:01:47 UTC
libFuzzer is only an unstable package, so can't really block stabilization

this failure is when building for a 32-bit target.  upstream has rewritten this particular bit of code entirely, so we can hack it locally until the next release.

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20247e5bb4a1d133a17eac3f57ac56defe3f656c