KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)

stancecoke said:
Ok, there are less entries in my list. So how can I proceed?
Check them and click Apply. I think there is no issue in installing libraries/software that is not needed. Maybe the only disadvantage is that will take space on your PC. Sometimes, Synaptic will warn you if you are trying to install / remove something that is needed and you shouldn't remove, you need to be careful on that.
 
stancecoke said:
casainho said:
Check them and click Apply.
hmmm, same error after update :cry:

It is working for me, as you can see bellow. I bet it is some library that you are missing, but I don't know which one. Maybe try search on google for the fail message your are getting. If you see other referring other libraries when you search for this error message, try install them... it is usually what I do.

Try "sudo apt-get install libboost1.48-all-dev" ??

sudo apt-get install libboost-date-time-dev libboost-program-options-dev libboost-system-dev libboost-filesystem-dev libboost-iostreams-dev

There is a "boost graph" on Synaptic, still I don't have it installed. Maybe you can try it.

cas@cas-sp4:~/software/temp/stm8-binutils-gdb-sources$ ./patch_binutils.sh

(...)

checking how to run the C++ preprocessor... g++ -E
checking stx/btree_set.h usability... no
checking stx/btree_set.h presence... no
checking for stx/btree_set.h... no
configure: WARNING: STX library missing, using STL instead.
checking stx/btree_map.h usability... no
checking stx/btree_map.h presence... no
checking for stx/btree_map.h... no
configure: WARNING: STX library missing, using STL instead.
checking boost/graph/adjacency_list.hpp usability... yes
checking boost/graph/adjacency_list.hpp presence... yes
checking for boost/graph/adjacency_list.hpp... yes
checking for ccache... no
checking for strerror... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for vsprintf... yes
checking for mkstemp... yes
checking for strndup... yes
checking for setrlimit... yes
checking whether preprocessor accepts -MM or -M... -MM
checking whether C accepts -ggdb... yes
checking whether C accepts -pipe... yes
checking for gcc option to accept ISO C99... none needed
checking whether C accepts -fms-extensions... yes
checking whether C supports tag in unnamed struct... yes
checking return type of signal handlers... void
checking size of char... 1
checking size of short... 2
checking size of int... 4
checking size of long... 8
checking size of long long... 8
checking whether char is unsigned... no
checking type name for byte... char
checking type name for word... short
checking type name for dword... int
checking type name for qword... long
checking whether byte ordering is bigendian... no
checking for lyx... :
checking for latex2html... :
checking for latex... latex
checking for dvipdfm... dvipdfm
checking for pdflatex... pdflatex
checking for makeindex... makeindex
configure: creating ./config.status
config.status: creating doc/Makefile
config.status: creating src/ds390/Makefile
config.status: creating sdas/as8xcxxx/Makefile
config.status: creating device/lib/ds390/Makefile
config.status: creating device/lib/ds400/Makefile
config.status: creating src/stm8/Makefile
config.status: creating sdas/asstm8/Makefile
config.status: creating device/lib/stm8/Makefile
config.status: creating device/lib/Makefile
config.status: creating device/non-free/lib/Makefile
config.status: creating main.mk
config.status: creating src/Makefile
config.status: creating device/include/Makefile
config.status: creating sdas/linksrc/Makefile
config.status: creating support/librarian/Makefile
config.status: creating support/makebin/Makefile
config.status: creating support/regression/Makefile
config.status: creating support/valdiag/Makefile
config.status: creating support/scripts/Makefile
config.status: creating support/regression/ports/host/spec.mk
config.status: creating Makefile
config.status: creating Makefile.common
config.status: creating device/non-free/include/Makefile
config.status: creating sdccconf.h
config.status: creating sdas/linksrc/asxxxx_config.h
=== configuring in support/cpp (/home/cas/software/temp/stm8-binutils-gdb-sources/sdcc-3.6.0/support/cpp)
configure: running /bin/bash ./configure --disable-option-checking '--prefix=/home/cas/software/stm8-binutils' '--disable-mcs51-port' '--disable-z80-port' '--disable-z180-port' '--disable-r2k-port' '--disable-r3ka-port' '--disable-gbz80-port' '--disable-tlcs90-port' '--disable-ds390-port' '--disable-ds400-port' '--disable-pic14-port' '--disable-pic16-port' '--disable-hc08-port' '--disable-s08-port' 'docdir=${datarootdir}/doc/${PACKAGE}' --cache-file=/dev/null --srcdir=.
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for inline... inline
checking for built-in _Bool... yes
checking size of short... 2
checking size of int... 4
checking size of long... 8
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking execution character set... ASCII
checking whether make sets $(MAKE)... yes
checking whether a default assembler was specified... no
checking whether a default linker was specified... no
checking for gawk... no
checking for mawk... mawk
checking whether ln works... yes
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for working stdbool.h... yes
checking whether string.h and strings.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for stdlib.h... (cached) yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for sys/stat.h... (cached) yes
checking direct.h usability... no
checking direct.h presence... no
checking for direct.h... no
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for CHAR_BIT... yes
checking whether byte ordering is bigendian... no
checking for mktemp... yes
checking for strip... strip
checking for ar... ar
checking for preprocessor stringizing operator... yes
checking for clock... yes
checking for strsignal... yes
checking for strchr... yes
checking for strrchr... yes
checking for lstat... yes
checking for ssize_t... yes
checking for getpagesize... yes
checking for working mmap from /dev/zero... yes
checking for working mmap with MAP_ANON(YMOUS)... yes
checking for working mmap of a file... yes
checking whether getenv is declared... no
checking whether abort is declared... no
checking whether strsignal is declared... no
checking whether errno is declared... no
checking whether malloc is declared... no
checking whether realloc is declared... no
checking whether calloc is declared... no
checking whether free is declared... no
checking whether clock is declared... no
checking for gcc option to accept ISO C99... none needed
checking if mkdir takes one argument... no
checking what assembler to use... /usr/bin/as
checking what nm to use... nm
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating auto-host.h
config.status: executing default commands
=== configuring in support/packihx (/home/cas/software/temp/stm8-binutils-gdb-sources/sdcc-3.6.0/support/packihx)
configure: running /bin/bash ./configure --disable-option-checking '--prefix=/home/cas/software/stm8-binutils' '--disable-mcs51-port' '--disable-z80-port' '--disable-z180-port' '--disable-r2k-port' '--disable-r3ka-port' '--disable-gbz80-port' '--disable-tlcs90-port' '--disable-ds390-port' '--disable-ds400-port' '--disable-pic14-port' '--disable-pic16-port' '--disable-hc08-port' '--disable-s08-port' 'docdir=${datarootdir}/doc/${PACKAGE}' --cache-file=/dev/null --srcdir=.
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking size of char... 1
checking size of short... 2
checking size of int... 4
checking size of long... 8
checking size of long long... 8
checking for gcc option to accept ISO C99... none needed
checking type name for byte... char
checking type name for word... short
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
=== configuring in sim/ucsim (/home/cas/software/temp/stm8-binutils-gdb-sources/sdcc-3.6.0/sim/ucsim)
configure: running /bin/bash ./configure --disable-option-checking '--prefix=/home/cas/software/stm8-binutils' '--disable-mcs51-port' '--disable-z80-port' '--disable-z180-port' '--disable-r2k-port' '--disable-r3ka-port' '--disable-gbz80-port' '--disable-tlcs90-port' '--disable-ds390-port' '--disable-ds400-port' '--disable-pic14-port' '--disable-pic16-port' '--disable-hc08-port' '--disable-s08-port' 'docdir=${datarootdir}/doc/${PACKAGE}' --cache-file=/dev/null --srcdir=.
checking for gawk... no
checking for mawk... mawk
checking version of the package... 0.5.4
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for strip... strip
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for ranlib... (cached) ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking for ANSI C header files... (cached) yes
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking sys/endian.h usability... no
checking sys/endian.h presence... no
checking for sys/endian.h... no
checking machine/endian.h usability... no
checking machine/endian.h presence... no
checking for machine/endian.h... no
checking sys/isa_defs.h usability... no
checking sys/isa_defs.h presence... no
checking for sys/isa_defs.h... no
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for unistd.h... (cached) yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for dlfcn.h... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking which header file defines FD_ macros... <sys/select.h>
checking for socket in -lsocket... no
checking for xdr_short in -lnsl... yes
checking for dlopen in -ldl... (cached) yes
checking for panel_above in -lpanel... yes
checking for vprintf... yes
checking for _doprnt... no
checking for vsnprintf... yes
checking for _vsnprintf... no
checking for vasprintf... yes
checking for strlen... yes
checking for strcpy... yes
checking for strcat... yes
checking for strstr... yes
checking for strcmp... yes
checking for strerror... yes
checking for strtok... yes
checking for strdup... yes
checking for strchr... yes
checking for memcpy... yes
checking for fgets... yes
checking for yylex... no
checking whether scanf knows %a... no
checking whether getcwd is GNUish... no
checking for type of length pointer parameter of accept... socklen_t
checking whether byte ordering is bigendian... no
checking whether preprocessor accepts -MM or -M... -MM
checking whether C++ accepts -ggdb... yes
checking whether C++ accepts -gstabs... yes
checking whether C++ accepts -pipe... yes
checking return type of signal handlers... void
checking size of char... 1
checking size of short... 2
checking size of int... 4
checking size of long... 8
checking size of long long... 8
checking type name for byte... char
checking type name for word... short
checking type name for dword... int
configure: creating ./config.status
config.status: creating Makefile
config.status: creating main.mk
config.status: creating packages.mk
config.status: creating sim.src/Makefile
config.status: creating cmd.src/Makefile
config.status: creating s51.src/Makefile
config.status: creating avr.src/Makefile
config.status: creating z80.src/Makefile
config.status: creating hc08.src/Makefile
config.status: creating xa.src/Makefile
config.status: creating stm8.src/Makefile
config.status: creating st7.src/Makefile
config.status: creating gui.src/Makefile
config.status: creating gui.src/serio.src/Makefile
config.status: creating doc/Makefile
config.status: creating ddconfig.h
config.status: executing libtool commands
=== configuring in debugger/mcs51 (/home/cas/software/temp/stm8-binutils-gdb-sources/sdcc-3.6.0/debugger/mcs51)
configure: running /bin/bash ./configure --disable-option-checking '--prefix=/home/cas/software/stm8-binutils' '--disable-mcs51-port' '--disable-z80-port' '--disable-z180-port' '--disable-r2k-port' '--disable-r3ka-port' '--disable-gbz80-port' '--disable-tlcs90-port' '--disable-ds390-port' '--disable-ds400-port' '--disable-pic14-port' '--disable-pic16-port' '--disable-hc08-port' '--disable-s08-port' 'docdir=${datarootdir}/doc/${PACKAGE}' --cache-file=/dev/null --srcdir=.
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking for GNU Readline version... -1
checking for GNU Readline library -lreadline.dll... no
checking for GNU Readline library -lreadline... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for autoconf... autoconf
checking for strip... strip
checking for as... as
checking for cp... cp
checking for unistd.h... (cached) yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for socket in -lsocket... no
checking for xdr_short in -lnsl... yes
checking whether preprocessor accepts -MM or -M... -MM
checking whether accepts -ggdb... yes
checking whether accepts -pipe... yes
checking for gcc option to accept ISO C99... none needed
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
=== configuring in support/sdbinutils (/home/cas/software/temp/stm8-binutils-gdb-sources/sdcc-3.6.0/support/sdbinutils)
configure: running /bin/bash ./configure --disable-option-checking '--prefix=/home/cas/software/stm8-binutils' '--disable-mcs51-port' '--disable-z80-port' '--disable-z180-port' '--disable-r2k-port' '--disable-r3ka-port' '--disable-gbz80-port' '--disable-tlcs90-port' '--disable-ds390-port' '--disable-ds400-port' '--disable-pic14-port' '--disable-pic16-port' '--disable-hc08-port' '--disable-s08-port' 'docdir=${datarootdir}/doc/${PACKAGE}' --cache-file=/dev/null --srcdir=.
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... no
checking for mawk... mawk
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
checking for version 0.10 of ISL... no
checking for version 0.11 of ISL... no
checking for version 0.12 of ISL... no
checking for default BUILD_CONFIG...
checking for --enable-vtable-verify... no
checking for bison... bison -y
checking for bison... bison
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... flex
checking for flex... flex
checking for makeinfo... makeinfo
checking for expect... no
checking for runtest... no
checking for ar... ar
checking for as... as
checking for dlltool... no
checking for ld... ld
checking for lipo... no
checking for nm... nm
checking for ranlib... ranlib
checking for strip... strip
checking for windres... no
checking for windmc... no
checking for objcopy... objcopy
checking for objdump... objdump
checking for readelf... readelf
checking for cc... cc
checking for c++... c++
checking for gcc... gcc
checking for gcj... no
checking for gfortran... no
checking for gccgo... no
checking for ar... ar
checking for as... as
checking for dlltool... no
checking for ld... ld
checking for lipo... no
checking for nm... nm
checking for objdump... objdump
checking for ranlib... ranlib
checking for readelf... readelf
checking for strip... strip
checking for windres... no
checking for windmc... no
checking where to find the target ar... just compiled
checking where to find the target as... host tool
checking where to find the target cc... host tool
checking where to find the target c++... host tool
checking where to find the target c++ for libstdc++... host tool
checking where to find the target dlltool... just compiled
checking where to find the target gcc... host tool
checking where to find the target gcj... host tool
checking where to find the target gfortran... host tool
checking where to find the target gccgo... host tool
checking where to find the target ld... host tool
checking where to find the target lipo... host tool
checking where to find the target nm... just compiled
checking where to find the target objdump... just compiled
checking where to find the target ranlib... just compiled
checking where to find the target readelf... just compiled
checking where to find the target strip... just compiled
checking where to find the target windres... just compiled
checking where to find the target windmc... just compiled
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile

