Bug 250202 - devel/google-perftools: Build error on CURRENT
Summary: devel/google-perftools: Build error on CURRENT
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-08 13:58 UTC by Jochen Neumeister
Modified: 2020-11-03 19:41 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jochen Neumeister freebsd_committer 2020-10-08 13:58:03 UTC
libtool: link: ( cd ".libs" && rm -f "libtcmalloc_minimal.la" && ln -s "../libtcmalloc_minimal.la" "libtcmalloc_minimal.la" )
/bin/sh ./libtool  --tag=CXX   --mode=link c++ -std=gnu++11 -D_THREAD_SAFE -pthread -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare  -Wno-unused-result -fsized-deallocation -faligned-new   -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -fno-builtin  -D_THREAD_SAFE -pthread  -static -fstack-protector-strong  -o malloc_bench benchmark/malloc_bench-malloc_bench.o librun_benchmark.la libtcmalloc_minimal.la -lpthread -lexecinfo
libtool: link: c++ -std=gnu++11 -D_THREAD_SAFE -pthread -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -Wno-unused-result -fsized-deallocation -faligned-new -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fno-builtin -D_THREAD_SAFE -pthread -fstack-protector-strong -o malloc_bench benchmark/malloc_bench-malloc_bench.o  ./.libs/librun_benchmark.a ./.libs/libtcmalloc_minimal.a -lpthread -lexecinfo -pthread
ld: error: undefined symbol: std::__1::__rs_get()
>>> referenced by malloc_bench.cc
>>>               benchmark/malloc_bench-malloc_bench.o:(randomize_size_classes())
>>> referenced by malloc_bench.cc
>>>               benchmark/malloc_bench-malloc_bench.o:(void std::__1::random_shuffle<void**>(void**, void**))

ld: error: undefined symbol: std::__1::__rs_default::~__rs_default()
>>> referenced by malloc_bench.cc
>>>               benchmark/malloc_bench-malloc_bench.o:(randomize_size_classes())
>>> referenced by malloc_bench.cc
>>>               benchmark/malloc_bench-malloc_bench.o:(randomize_size_classes())
>>> referenced by malloc_bench.cc
>>>               benchmark/malloc_bench-malloc_bench.o:(void std::__1::random_shuffle<void**>(void**, void**))
>>> referenced 1 more times

ld: error: undefined symbol: std::__1::__rs_default::operator()()
>>> referenced by malloc_bench.cc
>>>               benchmark/malloc_bench-malloc_bench.o:(long std::__1::uniform_int_distribution<long>::operator()<std::__1::__rs_default>(std::__1::__rs_default&, std::__1::uniform_int_distribution<long>::param_type const&))
>>> referenced by malloc_bench.cc
>>>               benchmark/malloc_bench-malloc_bench.o:(long std::__1::uniform_int_distribution<long>::operator()<std::__1::__rs_default>(std::__1::__rs_default&, std::__1::uniform_int_distribution<long>::param_type const&))
>>> referenced by malloc_bench.cc
>>>               benchmark/malloc_bench-malloc_bench.o:(long std::__1::uniform_int_distribution<long>::operator()<std::__1::__rs_default>(std::__1::__rs_default&, std::__1::uniform_int_distribution<long>::param_type const&))
>>> referenced 1 more times
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [Makefile:4055: malloc_bench] Error 1
gmake[1]: Leaving directory '/wrkdirs/usr/ports/devel/google-perftools/work/gperftools-2.8'
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/google-perftools


http://joneumbox.org/data/13amd64-ports/2020-10-08_09h13m38s/logs/errors/google-perftools-2.8.log
Comment 1 Yuri Victorovich freebsd_committer 2020-10-08 16:18:52 UTC
Hi Jochen,

devel/google-perftools succeeds on 13-CURRENT: http://beefy18.nyi.freebsd.org/data/head-amd64-default/p551553_s366467/logs/google-perftools-2.8.log

Also I didn't get any fallout e-mails recently.

Your jail has OSVERSION=1300110 and the one in the link above has OSVERSION=1300119.

Can you update your poudriere jail and try again?
Otherwise, this looks like STL failure.


Yuri
Comment 2 Jochen Neumeister freebsd_committer 2020-11-03 19:41:27 UTC
Fixed with an src update.