vscosta / yap-6.3

YAP Development release
Other
12 stars 5 forks source link

Reader hang on Ubuntu 14.0.4 #15

Open TeamSPoon opened 8 years ago

TeamSPoon commented 8 years ago

As of commit "Simplify Input/Output" https://github.com/vscosta/yap-6.3/commit/f7d23f9deb82fd2586f68b0d7f5edcc07bceb657

root@gitlab:/devel/GITHUB/yap-6.3# git status
On branch master
Your branch is up-to-date with 'origin/master'.

nothing to commit, working directory clean
root@gitlab:/devel/GITHUB/yap-6.3# git remote -v
origin  https://github.com/vscosta/yap-6.3 (fetch)
origin  https://github.com/vscosta/yap-6.3 (push)
root@gitlab:/devel/GITHUB/yap-6.3# mkdir ../build-yap-6.3
root@gitlab:/devel/GITHUB/yap-6.3# cd ../build-yap-6.3/
root@gitlab:/devel/GITHUB/build-yap-6.3# cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr/local /devel/GITHUB/yap-6.3  -G "Eclipse CDT4 - Unix Makefiles"
-- The C compiler identification is GNU 5.3.0
-- The CXX compiler identification is GNU 5.3.0
-- Could not determine Eclipse version, assuming at least 3.6 (Helios). Adjust CMAKE_ECLIPSE_VERSION if this is wrong.
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building YAP version
-- Check for signal return type in <signal.h>
-- Check for signal handler return type type void  - found
-- Checking whether system has ANSI C header files
-- Looking for 4 include files stdlib.h, ..., float.h
-- Looking for 4 include files stdlib.h, ..., float.h - found
-- Performing Test memchrExists
-- Performing Test memchrExists - Success
-- Performing Test freeExists
-- Performing Test freeExists - Success
-- Check for whether ctype.h macros work on characters with the
   high bit set.
-- High-bit characters - work
-- ANSI C header files - found
-- Looking for alloca.h
-- Looking for alloca.h - found
-- Looking for apache2/util_md5.h
-- Looking for apache2/util_md5.h - not found
-- Looking for apr-1/apr_md5.h
<snip>
-- Found Java: /usr/bin/java (found version "1.8.0.72")
-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.1")
-- Looking for include file libxml2/libxml2.h
-- Looking for include file libxml2/libxml2.h - not found
-- Looking for include file libxml2.h
-- Looking for include file libxml2.h - not found
-- Could NOT find Raptor (missing:  RAPTOR_LIBRARY RAPTOR_INCLUDE_DIR)
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.6")

-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
-----------------------------------------------------------------------------
   * libgmp - GNU big integers and rationals
   * MySQL - MYSQL Driver for MYDDAS Data-Base Interface
   * Odbc - ODBC Driver for MYDDAS Data-Base Interface
   * postgres - PostgreSQL Driver for MYDDAS Data-Base Interface
   * Sqlite3 - Sqlite3 Data-Base
   * libreadline - Readline line editing library
   * OpenSLL - Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols
   * R - Use R Environment
   * Python - Use Python System
   * Java - Use Java System
   * Swig - Use SWIG Documentation System
   * JNI - Use Java Native Interface
   * RAPTOR - Use XML2 Library

-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
-----------------------------------------------------------------------------
   * Threads Support  <http://www.gnu.org/software/threads>
     GNU Threads Library (or similar)
   * matlab  <http://matlab.com>
     MATLAB A Language for Technical Computing
   * libgecode  <http://www.gecode.org>
     Use Generic Constraint Development Environment (GECODE) library
   * Java  <http://www.java.org>
     Use Java System
   * CUDD  <http://vlsi.colorado.edu/~fabio/CUDD/>
     Use CUDD Library
   * RAPTOR  <http://www.r.org>
     Use RAPTOR Library
   * Mpi  <http://www.mpi.org>
     Use Mpi System

-----------------------------------------------------------------------------

-- Configuring done
-- Generating done
-- Build files have been written to: /devel/GITHUB/build-yap-6.3
root@gitlab:/devel/GITHUB/build-yap-6.3# make
Scanning dependencies of target libswi
[  1%] Building C object library/dialect/swi/fli/CMakeFiles/libswi.dir/swi.c.o
[  1%] Building C object library/dialect/swi/fli/CMakeFiles/libswi.dir/blobs.c.o
[  1%] Built target libswi
Scanning dependencies of target libOPTYap
[  1%] Building C object OPTYap/CMakeFiles/libOPTYap.dir/or.memory.c.o
[  2%] Building C object OPTYap/CMakeFiles/libOPTYap.dir/opt.init.c.o
[  3%] Building C object OPTYap/CMakeFiles/libOPTYap.dir/opt.preds.c.o
[  3%] Building C object OPTYap/CMakeFiles/libOPTYap.dir/or.copy_engine.c.o
[  4%] Building C object OPTYap/CMakeFiles/libOPTYap.dir/or.cow_engine.c.o
[  4%] Building C object OPTYap/CMakeFiles/libOPTYap.dir/or.sba_engine.c.o
[  5%] Building C object OPTYap/CMakeFiles/libOPTYap.dir/or.thread_engine.c.o
[  5%] Building C object OPTYap/CMakeFiles/libOPTYap.dir/or.scheduler.c.o
[  6%] Building C object OPTYap/CMakeFiles/libOPTYap.dir/or.cut.c.o
[  7%] Building C object OPTYap/CMakeFiles/libOPTYap.dir/tab.tries.c.o
In file included from /devel/GITHUB/yap-6.3/OPTYap/tab.tries.c:258:0:
/devel/GITHUB/yap-6.3/OPTYap/tab.tries.h: In function ‘answer_search_global_trie_loop’:
/devel/GITHUB/yap-6.3/OPTYap/tab.tries.h:1329:7: warning: variable ‘in_pair’ set but not used [-Wunused-but-set-variable]
   int in_pair = 0;
       ^