sdcc 3.6.0 is now configured for

Build: x86_64-unknown-linux-gnu
Host: x86_64-unknown-linux-gnu
Source directory: .
C compiler: gcc
CFLAGS: -fms-extensions -pipe -ggdb -g -O2
C++ compiler: g++
CXXFLAGS: -pipe -ggdb -g -O2
CPPFLAGS:
LDFLAGS:

ENABLED Ports:
ds390 no
ds400 no
hc08 no
s08 no
mcs51 no
pic14 no
pic16 no
z80 no
z180 no
r2k no
r3ka no
gbz80 no
tlcs90 no
stm8 yes

Disable non-free lib: 0
Disable packihx: 0
Disable ucsim: 0
Disable device lib: 0
Disable sdcpp: 0
Disable sdcdb: 0
Disable sdbinutil: 0
Enable documentation: 0
Enable libgc: 0

Install paths:
binary files: ${prefix}
include/library files: ${datarootdir}/sdcc
include files: ${datarootdir}/sdcc/include
library files: ${datarootdir}/sdcc/lib
non-free files: ${datarootdir}/sdcc/non-free
non-free include files: ${datarootdir}/sdcc/non-free/include
non-free library files: ${datarootdir}/sdcc/non-free/lib
documentation: ${datarootdir}/doc/${PACKAGE}

