GithubHelp home page GithubHelp logo

ndless-nspire / ndless Goto Github PK

View Code? Open in Web Editor NEW
827.0 827.0 103.0 44.39 MB

The TI-Nspire calculator extension for native applications

Home Page: http://ndless.me

Makefile 4.27% HTML 0.78% C 82.38% Shell 1.67% Smarty 0.39% C++ 9.40% PHP 0.24% Lua 0.01% Assembly 0.77% Python 0.09% M4 0.01% QMake 0.01%

ndless's People

Contributors

adriweb avatar bluebotlabz avatar coolreader18 avatar fridtjof avatar frostypenguin avatar herrhotzenplotz avatar hexane360 avatar ivoah avatar legimet avatar lights0123 avatar miracade avatar mitchazj avatar oliviera avatar pbfy0 avatar quanticpotato avatar theoware avatar vogtinator avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ndless's Issues

bracket nesting level exceeded maximum of 256 on macOS

While run build_toolchain.sh, it failed with bracket nesting level exceeded maximum of 256.

#define ATTRIBUTE_ASM_FPRINTF(m, n) __attribute__ ((__format__ (__asm_fp...
                                                    ^
../../gcc-6.2.0/gcc/config/arm/thumb1.md:1615:10873: fatal error: bracket
      nesting level exceeded maximum of 256
../../gcc-6.2.0/gcc/config/arm/thumb1.md:1615:10873: note: use -fbracket-depth=N
      to increase maximum nesting level

I tried to add -fbracket-depth=512 into CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET in build_toolchain.sh, but not works.

macOS Sierra 10.12.3
Homebrewed gcc-arm-none-eabi (px4/px4/gcc-arm-none-eabi: stable 20160928)
clang --version Apple LLVM version 8.0.0 (clang-800.0.42.1)

Yay, compile issues

make -C ndless-sdk
make[1]: Entering directory `/home/geekp/Ndless/ndless-sdk'
make -C libsyscalls
make[2]: Entering directory `/home/geekp/Ndless/ndless-sdk/libsyscalls'
arm-none-eabi-g++ -mcpu=arm926ej-s -std=c++11 -nostdlib -O3 -fPIE -fno-exceptions -fno-rtti -mlong-calls -Wall -Werror -I ../include/ -I ../thirdparty/nspire-io/include/ -D_TINSPIRE -ffunction-sections -fdata-sections -c stdlib.cpp -o stdlib.o
stdlib.cpp:15:20: fatal error: typeinfo: No such file or directory
 #include <typeinfo>
                    ^
compilation terminated.
make[2]: *** [stdlib.o] Error 1
make[2]: Leaving directory `/home/geekp/Ndless/ndless-sdk/libsyscalls'
make[1]: *** [build-libsyscalls] Error 2
make[1]: Leaving directory `/home/geekp/Ndless/ndless-sdk'
make: *** [build-ndless-sdk] Error 2

Error making sdk

So I've been trying to compile this sdk for a while and this is as far as I have gotten.

image

This occurred when I went to the root of the sdk and used the command make.
Not sure what caused it but if you have any suggestions to fix it would help.

mkStubs.php can't find arm-none-eabi-g++

Quaternions-MacBook-Pro:Ndless quaternionsrock$ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ndless-sdk
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C libsyscalls
php mkStubs.php > ../include/syscall-decls.h
arm-none-eabi-g++ -mcpu=arm926ej-s -std=c++11 -nostdlib -O3 -fPIE -fno-exceptions -fno-rtti -mlong-calls -Wall -Werror -I ../include/ -I ../thirdparty/nspire-io/include/ -D_TINSPIRE -ffunction-sections -fdata-sections -c stubs.cpp -o stubs.o
make[2]: arm-none-eabi-g++: No such file or directory
make[2]: *** [stubs.o] Error 1
make[1]: *** [build-libsyscalls] Error 2
make: *** [build-ndless-sdk] Error 2

What's this about?

Make luna a project on its own

I think luna should be a project on its own for those people that may wan't to compile their lua scripts into tns files without having Ndless installed. In my case, in linux it is the only way I have to generate tns files from lua code.

This will also enable ndless to use luna without relative paths.

If you think this is posible and may be positive in any way I could make a luna repo and pull the code, modify the makefile and make a pull request for removing the code from this repo.

Will it be ok for you?
Thanks

Missing header for compilation

I used a new installation of Cygwin to compile the SDK, but when trying to compile the helloworld-sdl sample, there's the syscall-decls.h header missing.

Code from make:
/home/foo/Ndless/ndless-sdk/include/os.h:30:27: schwerwiegender Fehler(==fatal error): syscall-decls.h: No such file or directory

In the include directory are syscall and syscall-list present, but not syscall-decls.

Build fails because ndless_installer.tpl.lua is missing

When I try to build Ndless, I get the following error:

make[1]: *** No rule to make target `ndless_installer.tpl.lua', needed by `ndless_installer.lua'.  Stop.

I guess there should be a file called ndless_installer.tpl.lua in arm/ which isn't there because in .gitignore you are ignoring /arm/*.lua ?

Here is the complete build log:
http://pastebin.com/Gy5ju4qJ

realloc doesn't preserve content

"void *realloc(void *ptr, size_t size);
...
The realloc() function changes the size of the memory block pointed to by ptr to size bytes. The contents will be unchanged in the range from the start of the region up to the minimum of the old and new sizes."
Source: http://linux.die.net/man/3/realloc

Can't Build Ndless Droid Sans

nspire-gcc -Wall -W -marm -Os -c freetype_demo.c
freetype_demo.c: In function ‘main’:
freetype_demo.c:98:40: error: ‘droid_DroidSans_ttf’ undeclared (first use in this function)
   error = FT_New_Memory_Face( library, droid_DroidSans_ttf, droid_DroidSans_ttf_len, 0, &face ); /* create face object */
                                        ^~~~~~~~~~~~~~~~~~~
freetype_demo.c:98:40: note: each undeclared identifier is reported only once for each function it appears in
freetype_demo.c:98:61: error: ‘droid_DroidSans_ttf_len’ undeclared (first use in this function)
   error = FT_New_Memory_Face( library, droid_DroidSans_ttf, droid_DroidSans_ttf_len, 0, &face ); /* create face object */

Is there something I need to download? I've got the font and everything it just wont go.

Missing a correct interrupt hook

Hi. I worked on my own game engine and I actually need the interruptions to work for it to allow the engine to make a robust 60 FPS triple buffering (because !!SCIENCE!!).

With Streetwalrus (that part is mostly that work), we came to overtake some part of the code to hook our own interrupt, blocking us from syscalls and file I/O and also, for unknown reasons, it doesn't work sometimes, the interruptions desyncs, the screen flickers and once the program exists (and disables the interruption hook) triggers a reboot. Also, the interruption code is the only thing that limit us from making a non-CX version of the code.

The interruption code is here : link.

So, is it possible to hook on the OS' handler and get an API to register custom handlers to allow a smoother and crash-less implementation, please? Thanks in advance.

Make genzehn Fail

Here is the full Log