[  7%] Building C object OPTYap/CMakeFiles/libOPTYap.dir/tab.completion.c.o
[  7%] Built target libOPTYap
Scanning dependencies of target utf8proc
[  7%] Building C object utf8proc/CMakeFiles/utf8proc.dir/utf8proc.c.o
Linking C shared library libutf8proc.so
[  7%] Built target utf8proc
Scanning dependencies of target myddas
[  7%] Building C object packages/myddas/CMakeFiles/myddas.dir/myddas_initialization.c.o
[  8%] Building C object packages/myddas/CMakeFiles/myddas.dir/myddas_shared.c.o
[  8%] Building C object packages/myddas/CMakeFiles/myddas.dir/myddas_statistics.c.o
[  9%] Building C object packages/myddas/CMakeFiles/myddas.dir/myddas_top_level.c.o
[ 10%] Building C object packages/myddas/CMakeFiles/myddas.dir/myddas_util.c.o
[ 10%] Built target myddas
Scanning dependencies of target libYAPOs
[ 11%] Building C object os/CMakeFiles/libYAPOs.dir/alias.c.o
[ 11%] Building C object os/CMakeFiles/libYAPOs.dir/charsio.c.o
[ 12%] Building C object os/CMakeFiles/libYAPOs.dir/chartypes.c.o
[ 12%] Building C object os/CMakeFiles/libYAPOs.dir/console.c.o
[ 13%] Building C object os/CMakeFiles/libYAPOs.dir/files.c.o
[ 14%] Building C object os/CMakeFiles/libYAPOs.dir/fmemopen.c.o
[ 14%] Building C object os/CMakeFiles/libYAPOs.dir/format.c.o
[ 15%] Building C object os/CMakeFiles/libYAPOs.dir/iopreds.c.o
In file included from /devel/GITHUB/yap-6.3/os/iopreds.c:102:0:
/devel/GITHUB/yap-6.3/os/getw.h: In function ‘get_wchar_from_FILE’:
/devel/GITHUB/yap-6.3/os/getw.h:203:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
In file included from /devel/GITHUB/yap-6.3/os/iopreds.c:108:0:
/devel/GITHUB/yap-6.3/os/getw.h: In function ‘get_wchar’:
/devel/GITHUB/yap-6.3/os/getw.h:203:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
[ 15%] Building C object os/CMakeFiles/libYAPOs.dir/mem.c.o
[ 16%] Building C object os/CMakeFiles/libYAPOs.dir/open_memstream.c.o
[ 16%] Building C object os/CMakeFiles/libYAPOs.dir/pipes.c.o
[ 17%] Building C object os/CMakeFiles/libYAPOs.dir/readline.c.o
[ 18%] Building C object os/CMakeFiles/libYAPOs.dir/random.c.o
[ 18%] Building C object os/CMakeFiles/libYAPOs.dir/readterm.c.o
[ 19%] Building C object os/CMakeFiles/libYAPOs.dir/readutil.c.o
[ 19%] Building C object os/CMakeFiles/libYAPOs.dir/sig.c.o
[ 20%] Building C object os/CMakeFiles/libYAPOs.dir/sockets.c.o
[ 21%] Building C object os/CMakeFiles/libYAPOs.dir/streams.c.o
[ 21%] Building C object os/CMakeFiles/libYAPOs.dir/sysbits.c.o
[ 22%] Building C object os/CMakeFiles/libYAPOs.dir/time.c.o
[ 22%] Building C object os/CMakeFiles/libYAPOs.dir/writeterm.c.o
[ 23%] Building C object os/CMakeFiles/libYAPOs.dir/ypsocks.c.o
[ 23%] Building C object os/CMakeFiles/libYAPOs.dir/ypstdio.c.o
[ 23%] Built target libYAPOs
Scanning dependencies of target libYap
[ 24%] Building C object CMakeFiles/libYap.dir/C/absmi.c.o
[ 25%] Building C object CMakeFiles/libYap.dir/C/agc.c.o
[ 25%] Building C object CMakeFiles/libYap.dir/C/adtdefs.c.o
[ 26%] Building C object CMakeFiles/libYap.dir/C/alloc.c.o
[ 26%] Building C object CMakeFiles/libYap.dir/C/amasm.c.o
[ 27%] Building C object CMakeFiles/libYap.dir/C/analyst.c.o
[ 27%] Building C object CMakeFiles/libYap.dir/C/args.c.o
[ 28%] Building C object CMakeFiles/libYap.dir/C/arrays.c.o
[ 29%] Building C object CMakeFiles/libYap.dir/C/arith0.c.o
[ 29%] Building C object CMakeFiles/libYap.dir/C/arith1.c.o
[ 30%] Building C object CMakeFiles/libYap.dir/C/arith2.c.o
[ 30%] Building C object CMakeFiles/libYap.dir/C/atomic.c.o
[ 31%] Building C object CMakeFiles/libYap.dir/C/attvar.c.o
[ 32%] Building C object CMakeFiles/libYap.dir/C/bignum.c.o
[ 32%] Building C object CMakeFiles/libYap.dir/C/bb.c.o
[ 33%] Building C object CMakeFiles/libYap.dir/C/blobs.c.o
[ 33%] Building C object CMakeFiles/libYap.dir/C/cdmgr.c.o
[ 34%] Building C object CMakeFiles/libYap.dir/C/cmppreds.c.o
[ 34%] Building C object CMakeFiles/libYap.dir/C/compiler.c.o
[ 35%] Building C object CMakeFiles/libYap.dir/C/computils.c.o
[ 36%] Building C object CMakeFiles/libYap.dir/C/corout.c.o
[ 36%] Building C object CMakeFiles/libYap.dir/C/cut_c.c.o
[ 37%] Building C object CMakeFiles/libYap.dir/C/dbase.c.o
[ 37%] Building C object CMakeFiles/libYap.dir/C/dlmalloc.c.o
[ 38%] Building C object CMakeFiles/libYap.dir/C/errors.c.o
/devel/GITHUB/yap-6.3/C/errors.c: In function ‘Yap_PrintPredName’:
/devel/GITHUB/yap-6.3/C/errors.c:87:14: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘pred_flags_t {aka long unsigned int}’ [-Wformat=]
   sprintf(s, "   %llx\n", ap->PredFlags);
              ^
[ 38%] Building C object CMakeFiles/libYap.dir/C/eval.c.o
[ 39%] Building C object CMakeFiles/libYap.dir/C/exec.c.o
[ 40%] Building C object CMakeFiles/libYap.dir/C/exo.c.o
[ 40%] Building C object CMakeFiles/libYap.dir/C/exo_udi.c.o
[ 41%] Building C object CMakeFiles/libYap.dir/C/flags.c.o
In file included from /devel/GITHUB/yap-6.3/H/generated/h0struct.h:86:0,
                 from /devel/GITHUB/yap-6.3/H/YapHeap.h:185,
                 from /devel/GITHUB/yap-6.3/H/Yap.h:776,
                 from /devel/GITHUB/yap-6.3/C/flags.c:27:
/devel/GITHUB/yap-6.3/C/flags.c: In function ‘Yap_UnknownFlag’:
/devel/GITHUB/yap-6.3/H/generated/tatoms.h:1185:18: warning: passing argument 1 of ‘Yap_GetModuleEntry’ makes integer from pointer without a cast [-Wint-conversion]
 #define AtomUser Yap_heap_regs->AtomUser_
                  ^
/devel/GITHUB/yap-6.3/C/flags.c:1022:30: note: in expansion of macro ‘AtomUser’
      fv = Yap_GetModuleEntry(AtomUser);
                              ^
In file included from /devel/GITHUB/yap-6.3/H/Yap.h:440:0,
                 from /devel/GITHUB/yap-6.3/C/flags.c:27:
/devel/GITHUB/yap-6.3/H/Yapproto.h:322:19: note: expected ‘Term {aka long unsigned int}’ but argument is of type ‘Atom {aka struct AtomEntryStruct *}’
 struct mod_entry *Yap_GetModuleEntry(Term tmod);
                   ^
[ 41%] Building C object CMakeFiles/libYap.dir/C/globals.c.o
[ 42%] Building C object CMakeFiles/libYap.dir/C/gmp_support.c.o
[ 43%] Building C object CMakeFiles/libYap.dir/C/gprof.c.o
[ 43%] Building C object CMakeFiles/libYap.dir/C/grow.c.o
[ 44%] Building C object CMakeFiles/libYap.dir/C/heapgc.c.o
[ 44%] Building C object CMakeFiles/libYap.dir/C/index.c.o
[ 45%] Building C object CMakeFiles/libYap.dir/C/init.c.o
[ 45%] Building C object CMakeFiles/libYap.dir/C/inlines.c.o
[ 46%] Building C object CMakeFiles/libYap.dir/C/depth_bound.c.o
[ 47%] Building C object CMakeFiles/libYap.dir/C/mavar.c.o
[ 47%] Building C object CMakeFiles/libYap.dir/C/modules.c.o
[ 48%] Building C object CMakeFiles/libYap.dir/C/other.c.o
[ 48%] Building C object CMakeFiles/libYap.dir/C/parser.c.o
[ 49%] Building C object CMakeFiles/libYap.dir/C/qlyr.c.o
/devel/GITHUB/yap-6.3/C/qlyr.c: In function ‘Yap_Restore’:
/devel/GITHUB/yap-6.3/C/qlyr.c:1171:22: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   GLOBAL_RestoreFile = s;
                      ^