prefix: /home/cas/software/stm8-binutils
datadir: ${datarootdir}
datarootdir: ${prefix}/share

Search paths (incomplete, see manual for all search paths):
binary files: $SDCC_HOME/bin
include files: /share/sdcc/include
path(argv[0])/../share/sdcc/include
/home/cas/software/stm8-binutils/share/sdcc/include
/share/sdcc/non-free/include
path(argv[0])/../share/sdcc/non-free/include
/home/cas/software/stm8-binutils/share/sdcc/non-free/include
library files: $SDCC_HOME/share/sdcc/lib/<model>
path(argv[0])/../share/sdcc/lib/<model>
/home/cas/software/stm8-binutils/share/sdcc/lib/<model>
$SDCC_HOME/share/sdcc/non-free/lib/<model>
path(argv[0])/../share/sdcc/non-free/lib/<model>
/home/cas/software/stm8-binutils/share/sdcc/non-free/lib/<model>

cas@cas-sp4:~/software/temp/stm8-binutils-gdb-sources$
 
Thats not funny any more :?
Code:
./configure_sdcc.sh

worked now without errors,

after
Code:
cd binutils-gdb
make

this error occured:

rm -rf $backupdir; exit $rc
/home/graf/stm8-binutils-gdb-sources/binutils-gdb/missing: 81: /home/graf/stm8-binutils-gdb-sources/binutils-gdb/missing: makeinfo: not found
WARNING: 'makeinfo' is missing on your system.
You should only need it if you modified a '.texi' file, or
any other file indirectly affecting the aspect of the manual.
You might want to install the Texinfo package:
<http://www.gnu.org/software/texinfo/>
The spurious makeinfo call might also be the consequence of
using a buggy 'make' (AIX, DU, IRIX), in which case you might
want to install GNU make:
<http://www.gnu.org/software/make/>
Makefile:472: die Regel für Ziel „bfd.info“ scheiterte
make[3]: *** [bfd.info] Fehler 127
make[3]: Verzeichnis „/home/graf/stm8-binutils-gdb-sources/binutils-gdb/bfd/doc“ wird verlassen
Making info in po
make[3]: Verzeichnis „/home/graf/stm8-binutils-gdb-sources/binutils-gdb/bfd/po“ wird betreten
make[3]: Für das Ziel „info“ ist nichts zu tun.
make[3]: Verzeichnis „/home/graf/stm8-binutils-gdb-sources/binutils-gdb/bfd/po“ wird verlassen
make[3]: Verzeichnis „/home/graf/stm8-binutils-gdb-sources/binutils-gdb/bfd“ wird betreten
make[3]: Für das Ziel „info-am“ ist nichts zu tun.
make[3]: Verzeichnis „/home/graf/stm8-binutils-gdb-sources/binutils-gdb/bfd“ wird verlassen
Makefile:1717: die Regel für Ziel „info-recursive“ scheiterte
make[2]: *** [info-recursive] Fehler 1
make[2]: Verzeichnis „/home/graf/stm8-binutils-gdb-sources/binutils-gdb/bfd“ wird verlassen
Makefile:2726: die Regel für Ziel „all-bfd“ scheiterte
make[1]: *** [all-bfd] Fehler 2
make[1]: Verzeichnis „/home/graf/stm8-binutils-gdb-sources/binutils-gdb“ wird verlassen
Makefile:849: die Regel für Ziel „all“ scheiterte
make: *** [all] Fehler 2
 