make -C ndless-sdk
make[1]: Entering directory `/vagrant/Ndless/ndless-sdk'
make -C libsyscalls
make[2]: Entering directory `/vagrant/Ndless/ndless-sdk/libsyscalls'
php mkStubs.php > ../include/syscall-decls.h
arm-none-eabi-g++ -mcpu=arm926ej-s -std=c++11 -nostdlib -O3 -fPIE -fno-exceptions -fno-rtti -mlong-calls -Wall -Werror -I ../include/ -I ../thirdparty/nspire-io/include/ -D_TINSPIRE -ffunction-sections -fdata-sections -c stubs.cpp -o stubs.o
/tmp/ccM7vF9A.s: Assembler messages:
/tmp/ccM7vF9A.s:4718: Warning: ignoring changed section attributes for .text
arm-none-eabi-g++ -mcpu=arm926ej-s -std=c++11 -nostdlib -O3 -fPIE -fno-exceptions -fno-rtti -mlong-calls -Wall -Werror -I ../include/ -I ../thirdparty/nspire-io/include/ -D_TINSPIRE -ffunction-sections -fdata-sections -c osvar.cpp -o osvar.o
arm-none-eabi-g++ -mcpu=arm926ej-s -std=c++11 -nostdlib -O3 -fPIE -fno-exceptions -fno-rtti -mlong-calls -Wall -Werror -I ../include/ -I ../thirdparty/nspire-io/include/ -D_TINSPIRE -ffunction-sections -fdata-sections -c stdlib.cpp -o stdlib.o
arm-none-eabi-ar rcs ../lib/libsyscalls.a stubs.o osvar.o stdlib.o
arm-none-eabi-g++ -mcpu=arm926ej-s -std=c++11 -nostdlib -O3 -fPIE -fno-exceptions -fno-rtti -mlong-calls -Wall -Werror -I ../include/ -I ../thirdparty/nspire-io/include/ -D_TINSPIRE -ffunction-sections -fdata-sections -D USE_NSPIREIO -c stdlib.cpp -o stdlib_nspireio.o
arm-none-eabi-ar rcs ../lib/libsyscalls_nspireio.a stubs.o osvar.o stdlib_nspireio.o
make[2]: Leaving directory `/vagrant/Ndless/ndless-sdk/libsyscalls'
make -C libndls
make[2]: Entering directory `/vagrant/Ndless/ndless-sdk/libndls'
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c any_key_pressed.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c assert_ndless_rev.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -marm -c clear_cache.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c clrscr.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c config.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c enable_relative_paths.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c file_each.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c hwtype.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -marm -c idle.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c isKeyPressed.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c _is_touchpad.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c lcd_incolor.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c lcd_ingray.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c lcd_isincolor.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c locate.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c ngc.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c on_key_pressed.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c refresh_osscr.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c _scrsize.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c set_cpu_speed.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c show_1numeric_input.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c show_2numeric_input.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c _show_msgbox.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c show_msg_user_input.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c sleep.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c touchpad.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c usbd_set_idle.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c usbd_set_protocol.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c wait_key_pressed.c
nspire-gcc -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -c wait_no_key_pressed.c
nspire-g++ -Os -nostdlib -Wall -Werror -Wextra -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -std=c++11 -c lcd_blit.cpp
"/vagrant/Ndless/ndless-sdk/toolchain/install/bin/arm-none-eabi-ar" rcs ../lib/libndls.a any_key_pressed.o assert_ndless_rev.o clear_cache.o clrscr.o config.o enable_relative_paths.o file_each.o hwtype.o idle.o isKeyPressed.o _is_touchpad.o lcd_incolor.o lcd_ingray.o lcd_isincolor.o locate.o ngc.o on_key_pressed.o refresh_osscr.o _scrsize.o set_cpu_speed.o show_1numeric_input.o show_2numeric_input.o _show_msgbox.o show_msg_user_input.o sleep.o touchpad.o usbd_set_idle.o usbd_set_protocol.o wait_key_pressed.o wait_no_key_pressed.o lcd_blit.o
make[2]: Leaving directory `/vagrant/Ndless/ndless-sdk/libndls'
make -C thirdparty
make[2]: Entering directory `/vagrant/Ndless/ndless-sdk/thirdparty'
make -C nspire-io lib
make[3]: Entering directory `/vagrant/Ndless/ndless-sdk/thirdparty/nspire-io'
nspire-gcc -Wall -W -marm -O3 -DNSPIREIO_BUILD -Wall -Werror -Wextra -D OLD_SCREEN_API -c common/console.c -o common/console.o
nspire-gcc -Wall -W -marm -O3 -DNSPIREIO_BUILD -Wall -Werror -Wextra -D OLD_SCREEN_API -c common/cursor.c -o common/cursor.o
nspire-gcc -Wall -W -marm -O3 -DNSPIREIO_BUILD -Wall -Werror -Wextra -D OLD_SCREEN_API -c common/queue.c -o common/queue.o
nspire-gcc -Wall -W -marm -O3 -DNSPIREIO_BUILD -Wall -Werror -Wextra -D OLD_SCREEN_API -c common/util.c -o common/util.o
nspire-gcc -Wall -W -marm -O3 -DNSPIREIO_BUILD -Wall -Werror -Wextra -D OLD_SCREEN_API -c arch-nspire/nspire.c -o arch-nspire/nspire.o
nspire-gcc -Wall -W -marm -O3 -DNSPIREIO_BUILD -Wall -Werror -Wextra -D OLD_SCREEN_API -c arch-nspire/nspire-uart.c -o arch-nspire/nspire-uart.o
nspire-g++ -Wall -W -marm -O3 -DNSPIREIO_BUILD -Wall -Werror -Wextra -D OLD_SCREEN_API -c common/cpp/console.cpp -o common/cpp/console.o
nspire-g++ -Wall -W -marm -O3 -DNSPIREIO_BUILD -Wall -Werror -Wextra -D OLD_SCREEN_API -c common/cpp/file.cpp -o common/cpp/file.o
nspire-g++ -Wall -W -marm -O3 -DNSPIREIO_BUILD -Wall -Werror -Wextra -D OLD_SCREEN_API -c common/cpp/uart.cpp -o common/cpp/uart.o
mkdir -p lib
"/vagrant/Ndless/ndless-sdk/toolchain/install/bin/arm-none-eabi-ar" rcs "lib/libnspireio.a" common/console.o common/cursor.o common/queue.o common/util.o arch-nspire/nspire.o arch-nspire/nspire-uart.o common/cpp/console.o common/cpp/file.o common/cpp/uart.o
make[3]: Leaving directory `/vagrant/Ndless/ndless-sdk/thirdparty/nspire-io'
make ../lib/libnspireio.a ../include/nspireio2.h  ../include/nspireio/console.hpp  ../include/nspireio/file.hpp  ../include/nspireio/ios_base.hpp  ../include/nspireio/ios_base.ipp  ../include/nspireio/nspireio.h  ../include/nspireio/platform.h  ../include/nspireio/platform-nspire.h  ../include/nspireio/platform-prizm.h  ../include/nspireio/queue.h  ../include/nspireio/uart.hpp
make[3]: Entering directory `/vagrant/Ndless/ndless-sdk/thirdparty'
cp nspire-io/lib/libnspireio.a ../lib/libnspireio.a
mkdir -p ../include/nspireio
cp nspire-io/include/nspireio2.h ../include/nspireio2.h
cp nspire-io/include/nspireio/console.hpp ../include/nspireio/console.hpp
cp nspire-io/include/nspireio/file.hpp ../include/nspireio/file.hpp
cp nspire-io/include/nspireio/ios_base.hpp ../include/nspireio/ios_base.hpp
cp nspire-io/include/nspireio/ios_base.ipp ../include/nspireio/ios_base.ipp
cp nspire-io/include/nspireio/nspireio.h ../include/nspireio/nspireio.h
cp nspire-io/include/nspireio/platform.h ../include/nspireio/platform.h
cp nspire-io/include/nspireio/platform-nspire.h ../include/nspireio/platform-nspire.h
cp nspire-io/include/nspireio/platform-prizm.h ../include/nspireio/platform-prizm.h
cp nspire-io/include/nspireio/queue.h ../include/nspireio/queue.h
cp nspire-io/include/nspireio/uart.hpp ../include/nspireio/uart.hpp
make[3]: Leaving directory `/vagrant/Ndless/ndless-sdk/thirdparty'
cd zlib && (make libz.a || (CC=nspire-gcc CHOST=arm-none-eabi CFLAGS="-O3 -c" ./configure --static && make libz.a))
make[3]: Entering directory `/vagrant/Ndless/ndless-sdk/thirdparty/zlib'
nspire-gcc -O3 -c  -DHAVE_HIDDEN   -c -o adler32.o adler32.c
nspire-gcc -O3 -c  -DHAVE_HIDDEN   -c -o crc32.o crc32.c
nspire-gcc -O3 -c  -DHAVE_HIDDEN   -c -o deflate.o deflate.c
nspire-gcc -O3 -c  -DHAVE_HIDDEN   -c -o infback.o infback.c
nspire-gcc -O3 -c  -DHAVE_HIDDEN   -c -o inffast.o inffast.c
nspire-gcc -O3 -c  -DHAVE_HIDDEN   -c -o inflate.o inflate.c
nspire-gcc -O3 -c  -DHAVE_HIDDEN   -c -o inftrees.o inftrees.c
nspire-gcc -O3 -c  -DHAVE_HIDDEN   -c -o trees.o trees.c
nspire-gcc -O3 -c  -DHAVE_HIDDEN   -c -o zutil.o zutil.c
nspire-gcc -O3 -c  -DHAVE_HIDDEN   -c -o compress.o compress.c
nspire-gcc -O3 -c  -DHAVE_HIDDEN   -c -o uncompr.o uncompr.c
nspire-gcc -O3 -c  -DHAVE_HIDDEN   -c -o gzclose.o gzclose.c
nspire-gcc -O3 -c  -DHAVE_HIDDEN   -c -o gzlib.o gzlib.c
nspire-gcc -O3 -c  -DHAVE_HIDDEN   -c -o gzread.o gzread.c
nspire-gcc -O3 -c  -DHAVE_HIDDEN   -c -o gzwrite.o gzwrite.c
arm-none-eabi-ar rc libz.a adler32.o crc32.o deflate.o infback.o inffast.o inflate.o inftrees.o trees.o zutil.o compress.o uncompr.o gzclose.o gzlib.o gzread.o gzwrite.o 
make[3]: Leaving directory `/vagrant/Ndless/ndless-sdk/thirdparty/zlib'
make ../lib/libz.a ../include/zlib.h ../include/zconf.h
make[3]: Entering directory `/vagrant/Ndless/ndless-sdk/thirdparty'
cp zlib/libz.a ../lib/libz.a
cp zlib/zlib.h ../include/zlib.h
cp zlib/zconf.h ../include/zconf.h
make[3]: Leaving directory `/vagrant/Ndless/ndless-sdk/thirdparty'
make -C freetype2 CC=nspire-gcc CFLAGS="-O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c" AR="/vagrant/Ndless/ndless-sdk/toolchain/install/bin/arm-none-eabi-ar" SYSTEM_ZLIB=yes library
make[3]: Entering directory `/vagrant/Ndless/ndless-sdk/thirdparty/freetype2'
nspire-gcc  -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/ftsystem.o src/base/ftsystem.c
nspire-gcc  -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/ftdebug.o src/base/ftdebug.c
nspire-gcc  -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/ftinit.o src/base/ftinit.c
nspire-gcc  -I./src/base -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/ftbase.o ./src/base/ftbase.c
nspire-gcc  -I./src/base -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/ftbbox.o src/base/ftbbox.c
nspire-gcc  -I./src/base -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/ftbdf.o src/base/ftbdf.c
nspire-gcc  -I./src/base -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/ftbitmap.o src/base/ftbitmap.c
nspire-gcc  -I./src/base -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/ftcid.o src/base/ftcid.c
nspire-gcc  -I./src/base -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/ftfntfmt.o src/base/ftfntfmt.c
nspire-gcc  -I./src/base -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/ftfstype.o src/base/ftfstype.c
nspire-gcc  -I./src/base -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/ftgasp.o src/base/ftgasp.c
nspire-gcc  -I./src/base -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/ftglyph.o src/base/ftglyph.c
nspire-gcc  -I./src/base -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/ftgxval.o src/base/ftgxval.c
nspire-gcc  -I./src/base -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/ftlcdfil.o src/base/ftlcdfil.c
nspire-gcc  -I./src/base -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/ftmm.o src/base/ftmm.c
nspire-gcc  -I./src/base -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/ftotval.o src/base/ftotval.c
nspire-gcc  -I./src/base -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/ftpatent.o src/base/ftpatent.c
nspire-gcc  -I./src/base -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/ftpfr.o src/base/ftpfr.c
nspire-gcc  -I./src/base -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/ftstroke.o src/base/ftstroke.c
nspire-gcc  -I./src/base -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/ftsynth.o src/base/ftsynth.c
nspire-gcc  -I./src/base -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/fttype1.o src/base/fttype1.c
nspire-gcc  -I./src/base -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/ftwinfnt.o src/base/ftwinfnt.c
nspire-gcc  -I./src/truetype -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/truetype.o ./src/truetype/truetype.c
nspire-gcc  -I./src/type1 -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/type1.o ./src/type1/type1.c
nspire-gcc  -I./src/cff -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/cff.o ./src/cff/cff.c
nspire-gcc  -I./src/cid -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/type1cid.o ./src/cid/type1cid.c
nspire-gcc  -I./src/pfr -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/pfr.o ./src/pfr/pfr.c
nspire-gcc  -I./src/type42 -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/type42.o ./src/type42/type42.c
nspire-gcc  -I./src/winfonts -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/winfnt.o ./src/winfonts/winfnt.c
nspire-gcc  -I./src/pcf -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/pcf.o ./src/pcf/pcf.c
nspire-gcc  -I./src/bdf -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/bdf.o ./src/bdf/bdf.c
nspire-gcc  -I./src/sfnt -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/sfnt.o ./src/sfnt/sfnt.c
nspire-gcc  -I./src/autofit -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/autofit.o ./src/autofit/autofit.c
nspire-gcc  -I./src/pshinter -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/pshinter.o ./src/pshinter/pshinter.c
nspire-gcc  -I./src/raster -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/raster.o ./src/raster/raster.c
nspire-gcc  -I./src/smooth -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/smooth.o ./src/smooth/smooth.c
nspire-gcc  -I./src/cache -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/ftcache.o ./src/cache/ftcache.c
nspire-gcc  -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/ftgzip.o ./src/gzip/ftgzip.c
nspire-gcc  -I./src/lzw -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/ftlzw.o ./src/lzw/ftlzw.c
nspire-gcc  -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/ftbzip2.o ./src/bzip2/ftbzip2.c
nspire-gcc  -I./src/psaux -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/psaux.o ./src/psaux/psaux.c
nspire-gcc  -I./src/psnames -I./objs -I./builds/ansi -I./include  -O2 -Wall -Wextra -DFT_CONFIG_OPTION_SYSTEM_ZLIB -c -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/psnames.o ./src/psnames/psnames.c
rm -f ./objs/libfreetype.a 
/vagrant/Ndless/ndless-sdk/toolchain/install/bin/arm-none-eabi-ar -r objs/libfreetype.a  ./objs/ftsystem.o ./objs/ftdebug.o ./objs/ftinit.o ./objs/ftbase.o ./objs/ftbbox.o ./objs/ftbdf.o ./objs/ftbitmap.o ./objs/ftcid.o ./objs/ftfntfmt.o ./objs/ftfstype.o ./objs/ftgasp.o ./objs/ftglyph.o ./objs/ftgxval.o ./objs/ftlcdfil.o ./objs/ftmm.o ./objs/ftotval.o ./objs/ftpatent.o ./objs/ftpfr.o ./objs/ftstroke.o ./objs/ftsynth.o ./objs/fttype1.o ./objs/ftwinfnt.o ./objs/truetype.o ./objs/type1.o ./objs/cff.o ./objs/type1cid.o ./objs/pfr.o ./objs/type42.o ./objs/winfnt.o ./objs/pcf.o ./objs/bdf.o ./objs/sfnt.o ./objs/autofit.o ./objs/pshinter.o ./objs/raster.o ./objs/smooth.o ./objs/ftcache.o ./objs/ftgzip.o ./objs/ftlzw.o ./objs/ftbzip2.o ./objs/psaux.o ./objs/psnames.o
/vagrant/Ndless/ndless-sdk/toolchain/install/bin/arm-none-eabi-ar: creating objs/libfreetype.a
make[3]: Leaving directory `/vagrant/Ndless/ndless-sdk/thirdparty/freetype2'
make ../lib/libfreetype.a ../include/freetype2/ft2build.h ../include/freetype2/freetype/freetype.h ../include/freetype2/freetype/ftadvanc.h ../include/freetype2/freetype/ftautoh.h ../include/freetype2/freetype/ftbbox.h ../include/freetype2/freetype/ftbdf.h ../include/freetype2/freetype/ftbitmap.h ../include/freetype2/freetype/ftbzip2.h ../include/freetype2/freetype/ftcache.h ../include/freetype2/freetype/ftcffdrv.h ../include/freetype2/freetype/ftchapters.h ../include/freetype2/freetype/ftcid.h ../include/freetype2/freetype/fterrdef.h ../include/freetype2/freetype/fterrors.h ../include/freetype2/freetype/ftfntfmt.h ../include/freetype2/freetype/ftgasp.h ../include/freetype2/freetype/ftglyph.h ../include/freetype2/freetype/ftgxval.h ../include/freetype2/freetype/ftgzip.h ../include/freetype2/freetype/ftimage.h ../include/freetype2/freetype/ftincrem.h ../include/freetype2/freetype/ftlcdfil.h ../include/freetype2/freetype/ftlist.h ../include/freetype2/freetype/ftlzw.h ../include/freetype2/freetype/ftmac.h ../include/freetype2/freetype/ftmm.h ../include/freetype2/freetype/ftmodapi.h ../include/freetype2/freetype/ftmoderr.h ../include/freetype2/freetype/ftotval.h ../include/freetype2/freetype/ftoutln.h ../include/freetype2/freetype/ftpfr.h ../include/freetype2/freetype/ftrender.h ../include/freetype2/freetype/ftsizes.h ../include/freetype2/freetype/ftsnames.h ../include/freetype2/freetype/ftstroke.h ../include/freetype2/freetype/ftsynth.h ../include/freetype2/freetype/ftsystem.h ../include/freetype2/freetype/fttrigon.h ../include/freetype2/freetype/ftttdrv.h ../include/freetype2/freetype/fttypes.h ../include/freetype2/freetype/ftwinfnt.h ../include/freetype2/freetype/t1tables.h ../include/freetype2/freetype/ttnameid.h ../include/freetype2/freetype/tttables.h ../include/freetype2/freetype/tttags.h ../include/freetype2/freetype/ttunpat.h ../include/freetype2/freetype/config/ftconfig.h ../include/freetype2/freetype/config/ftheader.h ../include/freetype2/freetype/config/ftmodule.h ../include/freetype2/freetype/config/ftoption.h ../include/freetype2/freetype/config/ftstdlib.h
make[3]: Entering directory `/vagrant/Ndless/ndless-sdk/thirdparty'
cp freetype2/objs/libfreetype.a ../lib/libfreetype.a
mkdir -p ../include/freetype2/freetype/config
cp freetype2/include/ft2build.h ../include/freetype2/ft2build.h
cp freetype2/include/freetype/freetype.h ../include/freetype2/freetype/freetype.h
cp freetype2/include/freetype/ftadvanc.h ../include/freetype2/freetype/ftadvanc.h
cp freetype2/include/freetype/ftautoh.h ../include/freetype2/freetype/ftautoh.h
cp freetype2/include/freetype/ftbbox.h ../include/freetype2/freetype/ftbbox.h
cp freetype2/include/freetype/ftbdf.h ../include/freetype2/freetype/ftbdf.h
cp freetype2/include/freetype/ftbitmap.h ../include/freetype2/freetype/ftbitmap.h
cp freetype2/include/freetype/ftbzip2.h ../include/freetype2/freetype/ftbzip2.h
cp freetype2/include/freetype/ftcache.h ../include/freetype2/freetype/ftcache.h
cp freetype2/include/freetype/ftcffdrv.h ../include/freetype2/freetype/ftcffdrv.h
cp freetype2/include/freetype/ftchapters.h ../include/freetype2/freetype/ftchapters.h
cp freetype2/include/freetype/ftcid.h ../include/freetype2/freetype/ftcid.h
cp freetype2/include/freetype/fterrdef.h ../include/freetype2/freetype/fterrdef.h
cp freetype2/include/freetype/fterrors.h ../include/freetype2/freetype/fterrors.h
cp freetype2/include/freetype/ftfntfmt.h ../include/freetype2/freetype/ftfntfmt.h
cp freetype2/include/freetype/ftgasp.h ../include/freetype2/freetype/ftgasp.h
cp freetype2/include/freetype/ftglyph.h ../include/freetype2/freetype/ftglyph.h
cp freetype2/include/freetype/ftgxval.h ../include/freetype2/freetype/ftgxval.h
cp freetype2/include/freetype/ftgzip.h ../include/freetype2/freetype/ftgzip.h
cp freetype2/include/freetype/ftimage.h ../include/freetype2/freetype/ftimage.h
cp freetype2/include/freetype/ftincrem.h ../include/freetype2/freetype/ftincrem.h
cp freetype2/include/freetype/ftlcdfil.h ../include/freetype2/freetype/ftlcdfil.h
cp freetype2/include/freetype/ftlist.h ../include/freetype2/freetype/ftlist.h
cp freetype2/include/freetype/ftlzw.h ../include/freetype2/freetype/ftlzw.h
cp freetype2/include/freetype/ftmac.h ../include/freetype2/freetype/ftmac.h
cp freetype2/include/freetype/ftmm.h ../include/freetype2/freetype/ftmm.h
cp freetype2/include/freetype/ftmodapi.h ../include/freetype2/freetype/ftmodapi.h
cp freetype2/include/freetype/ftmoderr.h ../include/freetype2/freetype/ftmoderr.h
cp freetype2/include/freetype/ftotval.h ../include/freetype2/freetype/ftotval.h
cp freetype2/include/freetype/ftoutln.h ../include/freetype2/freetype/ftoutln.h
cp freetype2/include/freetype/ftpfr.h ../include/freetype2/freetype/ftpfr.h
cp freetype2/include/freetype/ftrender.h ../include/freetype2/freetype/ftrender.h
cp freetype2/include/freetype/ftsizes.h ../include/freetype2/freetype/ftsizes.h
cp freetype2/include/freetype/ftsnames.h ../include/freetype2/freetype/ftsnames.h
cp freetype2/include/freetype/ftstroke.h ../include/freetype2/freetype/ftstroke.h
cp freetype2/include/freetype/ftsynth.h ../include/freetype2/freetype/ftsynth.h
cp freetype2/include/freetype/ftsystem.h ../include/freetype2/freetype/ftsystem.h
cp freetype2/include/freetype/fttrigon.h ../include/freetype2/freetype/fttrigon.h
cp freetype2/include/freetype/ftttdrv.h ../include/freetype2/freetype/ftttdrv.h
cp freetype2/include/freetype/fttypes.h ../include/freetype2/freetype/fttypes.h
cp freetype2/include/freetype/ftwinfnt.h ../include/freetype2/freetype/ftwinfnt.h
cp freetype2/include/freetype/t1tables.h ../include/freetype2/freetype/t1tables.h
cp freetype2/include/freetype/ttnameid.h ../include/freetype2/freetype/ttnameid.h
cp freetype2/include/freetype/tttables.h ../include/freetype2/freetype/tttables.h
cp freetype2/include/freetype/tttags.h ../include/freetype2/freetype/tttags.h
cp freetype2/include/freetype/ttunpat.h ../include/freetype2/freetype/ttunpat.h
cp freetype2/include/freetype/config/ftconfig.h ../include/freetype2/freetype/config/ftconfig.h
cp freetype2/include/freetype/config/ftheader.h ../include/freetype2/freetype/config/ftheader.h
cp freetype2/objs/ftmodule.h ../include/freetype2/freetype/config/ftmodule.h
cp freetype2/include/freetype/config/ftoption.h ../include/freetype2/freetype/config/ftoption.h
cp freetype2/include/freetype/config/ftstdlib.h ../include/freetype2/freetype/config/ftstdlib.h
make[3]: Leaving directory `/vagrant/Ndless/ndless-sdk/thirdparty'
make[2]: Leaving directory `/vagrant/Ndless/ndless-sdk/thirdparty'
make -C tools
make[2]: Entering directory `/vagrant/Ndless/ndless-sdk/tools'
make all in luna...
make[3]: Entering directory `/vagrant/Ndless/ndless-sdk/tools/luna'
cc -W -Wall -DUSE_FILE32API -Wno-unused-parameter   -c -o luna.o luna.c
cc -W -Wall -DUSE_FILE32API -Wno-unused-parameter   -c -o zip.o minizip-1.1/zip.c
minizip-1.1/zip.c: In function ‘zipOpenNewFileInZip4_64’:
minizip-1.1/zip.c:1265:28: warning: assignment from incompatible pointer type [enabled by default]
cc -W -Wall -DUSE_FILE32API -Wno-unused-parameter   -c -o ioapi.o minizip-1.1/ioapi.c
gcc -o luna luna.o zip.o ioapi.o -lssl -lz -lcrypto
make[3]: Leaving directory `/vagrant/Ndless/ndless-sdk/tools/luna'
make all in genzehn...
make[3]: Entering directory `/vagrant/Ndless/ndless-sdk/tools/genzehn'
g++ -Wall -Wextra -std=c++11 -I elfio-2.2 genzehn.cpp -lboost_program_options -lz -o ../../bin/genzehn || g++ -Wall -Wextra -std=c++11 -I elfio-2.2 genzehn.cpp -lboost_program_options-mt -lz -o ../../bin/genzehn
In file included from genzehn.cpp:12:0:
zehn.h:49:28: error: bit-field ‘type’ with non-integral type
zehn.h:74:27: error: bit-field ‘type’ with non-integral type
genzehn.cpp: In function ‘int main(int, char**)’:
genzehn.cpp:158:49: error: ‘__gnu_cxx::__alloc_traits<std::allocator<Zehn_reloc> >::value_type’ has no member named ‘type’
genzehn.cpp:164:25: error: ‘struct Zehn_flag’ has no member named ‘type’
genzehn.cpp:166:34: error: could not convert ‘(Zehn_flag_type)8u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:169:34: error: could not convert ‘(Zehn_flag_type)10u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:172:34: error: could not convert ‘(Zehn_flag_type)9u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:175:34: error: could not convert ‘(Zehn_flag_type)11u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:178:34: error: could not convert ‘(Zehn_flag_type)1u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:179:34: error: could not convert ‘(Zehn_flag_type)0u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:180:34: error: could not convert ‘(Zehn_flag_type)3u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:181:34: error: could not convert ‘(Zehn_flag_type)2u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:182:34: error: could not convert ‘(Zehn_flag_type)7u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:183:34: error: could not convert ‘(Zehn_flag_type)5u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:184:34: error: could not convert ‘(Zehn_flag_type)4u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:185:34: error: could not convert ‘(Zehn_flag_type)6u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:188:34: error: could not convert ‘(Zehn_flag_type)12u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:192:34: error: could not convert ‘(Zehn_flag_type)13u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:198:76: error: ‘struct Zehn_flag’ has no member named ‘type’
genzehn.cpp:258:126: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:258:126: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:260:130: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:260:130: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:262:98: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:262:98: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:264:130: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:264:130: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:267:101: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:267:101: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:269:106: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:269:106: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:271:101: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:271:101: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:273:106: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:273:106: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:275:91: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:275:91: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:276:97: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:276:97: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:277:97: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:277:97: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:278:89: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:278:89: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:397:72: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:397:72: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:407:67: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:407:67: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:425:107: error: no matching function for call to ‘std::vector<Zehn_reloc>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:425:107: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_reloc; _Alloc = std::allocator<Zehn_reloc>; std::vector<_Tp, _Alloc>::value_type = Zehn_reloc]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_reloc&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_reloc; _Alloc = std::allocator<Zehn_reloc>; std::vector<_Tp, _Alloc>::value_type = Zehn_reloc]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_reloc>::value_type&& {aka Zehn_reloc&&}’
genzehn.cpp:497:106: error: no matching function for call to ‘std::vector<Zehn_reloc>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:497:106: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_reloc; _Alloc = std::allocator<Zehn_reloc>; std::vector<_Tp, _Alloc>::value_type = Zehn_reloc]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_reloc&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_reloc; _Alloc = std::allocator<Zehn_reloc>; std::vector<_Tp, _Alloc>::value_type = Zehn_reloc]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_reloc>::value_type&& {aka Zehn_reloc&&}’
genzehn.cpp:505:66: error: no matching function for call to ‘std::vector<Zehn_reloc>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:505:66: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_reloc; _Alloc = std::allocator<Zehn_reloc>; std::vector<_Tp, _Alloc>::value_type = Zehn_reloc]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_reloc&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_reloc; _Alloc = std::allocator<Zehn_reloc>; std::vector<_Tp, _Alloc>::value_type = Zehn_reloc]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_reloc>::value_type&& {aka Zehn_reloc&&}’
genzehn.cpp:529:132: error: no matching function for call to ‘std::vector<Zehn_reloc>::insert(std::vector<Zehn_reloc>::iterator, <brace-enclosed initializer list>)’
genzehn.cpp:529:132: note: candidates are:
In file included from /usr/include/c++/4.7/vector:70:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/vector.tcc:108:5: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::iterator, const value_type&) [with _Tp = Zehn_reloc; _Alloc = std::allocator<Zehn_reloc>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<Zehn_reloc*, std::vector<Zehn_reloc> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = Zehn_reloc*; std::vector<_Tp, _Alloc>::value_type = Zehn_reloc]
/usr/include/c++/4.7/bits/vector.tcc:108:5: note:   no known conversion for argument 2 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_reloc&}’
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:968:7: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::iterator, std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_reloc; _Alloc = std::allocator<Zehn_reloc>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<Zehn_reloc*, std::vector<Zehn_reloc> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = Zehn_reloc*; std::vector<_Tp, _Alloc>::value_type = Zehn_reloc]
/usr/include/c++/4.7/bits/stl_vector.h:968:7: note:   no known conversion for argument 2 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_reloc>::value_type&& {aka Zehn_reloc&&}’
/usr/include/c++/4.7/bits/stl_vector.h:985:7: note: void std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::iterator, std::initializer_list<_Tp>) [with _Tp = Zehn_reloc; _Alloc = std::allocator<Zehn_reloc>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<Zehn_reloc*, std::vector<Zehn_reloc> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = Zehn_reloc*]
/usr/include/c++/4.7/bits/stl_vector.h:985:7: note:   no known conversion for argument 2 from ‘<brace-enclosed initializer list>’ to ‘std::initializer_list<Zehn_reloc>’
/usr/include/c++/4.7/bits/stl_vector.h:1003:7: note: void std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::iterator, std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = Zehn_reloc; _Alloc = std::allocator<Zehn_reloc>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<Zehn_reloc*, std::vector<Zehn_reloc> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = Zehn_reloc*; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = Zehn_reloc]
/usr/include/c++/4.7/bits/stl_vector.h:1003:7: note:   candidate expects 3 arguments, 2 provided
/usr/include/c++/4.7/bits/stl_vector.h:1022:9: note: template<class _InputIterator> void std::vector::insert(std::vector<_Tp, _Alloc>::iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Tp = Zehn_reloc; _Alloc = std::allocator<Zehn_reloc>]
/usr/include/c++/4.7/bits/stl_vector.h:1022:9: note:   template argument deduction/substitution failed:
genzehn.cpp:529:132: note:   candidate expects 3 arguments, 2 provided
In file included from genzehn.cpp:12:0:
zehn.h:49:28: error: bit-field ‘type’ with non-integral type
zehn.h:74:27: error: bit-field ‘type’ with non-integral type
genzehn.cpp: In function ‘int main(int, char**)’:
genzehn.cpp:158:49: error: ‘__gnu_cxx::__alloc_traits<std::allocator<Zehn_reloc> >::value_type’ has no member named ‘type’
genzehn.cpp:164:25: error: ‘struct Zehn_flag’ has no member named ‘type’
genzehn.cpp:166:34: error: could not convert ‘(Zehn_flag_type)8u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:169:34: error: could not convert ‘(Zehn_flag_type)10u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:172:34: error: could not convert ‘(Zehn_flag_type)9u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:175:34: error: could not convert ‘(Zehn_flag_type)11u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:178:34: error: could not convert ‘(Zehn_flag_type)1u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:179:34: error: could not convert ‘(Zehn_flag_type)0u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:180:34: error: could not convert ‘(Zehn_flag_type)3u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:181:34: error: could not convert ‘(Zehn_flag_type)2u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:182:34: error: could not convert ‘(Zehn_flag_type)7u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:183:34: error: could not convert ‘(Zehn_flag_type)5u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:184:34: error: could not convert ‘(Zehn_flag_type)4u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:185:34: error: could not convert ‘(Zehn_flag_type)6u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:188:34: error: could not convert ‘(Zehn_flag_type)12u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:192:34: error: could not convert ‘(Zehn_flag_type)13u’ from ‘Zehn_flag_type’ to ‘<type error>’
genzehn.cpp:198:76: error: ‘struct Zehn_flag’ has no member named ‘type’
genzehn.cpp:258:126: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:258:126: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:260:130: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:260:130: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:262:98: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:262:98: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:264:130: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:264:130: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:267:101: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:267:101: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:269:106: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:269:106: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:271:101: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:271:101: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:273:106: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:273:106: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:275:91: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:275:91: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:276:97: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:276:97: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:277:97: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:277:97: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:278:89: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:278:89: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:397:72: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:397:72: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:407:67: error: no matching function for call to ‘std::vector<Zehn_flag>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:407:67: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_flag&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_flag; _Alloc = std::allocator<Zehn_flag>; std::vector<_Tp, _Alloc>::value_type = Zehn_flag]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_flag>::value_type&& {aka Zehn_flag&&}’
genzehn.cpp:425:107: error: no matching function for call to ‘std::vector<Zehn_reloc>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:425:107: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_reloc; _Alloc = std::allocator<Zehn_reloc>; std::vector<_Tp, _Alloc>::value_type = Zehn_reloc]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_reloc&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_reloc; _Alloc = std::allocator<Zehn_reloc>; std::vector<_Tp, _Alloc>::value_type = Zehn_reloc]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_reloc>::value_type&& {aka Zehn_reloc&&}’
genzehn.cpp:497:106: error: no matching function for call to ‘std::vector<Zehn_reloc>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:497:106: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_reloc; _Alloc = std::allocator<Zehn_reloc>; std::vector<_Tp, _Alloc>::value_type = Zehn_reloc]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_reloc&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_reloc; _Alloc = std::allocator<Zehn_reloc>; std::vector<_Tp, _Alloc>::value_type = Zehn_reloc]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_reloc>::value_type&& {aka Zehn_reloc&&}’
genzehn.cpp:505:66: error: no matching function for call to ‘std::vector<Zehn_reloc>::push_back(<brace-enclosed initializer list>)’
genzehn.cpp:505:66: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Zehn_reloc; _Alloc = std::allocator<Zehn_reloc>; std::vector<_Tp, _Alloc>::value_type = Zehn_reloc]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_reloc&}’
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_reloc; _Alloc = std::allocator<Zehn_reloc>; std::vector<_Tp, _Alloc>::value_type = Zehn_reloc]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_reloc>::value_type&& {aka Zehn_reloc&&}’
genzehn.cpp:529:132: error: no matching function for call to ‘std::vector<Zehn_reloc>::insert(std::vector<Zehn_reloc>::iterator, <brace-enclosed initializer list>)’
genzehn.cpp:529:132: note: candidates are:
In file included from /usr/include/c++/4.7/vector:70:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/vector.tcc:108:5: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::iterator, const value_type&) [with _Tp = Zehn_reloc; _Alloc = std::allocator<Zehn_reloc>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<Zehn_reloc*, std::vector<Zehn_reloc> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = Zehn_reloc*; std::vector<_Tp, _Alloc>::value_type = Zehn_reloc]
/usr/include/c++/4.7/bits/vector.tcc:108:5: note:   no known conversion for argument 2 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Zehn_reloc&}’
In file included from /usr/include/c++/4.7/vector:65:0,
                 from /usr/include/c++/4.7/bits/random.h:34,
                 from /usr/include/c++/4.7/random:50,
                 from /usr/include/c++/4.7/bits/stl_algo.h:67,
                 from /usr/include/c++/4.7/algorithm:63,
                 from genzehn.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:968:7: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::iterator, std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Zehn_reloc; _Alloc = std::allocator<Zehn_reloc>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<Zehn_reloc*, std::vector<Zehn_reloc> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = Zehn_reloc*; std::vector<_Tp, _Alloc>::value_type = Zehn_reloc]
/usr/include/c++/4.7/bits/stl_vector.h:968:7: note:   no known conversion for argument 2 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Zehn_reloc>::value_type&& {aka Zehn_reloc&&}’
/usr/include/c++/4.7/bits/stl_vector.h:985:7: note: void std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::iterator, std::initializer_list<_Tp>) [with _Tp = Zehn_reloc; _Alloc = std::allocator<Zehn_reloc>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<Zehn_reloc*, std::vector<Zehn_reloc> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = Zehn_reloc*]
/usr/include/c++/4.7/bits/stl_vector.h:985:7: note:   no known conversion for argument 2 from ‘<brace-enclosed initializer list>’ to ‘std::initializer_list<Zehn_reloc>’
/usr/include/c++/4.7/bits/stl_vector.h:1003:7: note: void std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::iterator, std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = Zehn_reloc; _Alloc = std::allocator<Zehn_reloc>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<Zehn_reloc*, std::vector<Zehn_reloc> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = Zehn_reloc*; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = Zehn_reloc]
/usr/include/c++/4.7/bits/stl_vector.h:1003:7: note:   candidate expects 3 arguments, 2 provided
/usr/include/c++/4.7/bits/stl_vector.h:1022:9: note: template<class _InputIterator> void std::vector::insert(std::vector<_Tp, _Alloc>::iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Tp = Zehn_reloc; _Alloc = std::allocator<Zehn_reloc>]
/usr/include/c++/4.7/bits/stl_vector.h:1022:9: note:   template argument deduction/substitution failed:
genzehn.cpp:529:132: note:   candidate expects 3 arguments, 2 provided
make[3]: *** [../../bin/genzehn] Error 1
make[3]: Leaving directory `/vagrant/Ndless/ndless-sdk/tools/genzehn'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/vagrant/Ndless/ndless-sdk/tools'
make[1]: *** [build-tools] Error 2
make[1]: Leaving directory `/vagrant/Ndless/ndless-sdk'
make: *** [build-ndless-sdk] Error 2```

