mainSimulavr: an AVR simulator - Support: sr #108667, Compilation problems

 
 

sr #108667: Compilation problems

Submitter:  None
Submitted:  Wed 15 Oct 2014 09:50:26 AM UTC
   
 
Category:  bugs Priority:  5 - Normal
Severity:  5 - Blocker Status:  Need Info
Privacy:  Public Assigned to:  tomk
Originator Email:  -email is unavailable- Open/Closed:  Open
Component Version:  * simulavr Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 15 Oct 2014 04:03:18 PM UTC, comment #2: 

Hi,

I can't confirm it. Works (build and check) in my ubuntu 14.04! Do you get the project by git or dowloaded a *.tar.gz from last commit in savannah git browser? Maybe modified something? Some other gcc package? Your reporting to change header include statements points for me to some problem in toolchain.

Maybe do the following:
- clone a repo from git repository
- in cloned repo: copy delivery-check.conf.sample to delivery-check.conf
- edit delivery-check.conf: set "CONF_WITH_PYTHON=n", will not build python module, which isn't needed for your case
- you could change CONF_CHECK_PATH to something you want, but it should be ok for test
- start on console prompt with: "./delivery-check -d" (-d stands for not to make dist check), it will take some minutes to run, on finish your browser will be opened with a report
- got to the path, which is set in CONF_CHECK_PATH, pack the whole log directory and send it to me for analyzing.

Thomas K. <tomk>
Group administrator
Wed 15 Oct 2014 10:55:38 AM UTC, comment #1: 

You can use the fork made for RepRap firmware development. Build instructions and Github link here: http://www.reprap.org/wiki/SimulAVR#Installation

Just confirmed it to still build flawlessly on Ubuntu 14.04.

Markus Hitter <hitterm>
Wed 15 Oct 2014 09:50:26 AM UTC, original submission:  

Hi,

Under ubuntu 14.04, compiling the latest git version yields some problems:
- in src/hwacomp.cpp the "hwtimer.h" include must be modified in "hwtimer/hwtimer.h"
-in "src/avrreadelf.cpp" the  #include "elfio/elfio.hpp" must be modified  #include "elfio/elfio/elfio.hpp"
- in "src/elfio/elfio/elfio.hpp" (at the beginning and around line 622) explicit include must be specified as follows:
#include "elf_types.hpp"
#include "elfio_utils.hpp"
#include "elfio_header.hpp"
#include "elfio_section.hpp"
#include "elfio_segment.hpp"
#include "elfio_strings.hpp"
- Unresolved yet, when compiling "gtest" the following happens (gtest.h badly included) and no way to add it in simulavr-1.1dev

Making all in gtest
make[3]: entrant dans le répertoire « /opt/simulavr/simulavr/simulavr-1.1dev/_build/regress/gtest »
depbase=`echo gtest_main.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I../../../regress/gtest -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 gtest_main.o -MD -MP -MF $depbase.Tpo -c -o gtest_main.o ../../../regress/gtest/gtest_main.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo session_001/unittest001.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I../../../regress/gtest -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 ../../../regress/gtest/session_001/unittest001.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo session_irq_check/unittest_irq.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I../../../regress/gtest -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_irq_check/unittest_irq.o -MD -MP -MF $depbase.Tpo -c -o session_irq_check/unittest_irq.o ../../../regress/gtest/session_irq_check/unittest_irq.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo session_io_pin/unittest_io_pin.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I../../../regress/gtest -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_io_pin/unittest_io_pin.o -MD -MP -MF $depbase.Tpo -c -o session_io_pin/unittest_io_pin.o ../../../regress/gtest/session_io_pin/unittest_io_pin.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo gtest-1.6.0/src/gtest-all.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I../../../regress/gtest -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 gtest-1.6.0/src/gtest-all.o -MD -MP -MF $depbase.Tpo -c -o gtest-1.6.0/src/gtest-all.o ../../../regress/gtest/gtest-1.6.0/src/gtest-all.cc &&\
mv -f $depbase.Tpo $depbase.Po
../../../regress/gtest/gtest_main.cpp:1:19: fatal error: gtest.h: Aucun fichier ou dossier de ce type
 #include "gtest.h"
                   ^
compilation terminated.
../../../regress/gtest/gtest-1.6.0/src/gtest-all.cc:39:25: fatal error: gtest/gtest.h: Aucun fichier ou dossier de ce type
 #include "gtest/gtest.h"
                         ^
compilation terminated.
../../../regress/gtest/session_001/unittest001.cpp:4:19: fatal error: gtest.h: Aucun fichier ou dossier de ce type
 #include "gtest.h"
                   ^
compilation terminated.
../../../regress/gtest/session_io_pin/unittest_io_pin.cpp:4:19: fatal error: gtest.h: Aucun fichier ou dossier de ce type
 #include "gtest.h"
                   ^
compilation terminated.
make[3]: * [gtest_main.o] Erreur 1
make[3]: * Attente des tâches non terminées....
../../../regress/gtest/session_irq_check/unittest_irq.cpp:4:19: fatal error: gtest.h: Aucun fichier ou dossier de ce type
 #include "gtest.h"
                   ^
compilation terminated.
make[3]: * [gtest-1.6.0/src/gtest-all.o] Erreur 1
make[3]: * [session_001/unittest001.o] Erreur 1
make[3]: * [session_io_pin/unittest_io_pin.o] Erreur 1
make[3]: * [session_irq_check/unittest_irq.o] Erreur 1

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

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 hitterm (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-10-15 tomk StatusNone Need Info
        Assigned toNone tomk

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code