[ 49%] Building C object CMakeFiles/libYap.dir/C/qlyw.c.o
[ 50%] Building C object CMakeFiles/libYap.dir/C/range.c.o
[ 51%] Building C object CMakeFiles/libYap.dir/C/save.c.o
[ 51%] Building C object CMakeFiles/libYap.dir/C/scanner.c.o
[ 52%] Building C object CMakeFiles/libYap.dir/C/signals.c.o
[ 52%] Building C object CMakeFiles/libYap.dir/C/sort.c.o
[ 53%] Building C object CMakeFiles/libYap.dir/C/stdpreds.c.o
[ 53%] Building C object CMakeFiles/libYap.dir/C/stack.c.o
[ 54%] Building C object CMakeFiles/libYap.dir/C/text.c.o
[ 55%] Building C object CMakeFiles/libYap.dir/C/threads.c.o
[ 55%] Building C object CMakeFiles/libYap.dir/C/tracer.c.o
[ 56%] Building C object CMakeFiles/libYap.dir/C/unify.c.o
[ 56%] Building C object CMakeFiles/libYap.dir/C/userpreds.c.o
[ 57%] Building C object CMakeFiles/libYap.dir/C/utilpreds.c.o
[ 58%] Building C object CMakeFiles/libYap.dir/C/yap-args.c.o
[ 58%] Building C object CMakeFiles/libYap.dir/C/write.c.o
[ 59%] Building C object CMakeFiles/libYap.dir/C/udi.c.o
[ 59%] Building C object CMakeFiles/libYap.dir/GitSHA1.c.o
[ 60%] Building C object CMakeFiles/libYap.dir/C/load_foreign.c.o
[ 60%] Building C object CMakeFiles/libYap.dir/C/load_dl.c.o
[ 61%] Building C object CMakeFiles/libYap.dir/C/load_dld.c.o
[ 62%] Building C object CMakeFiles/libYap.dir/C/load_dyld.c.o
[ 62%] Building C object CMakeFiles/libYap.dir/C/load_none.c.o
[ 63%] Building C object CMakeFiles/libYap.dir/C/load_aout.c.o
[ 63%] Building C object CMakeFiles/libYap.dir/C/load_aix.c.o
[ 64%] Building C object CMakeFiles/libYap.dir/C/load_dll.c.o
[ 64%] Building C object CMakeFiles/libYap.dir/C/load_shl.c.o
[ 65%] Building C object CMakeFiles/libYap.dir/C/c_interface.c.o
[ 66%] Building C object CMakeFiles/libYap.dir/C/clause_list.c.o
Linking C shared library libYap.so
[ 66%] Built target libYap
Scanning dependencies of target yap-bin
[ 67%] Building C object CMakeFiles/yap-bin.dir/console/yap.c.o
Linking C executable yap
[ 67%] Built target yap-bin
Scanning dependencies of target startup.yss
 % consulting /devel/GITHUB/yap-6.3/pl/init.yap...
 % /devel/GITHUB/yap-6.3/pl/init.yap consulted 0 bytes in 0 msecs
[prolog]
[prolog]

^- stuck here

TeamSPoon commented 8 years ago

I temporarily work around it by reverting that one commit...

https://github.com/logicmoo/yap-6.3/tree/temp_revert_io

vscosta commented 8 years ago

On 25 Feb 2016, at 22:13, Douglas R. Miles notifications@github.com wrote:

I temporarily work around it by reverting that cone commit...

https://github.com/logicmoo/yap-6.3/tree/temp_revert_io https://github.com/logicmoo/yap-6.3/tree/temp_revert_io — Reply to this email directly or view it on GitHub https://github.com/vscosta/yap-6.3/issues/15#issuecomment-189008427.

Sorry Douglas,my bad. This was a small fix: get_wchar used get_char, and they both updated char count, line count, etc… This resulted in yap totally getting lost in the error messages.

Thanks!

Vitor

TeamSPoon commented 8 years ago

I sort of assumed you updated it right? So I did a fresh checkout...

Your branch is up-to-date with 'origin/master'.
root@gitlab:/devel/GITHUB/yap-6.3# mkdir build
root@gitlab:/devel/GITHUB/yap-6.3# cd build/
root@gitlab:/devel/GITHUB/yap-6.3/build# ls
root@gitlab:/devel/GITHUB/yap-6.3/build# cmake ..
-- The C compiler identification is GNU 5.3.0
-- The CXX compiler identification is GNU 5.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
<snip>
-- Configuring done
-- Generating done
-- Build files have been written to: /devel/GITHUB/yap-6.3/build

CMake goes great Now going to run "make"

The next process compiles fine however during the making of init.yap it doesn't see any file length.

root@gitlab:/devel/GITHUB/yap-6.3/build# make
Scanning dependencies of target libswi
[  1%] Building C object library/dialect/swi/fli/CMakeFiles/libswi.dir/swi.c.o
[  1%] Building C object library/dialect/swi/fli/CMakeFiles/libswi.dir/blobs.c.o
[  1%] Built target libswi
Scanning dependencies of target libOPTYap
[  1%] Building C object OPTYap/CMakeFiles/libOPTYap.dir/or.memory.c.o
<snip>
Linking C shared library libYap.so
[ 66%] Built target libYap
Scanning dependencies of target yap-bin
[ 67%] Building C object CMakeFiles/yap-bin.dir/console/yap.c.o
Linking C executable yap
[ 67%] Built target yap-bin
Scanning dependencies of target startup.yss
 % consulting /devel/GITHUB/yap-6.3/pl/init.yap...
 % /devel/GITHUB/yap-6.3/pl/init.yap consulted 0 bytes in 0 msecs
[prolog]
[prolog]

Hang on reader So I Press Ctrl-D and it continues onward

[ 67%] Built target startup.yss
Scanning dependencies of target main
[ 67%] Built target main
Scanning dependencies of target plmyddas
[ 67%] Built target plmyddas
<snip>
[100%] Building C object packages/raptor/CMakeFiles/libxml2.dir/xml2_yap.c.o
Linking C shared library libxml2.so
[100%] Built target libxml2

Now going to run "make install"

root@gitlab:/devel/GITHUB/yap-6.3/build# make install
[  1%] Built target libswi
[  7%] Built target libOPTYap
[  7%] Built target utf8proc
[ 10%] Built target myddas
[ 23%] Built target libYAPOs
<snip>
[ 66%] Built target libYap
[ 67%] Built target yap-bin
 % consulting /devel/GITHUB/yap-6.3/pl/init.yap...
 % /devel/GITHUB/yap-6.3/pl/init.yap consulted 0 bytes in 0 msecs
[prolog]
[prolog]

Hangs again So I Press Ctrl-D and it continues onward

[ 67%] Built target startup.yss
[ 67%] Built target main
<snip>
-- Installing: /usr/local/share/Yap/boot/chartypes.yap
-- Installing: /usr/local/share/Yap/boot/edio.yap
CMake Error at pl/cmake_install.cmake:111 (file):
  file INSTALL cannot find "/devel/GITHUB/yap-6.3/build/startup.yss".
Call Stack (most recent call first):
  cmake_install.cmake:111 (include)

make: *** [install] Error 1
root@gitlab:/devel/GITHUB/yap-6.3/build#

Basically it seems to believed init.yap is empty ( file size was 0 to prolog) perhaps it was looking at the console IO and not the filestream. (and why I had to press Ctrl-D)

vscosta commented 8 years ago

Hi Douglas

I'm sorry, I kind of got stuck in a few bugs, and I was afraid to commit until they were fixed.

One bug is that I managed to compile YAP under VC++, but somehow it dies at boot. Do you want to have a look into that?

Cheers

Vitor

On Thu, Feb 25, 2016 at 10:10 PM, Douglas R. Miles <notifications@github.com

wrote:

