Bacon and Windows WSL fails :-( (SOLVED)
Aug 2, 2021 23:25:58 GMT 1
Post by gcav on Aug 2, 2021 23:25:58 GMT 1
Hi all.
Having issues compiling Bacon on Windows WSL2 and Ubuntu.
look below.
:~/bacon_trunk$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking for library containing dlopen... -ldl
checking for library containing dlsym... none required
checking for library containing acos... -lm
checking for library containing asin... none required
checking for library containing atan... none required
checking for library containing atan2... none required
checking for library containing cos... none required
checking for library containing exp... none required
checking for library containing floor... none required
checking for library containing log... none required
checking for library containing lrint... none required
checking for library containing sin... none required
checking for library containing tan... none required
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for arpa/inet.h... yes
checking for ctype.h... yes
checking for dirent.h... yes
checking for dlfcn.h... yes
checking for errno.h... yes
checking for fcntl.h... yes
checking for fts.h... yes
checking for libgen.h... yes
checking for locale.h... yes
checking for limits.h... yes
checking for math.h... yes
checking for netdb.h... yes
checking for regex.h... yes
checking for search.h... yes
checking for setjmp.h... yes
checking for signal.h... yes
checking for stdarg.h... yes
checking for stdio.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/ioctl.h... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking for sys/utsname.h... yes
checking for sys/wait.h... yes
checking for termios.h... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking for wctype.h... yes
checking for accept... yes
checking for basename... yes
checking for bind... yes
checking for calloc... yes
checking for closedir... yes
checking for connect... yes
checking for dirname... yes
checking for execlp... yes
checking for execvp... yes
checking for _exit... yes
checking for fork... yes
checking for fprintf... yes
checking for getdelim... yes
checking for gethostbyaddr... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for getline... yes
checking for getpeername... yes
checking for getpid... yes
checking for htonl... yes
checking for htons... yes
checking for inet_addr... yes
checking for inet_pton... yes
checking for inet_ntoa... yes
checking for ioctl... yes
checking for listen... yes
checking for malloc... yes
checking for mbtowc... yes
checking for mbstowcs... yes
checking for memcmp... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for qsort... yes
checking for random... yes
checking for readdir... yes
checking for realloc... yes
checking for realpath... yes
checking for recv... yes
checking for select... yes
checking for send... yes
checking for setenv... yes
checking for setsockopt... yes
checking for sigaction... yes
checking for snprintf... yes
checking for socket... yes
checking for strcat... yes
checking for strchr... yes
checking for strrchr... yes
checking for strcmp... yes
checking for strcasecmp... yes
checking for strcpy... yes
checking for strftime... yes
checking for strlen... yes
checking for strncat... yes
checking for strncpy... yes
checking for strstr... yes
checking for strtok... yes
checking for towlower... yes
checking for towupper... yes
checking for usleep... yes
checking for waitpid... yes
checking for wctomb... yes
checking for wcstombs... yes
checking for ksh... no
checking for zsh... no
checking for bash... /usr/bin/bash
checking for gtk_init in -lgtk-3... no
checking for gtk_init in -lgtk-x11-2.0... no
configure: No GTK found on this system.
checking for fltk-config... missing
checking for gcc... (cached) gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) none needed
checking whether gcc accepts optional compile flag '-fno-var-tracking-assignments'... accepted
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking for strip... strip
checking for make... yes
checking for flex... yes
configure: creating ./config.status
config.status: creating Makefile
Congratulations, all requirements are met!
- Makefile created.
- Using '/usr/bin/bash' to compile BaCon.
Now run 'make' and 'make install' to build and install BaCon.
:~/bacon_trunk$ make
rm -f build/* build-cpp/*
Creating tokenizer for statements... done.
Converting 'bacon.bac'... 5845./bacon.sh: line 765: 4643 Segmentation fault (core dumped) coproc COPROC "${g_BACONTOKEN}.exe"
./bacon.sh: line 363: "${COPROC[1]}": Bad file descriptor
./bacon.sh: line 364: "${COPROC[0]}": Bad file descriptor
./bacon.sh: line 363: "${COPROC[1]}": Bad file descriptor
./bacon.sh: line 364: "${COPROC[0]}": Bad file descriptor
./bacon.sh: line 363: "${COPROC[1]}": Bad file descriptor
./bacon.sh: line 364: "${COPROC[0]}": Bad file descriptor
./bacon.sh: line 226: g_ALL_MAIN_VARS[${VAR}]: bad array subscript
Converting 'bacon.bac'... done, 5845 lines were processed in 660 seconds.
Creating lexical analyzer... done.
Warning: no CLOSE for the OPEN handle 'g_CFILE' at line 2719 in file 'bacon.bac'!
Syntax error: the SUB/FUNCTION 'Pre_Tokenize_Functions__b2c__string_var' has no END in file 'bacon.bac'!
make: *** [Makefile:22: bacon] Error 1
:~/bacon_trunk$ uname
Linux
:~/bacon_trunk$ uname -a
Linux GUS 4.4.0-19041-Microsoft #488-Microsoft Mon Sep 01 13:43:00 PST 2020 x86_64 x86_64 x86_64 GNU/Linux
:~/bacon_trunk$
Having issues compiling Bacon on Windows WSL2 and Ubuntu.
look below.
:~/bacon_trunk$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking for library containing dlopen... -ldl
checking for library containing dlsym... none required
checking for library containing acos... -lm
checking for library containing asin... none required
checking for library containing atan... none required
checking for library containing atan2... none required
checking for library containing cos... none required
checking for library containing exp... none required
checking for library containing floor... none required
checking for library containing log... none required
checking for library containing lrint... none required
checking for library containing sin... none required
checking for library containing tan... none required
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for arpa/inet.h... yes
checking for ctype.h... yes
checking for dirent.h... yes
checking for dlfcn.h... yes
checking for errno.h... yes
checking for fcntl.h... yes
checking for fts.h... yes
checking for libgen.h... yes
checking for locale.h... yes
checking for limits.h... yes
checking for math.h... yes
checking for netdb.h... yes
checking for regex.h... yes
checking for search.h... yes
checking for setjmp.h... yes
checking for signal.h... yes
checking for stdarg.h... yes
checking for stdio.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/ioctl.h... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking for sys/utsname.h... yes
checking for sys/wait.h... yes
checking for termios.h... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking for wctype.h... yes
checking for accept... yes
checking for basename... yes
checking for bind... yes
checking for calloc... yes
checking for closedir... yes
checking for connect... yes
checking for dirname... yes
checking for execlp... yes
checking for execvp... yes
checking for _exit... yes
checking for fork... yes
checking for fprintf... yes
checking for getdelim... yes
checking for gethostbyaddr... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for getline... yes
checking for getpeername... yes
checking for getpid... yes
checking for htonl... yes
checking for htons... yes
checking for inet_addr... yes
checking for inet_pton... yes
checking for inet_ntoa... yes
checking for ioctl... yes
checking for listen... yes
checking for malloc... yes
checking for mbtowc... yes
checking for mbstowcs... yes
checking for memcmp... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for qsort... yes
checking for random... yes
checking for readdir... yes
checking for realloc... yes
checking for realpath... yes
checking for recv... yes
checking for select... yes
checking for send... yes
checking for setenv... yes
checking for setsockopt... yes
checking for sigaction... yes
checking for snprintf... yes
checking for socket... yes
checking for strcat... yes
checking for strchr... yes
checking for strrchr... yes
checking for strcmp... yes
checking for strcasecmp... yes
checking for strcpy... yes
checking for strftime... yes
checking for strlen... yes
checking for strncat... yes
checking for strncpy... yes
checking for strstr... yes
checking for strtok... yes
checking for towlower... yes
checking for towupper... yes
checking for usleep... yes
checking for waitpid... yes
checking for wctomb... yes
checking for wcstombs... yes
checking for ksh... no
checking for zsh... no
checking for bash... /usr/bin/bash
checking for gtk_init in -lgtk-3... no
checking for gtk_init in -lgtk-x11-2.0... no
configure: No GTK found on this system.
checking for fltk-config... missing
checking for gcc... (cached) gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) none needed
checking whether gcc accepts optional compile flag '-fno-var-tracking-assignments'... accepted
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking for strip... strip
checking for make... yes
checking for flex... yes
configure: creating ./config.status
config.status: creating Makefile
Congratulations, all requirements are met!
- Makefile created.
- Using '/usr/bin/bash' to compile BaCon.
Now run 'make' and 'make install' to build and install BaCon.
:~/bacon_trunk$ make
rm -f build/* build-cpp/*
Creating tokenizer for statements... done.
Converting 'bacon.bac'... 5845./bacon.sh: line 765: 4643 Segmentation fault (core dumped) coproc COPROC "${g_BACONTOKEN}.exe"
./bacon.sh: line 363: "${COPROC[1]}": Bad file descriptor
./bacon.sh: line 364: "${COPROC[0]}": Bad file descriptor
./bacon.sh: line 363: "${COPROC[1]}": Bad file descriptor
./bacon.sh: line 364: "${COPROC[0]}": Bad file descriptor
./bacon.sh: line 363: "${COPROC[1]}": Bad file descriptor
./bacon.sh: line 364: "${COPROC[0]}": Bad file descriptor
./bacon.sh: line 226: g_ALL_MAIN_VARS[${VAR}]: bad array subscript
Converting 'bacon.bac'... done, 5845 lines were processed in 660 seconds.
Creating lexical analyzer... done.
Warning: no CLOSE for the OPEN handle 'g_CFILE' at line 2719 in file 'bacon.bac'!
Syntax error: the SUB/FUNCTION 'Pre_Tokenize_Functions__b2c__string_var' has no END in file 'bacon.bac'!
make: *** [Makefile:22: bacon] Error 1
:~/bacon_trunk$ uname
Linux
:~/bacon_trunk$ uname -a
Linux GUS 4.4.0-19041-Microsoft #488-Microsoft Mon Sep 01 13:43:00 PST 2020 x86_64 x86_64 x86_64 GNU/Linux
:~/bacon_trunk$