bugSimulavr: an AVR simulator - Bugs: bug #49033, Compiling the SimulAVR sources on...


bug #49033: Compiling the SimulAVR sources on Debian (Testing) fails

Submitted by:  None
Submitted on:  Thu 08 Sep 2016 07:28:36 PM UTC  
Category:  Configure Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Open
Component Version:  simulavr

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 04 Nov 2016 02:27:23 PM UTC, comment #1: 

The problem is the two defines in the makefile for gtest:
 -Dprivate=public -Dprotected=public

Remove/comment out the line:
 GTEST_CXXFLAGS = -Dprivate=public -Dprotected=public

from Makefile.am in regress/gtest, reconfigure and it should compile fine.


 -- Ronny

Thu 08 Sep 2016 07:28:36 PM UTC, original submission:  


I've pulled the source from git and executed

as described in the INSTALL - file. But during compilation the make program aborts the compilation with the following error:

make[2]: Entering directory '/home/zufall/SimulAVR/simulavr/regress/gtest'
depbase=`echo session_001/unittest001.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I../../src    -Dprivate=public -Dprotected=public  -Igtest-1.6.0/include/gtest -Igtest-1.6.0/include -Igtest-1.6.0 -I../../src -g -g -O2 -MT session_001/unittest001.o -MD -MP -MF $depbase.Tpo -c -o session_001/unittest001.o session_001/unittest001.cpp &&\
mv -f $depbase.Tpo $depbase.Po
In file included from gtest-1.6.0/include/gtest/internal/gtest-port.h:197:0,
                 from gtest-1.6.0/include/gtest/internal/gtest-internal.h:40,
                 from gtest-1.6.0/include/gtest/gtest.h:57,
                 from session_001/unittest001.cpp:4:
/usr/include/c++/6/sstream:300:7: error: 'struct std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>::__xfer_bufptrs' redeclared with different access
       struct __xfer_bufptrs
Makefile:572: recipe for target 'session_001/unittest001.o' failed
make[2]: *** [session_001/unittest001.o] Error 1
make[2]: Leaving directory '/home/zufall/SimulAVR/simulavr/regress/gtest'
Makefile:432: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/zufall/SimulAVR/simulavr/regress'
Makefile:509: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

The file with the entire make output is attached. Any help is highly appreciated.




(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #38453:  make-output.txt added by None (5KiB - text/plain - output of make)


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.




Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2016-09-08 None Attached File- => Added make-output.txt, #38453

Back to the top

Powered by Savane 3.5