As of commit "Simplify Input/Output" f7d23f9 https://github.com/vscosta/yap-6.3/commit/f7d23f9deb82fd2586f68b0d7f5edcc07bceb657

root@gitlab:/devel/GITHUB/yap-6.3# git status On branch master Your branch is up-to-date with 'origin/master'.

nothing to commit, working directory clean root@gitlab:/devel/GITHUB/yap-6.3# git remote -v origin https://github.com/vscosta/yap-6.3 (fetch) origin https://github.com/vscosta/yap-6.3 (push) root@gitlab:/devel/GITHUB/yap-6.3# mkdir ../build-yap-6.3 root@gitlab:/devel/GITHUB/yap-6.3# cd ../build-yap-6.3/ root@gitlab:/devel/GITHUB/build-yap-6.3# cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr/local /devel/GITHUB/yap-6.3 -G "Eclipse CDT4 - Unix Makefiles" -- The C compiler identification is GNU 5.3.0 -- The CXX compiler identification is GNU 5.3.0 -- Could not determine Eclipse version, assuming at least 3.6 (Helios). Adjust CMAKE_ECLIPSE_VERSION if this is wrong. -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Building YAP version -- Check for signal return type in -- Check for signal handler return type type void - found -- Checking whether system has ANSI C header files -- Looking for 4 include files stdlib.h, ..., float.h -- Looking for 4 include files stdlib.h, ..., float.h - found -- Performing Test memchrExists -- Performing Test memchrExists - Success -- Performing Test freeExists -- Performing Test freeExists - Success -- Check for whether ctype.h macros work on characters with the high bit set. -- High-bit characters - work -- ANSI C header files - found -- Looking for alloca.h -- Looking for alloca.h - found -- Looking for apache2/util_md5.h -- Looking for apache2/util_md5.h - not found -- Looking for apr-1/apr_md5.h -- Looking for apr-1/apr_md5.h - not found -- Looking for arpa/inet.h -- Looking for arpa/inet.h - found -- Looking for include file ctype.h -- Looking for include file ctype.h - found -- Looking for direct.h -- Looking for direct.h - not found -- Looking for dirent.h -- Looking for dirent.h - found -- Looking for dlfcn.h -- Looking for dlfcn.h - found -- Looking for errno.h -- Looking for errno.h - found -- Looking for execinfo.h -- Looking for execinfo.h - found -- Looking for fcntl.h -- Looking for fcntl.h - found -- Looking for fenv.h -- Looking for fenv.h - found -- Looking for include file fmemopen.h -- Looking for include file fmemopen.h - not found -- Looking for fpu_control.h -- Looking for fpu_control.h - found -- Looking for gettid -- Looking for gettid - not found -- Looking for SYS_gettid -- Looking for SYS_gettid - found -- Looking for glob.h -- Looking for glob.h - found -- Looking for ieeefp.h -- Looking for ieeefp.h - not found -- Looking for inttypes.h -- Looking for inttypes.h - found -- Looking for io.h -- Looking for io.h - not found -- Looking for libgen.h -- Looking for libgen.h - found -- Looking for LibLoaderAPI.h -- Looking for LibLoaderAPI.h - not found -- Looking for limits.h -- Looking for limits.h - found -- Looking for locale.h -- Looking for locale.h - found -- Looking for mach-o/dyld.h -- Looking for mach-o/dyld.h - not found -- Looking for malloc.h -- Looking for malloc.h - found -- Looking for math.h -- Looking for math.h - found -- Looking for memory.h -- Looking for memory.h - found -- Looking for mpe.h -- Looking for mpe.h - not found -- Looking for mpi.h -- Looking for mpi.h - not found -- Looking for mysql/mysql.h -- Looking for mysql/mysql.h - found -- Looking for netdb.h -- Looking for netdb.h - found -- Looking for netinet/in.h -- Looking for netinet/in.h - found -- Looking for netinet/tcp.h -- Looking for netinet/tcp.h - found -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pwd.h -- Looking for pwd.h - found -- Looking for regex.h -- Looking for regex.h - found -- Looking for setjmp.h -- Looking for setjmp.h - found -- Looking for shlobj.h -- Looking for shlobj.h - not found -- Looking for siginfo.h -- Looking for siginfo.h - not found -- Looking for signal.h -- Looking for signal.h - found -- Looking for sqlite3.h -- Looking for sqlite3.h - found -- Looking for sql.h -- Looking for sql.h - found -- Looking for stdbool.h -- Looking for stdbool.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for strings.h -- Looking for strings.h - found -- Looking for stropts.h -- Looking for stropts.h - found -- Looking for syslog.h -- Looking for syslog.h - found -- Looking for sys/conf.h -- Looking for sys/conf.h - not found -- Looking for sys/dir.h -- Looking for sys/dir.h - found -- Looking for sys/file.h -- Looking for sys/file.h - found -- Looking for sys/mman.h -- Looking for sys/mman.h - found -- Looking for sys/ndir.h -- Looking for sys/ndir.h - not found -- Looking for sys/param.h -- Looking for sys/param.h - found -- Looking for sys/resource.h -- Looking for sys/resource.h - found -- Looking for sys/select.h -- Looking for sys/select.h - found -- Looking for sys/shm.h -- Looking for sys/shm.h - found -- Looking for sys/socket.h -- Looking for sys/socket.h - found -- Looking for sys/stat.h -- Looking for sys/stat.h - found -- Looking for sys/syscall.h -- Looking for sys/syscall.h - found -- Looking for sys/times.h -- Looking for sys/times.h - found -- Looking for sys/time.h -- Looking for sys/time.h - found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for sys/ucontext.h -- Looking for sys/ucontext.h - found -- Looking for sys/un.h -- Looking for sys/un.h - found -- Looking for sys/wait.h -- Looking for sys/wait.h - found -- Looking for time.h -- Looking for time.h - found -- Looking for ucontext.h -- Looking for ucontext.h - found -- Looking for unistd.h -- Looking for unistd.h - found -- Looking for util.h -- Looking for util.h - not found -- Looking for utime.h -- Looking for utime.h - found -- Looking for wchar.h -- Looking for wchar.h - found -- Looking for wctype.h -- Looking for wctype.h - found -- Looking for windef.h -- Looking for windef.h - not found -- Looking for windows.h -- Looking for windows.h - not found -- Looking for winsock2.h -- Looking for winsock2.h - not found -- Looking for winsock.h -- Looking for winsock.h - not found -- Looking for wordexp.h -- Looking for wordexp.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of short int -- Check size of short int - done -- Check size of int -- Check size of int - done -- Check size of long int -- Check size of long int - done -- Check size of long int -- Check size of long int - done -- Check size of long long int -- Check size of long long int - done -- Check size of long long int -- Check size of long long int - done -- Check size of float -- Check size of float - done -- Check size of double -- Check size of double - done -- Check size of void -- Check size of void * - done -- Check size of void -- Check size of void * - done -- Check size of int * -- Check size of int * - done -- Check size of uintptr_t -- Check size of uintptr_t - done -- Check size of wchar_t -- Check size of wchar_t - done -- Looking for main in android -- Looking for main in android - not found -- Looking for logf in m -- Looking for logf in m - found -- Looking for dlopen in dl -- Looking for dlopen in dl - found -- Looking for Judy1Set in judy -- Looking for Judy1Set in judy - not found -- Looking for main in log -- Looking for main in log - not found -- Looking for main in unicode -- Looking for main in unicode - not found -- Looking for main in xnet -- Looking for main in xnet - not found -- Looking for _NSGetEnviron -- Looking for _NSGetEnviron - not found -- Looking for access -- Looking for access - found -- Looking for acosh -- Looking for acosh - not found -- Looking for asinh -- Looking for asinh - not found -- Looking for atanh -- Looking for atanh - not found -- Looking for backtrace -- Looking for backtrace - found -- Looking for basename -- Looking for basename - found -- Looking for chdir -- Looking for chdir - found -- Looking for _chsize_s -- Looking for _chsize_s - not found -- Looking for clock -- Looking for clock - found -- Looking for clock_gettime -- Looking for clock_gettime - found -- Looking for ctime -- Looking for ctime - found -- Looking for dup2 -- Looking for dup2 - found -- Looking for dynarray -- Looking for dynarray - not found -- Looking for environ -- Looking for environ - found -- Looking for erf -- Looking for erf - not found -- Looking for feclearexcept -- Looking for feclearexcept - not found -- Looking for feenableexcept -- Looking for feenableexcept - not found -- Looking for fesetexceptflag -- Looking for fesetexceptflag - not found -- Looking for fesetround -- Looking for fesetround - not found -- Looking for fesettrapenable -- Looking for fesettrapenable - not found -- Looking for fetestexcept -- Looking for fetestexcept - not found -- Looking for ffsl -- Looking for ffsl - not found -- Looking for ffsll -- Looking for ffsll - not found -- Looking for builtin_ffsll -- Looking for __builtin_ffsll - not found -- Looking for fgetpos -- Looking for fgetpos - found -- Looking for finite -- Looking for finite - found -- Looking for flsl -- Looking for flsl - not found -- Looking for flsll -- Looking for flsll - not found -- Looking for fmemopen -- Looking for fmemopen - found -- Looking for fpclass -- Looking for fpclass - not found -- Looking for ftime -- Looking for ftime - found -- Looking for ftruncate -- Looking for ftruncate - found -- Looking for funopen -- Looking for funopen - not found -- Looking for gcc -- Looking for gcc - not found -- Looking for getcwd -- Looking for getcwd - found -- Looking for getenv -- Looking for getenv - found -- Looking for getexecname -- Looking for getexecname - not found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for gethostent -- Looking for gethostent - found -- Looking for gethostid -- Looking for gethostid - found -- Looking for gethostname -- Looking for gethostname - found -- Looking for gethrtime -- Looking for gethrtime - not found -- Looking for getpagesize -- Looking for getpagesize - found -- Looking for getpid -- Looking for getpid - found -- Looking for getpwnam -- Looking for getpwnam - found -- Looking for getrlimit -- Looking for getrlimit - found -- Looking for getrusage -- Looking for getrusage - found -- Looking for gettimeofday -- Looking for gettimeofday - found -- Looking for getwd -- Looking for getwd - found -- Looking for glob -- Looking for glob - found -- Looking for gmtime -- Looking for gmtime - found -- Looking for h_errno -- Looking for h_errno - not found -- Looking for isatty -- Looking for isatty - found -- Looking for isfinite -- Looking for isfinite - not found -- Looking for isinf -- Looking for isinf - found -- Looking for isnan -- Looking for isnan - found -- Looking for kill -- Looking for kill - found -- Looking for labs -- Looking for labs - found -- Looking for link -- Looking for link - found -- Looking for localtime -- Looking for localtime - found -- Looking for lstat -- Looking for lstat - found -- Looking for mallinfo -- Looking for mallinfo - not found -- Looking for mbscoll -- Looking for mbscoll - not found -- Looking for mbscasecoll -- Looking for mbscasecoll - not found -- Looking for mbsnrtowcs -- Looking for mbsnrtowcs - found -- Looking for memcpy -- Looking for memcpy - found -- Looking for memmove -- Looking for memmove - found -- Looking for mkstemp -- Looking for mkstemp - found -- Looking for mktemp -- Looking for mktemp - found -- Looking for nanosleep -- Looking for nanosleep - found -- Looking for mktime -- Looking for mktime - found -- Looking for opendir -- Looking for opendir - found -- Looking for open_memstream -- Looking for open_memstream - found -- Looking for putenv -- Looking for putenv - found -- Looking for rand -- Looking for rand - found -- Looking for random -- Looking for random - found -- Looking for readlink -- Looking for readlink - found -- Looking for realpath -- Looking for realpath - found -- Looking for regexec -- Looking for regexec - found -- Looking for rename -- Looking for rename - found -- Looking for restartable_syscalls -- Looking for restartable_syscalls - not found -- Looking for rint -- Looking for rint - not found -- Looking for sbrk -- Looking for sbrk - found -- Looking for select -- Looking for select - found -- Looking for setbuf -- Looking for setbuf - found -- Looking for setitimer -- Looking for setitimer - found -- Looking for setlinebuf -- Looking for setlinebuf - found -- Looking for setlocale -- Looking for setlocale - found -- Looking for setsid -- Looking for setsid - found -- Looking for shmat -- Looking for shmat - found -- Looking for sigaction -- Looking for sigaction - found -- Looking for SIGFPE -- Looking for SIGFPE - found -- Looking for siggetmask -- Looking for siggetmask - found -- Looking for SIGINFO -- Looking for SIGINFO - not found -- Looking for siginterrupt -- Looking for siginterrupt - found -- Looking for signal -- Looking for signal - found -- Looking for sigprocmask -- Looking for sigprocmask - found -- Looking for SIGPROF -- Looking for SIGPROF - found -- Looking for SIGSEGV -- Looking for SIGSEGV - found -- Looking for sigsetjmp -- Looking for sigsetjmp - found -- Looking for sleep -- Looking for sleep - found -- Looking for snprintf -- Looking for snprintf - found -- Looking for socket -- Looking for socket - found -- Looking for socklen_t -- Looking for socklen_t - not found -- Looking for sqllen -- Looking for sqllen - not found -- Looking for sqlulen -- Looking for sqlulen - not found -- Looking for srand -- Looking for srand - found -- Looking for srand -- Looking for srand - found -- Looking for srandom -- Looking for srandom - found -- Looking for ssize_t -- Looking for ssize_t - not found -- Looking for stat -- Looking for stat - found -- Looking for strcasecmp -- Looking for strcasecmp - found -- Looking for strcasestr -- Looking for strcasestr - found -- Looking for strchr -- Looking for strchr - found -- Looking for strerror -- Looking for strerror - found -- Looking for stricmp -- Looking for stricmp - not found -- Looking for strlwr -- Looking for strlwr - not found -- Looking for strncasecmp -- Looking for strncasecmp - found -- Looking for strncat -- Looking for strncat - found -- Looking for strncpy -- Looking for strncpy - found -- Looking for strnlen -- Looking for strnlen - found -- Looking for strtod -- Looking for strtod - found -- Looking for struct_time_tm_gmtoff -- Looking for struct_time_tm_gmtoff - not found -- Looking for system -- Looking for system - found -- Looking for time -- Looking for time - found -- Looking for timegm -- Looking for timegm - found -- Looking for times -- Looking for times - found -- Looking for timezone -- Looking for timezone - found -- Looking for tmpnam -- Looking for tmpnam - found -- Looking for ttyname -- Looking for ttyname - found -- Looking for usleep -- Looking for usleep - found -- Looking for utime -- Looking for utime - found -- Looking for vfork -- Looking for vfork - found -- Looking for vsnprintf -- Looking for vsnprintf - found -- Looking for waitpid -- Looking for waitpid - found -- Looking for wcsdup -- Looking for wcsdup - found -- Looking for wcsnlen -- Looking for wcsnlen - found -- Looking for wordexp -- Looking for wordexp - found -- Looking for _bool -- Looking for _bool - not found -- Looking for NR_gettid -- Looking for __NR_gettid - found -- Looking for gettid -- Looking for gettid - not found -- Running with CMAKE_C_FLAGS -- Found GMP: /usr/include/x86_64-linux-gnu -- Found MySQL: /usr/lib/x86_64-linux-gnu/libmysqlclient.so -- Found PostgreSQL: /usr/lib/libpq.so (found version "9.3.11") -- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") -- checking for module 'sqlite3' -- found sqlite3, version 3.8.2 -- Found Sqlite3: /usr/lib/x86_64-linux-gnu/libsqlite3.so -- Found readline library -- Looking for readline in readline -- Looking for readline in readline - found -- Looking for include files stdio.h, readline/readline.h -- Looking for include files stdio.h, readline/readline.h - found -- Looking for include files stdio.h, readline/history.h -- Looking for include files stdio.h, readline/history.h - found -- Looking for add_history -- Looking for add_history - found -- Looking for rl_begin_undo_group -- Looking for rl_begin_undo_group - found -- Looking for rl_clear_pending_input -- Looking for rl_clear_pending_input - found -- Looking for rl_discard_argument -- Looking for rl_discard_argument - found -- Looking for rl_filename_completion_function -- Looking for rl_filename_completion_function - found -- Looking for rl_free_line_state -- Looking for rl_free_line_state - found -- Looking for rl_insert_close -- Looking for rl_insert_close - found -- Looking for rl_reset_after_signal -- Looking for rl_reset_after_signal - found -- Looking for rl_set_keyboard_input_timeout -- Looking for rl_set_keyboard_input_timeout - found -- Looking for rl_set_prompt -- Looking for rl_set_prompt - found -- Looking for rl_catch_signals -- Looking for rl_catch_signals - found -- Looking for rl_done -- Looking for rl_done - found -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.1f") -- Looking for openssl/ripemd.h -- Looking for openssl/ripemd.h - found -- Looking for openssl/md5.h -- Looking for openssl/md5.h - found -- Looking for crypt in crypt -- Looking for crypt in crypt - found -- Found R: /usr/share/R/include -- Looking for include file R.h -- Looking for include file R.h - found -- Looking for include files R.h, Rembedded.h -- Looking for include files R.h, Rembedded.h - found -- Looking for include files Rembedded.h, Rinterface.h -- Looking for include files Rembedded.h, Rinterface.h - found -- Found PythonInterp: /usr/bin/python (found version "2.7.6") -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found version "2.7.6") -- Found Java: /usr/bin/java (found version "1.8.0.72") -- Found Java: /usr/bin/java (found version "1.8.0.72") -- Found JNI: /usr/lib/jvm/default-java/jre/lib/amd64/libjawt.so -- Found SWIG: /usr/bin/swig2.0 (found version "2.0.11") -- Found Java: /usr/bin/java (found version "1.8.0.72") -- Found Java: /usr/bin/java (found version "1.8.0.72") -- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.1") -- Looking for include file libxml2/libxml2.h -- Looking for include file libxml2/libxml2.h - not found -- Looking for include file libxml2.h -- Looking for include file libxml2.h - not found -- Could NOT find Raptor (missing: RAPTOR_LIBRARY RAPTOR_INCLUDE_DIR) -- Found Doxygen: /usr/bin/doxygen (found version "1.8.6")


