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

 
 

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

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

Add a New Comment Rich Markup
   

Tue 03 Dec 2019 05:51:01 PM UTC, comment #5: 

Will be solved with cmake in upcoming version

Thomas K. <tomk>
Group administrator
Sat 09 Nov 2019 08:04:55 AM UTC, comment #4: 

looks like maybe 7.4.0?  it's whatever ubuntu 18.04 comes with.

anyway commenting out the offending makefile line did, indeed, fix the problem.

joel truher <truher>
Sat 09 Nov 2019 07:49:41 AM UTC, comment #3: 

Hi,

which gcc version? Which debian distribution, is the gcc original from debian distribution?

cu, Thomas

Thomas K. <tomk>
Group administrator
Sat 09 Nov 2019 05:33:25 AM UTC, comment #2: 

i've encountered the same problem, curious if the source will be fixed.

joel truher <truher>
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.

Regards,

 -- Ronny

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

Hi,

I've pulled the source from git and executed
./bootstrap
./configure
make

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.

Regards
Nasser

Anonymous

 

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

Attach Files:
   
   
Comment:
   

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

 

Carbon-Copy List
  • -email is unavailable- added by tomk (Posted a comment)
  • -email is unavailable- added by truher (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-12-03 tomk StatusNone Fixed
        Assigned toNone tomk
        Open/ClosedOpen Closed
    2016-09-08 None Attached File- Added make-output.txt, #38453

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code