stancecoke said:
/home/graf/stm8-binutils-gdb-sources/binutils-gdb/missing: 81: /home/graf/stm8-binutils-gdb-sources/binutils-gdb/missing: makeinfo: not found
WARNING: 'makeinfo' is missing on your system.
I remember to had to install makeinfo... google tells me: sudo apt-get install texinfo
 
OK, next error on "make"

/bin/bash ./../ylwrap arparse.y y.tab.c arparse.c y.tab.h arparse.h y.output arparse.output -- bison -y -d
m4: unrecognized option '--gnu'
Try `m4 --help' for more information.
make[3]: Verzeichnis „/home/graf/stm8-binutils-gdb-sources/binutils-gdb/binutils“ wird verlassen
/bin/bash ./../ylwrap sysinfo.y y.tab.c sysinfo.c y.tab.h sysinfo.h y.output sysinfo.output -- bison -y -d
/home/graf/stm8-binutils-gdb-sources/binutils-gdb/binutils/sysinfo.y: Warnung: 1 Schiebe/Reduzier-Konflikt [-Wconflicts-sr]
m4: unrecognized option '--gnu'
Try `m4 --help' for more information.
if [ -r sysinfo.c ]; then \
gcc -c -I. -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -I./../zlib -g -O2 sysinfo.c ; \
else \
gcc -c -I. -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -I./../zlib -g -O2 ./sysinfo.c ; \
fi
gcc: error: ./sysinfo.c: Datei oder Verzeichnis nicht gefunden
gcc: fatal error: no input files
compilation terminated.
Makefile:1376: die Regel für Ziel „sysinfo.o“ scheiterte
make[2]: *** [sysinfo.o] Fehler 1
make[2]: Verzeichnis „/home/graf/stm8-binutils-gdb-sources/binutils-gdb/binutils“ wird verlassen
Makefile:3610: die Regel für Ziel „all-binutils“ scheiterte
make[1]: *** [all-binutils] Fehler 2
make[1]: Verzeichnis „/home/graf/stm8-binutils-gdb-sources/binutils-gdb“ wird verlassen
Makefile:849: die Regel für Ziel „all“ scheiterte
make: *** [all] Fehler 2

