Discussion:
[gem5-users] GCC Compatibility Issue
梁政
2018-11-11 21:17:27 UTC
Permalink
Hi all,




It seems that gcc compatibility is a big problem. I have found several issues when I try to run SPEC 2000 and SPEC 2006 in gem5.

(1) The SPEC 2006 cannot be built with gcc 7. I choose to downgrade to gcc 4.8, but it doesn't work.

(1) The stable release gem5-stable-2015-09 cannot be built with gcc 7 as well as gcc 4.8. It seems the compiler check is too strict.

(i) undefined macro PROTOBUF_INLINE_NOT_IN_HEADERS caused compiling error.

(ii) '~' on an expression of type bool caused error [-Werror=bool-operation]. (error from /dev/copy_engine/cc)




When building SPE 2006 bench... there are so many bugs...




My system is Ubuntu 18.04 LTS. Is there anyone run SPEC successfully on Ubuntu 18.04?

Or I should reinstall my system?




Best Regards

Zheng Liang

Peking University
Daniel Carvalho
2018-11-12 05:52:06 UTC
Permalink
Hello Liang,

Regarding Gem5 and GCC, you can pull more recent versions of Gem5 which support newer versions of GCC:- Up to GCC 7 support: https://gem5-review.googlesource.com/c/public/gem5/+/9101- Up to GCC 8 support: https://gem5-review.googlesource.com/c/public/gem5/+/11949- Up to GCC 8.1 support: https://gem5-review.googlesource.com/c/public/gem5/+/12685- Current Gem5 patch: https://github.com/gem5/gem5
Regarding SPEC2006, I can't help you, but I know SPEC2017 works fine (x86 and arm, multiple ubuntu versions). If I recall correctly, only had to fix one compilation flag for the gcc benchmarks to compile, and there was a seg fault in another benchmark.
Regards,Daniel
Em domingo, 11 de novembro de 2018 22:17:33 GMT+1, 梁政 <***@pku.edu.cn> escreveu:

Hi all,




It seems that gcc compatibility is a big problem. I have found several issues when I try to run SPEC 2000 and SPEC 2006 in gem5.

(1) The SPEC 2006 cannot be built with gcc 7. I choose to downgrade to gcc 4.8, but it doesn't work.

(1) The stable release gem5-stable-2015-09 cannot be built with gcc 7 as well as gcc 4.8. It seems the compiler check is too strict.

(i)    undefined macro PROTOBUF_INLINE_NOT_IN_HEADERS caused compiling error.

(ii)  '~' on an expression of type bool caused error [-Werror=bool-operation]. (error from /dev/copy_engine/cc)




When building SPE 2006 bench... there are so many bugs...




My system is Ubuntu 18.04 LTS. Is there anyone run SPEC successfully on Ubuntu 18.04?

Or I should reinstall my system?




Best Regards

Zheng Liang

Peking University
梁政
2018-11-12 12:36:28 UTC
Permalink
Thanks for your advice.





I can build 403.gcc, but it seems it won't stop for input set 'ref' even in my physical machine (not gem5).

Currently, I move my work to Ubuntu 16.04 (It seems the latest Glibc will cause compilation error of SPEC 2006 too...)




The newest release version of gem5 is 2015-09. I wonder whether it is suitable for beginners like me to use the current development version of gem5. (Actually, I did... Because of the compilation error...)




It seems the documents in gem5.org are out of date, and not well documented. If I have to use the development version, where can I find new tutorials?




Best Regards

Zheng Liang

EECS, Peking University




-----Original Messages-----
From:"Daniel Carvalho" <***@yahoo.com.br>
Sent Time:2018-11-12 13:52:06 (Monday)
To: gem5-***@gem5.org, gem5-***@gem5.org
Cc:
Subject: Re: [gem5-users] [gem5-dev] GCC Compatibility Issue


Hello Liang,



Regarding Gem5 and GCC, you can pull more recent versions of Gem5 which support newer versions of GCC:
- Up to GCC 7 support: https://gem5-review.googlesource.com/c/public/gem5/+/9101
- Up to GCC 8 support: https://gem5-review.googlesource.com/c/public/gem5/+/11949
- Up to GCC 8.1 support: https://gem5-review.googlesource.com/c/public/gem5/+/12685
- Current Gem5 patch: https://github.com/gem5/gem5


Regarding SPEC2006, I can't help you, but I know SPEC2017 works fine (x86 and arm, multiple ubuntu versions). If I recall correctly, only had to fix one compilation flag for the gcc benchmarks to compile, and there was a seg fault in another benchmark.


Regards,
Daniel