Yet another Ndless compilation issue

Another version of ndless, another issue I'm facing. I can't compile the toolchain as it yield this error:

g++    -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc  gcov.o \
    hash-table.o ggc-none.o libcommon.a ../libcpp/libcpp.a   ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a  -o gcov
/usr/bin/ld: gcov.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
gcov.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:2751: recipe for target 'gcov' failed

Edit : I still am on Arch x86_64.

How to contribute to Ndless?

I want to help contribute to Ndless (fix bugs, make features like hooks more reliable, learn how the whole thing works in-depth , etc).

I am a programmer and I have a little experience with C/C++ (mostly in the form of Arduino programming) and I have taken classes in programming concepts.

How would I get started? Should I read up on Assembly or how integrated circuits work or just more in-depth on C programming?

@Vogtinator has helped me a lot, and I want to be able to do the same for other people.

<dirent.h> in newlib build step.

I have noticed that the directory newlib/libc/posix is not built at all (newlib compiles fine, but it probably skip this folder). The Makefile of this directory is generated but it fails with this error :

error: #error "<dirent.h> not supported"

while trying to build closedir.c.

In fact it tries to use newlib/libc/include/sys/dirent.h which does not seem to be supported ... Maybe it should use Ndless/ndless-sdk/include/dirent.h instead ?