Regards
stancecoke
 
stancecoke said:
OK, next error on "make"

gcc: error: ./sysinfo.c: Datei oder Verzeichnis nicht gefunden
gcc: fatal error: no input files

sudo apt-get install sysinfo ??
 
stancecoke said:
same error after installing sysinfo :-(
sudo apt-get install time ??

I don't know. But I would say "syscalls" dev is missing.

Please try search on google and try install packages that others may refer.
 
stancecoke said:
I'll give up. I'll spend my time riding my bike....
It is also a good idea!! :)
 
Some other guys started a discussion about how to get development tools working on Windows, on a german forum: https://www.mikrocontroller.net/topic/432479
Since then, I had a pull request on github and another user did build the firmware.
 
I was the starter of the thread :D

Can you put the SPL-Files and the stm8.lib into a zip-file and add it to your github site,or give a hint, where I can download it elsewhere?

The installation of SDCC for Windows comes with a stm8.lib, but i think it doesn't work with the SPL that I got from here.

Regards
stancecoke
 
stancecoke said:
I was the starter of the thread :D

Can you put the SPL-Files and the stm8.lib into a zip-file and add it to your github site,or give a hint, where I can download it elsewhere?

The installation of SDCC for Windows comes with a stm8.lib, but i think it doesn't work with the SPL that I got from here.