Em domingo, 11 de novembro de 2018 22:17:33 GMT+1, 梁政 <***@pku.edu.cn> escreveu:




Hi all,









It seems that gcc compatibility is a big problem. I have found several issues when I try to run SPEC 2000 and SPEC 2006 in gem5.



(1) The SPEC 2006 cannot be built with gcc 7. I choose to downgrade to gcc 4.8, but it doesn't work.



(1) The stable release gem5-stable-2015-09 cannot be built with gcc 7 as well as gcc 4.8. It seems the compiler check is too strict.



(i) undefined macro PROTOBUF_INLINE_NOT_IN_HEADERS caused compiling error.



(ii) '~' on an expression of type bool caused error [-Werror=bool-operation]. (error from /dev/copy_engine/cc)









When building SPE 2006 bench... there are so many bugs...









My system is Ubuntu 18.04 LTS. Is there anyone run SPEC successfully on Ubuntu 18.04?



Or I should reinstall my system?









Best Regards



Zheng Liang



Peking University





_______________________________________________

gem5-dev mailing list

gem5-***@gem5.org

http://m5sim.org/mailman/listinfo/gem5-dev
Daniel Carvalho
2018-11-13 09:31:28 UTC
Permalink
Dear Liang,
I recommend to use the latest version, as you can be up to date with bug fixes and new features (and even patch some). You should find "documentation" all over the internet (jason's tutorial: http://learning.gem5.org/book/index.html, stack overflow: https://stackoverflow.com/questions/tagged/gem5, Gem5 papers, gem5.org, the mailing list, tracking back the commits that introduced the feature that you want to know about...), but indeed there's no easy way, and you will end up recurring a lot to trial and error.

Regards,Daniel





Em segunda-feira, 12 de novembro de 2018 13:36:35 GMT+1, 梁政 <***@pku.edu.cn> escreveu:

Thanks for your advice.





I can build 403.gcc, but it seems it won't stop for input set 'ref' even in my physical machine (not gem5).

Currently, I move my work to Ubuntu 16.04 (It seems the latest Glibc will cause compilation error of SPEC 2006 too...)




The newest release version of gem5 is 2015-09. I wonder whether it is suitable for beginners like me to use the current development version of gem5. (Actually, I did... Because of the compilation error...)




It seems the documents in gem5.org are out of date, and not well documented. If I have to use the development version, where can I find new tutorials?




Best Regards

Zheng Liang

EECS, Peking University




-----Original Messages-----
From:"Daniel Carvalho" <***@yahoo.com.br>
Sent Time:2018-11-12 13:52:06 (Monday)
To: gem5-***@gem5.org, gem5-***@gem5.org
Cc:
Subject: Re: [gem5-users] [gem5-dev] GCC Compatibility Issue


Hello Liang,



Regarding Gem5 and GCC, you can pull more recent versions of Gem5 which support newer versions of GCC:
- Up to GCC 7 support: https://gem5-review.googlesource.com/c/public/gem5/+/9101
- Up to GCC 8 support: https://gem5-review.googlesource.com/c/public/gem5/+/11949
- Up to GCC 8.1 support: https://gem5-review.googlesource.com/c/public/gem5/+/12685
- Current Gem5 patch: https://github.com/gem5/gem5


Regarding SPEC2006, I can't help you, but I know SPEC2017 works fine (x86 and arm, multiple ubuntu versions). If I recall correctly, only had to fix one compilation flag for the gcc benchmarks to compile, and there was a seg fault in another benchmark.


Regards,
Daniel

Em domingo, 11 de novembro de 2018 22:17:33 GMT+1, 梁政 <***@pku.edu.cn> escreveu:




Hi all,









It seems that gcc compatibility is a big problem. I have found several issues when I try to run SPEC 2000 and SPEC 2006 in gem5.



(1) The SPEC 2006 cannot be built with gcc 7. I choose to downgrade to gcc 4.8, but it doesn't work.



(1) The stable release gem5-stable-2015-09 cannot be built with gcc 7 as well as gcc 4.8. It seems the compiler check is too strict.



(i)    undefined macro PROTOBUF_INLINE_NOT_IN_HEADERS caused compiling error.



(ii)  '~' on an expression of type bool caused error [-Werror=bool-operation]. (error from /dev/copy_engine/cc)









When building SPE 2006 bench... there are so many bugs...









My system is Ubuntu 18.04 LTS. Is there anyone run SPEC successfully on Ubuntu 18.04?



Or I should reinstall my system?









Best Regards



Zheng Liang



Peking University





_______________________________________________

gem5-dev mailing list

gem5-***@gem5.org

http://m5sim.org/mailman/listinfo/gem5-dev

Loading...