I don't know if the posix directory has been disabled, but I need popen and pclose functions ... (popen.c does not rely on dirent.h, so maybe I could skip closedir.c and the other files that require dirent.h)

Malloc leaks memory

I noticed that malloc, when used and even if freed,
leaks memory and can cause the calculator to become unstable.
(happens when you make heavy use of malloc)
For my Picodrive port, when i (mostly) switched from malloc
to just a bunch of arrays, the weird issues i had were gone.

Error while building ndless and sdk

In top level of ndless, when i type "make" this appears:

cygwinusr@antonio-laptop ~/ndless
$ make
make all in ndless-sdk...
make[1]: Entering directory '/home/cygwinusr/ndless/ndless-sdk'
make all in tools...
make[2]: Entering directory '/home/cygwinusr/ndless/ndless-sdk/tools'
make all in luna...
make[3]: Entering directory '/home/cygwinusr/ndless/ndless-sdk/tools/luna'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/cygwinusr/ndless/ndless-sdk/tools/luna'
make all in zehn_loader...
make[3]: Entering directory '/home/cygwinusr/ndless/ndless-sdk/tools/zehn_loader'
"" -g -Os -Wall -Wextra -march=armv5te -fPIE -std=c++11 -fno-rtti -fno-exceptions -Wl,-Tldscript -nostdlib -nostartfiles -I ../../include -D _LDBL_EQ_DBL loader.cpp -o zehn_loader.tns.elf
/bin/sh: : command not found
Makefile:12: recipe for target 'zehn_loader.tns.elf' failed
make[3]: *** [zehn_loader.tns.elf] Error 127
make[3]: Leaving directory '/home/cygwinusr/ndless/ndless-sdk/tools/zehn_loader'
Makefile:4: recipe for target 'all' failed
make[2]: *** [all] Error 1
make[2]: Leaving directory '/home/cygwinusr/ndless/ndless-sdk/tools'
Makefile:4: recipe for target 'all' failed
make[1]: *** [all] Error 1
make[1]: Leaving directory '/home/cygwinusr/ndless/ndless-sdk'
Makefile:4: recipe for target 'all' failed
make: *** [all] Error 1

