Hi, The ABI changes in gcc 5 do indeed cause a bit of issues if you have libraries built using gcc <5 or vice versa.
That said, on an out-of-box Fedora 23 system everything works, using nothing but system-provided versions of the dependencies. The same is true on Ubuntu 14 and 15. It just works (tm). Andreas From: gem5-users <[email protected]<mailto:[email protected]>> on behalf of "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Reply-To: gem5 users mailing list <[email protected]<mailto:[email protected]>> Date: Tuesday, 17 November 2015 at 10:33 To: gem5 users mailing list <[email protected]<mailto:[email protected]>> Subject: Re: [gem5-users] gem5 broken after updating fedora Unfortunately, the problem is bigger than that (so a full rebuild won't help). The issue is due to a C++ ABI incompatibility between g++ versions. The libprotobuf library binary installed with the distro, is compiled with gcc that is so new (5.2.1 in my case of Ubuntu 5.10) that if you are trying to compile gem5 with something like 4.9, it won't link. So you absolutely need to move to the latest gcc, and that entails also a new swig, and also convincing the build to use the new swig. I remember it took me almost a day to figure out all these version dependencies but in the end it boils down to two things: newest swig and newest gcc. After that, libprotobuf links fine. Or as I pointed out earlier -- if you want to stay on whichever gcc version you are using now (and sometimes there are specific reasons why people need a particular version), and if you don't need tracing, then you can just skip libprotobuf. "gem5-users" <[email protected]<mailto:[email protected]>> wrote on 11/17/2015 03:48:31: > From: Andreas Hansson > <[email protected]<mailto:[email protected]>> > To: gem5 users mailing list <[email protected]<mailto:[email protected]>> > Date: 11/17/2015 03:48 > Subject: Re: [gem5-users] gem5 broken after updating fedora > Sent by: "gem5-users" > <[email protected]<mailto:[email protected]>> > > I would imagine a complete rebuild will solve your issue (I built > gem5 without any issue on fedora 23, including protobuf support). > Just kill the build directory and start over. > > Andreas > > From: gem5-users > <[email protected]<mailto:[email protected]>> on behalf > of " > [email protected]<mailto:[email protected]>" > <[email protected]<mailto:[email protected]>> > Reply-To: gem5 users mailing list > <[email protected]<mailto:[email protected]>> > Date: Tuesday, 17 November 2015 at 03:45 > To: gem5 users mailing list <[email protected]<mailto:[email protected]>> > Subject: Re: [gem5-users] gem5 broken after updating fedora > > Ah, yes. That's a mess of g++ versions, library versions and > incompatible C++ ABIs. > The easy workaround, if you don't need tracing, would be to disable protobuf: > > export PROTOC=/bin/false > scons build/ARM/gem5.opt > > What version of gcc are you running? (gcc -v) > > -----"gem5-users" > <[email protected]<mailto:[email protected]>> wrote: ----- > To: "[email protected]<mailto:[email protected]>" > <[email protected]<mailto:[email protected]>> > From: "Ejjeh, Adel" > Sent by: "gem5-users" > Date: 11/16/2015 06:08PM > Subject: [gem5-users] gem5 broken after updating fedora > > I was running fedora lxde version 22 and I had gem5 built for the > ARM architecture and I was successfully using it. After I upgraded > fedora gem5 stopped working, and I started getting the following error: > > build/ARM/gem5.opt: error while loading shared libraries: > libprotobuf.so.8: cannot open shared object file: No such file or directory > > Any ideas how I can solve this? > -- > Adel Ejjeh > PhD Student | Computer Science > University of Illinois at Urbana-Champaign > Siebel Center for Computer Science > 201 N Goodwin Ave, Urbana, IL 61801 > > _______________________________________________ > gem5-users mailing list > [email protected]<mailto:[email protected]> > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > > > -- 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. > _______________________________________________ > gem5-users mailing list > [email protected]<mailto:[email protected]> > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users ________________________________ -- 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.
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
