Hi Kaiyuan,

I suspect you ran into this:

http://stackoverflow.com/questions/3025997/defining-static-const-integer-members-in-class-definition

In opt and fast the values get inlined and we have no problem. In debug, they 
point to nothing since we do not have an out-of-class declaration. In fact we 
do this _a lot_.

I think in this and many other cases, instead of adding out-of-class 
declaration, the most elegant solution is probably to embrace c++11 strongly 
typed enums. Could you perhaps give that a try?

Andreas

From: Kaiyuan <[email protected]<mailto:[email protected]>>
Reply-To: gem5 users mailing list 
<[email protected]<mailto:[email protected]>>
Date: Friday, 5 June 2015 05:02
To: gem5-users <[email protected]<mailto:[email protected]>>
Subject: [gem5-users] Error in compiling gem5.debug

Hello, guys

I am trying to compile gem5 in Ubuntu 14.04LTS. Compiling gem5.opt is fine, but 
I encounter error in compiling gem5.debug

Error message:
-----------------------------------------------------------------------------------------
build/ARM/dev/arm/hdlcd.do: In function `HDLcd::HDLcd(HDLcdParams const*)':
/home/kaiyuanl/src/gem5/build/ARM/dev/arm/hdlcd.cc:76: undefined reference to 
`HDLcd::VERSION_RESETV'
/home/kaiyuanl/src/gem5/build/ARM/dev/arm/hdlcd.cc:76: undefined reference to 
`HDLcd::BUS_OPTIONS_RESETV'
collect2: error: ld returned 1 exit status
scons: *** [build/ARM/gem5.debug] Error 1
scons: building terminated because of errors.
-----------------------------------------------------------------------------------------

Could anyone give me some suggestions? Thank you!

-Kaiyuan



-- IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.

ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered 
in England & Wales, Company No: 2557590
ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, 
Registered in England & Wales, Company No: 2548782
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to