Can anyone tell me what I'm doing wrong?

Makefile fails linking object files generated from recursively-found source files

Example:

$ make
nspire-gcc -Wall -W -marm -Os -c src/main.c
mkdir -p .
nspire-ld src/main.o -o ./test.elf
arm-none-eabi-gcc: erreur: src/main.o: No such file or directory
arm-none-eabi-gcc: erreur fatale: pas de fichier à l'entrée
compilation terminée.
Makefile:39: recipe for target 'test.elf' failed
make: *** [test.elf] Error 1

Simply because this happened:

arm-none-eabi-gcc: No such file or directory

Hi,
I recently discovered this nice sdk.
Im using Windows 10 and I installed it with Cygwin.
Because a docker is needed to "make" the c/c++ files I used the one of docker.com.

Anyway, I followed the instructions of hackspire.com but instead of
$ make nspire-gcc -Wall -W -marm -Os -c hello-sdl.c mkdir -p . nspire-ld hello-sdl.o -o ./helloworld-sdl.elf genzehn --input ./helloworld-sdl.elf --output ./helloworld-sdl.tns --name "helloworld-sdl" make-prg ./helloworld-sdl.tns ./helloworld-sdl.prg.tns

I get

Daniel@DESKTOP-3C5D8NA MINGW64 ~/Desktop/ndless/Ndless-master/ndless-sdk/samples/helloworld-sdl $ make nspire-gcc -Wall -W -marm -Os -c hello-sdl.c /cygdrive/c/Users/Daniel/Desktop/ndless/Ndless-master/ndless-sdk/bin/nspire-gcc: Zeile 20: /c/Users/Daniel/Desktop/ndless/Ndless-master/ndless-sdk/toolchain/install/bin/arm-none-eabi-gcc: No such file or directory Makefile:29: die Regel für Ziel „hello-sdl.o“ scheiterte make: *** [hello-sdl.o] Fehler 127

In the "bin/arm-none-eabi-gcc" directory are a couple of files located (also a file called arm-none-eabi-gcc) but they have got the extension .exe

Any tips?

Support for OS 4.4

Using ndless worked flawlessly on some older version I had. Today in class the calculator was somehow turned off so I turned it on. It just said System Error so I reinstalled the os. It seems like there's a new 4.4 os now which I now have installed on my calculator :/ I remember reading something about UART at the bottom connection of the calculator, am I somehow able to downgrade? I am on hardware revision U

Build order messed up

WHile redownloading and updating Ndless (because the submodule update broke the submodule detection), I can't use directly the global Makefile to build Ndless as it tries to build libsyscalls before building the toolchain

~/G/Ndless (master) $ make
make -C ndless-sdk
make[1]: Entering directory '/home/eiyeron/Git/Ndless/ndless-sdk'
make -C libsyscalls
make[2]: Entering directory '/home/eiyeron/Git/Ndless/ndless-sdk/libsyscalls'
arm-none-eabi-g++ -mcpu=arm926ej-s -std=c++11 -nostdlib -O3 -fPIE -fno-exceptions -fno-rtti -mlong-calls -Wall -Werror -I ../include/ -I ../thirdparty/nspire-io/include/ -D_TINSPIRE -ffunction-sections -fdata-sections -c stubs.cpp -o stubs.o
make[2]: arm-none-eabi-g++: Command not found
Makefile:17: recipe for target 'stubs.o' failed
make[2]: *** [stubs.o] Error 127
make[2]: Leaving directory '/home/eiyeron/Git/Ndless/ndless-sdk/libsyscalls'
Makefile:13: recipe for target 'build-libsyscalls' failed
make[1]: *** [build-libsyscalls] Error 2
make[1]: Leaving directory '/home/eiyeron/Git/Ndless/ndless-sdk'
Makefile:19: recipe for target 'build-ndless-sdk' failed
make: *** [build-ndless-sdk] Error 2

Ndless 4.2 doesn't work/stuck in loading screen after starting gbc4nspire