Done. Go and get there.

And on Linux, as pointed out by others on that message, seems that is possible to get the binary file for installation of SDCC on Ubuntu, without the need to build from the sources.
 
I manged it to install SDCC on Linux now, just with "sudo apt-get install sdcc" (How simple it can be :))

The main.ihx file was created, hex2bin was not found.

Regards
stancecoke
 
You need to build the code on SVM branch, were hex2bin is not blneeded anymore and have the latest code.

Also see if your version of SDCC is 3.6 that is the one I am using: sdcc --version
 
now I managed to build the main.ihx in a windows system.
If I want to use the STVP Tool to flash the main.ihx-file there seems to be a problem with the adress-range...

Regard
stancecoke
 
stancecoke said:
now I managed to build the main.ihx in a windows system.
If I want to use the STVP Tool to flash the main.ihx-file there seems to be a problem with the adress-range...
Why would you want to flash?? It is not finished yet. For now, IMO, important is to develop and so debug using OpenOCD and Eclipse.
 
stancecoke said:
casainho said:
Why would you want to flash??

because I want the whole toolchain working, before developing any code...
Ok, right. There are 2 ways I experimented to flash: stm8flash that flashs only and OpenOCD that flashes and also debugs.
 
OK, as already asked in the german forum: where is the processor-type defined in the code?
The code compiled under Linux seems to be working with the ST Visual Programmer now. The one built with Windows is still faulty, the generated file size of the main.ihx is much to big.

Regards
stancecoke
 
Processor type is not needed, at least the other friendly user on the german forum, did a few pull requests/contributions to the code and simplified the Makefile.

I also had similar issue with objcopy and as you can see on the Makefile, I had to ask it to remove/discard some sections code that are not needed on the binary file.
 
I tested a new algorithm to automatically adapt the angle. I saw the algorithm changing the angle but for some reason the phase current was still with problems at medium and high speed. I tested again, starting a very low speed and adapting manually the angle: I found that at medium, and specially max speed, there is no angle value that works. Seems that the system lacks resolution at high speeds.

I will look to see the way I can increase resolution...
 
Back
Top