-- The following external packages were located on your system.

-- This installation will have the extra features provided by these packages.

  • libgmp - GNU big integers and rationals
  • MySQL - MYSQL Driver for MYDDAS Data-Base Interface
  • Odbc - ODBC Driver for MYDDAS Data-Base Interface
  • postgres - PostgreSQL Driver for MYDDAS Data-Base Interface
  • Sqlite3 - Sqlite3 Data-Base
  • libreadline - Readline line editing library
  • OpenSLL - Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols
  • R - Use R Environment
  • Python - Use Python System
  • Java - Use Java System
  • Swig - Use SWIG Documentation System
  • JNI - Use Java Native Interface
  • RAPTOR - Use XML2 Library

-- The following OPTIONAL packages could NOT be located on your system.

-- Consider installing them to enable more features from this software.


-- Configuring done -- Generating done -- Build files have been written to: /devel/GITHUB/build-yap-6.3 root@gitlab:/devel/GITHUB/build-yap-6.3# make Scanning dependencies of target libswi [ 1%] Building C object library/dialect/swi/fli/CMakeFiles/libswi.dir/swi.c.o [ 1%] Building C object library/dialect/swi/fli/CMakeFiles/libswi.dir/blobs.c.o [ 1%] Built target libswi Scanning dependencies of target libOPTYap [ 1%] Building C object OPTYap/CMakeFiles/libOPTYap.dir/or.memory.c.o [ 2%] Building C object OPTYap/CMakeFiles/libOPTYap.dir/opt.init.c.o [ 3%] Building C object OPTYap/CMakeFiles/libOPTYap.dir/opt.preds.c.o [ 3%] Building C object OPTYap/CMakeFiles/libOPTYap.dir/or.copy_engine.c.o [ 4%] Building C object OPTYap/CMakeFiles/libOPTYap.dir/or.cow_engine.c.o [ 4%] Building C object OPTYap/CMakeFiles/libOPTYap.dir/or.sba_engine.c.o [ 5%] Building C object OPTYap/CMakeFiles/libOPTYap.dir/or.thread_engine.c.o [ 5%] Building C object OPTYap/CMakeFiles/libOPTYap.dir/or.scheduler.c.o [ 6%] Building C object OPTYap/CMakeFiles/libOPTYap.dir/or.cut.c.o [ 7%] Building C object OPTYap/CMakeFiles/libOPTYap.dir/tab.tries.c.o In file included from /devel/GITHUB/yap-6.3/OPTYap/tab.tries.c:258:0: /devel/GITHUB/yap-6.3/OPTYap/tab.tries.h: In function ‘answer_search_global_trie_loop’: /devel/GITHUB/yap-6.3/OPTYap/tab.tries.h:1329:7: warning: variable ‘in_pair’ set but not used [-Wunused-but-set-variable] int in_pair = 0; ^ [ 7%] Building C object OPTYap/CMakeFiles/libOPTYap.dir/tab.completion.c.o [ 7%] Built target libOPTYap Scanning dependencies of target utf8proc [ 7%] Building C object utf8proc/CMakeFiles/utf8proc.dir/utf8proc.c.o Linking C shared library libutf8proc.so [ 7%] Built target utf8proc Scanning dependencies of target myddas [ 7%] Building C object packages/myddas/CMakeFiles/myddas.dir/myddas_initialization.c.o [ 8%] Building C object packages/myddas/CMakeFiles/myddas.dir/myddas_shared.c.o [ 8%] Building C object packages/myddas/CMakeFiles/myddas.dir/myddas_statistics.c.o [ 9%] Building C object packages/myddas/CMakeFiles/myddas.dir/myddas_top_level.c.o [ 10%] Building C object packages/myddas/CMakeFiles/myddas.dir/myddas_util.c.o [ 10%] Built target myddas Scanning dependencies of target libYAPOs [ 11%] Building C object os/CMakeFiles/libYAPOs.dir/alias.c.o [ 11%] Building C object os/CMakeFiles/libYAPOs.dir/charsio.c.o [ 12%] Building C object os/CMakeFiles/libYAPOs.dir/chartypes.c.o [ 12%] Building C object os/CMakeFiles/libYAPOs.dir/console.c.o [ 13%] Building C object os/CMakeFiles/libYAPOs.dir/files.c.o [ 14%] Building C object os/CMakeFiles/libYAPOs.dir/fmemopen.c.o [ 14%] Building C object os/CMakeFiles/libYAPOs.dir/format.c.o [ 15%] Building C object os/CMakeFiles/libYAPOs.dir/iopreds.c.o In file included from /devel/GITHUB/yap-6.3/os/iopreds.c:102:0: /devel/GITHUB/yap-6.3/os/getw.h: In function ‘get_wchar_from_FILE’: /devel/GITHUB/yap-6.3/os/getw.h:203:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ In file included from /devel/GITHUB/yap-6.3/os/iopreds.c:108:0: /devel/GITHUB/yap-6.3/os/getw.h: In function ‘get_wchar’: /devel/GITHUB/yap-6.3/os/getw.h:203:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ [ 15%] Building C object os/CMakeFiles/libYAPOs.dir/mem.c.o [ 16%] Building C object os/CMakeFiles/libYAPOs.dir/open_memstream.c.o [ 16%] Building C object os/CMakeFiles/libYAPOs.dir/pipes.c.o [ 17%] Building C object os/CMakeFiles/libYAPOs.dir/readline.c.o [ 18%] Building C object os/CMakeFiles/libYAPOs.dir/random.c.o [ 18%] Building C object os/CMakeFiles/libYAPOs.dir/readterm.c.o [ 19%] Building C object os/CMakeFiles/libYAPOs.dir/readutil.c.o [ 19%] Building C object os/CMakeFiles/libYAPOs.dir/sig.c.o [ 20%] Building C object os/CMakeFiles/libYAPOs.dir/sockets.c.o [ 21%] Building C object os/CMakeFiles/libYAPOs.dir/streams.c.o [ 21%] Building C object os/CMakeFiles/libYAPOs.dir/sysbits.c.o [ 22%] Building C object os/CMakeFiles/libYAPOs.dir/time.c.o [ 22%] Building C object os/CMakeFiles/libYAPOs.dir/writeterm.c.o [ 23%] Building C object os/CMakeFiles/libYAPOs.dir/ypsocks.c.o [ 23%] Building C object os/CMakeFiles/libYAPOs.dir/ypstdio.c.o [ 23%] Built target libYAPOs Scanning dependencies of target libYap [ 24%] Building C object CMakeFiles/libYap.dir/C/absmi.c.o [ 25%] Building C object CMakeFiles/libYap.dir/C/agc.c.o [ 25%] Building C object CMakeFiles/libYap.dir/C/adtdefs.c.o [ 26%] Building C object CMakeFiles/libYap.dir/C/alloc.c.o [ 26%] Building C object CMakeFiles/libYap.dir/C/amasm.c.o [ 27%] Building C object CMakeFiles/libYap.dir/C/analyst.c.o [ 27%] Building C object CMakeFiles/libYap.dir/C/args.c.o [ 28%] Building C object CMakeFiles/libYap.dir/C/arrays.c.o [ 29%] Building C object CMakeFiles/libYap.dir/C/arith0.c.o [ 29%] Building C object CMakeFiles/libYap.dir/C/arith1.c.o [ 30%] Building C object CMakeFiles/libYap.dir/C/arith2.c.o [ 30%] Building C object CMakeFiles/libYap.dir/C/atomic.c.o [ 31%] Building C object CMakeFiles/libYap.dir/C/attvar.c.o [ 32%] Building C object CMakeFiles/libYap.dir/C/bignum.c.o [ 32%] Building C object CMakeFiles/libYap.dir/C/bb.c.o [ 33%] Building C object CMakeFiles/libYap.dir/C/blobs.c.o [ 33%] Building C object CMakeFiles/libYap.dir/C/cdmgr.c.o [ 34%] Building C object CMakeFiles/libYap.dir/C/cmppreds.c.o [ 34%] Building C object CMakeFiles/libYap.dir/C/compiler.c.o [ 35%] Building C object CMakeFiles/libYap.dir/C/computils.c.o [ 36%] Building C object CMakeFiles/libYap.dir/C/corout.c.o [ 36%] Building C object CMakeFiles/libYap.dir/C/cut_c.c.o [ 37%] Building C object CMakeFiles/libYap.dir/C/dbase.c.o [ 37%] Building C object CMakeFiles/libYap.dir/C/dlmalloc.c.o [ 38%] Building C object CMakeFiles/libYap.dir/C/errors.c.o /devel/GITHUB/yap-6.3/C/errors.c: In function ‘Yap_PrintPredName’: /devel/GITHUB/yap-6.3/C/errors.c:87:14: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘pred_flags_t {aka long unsigned int}’ [-Wformat=] sprintf(s, " %llx\n", ap->PredFlags); ^ [ 38%] Building C object CMakeFiles/libYap.dir/C/eval.c.o [ 39%] Building C object CMakeFiles/libYap.dir/C/exec.c.o [ 40%] Building C object CMakeFiles/libYap.dir/C/exo.c.o [ 40%] Building C object CMakeFiles/libYap.dir/C/exo_udi.c.o [ 41%] Building C object CMakeFiles/libYap.dir/C/flags.c.o In file included from /devel/GITHUB/yap-6.3/H/generated/h0struct.h:86:0, from /devel/GITHUB/yap-6.3/H/YapHeap.h:185, from /devel/GITHUB/yap-6.3/H/Yap.h:776, from /devel/GITHUB/yap-6.3/C/flags.c:27: /devel/GITHUB/yap-6.3/C/flags.c: In function ‘Yap_UnknownFlag’: /devel/GITHUB/yap-6.3/H/generated/tatoms.h:1185:18: warning: passing argument 1 of ‘Yap_GetModuleEntry’ makes integer from pointer without a cast [-Wint-conversion]