When I try to install Ndless 4.2, the calculator just reboots after pressing Crtl-W (the document looks exactly the same like in the linked installation guide (https://i.imgur.com/h6fW5Sq.png))and after the reboot it hasn't the green text "Ndless installed" in the top-left corner (hope dies at last). I tested it with Ndless 4.2 and 4.0.3 and the ressources inside the archive (https://tiplanet.org/forum/archives_voir.php?id=44445). At the first time it just returns to the homescreen. There were 2 new files but no green text. In order to uninstall it (I tried first to run the ndless_resources.tns with a result of an error message) I deleted all files that I saw (the both installers, ressources, themes and the logs) trough TI-Nspire ™ Computer Link Software, I also used it to move all files to the device.
I got the TI-Nspire CX (P-1015W) with the version 4.0.3.29
Thanks in advance and sorry for my bad english

truncate and ftruncate missing

I was adding filesystem bindings to Duktape when I noticed that the truncate and ftruncate syscalls don't exist. truncate should be easy to add since we have the syscall. I guess ftruncate would require storing a mapping from file descriptor to filename (similar to fstat, which is also unimplemented). Of course, I can do without these functions for now.

`--touchpad-support 0` in genzehn fails on CX

According to --help, --touchpad-support arg (=1) Whether touchpads (classic) are supported, however if I turn support off and try to run the program on a CX, ndless refuses to saying touchpads are not supported.

Mouse support

Hello,

does ndless provide a mouse integration? Your website is saying "Plug in USB keyboards and mice.".
I tried it using an Mini USB Adapter to connect my mouse to the TI NSpire CX CAS, but it doesn't work. No mouse movements and a keyboard won't work, too. I tried also the old Hidn-USB driver which doesn't work.

So for further debugging it would be interesting if you haven't implemented a mouse integration yet or if my adapter cable is broken.

Installation fail

What is a problem?

$ make
make -C ndless-sdk
make[1]: Entering directory '/home/jussi/Ndless/ndless-sdk'
make -C libsyscalls
make[2]: Entering directory '/home/jussi/Ndless/ndless-sdk/libsyscalls'
php mkStubs.php > ../include/syscall-decls.h
/bin/sh: 1: php: not found
Makefile:23: recipe for target 'stubs.cpp' failed
make[2]: *** [stubs.cpp] Error 127
make[2]: Leaving directory '/home/jussi/Ndless/ndless-sdk/libsyscalls'
Makefile:13: recipe for target 'build-libsyscalls' failed
make[1]: *** [build-libsyscalls] Error 2
make[1]: Leaving directory '/home/jussi/Ndless/ndless-sdk'
Makefile:19: recipe for target 'build-ndless-sdk' failed
make: *** [build-ndless-sdk] Error 2

No support for shared libraries

I'm trying to build a shared library with the toolchain (i.e. gcc -shared -o lib.so objs.o ), but it seems the .rel.plt section is missing in the linker script ..
I don't really know how to add it .. (I just know it is about relocation).

Hardware Revision Y

My Nspire Cx non CAS has software 4.2.0 but the hardware revision is Y. The calculator is really new so that might be why. i have installed ndless 4.2 but if I try to run any apps, an error message appears saying ndless is not compatible with the hardware. I have the latest version of ndless which is supposed to work with 4.2.0 so the problem must be with this new hardware revision, as I cannot find anyone online with a Y at the end of the P- number string at the back of their calculator. Is there a solution? if not when will Ndless be compatible with this hardware revision?

HW-W+ compatibility layer: linuxloader doesn't work (yet!)

Hello!

I have hardware revision X (yes, X the newest one ! - ) with the updated boot1 and the new LCD. The compatibility layer mostly works fine, however when i try to run Linux on it (with linuxloader), it just gives me a blank screen and freezes.

Also, on an unrelated note, on version 4.0.3 i can't install ndless (reboots when i press the 'w' key). I don't know why this happens... Could it be the updated boot1?

Is there any way to solve the linux issue (either trough ndless or updating the linuxloader)?
Thanks in advance

Can't install ndless-sdk toolchain with build_toolchain.sh

Hello!
I am using Ubuntu 16.04, and I am trying to install the Ndless-SDK. The instructions say to go into Ndless/ndless-sdk/toolchain/ and run './build_toolchain.sh.' However when I run './build_toolchain.sh' I get:
Building and installing to '/home/alek-ubuntuparallel/Ndless/ndless-sdk/toolchain/install'...
./build_toolchain.sh: 50: ./build_toolchain.sh: makeinfo: not found
makeinfo (texinfo) dependency seems to be missing!

And yes, I did use: 'git clone --recursive https://github.com/ndless-nspire/Ndless.git' I've also installed all the required packages.

Jobserver tokens only 5 out of 8

Hey so i'm trying to compile ndless sdk with mingw w64 (x64) in win 7and i'm stuck. I included the log of running build_toolchain.sh if needed http://pastebin.com/SmSCx1xt. I got it with ./build_toolchain.sh > log.txt. For some reason the printed messages were not logged so here's the output on the MinGW shell https://ghostbin.com/paste/3dnxn

I had to clone the thirdparty submodules because freetype2 was giving me a error.

In this latest build i got 7 outta 8. What should i do?

Trouble Building Ndless SDK

I am a C++ developer interested in writing apps for the ti nspire with ndless. I am on Windows and I followed the tutorial found at https://hackspire.unsads.com/index.php/C_and_assembly_development_introduction. I was able to set up Cygwin and I built and installed the toolchain/SDK. The command $ nspire-gcc works as shown in the tutorial, but when I try to build the sample program hello-sdl.c, I get the following output:

**$ make
mkdir -p .
nspire-ld hello-sdl.o -o ./helloworld-sdl.elf
arm-none-eabi-ld: cannot find -lnspireio
collect2: error: ld returned 1 exit status
Makefile:39: recipe for target 'helloworld-sdl.elf' failed
make: * [helloworld-sdl.elf] Error 1

I get a similar message when I try to make a new file from scratch:

$ nspire-tools new test
Makefile created. You can now build with the 'make' command or Ndless Editor's Tools>Build command.

**$ make
nspire-gcc -Wall -W -marm -Os -c test.c -o test.o
mkdir -p .
nspire-ld test.o -o test.elf
arm-none-eabi-ld: cannot find -lnspireio
collect2: error: ld returned 1 exit status
Makefile:39: recipe for target 'test.elf' failed
make: * [test.elf] Error 1

I also should note that I get the following output that causes the makefile in the ndless-sdk folder to terminate:

**make -C libsyscalls
make[1]: Entering directory '/cygdrive/c/Ndless/sdk/libsyscalls'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/cygdrive/c/Ndless/sdk/libsyscalls'
make -C libndls
make[1]: Entering directory '/cygdrive/c/Ndless/sdk/libndls'
make[1]: Leaving directory '/cygdrive/c/Ndless/sdk/libndls'
make -C thirdparty
make[1]: Entering directory '/cygdrive/c/Ndless/sdk/thirdparty'
make -C nspire-io lib
make[2]: Entering directory '/cygdrive/c/Ndless/sdk/thirdparty/nspire-io'
make[2]: *** No rule to make target 'lib'. Stop.
make[2]: Leaving directory '/cygdrive/c/Ndless/sdk/thirdparty/nspire-io'
Makefile:27: recipe for target 'nspireio' failed
make[1]: *** [nspireio] Error 2
make[1]: Leaving directory '/cygdrive/c/Ndless/sdk/thirdparty'
Makefile:13: recipe for target 'build-thirdparty' failed
make: * [build-thirdparty] Error 2

It seems like the problems are related. I did try to get a copy of nspire-io and I copied the include files to the include directory in the sdk. I did not find the nspire-io lib files, however. When I try to 'make' the nspireio files I get this error:

**nspire-gcc -Wall -W -marm -O3 -DNSPIREIO_BUILD -Wall -Werror -Wextra -D OLD_SCREEN_API -c common/util.c -o common/util.o
make: nspire-gcc: Command not found
Makefile:24: recipe for target 'common/util.o' failed
make: * [common/util.o] Error 127

I do not know the exact source of these problems, and I would appreciate any help fixing the SDK.

Thanks

Ndless/Makefile is not working

Here is the stack trace:

Quaternions-MacBook-Pro:~ quaternionsrock$ /Users/quaternionsrock/Documents/Ndless/Makefile 
/Users/quaternionsrock/Documents/Ndless/Makefile: line 5: syntax error near unexpected token `$(words $(wildcard ndless-sdk/thirdparty/nspire-io/Makefile)                $(wildcard ndless-sdk/thirdparty/zlib/configure)                $(wildcard ndless-sdk/tools/luna/Makefile)                $(wildcard ndless-sdk/thirdparty/freetype2/Makefile)),4'
/Users/quaternionsrock/Documents/Ndless/Makefile: line 5: `               $(wildcard ndless-sdk/thirdparty/freetype2/Makefile)),4)'

Only change to the above stack trace was the editing out of my real name (replaced with my username).

Now, I'm not so good at older languages such as C, so I can only present my best guess: there is no Makefile at ndless-sdk/thirdparty/freetype2/Makefile, in fact the directory is empty. Thoughts?

Support for 4.3

Is there a way to support a version 4.3, or downgrade Nspire to 4.2 and use Ndless?

Keyboard layout?

Currently, it seems that the keyboard mapping is a little different in Ndless C programs than in the documents, and the project doesn't give a layout for the characters (especially for the special signs like @, &, []{} etc.). I've tried to look into the source code, but I cannot find the part where the keys are mapped. Is there actually a part of Ndless, or is it built-in? Can I configure my own layout (by a configuration file or embedded in code)? THANKS!

Non-regression check of new SDK

To check that PR #5 didn't break too much builds, I have tried to build mViewer 4.3.

  • There are several undefined functions warnings or missing types (zlib's z_stream, opendir's DIR, ...), but that was the previous SDK fault, programs depending on need will need proper includes.
  • The is_cx macro has disappeared, this is an issue
  • The new "include-everything os.h" may be a problem, in the case of mViewer the local pause() function conflicts with newlib's pause(). But on the other side not including everything may break some builds.
  • ld fails with an error with no details. I have make clean all everything, I don't know what could be wrong.
nspire-ld libpng/png.o libpng/pngerror.o libpng/pngget.o libpng/pngmem.o libpng/pngread.o libpng/pngrio.o libpng/pngrtran.o libpng/pngrutil.o libpng/pngset.o libpng/pngtrans.o libz/adler32.o libz/crc32.o libz/inffast.o libz/inflate.o libz/inftrees.o libz/zutil.o libjpeg/jdmarker.o libjpeg/jidctred.o libjpeg/jdmaster.o libjpeg/jmemmgr.o libjpeg/jdmerge.o libjpeg/jmemnobs.o libjpeg/jdphuff.o libjpeg/jquant1.o libjpeg/jdapimin.o libjpeg/jdpostct.o libjpeg/jquant2.o libjpeg/jdapistd.o libjpeg/jdsample.o libjpeg/jutils.o libjpeg/jdatasrc.o libjpeg/jerror.o libjpeg/jdcoefct.o libjpeg/jdcolor.o libjpeg/jddctmgr.o libjpeg/jdhuff.o libjpeg/jidctflt.o libjpeg/jcomapi.o libjpeg/jdinput.o libjpeg/jidctfst.o libjpeg/jdmainct.o libjpeg/jidctint.o -lndls -s mviewer.o screen.o console.o image.o dirlist.o browse.o tools.o touchpad.o readpng.o utils.o s_screen.o readjpeg.o -o mviewer_cx.elf
arm-none-eabi-ld: final link failed: Invalid operation
collect2: erreur: ld a retourné 1 code d'état d'exécution

Question regading PATH

Hi, I recently remarked something about the way Ndless sets its equivalent of PATH, and something that could be added.

For now, what we have is the ability to use the executable's current folder as the equivalent of PWD for local paths. It's pretty useful but raises possible issues with files opened automatically with the extension association when porting or programming stuff with computer habits. For instance, when one executes a script in a (computer) OS environment, the PWD is the script's folder where Ndless doesn't. This, for instance, is currently blocking nSquirrel from being able to bundle a script with its data in its own folder and would force it to be in the same folder of the executable (and ultimately ndless/ in most cases). This isn't a unfixable issue from my side, yeah (I'd just have to colelct the script's path from `argv) but it's a undocumented quirk that should be at least indicated for further reference, nah?

