NJ: Build errors for lirasm.cpp on solaris with sun studio.

RESOLVED FIXED

Status

Core Graveyard
Nanojit
RESOLVED FIXED
8 years ago
4 years ago

People

(Reporter: Leon Sha, Assigned: Leon Sha)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: fixed-in-nanojit, fixed-in-tracemonkey)

Attachments

(1 attachment)

(Assignee)

Description

8 years ago
"./lirasm/lirasm.cpp", line 384: Error: Multiple declaration for quad.
"./lirasm/lirasm.cpp", line 574: Error: Could not find a match for std::multimap<std::string, nanojit::LIns*, std::less<std::string>, std::allocator<std::pair<const std::string, nanojit::LIns*>>>::insert(std::pair<std::string, nanojit::LIns*>) needed in FragmentAssembler::assemble_jump(bool).
"./lirasm/lirasm.cpp", line 846: Error: Cannot use std::pair<__rwstd::__rb_tree<std::string, std::pair<const std::string, nanojit::LIns*>, __rwstd::__select1st<std::pair<const std::string, nanojit::LIns*>, std::string>, std::less<std::string>, std::allocator<std::pair<const std::string, nanojit::LIns*>>>::iterator, __rwstd::__rb_tree<std::string, std::pair<const std::string, nanojit::LIns*>, __rwstd::__select1st<std::pair<const std::string, nanojit::LIns*>, std::string>, std::less<std::string>, std::allocator<std::pair<const std::string, nanojit::LIns*>>>::iterator> to initialize std::pair<__rwstd::__rb_tree<std::string, std::pair<const std::string, nanojit::LIns*>, __rwstd::__select1st<std::pair<const std::string, nanojit::LIns*>, std::string>, std::less<std::string>, std::allocator<std::pair<const std::string, nanojit::LIns*>>>::const_iterator, __rwstd::__rb_tree<std::string, std::pair<const std::string, nanojit::LIns*>, __rwstd::__select1st<std::pair<const std::string, nanojit::LIns*>, std::string>, std::less<std::string>, std::allocator<std::pair<const std::string, nanojit::LIns*>>>::const_iterator>.
"./lirasm/lirasm.cpp", line 971: Error: Cannot cast from std::string  to _quad.
4 Error(s) and 2 Warning(s) detected.
(Assignee)

Comment 1

8 years ago
Created attachment 414432 [details] [diff] [review]
patch

I add __SUNPRO_CC here because some standard language features are disabled for sun studio. http://developers.sun.com/sunstudio/documentation/ss12/mr/READMEs/c++_faq.html#LibComp3 describe the reason for that.
Assignee: nobody → leon.sha
Status: NEW → ASSIGNED
Attachment #414432 - Flags: review?
(Assignee)

Updated

8 years ago
Attachment #414432 - Flags: review? → review?(graydon)

Updated

8 years ago
Attachment #414432 - Flags: review?(graydon) → review+
(Assignee)

Comment 2

8 years ago
http://hg.mozilla.org/projects/nanojit-central/rev/69ef86e45856
Whiteboard: fixed-in-nanojit
http://hg.mozilla.org/tracemonkey/rev/4b7b9f55fdad
Whiteboard: fixed-in-nanojit → fixed-in-nanojit, fixed-in-tracemonkey

Comment 4

8 years ago
http://hg.mozilla.org/mozilla-central/rev/4b7b9f55fdad
Status: ASSIGNED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
Component: Nanojit → Nanojit
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.