simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Simulavr-devel] simulavr-1.0.0 Build Fails.


From: Georg-Johann Lay
Subject: Re: [Simulavr-devel] simulavr-1.0.0 Build Fails.
Date: Mon, 10 Jul 2017 10:02:45 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

On 07.07.2017 22:29, Klaus wrote:
Please use git master. Version 1.0.0 is broken in so many things...

This message is posted also on the main page of the project ;)

Regards
  Klaus


No avail.

After figuring out that I hat to run "bootstrap" in the sources...

$ ../../source/simulavr/configure --prefix /local/gnu/install/simulavr
$ make -j 8

libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../source/simulavr/src -Ielfio -g -O2 -fPIC -Icmd -Iui -Ihwtimer -g -O2 -MT externalirq.lo -MD -MP -MF .deps/externalirq.Tpo -c ../../../source/simulavr/src/externalirq.cpp -fPIC -DPIC -o .libs/externalirq.o
In file included from ../../../source/simulavr/src/attiny2313.h:38:0,
                 from ../../../source/simulavr/src/attiny2313.cpp:26:
../../../source/simulavr/src/hwusi.h:36:21: fatal error: hwtimer.h: No such file or directory
compilation terminated.
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../source/simulavr/src -Ielfio -g -O2 -fPIC -Icmd -Iui -Ihwtimer -g -O2 -MT atmega1284abase.lo -MD -MP -MF .deps/atmega1284abase.Tpo -c ../../../source/simulavr/src/atmega1284abase.cpp -fPIC -DPIC -o .libs/atmega1284abase.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../source/simulavr/src -Ielfio -g -O2 -fPIC -Icmd -Iui -Ihwtimer -g -O2 -MT application.lo -MD -MP -MF .deps/application.Tpo -c ../../../source/simulavr/src/application.cpp -fPIC -DPIC -o .libs/application.o
Makefile:926: recipe for target 'attiny2313.lo' failed
make[3]: *** [attiny2313.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from ../../../source/simulavr/src/attiny25_45_85.h:39:0,
                 from ../../../source/simulavr/src/attiny25_45_85.cpp:26:
../../../source/simulavr/src/hwusi.h:36:21: fatal error: hwtimer.h: No such file or directory
compilation terminated.


Johann



Am 07.07.2017 um 15:00 schrieb Georg-Johann Lay:
Running make aborts with:


/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../source/simulavr-1.0.0/src -I/local/gnu/build/binutils-master-avr/bfd// -g -O2 -Icmd -Iui -Ihwtimer -MT systemclock.lo -MD -MP -MF .deps/systemclock.Tpo -c -o systemclock.lo ../../../source/simulavr-1.0.0/src/systemclock.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../source/simulavr-1.0.0/src -I/local/gnu/build/binutils-master-avr/bfd// -g -O2 -Icmd -Iui -Ihwtimer -MT systemclock.lo -MD -MP -MF .deps/systemclock.Tpo -c ../../../source/simulavr-1.0.0/src/systemclock.cpp -fPIC -DPIC -o .libs/systemclock.o ../../../source/simulavr-1.0.0/src/systemclock.cpp: In instantiation of ‘void MinHeap<Key, Value>::Insert(Key, Value) [with Key = long long int; Value = SimulationMember*]’: ../../../source/simulavr-1.0.0/src/systemclock.cpp:135:40: required from here ../../../source/simulavr-1.0.0/src/systemclock.cpp:70:8: error: ‘resize’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
   resize(this->size()+1);
         ^
../../../source/simulavr-1.0.0/src/systemclock.cpp:70:8: note: declarations in dependent base ‘std::vector<std::pair<long long int, SimulationMember*>, std::allocator<std::pair<long long int, SimulationMember*> > >’ are not found by unqualified lookup ../../../source/simulavr-1.0.0/src/systemclock.cpp:70:8: note: use ‘this->resize’ instead
Makefile:706: recipe for target 'systemclock.lo' failed
make[3]: *** [systemclock.lo] Error 1
make[3]: Leaving directory '/srv/local/gnu/build/simulavr/src'
Makefile:933: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/srv/local/gnu/build/simulavr/src'
Makefile:467: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/srv/local/gnu/build/simulavr/src'
Makefile:409: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1


System information:

$ ../../source/simulavr-1.0.0/configure --prefix /local/gnu/install/simulavr --with-bfd=/local/gnu/build/binutils-master-avr/bfd/ -with-libiberty=/local/gnu/build/binutils-master-avr/libiberty/

$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609

Moreover, it took me a while to work out how to twiddle with bfd
and libiberty.  What did not work:

* install binutils-dev
* configure / build simularv from within binutils source tree so
   that it has the complete SRCROOT stuff available.

Would be nice if your "Prerequisites"
http://www.nongnu.org/simulavr/build_simple.html#prerequisites
would shed some light on this and how to get across according
configure hick-ups.

Johann





_______________________________________________
Simulavr-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/simulavr-devel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]