Reboots when CTRL+W is pressed

Hello,

I have firmware 4.0.0.235. I have tried installing the 4.0.3 installer and the 4.2.0 installer with no avail. They are placed in the correct folder in the correct location but when I try to press CTRL+W it simply reboots my calculator. Any help will be much appreciated. My serial ends with P-0313J btw.

‘scm_new_port_table_entry’ was not declared in this scope

When I try to compile Ndless SDK on ArchLinux (GNU+Linux) using "build_toolchain.sh" the compiler exits returning the following error message:

../../gdb-7.12.1/gdb/guile/scm-ports.c: In function ‘scm_unused_struct* ioscm_open_port(scm_t_bits, long int)’:
../../gdb-7.12.1/gdb/guile/scm-ports.c:139:10: error: ‘scm_new_port_table_entry’ was not declared in this scope
   port = scm_new_port_table_entry (port_type);
          ^~~~~~~~~~~~~~~~~~~~~~~~

Installed programs:

  • git 2.13.1
  • gcc (GCC) 7.1.1 20170516(& g++)
  • binutils 2.28.0-3
  • gmp 6.1.2-1
  • mpfr 3.1.5.p2-1
  • libmpc 1.0.3-2
  • zlib 1:1.2.11-1
  • boost 1.64.0-1
  • wget 1.19.1-2

make-prg'd Zehn-generated programs crashes Ndless 3.1 r914

Building, with the latest Ndless SDK, the source that you can download from here generates four files, nKaruga.tns, nKaruga.prg.tns, nKaruga_emu.tns, nKaruga.prg.tns. Executing the .tns ones with Ndless 3.1 r914 gives an unsupported format error as expected, but running the .prg.tns ones will crash the emulator shortly after launching a game while giving this output in the debugger:

Frame     PrvFrame Self     Return   Start
00000000: invalid address
debug> Error at PC=116411F0: Cannot shift memory offset by register
        Backtrace:

No code has been changed that could have caused this during the transition from an older version of the Ndless SDK.

Missing documentation of custom syscalls

I cannot find any documentation of the order of addresses. Ndless/ndless-sdk/include/nucleus.h (where syscall_custom is defined) contains a comment saying "see nl_osvalue for the order of the addresses", but there is nothing there.

Ndless 4.2 reboots on Ctrl+W

When I try to install Ndless, I use tilp to transfer installer and resources to calculator under folder ndless. I open the installer and press Ctrl+W as instructed. The calculator reboots and Ndless isn't installed.

I can't think of anything I could be doing wrong. Any ideas?

Luna issues when compiling whole SDK

After the toolchain has been compiled, I tried to run make on top of the repository.
Everything goes well until it reaches luna where it outputs:

make[2]: Entering directory '/home/dx94/Git/ndless/ndless-sdk/tools'
make all in luna...
make[3]: Entering directory '/home/dx94/Git/ndless/ndless-sdk/tools/luna'
cc -W -Wall -DUSE_FILE32API -Wno-unused-parameter   -c -o luna.o luna.c
In file included from minizip-1.1/zip.h:54:0,
                 from luna.c:9:
minizip-1.1/ioapi.h:127:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 typedef voidpf   (ZCALLBACK *open_file_func)      OF((voidpf opaque, const char* filename, int mode));
                                                   ^
minizip-1.1/ioapi.h:128:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 typedef uLong    (ZCALLBACK *read_file_func)      OF((voidpf opaque, voidpf stream, void* buf, uLong size));
                                                   ^
minizip-1.1/ioapi.h:129:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 typedef uLong    (ZCALLBACK *write_file_func)     OF((voidpf opaque, voidpf stream, const void* buf, uLong size));
                                                   ^
minizip-1.1/ioapi.h:130:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 typedef int      (ZCALLBACK *close_file_func)     OF((voidpf opaque, voidpf stream));
                                                   ^
minizip-1.1/ioapi.h:131:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 typedef int      (ZCALLBACK *testerror_file_func) OF((voidpf opaque, voidpf stream));
                                                   ^
minizip-1.1/ioapi.h:133:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 typedef long     (ZCALLBACK *tell_file_func)      OF((voidpf opaque, voidpf stream));
                                                   ^
minizip-1.1/ioapi.h:134:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 typedef long     (ZCALLBACK *seek_file_func)      OF((voidpf opaque, voidpf stream, uLong offset, int origin));
                                                   ^
minizip-1.1/ioapi.h:140:5: error: unknown type name ‘open_file_func’
     open_file_func      zopen_file;
     ^
minizip-1.1/ioapi.h:141:5: error: unknown type name ‘read_file_func’
     read_file_func      zread_file;
     ^
minizip-1.1/ioapi.h:142:5: error: unknown type name ‘write_file_func’
     write_file_func     zwrite_file;
     ^
minizip-1.1/ioapi.h:143:5: error: unknown type name ‘tell_file_func’
     tell_file_func      ztell_file;
     ^
minizip-1.1/ioapi.h:144:5: error: unknown type name ‘seek_file_func’
     seek_file_func      zseek_file;
     ^
minizip-1.1/ioapi.h:145:5: error: unknown type name ‘close_file_func’
     close_file_func     zclose_file;
     ^
minizip-1.1/ioapi.h:146:5: error: unknown type name ‘testerror_file_func’
     testerror_file_func zerror_file;
     ^
minizip-1.1/ioapi.h:150:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 typedef ZPOS64_T (ZCALLBACK *tell64_file_func)    OF((voidpf opaque, voidpf stream));
                                                   ^
minizip-1.1/ioapi.h:151:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 typedef long     (ZCALLBACK *seek64_file_func)    OF((voidpf opaque, voidpf stream, ZPOS64_T offset, int origin));
                                                   ^
minizip-1.1/ioapi.h:152:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 typedef voidpf   (ZCALLBACK *open64_file_func)    OF((voidpf opaque, const void* filename, int mode));
                                                   ^
minizip-1.1/ioapi.h:156:5: error: unknown type name ‘open64_file_func’
     open64_file_func    zopen64_file;
     ^
minizip-1.1/ioapi.h:157:5: error: unknown type name ‘read_file_func’
     read_file_func      zread_file;
     ^
minizip-1.1/ioapi.h:158:5: error: unknown type name ‘write_file_func’
     write_file_func     zwrite_file;
     ^
minizip-1.1/ioapi.h:159:5: error: unknown type name ‘tell64_file_func’
     tell64_file_func    ztell64_file;
     ^
minizip-1.1/ioapi.h:160:5: error: unknown type name ‘seek64_file_func’
     seek64_file_func    zseek64_file;
     ^
minizip-1.1/ioapi.h:161:5: error: unknown type name ‘close_file_func’
     close_file_func     zclose_file;
     ^
minizip-1.1/ioapi.h:162:5: error: unknown type name ‘testerror_file_func’
     testerror_file_func zerror_file;
     ^
minizip-1.1/ioapi.h:166:28: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 void fill_fopen64_filefunc OF((zlib_filefunc64_def* pzlib_filefunc_def));
                            ^
minizip-1.1/ioapi.h:167:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 void fill_fopen_filefunc OF((zlib_filefunc_def* pzlib_filefunc_def));
                          ^
minizip-1.1/ioapi.h:173:5: error: unknown type name ‘open_file_func’
     open_file_func      zopen32_file;
     ^
minizip-1.1/ioapi.h:174:5: error: unknown type name ‘tell_file_func’
     tell_file_func      ztell32_file;
     ^
minizip-1.1/ioapi.h:175:5: error: unknown type name ‘seek_file_func’
     seek_file_func      zseek32_file;
     ^
minizip-1.1/ioapi.h:186:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 voidpf call_zopen64 OF((const zlib_filefunc64_32_def* pfilefunc,const void*filename,int mode));
                     ^
minizip-1.1/ioapi.h:187:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 long    call_zseek64 OF((const zlib_filefunc64_32_def* pfilefunc,voidpf filestream, ZPOS64_T offset, int origin));
                      ^
minizip-1.1/ioapi.h:188:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 ZPOS64_T call_ztell64 OF((const zlib_filefunc64_32_def* pfilefunc,voidpf filestream));
                       ^
In file included from luna.c:9:0:
minizip-1.1/zip.h:116:32: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 extern zipFile ZEXPORT zipOpen OF((const char *pathname, int append));
                                ^
minizip-1.1/zip.h:117:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 extern zipFile ZEXPORT zipOpen64 OF((const void *pathname, int append));
                                  ^