define AtomUser Yap_heapregs->AtomUser

              ^

/devel/GITHUB/yap-6.3/C/flags.c:1022:30: note: in expansion of macro ‘AtomUser’ fv = Yap_GetModuleEntry(AtomUser); ^ In file included from /devel/GITHUB/yap-6.3/H/Yap.h:440:0, from /devel/GITHUB/yap-6.3/C/flags.c:27: /devel/GITHUB/yap-6.3/H/Yapproto.h:322:19: note: expected ‘Term {aka long unsigned int}’ but argument is of type ‘Atom {aka struct AtomEntryStruct }’ struct mod_entry Yap_GetModuleEntry(Term tmod); ^ [ 41%] Building C object CMakeFiles/libYap.dir/C/globals.c.o [ 42%] Building C object CMakeFiles/libYap.dir/C/gmp_support.c.o [ 43%] Building C object CMakeFiles/libYap.dir/C/gprof.c.o [ 43%] Building C object CMakeFiles/libYap.dir/C/grow.c.o [ 44%] Building C object CMakeFiles/libYap.dir/C/heapgc.c.o [ 44%] Building C object CMakeFiles/libYap.dir/C/index.c.o [ 45%] Building C object CMakeFiles/libYap.dir/C/init.c.o [ 45%] Building C object CMakeFiles/libYap.dir/C/inlines.c.o [ 46%] Building C object CMakeFiles/libYap.dir/C/depth_bound.c.o [ 47%] Building C object CMakeFiles/libYap.dir/C/mavar.c.o [ 47%] Building C object CMakeFiles/libYap.dir/C/modules.c.o [ 48%] Building C object CMakeFiles/libYap.dir/C/other.c.o [ 48%] Building C object CMakeFiles/libYap.dir/C/parser.c.o [ 49%] Building C object CMakeFiles/libYap.dir/C/qlyr.c.o /devel/GITHUB/yap-6.3/C/qlyr.c: In function ‘Yap_Restore’: /devel/GITHUB/yap-6.3/C/qlyr.c:1171:22: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] GLOBAL_RestoreFile = s; ^ [ 49%] Building C object CMakeFiles/libYap.dir/C/qlyw.c.o [ 50%] Building C object CMakeFiles/libYap.dir/C/range.c.o [ 51%] Building C object CMakeFiles/libYap.dir/C/save.c.o [ 51%] Building C object CMakeFiles/libYap.dir/C/scanner.c.o [ 52%] Building C object CMakeFiles/libYap.dir/C/signals.c.o [ 52%] Building C object CMakeFiles/libYap.dir/C/sort.c.o [ 53%] Building C object CMakeFiles/libYap.dir/C/stdpreds.c.o [ 53%] Building C object CMakeFiles/libYap.dir/C/stack.c.o [ 54%] Building C object CMakeFiles/libYap.dir/C/text.c.o [ 55%] Building C object CMakeFiles/libYap.dir/C/threads.c.o [ 55%] Building C object CMakeFiles/libYap.dir/C/tracer.c.o [ 56%] Building C object CMakeFiles/libYap.dir/C/unify.c.o [ 56%] Building C object CMakeFiles/libYap.dir/C/userpreds.c.o [ 57%] Building C object CMakeFiles/libYap.dir/C/utilpreds.c.o [ 58%] Building C object CMakeFiles/libYap.dir/C/yap-args.c.o [ 58%] Building C object CMakeFiles/libYap.dir/C/write.c.o [ 59%] Building C object CMakeFiles/libYap.dir/C/udi.c.o [ 59%] Building C object CMakeFiles/libYap.dir/GitSHA1.c.o [ 60%] Building C object CMakeFiles/libYap.dir/C/load_foreign.c.o [ 60%] Building C object CMakeFiles/libYap.dir/C/load_dl.c.o [ 61%] Building C object CMakeFiles/libYap.dir/C/load_dld.c.o [ 62%] Building C object CMakeFiles/libYap.dir/C/load_dyld.c.o [ 62%] Building C object CMakeFiles/libYap.dir/C/load_none.c.o [ 63%] Building C object CMakeFiles/libYap.dir/C/load_aout.c.o [ 63%] Building C object CMakeFiles/libYap.dir/C/load_aix.c.o [ 64%] Building C object CMakeFiles/libYap.dir/C/load_dll.c.o [ 64%] Building C object CMakeFiles/libYap.dir/C/load_shl.c.o [ 65%] Building C object CMakeFiles/libYap.dir/C/c_interface.c.o [ 66%] Building C object CMakeFiles/libYap.dir/C/clause_list.c.o Linking C shared library libYap.so [ 66%] Built target libYap Scanning dependencies of target yap-bin [ 67%] Building C object CMakeFiles/yap-bin.dir/console/yap.c.o Linking C executable yap [ 67%] Built target yap-bin Scanning dependencies of target startup.yss % consulting /devel/GITHUB/yap-6.3/pl/init.yap... % /devel/GITHUB/yap-6.3/pl/init.yap consulted 0 bytes in 0 msecs [prolog] [prolog]

