cannot build cheerp-llvm from source (git clone 16-JUL-2015)

Bug #1475397 reported by Steven G. Messervey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cheerp
Invalid
Undecided
Unassigned

Bug Description

Cloned today, with cheerp-clang cloned into tools/clang
CMake per instrctions.

/usr/local/src/cheerp/cheerp-llvm/lib/CheerpUtils/Registerize.cpp: In member function ‘uint32_t cheerp::Registerize::dfsLiveRangeInBlock(cheerp::Registerize::BlocksState&, cheerp::Registerize::LiveRangesTy&, const InstIdMapTy&, llvm::BasicBlock&, cheerp::PointerAnalyzer&, uint32_t, uint32_t)’:
/usr/local/src/cheerp/cheerp-llvm/lib/CheerpUtils/Registerize.cpp:291:43: error: ‘cheerp::Registerize::LiveRangesTy’ has no member named ‘emplace’

Some quick, blind searches can't find a method emplace, googling finds an emplace method in llvm::Optional

Revision history for this message
Alessandro Pignotti (a-pignotti) wrote :

std::map::emplace is a standard library method

http://en.cppreference.com/w/cpp/container/map/emplace

Make sure you are building cheerp using a modern compiler. Recent versions of gcc, clang and msvc should work.

Changed in cheerp:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.