minizip-1.1/zip.h:137:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 extern zipFile ZEXPORT zipOpen2 OF((const char *pathname,
                                 ^
minizip-1.1/zip.h:142:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 extern zipFile ZEXPORT zipOpen2_64 OF((const void *pathname,
                                    ^
minizip-1.1/zip.h:147:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 extern int ZEXPORT zipOpenNewFileInZip OF((zipFile file,
                                        ^
minizip-1.1/zip.h:158:42: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 extern int ZEXPORT zipOpenNewFileInZip64 OF((zipFile file,
                                          ^
minizip-1.1/zip.h:187:41: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 extern int ZEXPORT zipOpenNewFileInZip2 OF((zipFile file,
                                         ^
minizip-1.1/zip.h:200:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 extern int ZEXPORT zipOpenNewFileInZip2_64 OF((zipFile file,
                                            ^
minizip-1.1/zip.h:216:41: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 extern int ZEXPORT zipOpenNewFileInZip3 OF((zipFile file,
                                         ^
minizip-1.1/zip.h:233:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 extern int ZEXPORT zipOpenNewFileInZip3_64 OF((zipFile file,
                                            ^
minizip-1.1/zip.h:259:41: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 extern int ZEXPORT zipOpenNewFileInZip4 OF((zipFile file,
                                         ^
minizip-1.1/zip.h:280:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 extern int ZEXPORT zipOpenNewFileInZip4_64 OF((zipFile file,
                                            ^
minizip-1.1/zip.h:307:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 extern int ZEXPORT zipWriteInFileInZip OF((zipFile file,
                                        ^
minizip-1.1/zip.h:314:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 extern int ZEXPORT zipCloseFileInZip OF((zipFile file));
                                      ^
minizip-1.1/zip.h:319:41: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 extern int ZEXPORT zipCloseFileInZipRaw OF((zipFile file,
                                         ^
minizip-1.1/zip.h:323:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 extern int ZEXPORT zipCloseFileInZipRaw64 OF((zipFile file,
                                           ^
minizip-1.1/zip.h:333:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 extern int ZEXPORT zipClose OF((zipFile file,
                             ^
minizip-1.1/zip.h:340:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘OF’
 extern int ZEXPORT zipRemoveExtraInfoBlock OF((char* pData, int* dataLen, short sHeader));
                                            ^
luna.c: In function ‘add_processed_file_to_tns’:
luna.c:356:2: warning: implicit declaration of function ‘zipOpen’ [-Wimplicit-function-declaration]
  if (!zipF && !(zipF = zipOpen(outfile_path, 0))) {
  ^
luna.c:356:22: warning: assignment makes pointer from integer without a cast
  if (!zipF && !(zipF = zipOpen(outfile_path, 0))) {
                      ^
luna.c:372:2: warning: implicit declaration of function ‘zipOpenNewFileInZip2’ [-Wimplicit-function-declaration]
  if (zipOpenNewFileInZip2(zipF, infile_name, &zi, NULL, 0, NULL, 0, NULL, method, level, 0) != ZIP_OK) {
  ^
luna.c:375:3: warning: implicit declaration of function ‘zipClose’ [-Wimplicit-function-declaration]
   zipClose(zipF, NULL);
   ^
luna.c:380:2: warning: implicit declaration of function ‘zipWriteInFileInZip’ [-Wimplicit-function-declaration]
  if (zipWriteInFileInZip(zipF, in_buf, in_size) != ZIP_OK) {
  ^
luna.c:384:2: warning: implicit declaration of function ‘zipCloseFileInZip’ [-Wimplicit-function-declaration]
  if (zipCloseFileInZip(zipF) != ZIP_OK) {
  ^
<builtin>: recipe for target 'luna.o' failed
make[3]: *** [luna.o] Error 1
make[3]: Leaving directory '/home/dx94/Git/ndless/ndless-sdk/tools/luna'
Makefile:4: recipe for target 'all' failed
make[2]: *** [all] Error 1
make[2]: Leaving directory '/home/dx94/Git/ndless/ndless-sdk/tools'
Makefile:13: recipe for target 'build-tools' failed
make[1]: *** [build-tools] Error 2
make[1]: Leaving directory '/home/dx94/Git/ndless/ndless-sdk'
Makefile:19: recipe for target 'build-ndless-sdk' failed
make: *** [build-ndless-sdk] Error 2

Any thoughts?

Issues building Ndless and the Ndless SDK with cygwin on Windows

After having successfully run ndless-sdk/toolchain/build_toolchain.sh (echo $? gave 0), running make in ndless-sdk/ gives the following output:

$ make
make all in tools...
make[1]: Entering directory '/cygdrive/C/Users/Mattias/Documents/GitHub/Ndless/n                                                                                                                                                 dless-sdk/tools'
make all in luna...
make[2]: Entering directory '/cygdrive/C/Users/Mattias/Documents/GitHub/Ndless/n                                                                                                                                                 dless-sdk/tools/luna'
gcc -W -Wall   -c -o luna.o luna.c
gcc -W -Wall   -c -o zip.o minizip-1.1/zip.c
In file included from minizip-1.1/zip.c:196:0:
minizip-1.1/crypt.h: In function ‘decrypt_byte’:
minizip-1.1/crypt.h:35:68: attention : unused parameter ‘pcrc_32_tab’ [-Wunused-                                                                                                                                                 parameter]
 static int decrypt_byte(unsigned long* pkeys, const unsigned long* pcrc_32_tab)
                                                                    ^
minizip-1.1/zip.c: In function ‘zipOpenNewFileInZip4_64’:
minizip-1.1/zip.c:1265:28: attention : assignment from incompatible pointer type                                                                                                                                                  [enabled by default]
         zi->ci.pcrc_32_tab = get_crc_table();
                            ^
gcc -W -Wall   -c -o ioapi.o minizip-1.1/ioapi.c
minizip-1.1/ioapi.c: In function ‘fopen_file_func’:
minizip-1.1/ioapi.c:83:49: attention : unused parameter ‘opaque’ [-Wunused-param                                                                                                                                                 eter]
 static voidpf ZCALLBACK fopen_file_func (voidpf opaque, const char* filename, i                                                                                                                                                 nt mode)
                                                 ^
minizip-1.1/ioapi.c: In function ‘fopen64_file_func’:
minizip-1.1/ioapi.c:115:9: attention : implicit declaration of function ‘fopen64                                                                                                                                                 ’ [-Wimplicit-function-declaration]
         file = fopen64((const char*)filename, mode_fopen);
         ^
minizip-1.1/ioapi.c:115:14: attention : assignment makes pointer from integer wi                                                                                                                                                 thout a cast [enabled by default]
         file = fopen64((const char*)filename, mode_fopen);
              ^
minizip-1.1/ioapi.c:101:51: attention : unused parameter ‘opaque’ [-Wunused-para                                                                                                                                                 meter]
 static voidpf ZCALLBACK fopen64_file_func (voidpf opaque, const void* filename,                                                                                                                                                  int mode)
                                                   ^
minizip-1.1/ioapi.c: In function ‘fread_file_func’:
minizip-1.1/ioapi.c:120:48: attention : unused parameter ‘opaque’ [-Wunused-para                                                                                                                                                 meter]
 static uLong ZCALLBACK fread_file_func (voidpf opaque, voidpf stream, void* buf                                                                                                                                                 , uLong size)
                                                ^
minizip-1.1/ioapi.c: In function ‘fwrite_file_func’:
minizip-1.1/ioapi.c:127:49: attention : unused parameter ‘opaque’ [-Wunused-para                                                                                                                                                 meter]
 static uLong ZCALLBACK fwrite_file_func (voidpf opaque, voidpf stream, const vo                                                                                                                                                 id* buf, uLong size)
                                                 ^
minizip-1.1/ioapi.c: In function ‘ftell_file_func’:
minizip-1.1/ioapi.c:134:47: attention : unused parameter ‘opaque’ [-Wunused-para                                                                                                                                                 meter]
 static long ZCALLBACK ftell_file_func (voidpf opaque, voidpf stream)
                                               ^
minizip-1.1/ioapi.c: In function ‘ftell64_file_func’:
minizip-1.1/ioapi.c:145:5: attention : implicit declaration of function ‘ftello6                                                                                                                                                 4’ [-Wimplicit-function-declaration]
     ret = ftello64((FILE *)stream);
     ^
minizip-1.1/ioapi.c:142:53: attention : unused parameter ‘opaque’ [-Wunused-para                                                                                                                                                 meter]
 static ZPOS64_T ZCALLBACK ftell64_file_func (voidpf opaque, voidpf stream)
                                                     ^
minizip-1.1/ioapi.c: In function ‘fseek_file_func’:
minizip-1.1/ioapi.c:149:48: attention : unused parameter ‘opaque’ [-Wunused-para                                                                                                                                                 meter]
 static long ZCALLBACK fseek_file_func (voidpf  opaque, voidpf stream, uLong off                                                                                                                                                 set, int origin)
                                                ^
minizip-1.1/ioapi.c: In function ‘fseek64_file_func’:
minizip-1.1/ioapi.c:191:5: attention : implicit declaration of function ‘fseeko6                                                                                                                                                 4’ [-Wimplicit-function-declaration]
     if(fseeko64((FILE *)stream, offset, fseek_origin) != 0)
     ^
minizip-1.1/ioapi.c:172:50: attention : unused parameter ‘opaque’ [-Wunused-para                                                                                                                                                 meter]
 static long ZCALLBACK fseek64_file_func (voidpf  opaque, voidpf stream, ZPOS64_                                                                                                                                                 T offset, int origin)
                                                  ^
minizip-1.1/ioapi.c: In function ‘fclose_file_func’:
minizip-1.1/ioapi.c:198:47: attention : unused parameter ‘opaque’ [-Wunused-para                                                                                                                                                 meter]
 static int ZCALLBACK fclose_file_func (voidpf opaque, voidpf stream)
                                               ^
minizip-1.1/ioapi.c: In function ‘ferror_file_func’:
minizip-1.1/ioapi.c:205:47: attention : unused parameter ‘opaque’ [-Wunused-para                                                                                                                                                 meter]
 static int ZCALLBACK ferror_file_func (voidpf opaque, voidpf stream)
                                               ^
gcc -o luna.exe luna.o zip.o ioapi.o -lssl -lz
luna.o:luna.c:(.text+0xcd2): référence indéfinie vers « DES_set_key_checked »
luna.o:luna.c:(.text+0xcd2): relocalisation tronquée pour concorder avec la tail                                                                                                                                                 le: R_X86_64_PC32 vers le symbole indéfini DES_set_key_checked
luna.o:luna.c:(.text+0xcf4): référence indéfinie vers « DES_set_key_checked »
luna.o:luna.c:(.text+0xcf4): relocalisation tronquée pour concorder avec la tail                                                                                                                                                 le: R_X86_64_PC32 vers le symbole indéfini DES_set_key_checked
luna.o:luna.c:(.text+0xd16): référence indéfinie vers « DES_set_key_checked »
luna.o:luna.c:(.text+0xd16): relocalisation tronquée pour concorder avec la tail                                                                                                                                                 le: R_X86_64_PC32 vers le symbole indéfini DES_set_key_checked
luna.o:luna.c:(.text+0xdd4): référence indéfinie vers « DES_ecb3_encrypt »
luna.o:luna.c:(.text+0xdd4): relocalisation tronquée pour concorder avec la tail                                                                                                                                                 le: R_X86_64_PC32 vers le symbole indéfini DES_ecb3_encrypt
ioapi.o:ioapi.c:(.text+0x31e): référence indéfinie vers « fopen64 »
ioapi.o:ioapi.c:(.text+0x31e): relocalisation tronquée pour concorder avec la ta                                                                                                                                                 ille: R_X86_64_PC32 vers le symbole indéfini fopen64
ioapi.o:ioapi.c:(.text+0x3fe): référence indéfinie vers « ftello64 »
ioapi.o:ioapi.c:(.text+0x3fe): relocalisation tronquée pour concorder avec la ta                                                                                                                                                 ille: R_X86_64_PC32 vers le symbole indéfini ftello64
ioapi.o:ioapi.c:(.text+0x50c): référence indéfinie vers « fseeko64 »
ioapi.o:ioapi.c:(.text+0x50c): relocalisation tronquée pour concorder avec la ta                                                                                                                                                 ille: R_X86_64_PC32 vers le symbole indéfini fseeko64
collect2: erreur: ld a retourné 1 code d'état d'exécution
Makefile:17: recipe for target 'luna.exe' failed
make[2]: *** [luna.exe] Error 1
make[2]: Leaving directory '/cygdrive/C/Users/Mattias/Documents/GitHub/Ndless/nd                                                                                                                                                 less-sdk/tools/luna'
Makefile:4: recipe for target 'all' failed
make[1]: *** [all] Error 1
make[1]: Leaving directory '/cygdrive/C/Users/Mattias/Documents/GitHub/Ndless/nd                                                                                                                                                 less-sdk/tools'
Makefile:4: recipe for target 'all' failed
make: *** [all] Error 1

Also, I need instructions on how to update the SDK while still using the graphical frontend on Windows.

Not Working!

Whenever I click ctrl and w to install Ndless, it sends me back to the home screen. I can't seem to fix it. Can I get some help?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.