^- stuck here

— Reply to this email directly or view it on GitHub https://github.com/vscosta/yap-6.3/issues/15.

TeamSPoon commented 8 years ago

Awesome about VC++ .. yes will see what I do. ( VC++ at least in my workflow much more visibility and easy troubleshooting)

DouglasRMiles commented 8 years ago

The present nmake .mk or did you set up a .sln locally ? If sln you can attach . Also I dont even mind if VC++ project files are in repository. Or do you Cmake generate the project files?

vscosta commented 8 years ago

I just cmake the project files. I don't know what a sln is :) That is really nice.

You need mpir, that also comes with project files, so its pretty straightforward to generate.

The C++ code does not compile.

Have fun: the patch has a lot of automatic indenting to and fro, there was also two cut and paste gone wrong :(

If the startup problem remains, tell me. Also, the locale init patch might be causing your core dump at boot. It was crashing YAP under QT Creator because Qt Creator did not define LC so YAP defaulted to ASCII.

Best

Vitor

On Thu, Mar 3, 2016 at 11:21 PM, logicmoo notifications@github.com wrote:

The present nmake .mk or did you set up a .sln locally ? If sln you can attach . Also I dont even mind if VC++ project files are in repository. Or do you Cmake generate the project files?

— Reply to this email directly or view it on GitHub https://github.com/vscosta/yap-6.3/issues/15#issuecomment-192016805.

vscosta commented 8 years ago

might be causing your core dump at boot

really meant

might have fixed

On Thu, Mar 3, 2016 at 11:34 PM, Vitor Santos Costa vscosta@gmail.com wrote:

I just cmake the project files. I don't know what a sln is :) That is really nice.

You need mpir, that also comes with project files, so its pretty straightforward to generate.

The C++ code does not compile.

Have fun: the patch has a lot of automatic indenting to and fro, there was also two cut and paste gone wrong :(

If the startup problem remains, tell me. Also, the locale init patch might be causing your core dump at boot. It was crashing YAP under QT Creator because Qt Creator did not define LC so YAP defaulted to ASCII.

Best

Vitor

On Thu, Mar 3, 2016 at 11:21 PM, logicmoo notifications@github.com wrote:

The present nmake .mk or did you set up a .sln locally ? If sln you can attach . Also I dont even mind if VC++ project files are in repository. Or do you Cmake generate the project files?

— Reply to this email directly or view it on GitHub https://github.com/vscosta/yap-6.3/issues/15#issuecomment-192016805.

TeamSPoon commented 8 years ago

Just a little update

Main issue is that in most all cases

(assume 3 to berthe bootfile if stdin=0 ) GLOBAL_Stream[3].file == NULL

but even GLOBAL_Stream[0].file = NULL

For instance fd == NULL in these cases

bool Yap_initStream(int sno, FILE *fd, const char *name, Term file_name,
                    encoding_t encoding, stream_flags_t flags,
                    Atom open_mode) {
TeamSPoon commented 8 years ago

I had this problem on Ubuntu and WIN32 both.. When i resolved it on Ubuntu it did not yet resolve it on win32

TeamSPoon commented 8 years ago

Meant to say .. Since I have a version that run in Ubuntu I might sanity check that it runs cross compiled from Ubuntu to win32 ..

Its neat that VisualGDB makes the MinGW usable from Visual Studio (But really I'll still try to get us back to WIN32)

DouglasRMiles commented 8 years ago

[image: Inline image 1]

On Sat, Mar 5, 2016 at 9:56 AM, Douglas R. Miles notifications@github.com wrote:

Meant to say .. Since I have a version that run in Ubuntu I might sanity check that it runs cross compiled from Ubuntu to win32 ..

Its neat that VisualGDB makes the MinGW usable from Visual Studio (But really I'll still try to get us back to WIN32)

— Reply to this email directly or view it on GitHub https://github.com/vscosta/yap-6.3/issues/15#issuecomment-192698512.

TeamSPoon commented 8 years ago

image

vscosta commented 8 years ago

Hi

I am fixing a bad regression, i can help next.

Yap_InitPlIO should have been called and do the init. In WIN32 i am not sure they are guaranteed to exist on non-console apps.

Does VC++ support threaded emulation?

vscosta commented 8 years ago

Pretty nice,

I'd start by looking at what happens in iopreds.c:1870

TeamSPoon commented 8 years ago

Yap_InitPlIO should have been called and do the init. In WIN32 i am not sure they are guaranteed to exist on non-console apps.

Ahah that is very most likely it.. and it seems CMake is making yap.exe to be considered a DLL ( /MDd (debug dll) ) and not an EXE which makes it even more likely the StdStreams will be NULL

vscosta commented 8 years ago

Yes, we probably want to have separate call for when IO can start.

On Sat, Mar 5, 2016 at 6:24 PM, Douglas R. Miles notifications@github.com wrote:

Yap_InitPlIO should have been called and do the init. In WIN32 i am not sure they are guaranteed to exist on non-console apps.

Ahah that is very most likely it.. and it seems CMake is making yap.exe to be considered a DLL ( /MDd (debug dll) ) and not an EXE which makes it even more likely the StdStreams will be NULL

— Reply to this email directly or view it on GitHub https://github.com/vscosta/yap-6.3/issues/15#issuecomment-192702873.