Posted to tcl by aspect at Mon Feb 02 13:23:38 GMT 2015view raw
- :~/src/tcc4tcl$ make test
- rm -rf __TMP__
- make install tcllibdir=/home/tcl/src/tcc4tcl/__TMP__
- make[1]: Entering directory '/home/tcl/src/tcc4tcl'
- /usr/bin/install -c -d "/home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@"
- /usr/bin/install -c -d "/home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/lib"
- /usr/bin/install -c -d "/home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include"
- /usr/bin/install -c -m 0755 tcc4tcl.so "/home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@"
- /usr/bin/install -c -m 0644 pkgIndex.tcl "/home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@"
- /usr/bin/install -c -m 0644 ./tcc4tcl.tcl "/home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@"
- /usr/bin/install -c -m 0644 tcc/libtcc1.a "/home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/lib"
- /usr/bin/install -c -m 0644 ./tcc/win32/lib/crt1.c ./tcc/win32/lib/dllcrt1.c ./tcc/win32/lib/dllmain.c ./tcc/win32/lib/wincrt1.c "/home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/lib"
- /usr/bin/install -c -m 0644 ./tcc/include/float.h ./tcc/include/stdarg.h ./tcc/include/stdbool.h ./tcc/include/stddef.h ./tcc/include/tcclib.h ./tcc/include/varargs.h "/home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include"
- ( for file in tcl.h assert.h ctype.h errno.h float.h limits.h locale.h math.h setjmp.h signal.h stdarg.h stddef.h stdint.h stdio.h stdlib.h string.h time.h wctype.h; do echo "#include <${file}>"; done ) | \
- gcc -E -v -I/home/tcl/include -I/home/tcl/src/tcc4tcl -I/home/tcl/src/tcc4tcl/tcc -I/home/tcl/src/tcc4tcl/tcc -DPACKAGE_NAME=\"tcc4tcl\" -DPACKAGE_TARNAME=\"tcc4tcl\" -DPACKAGE_VERSION=\"@@VERS@@\" -DPACKAGE_STRING=\"tcc4tcl\ @@VERS@@\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -D__EXTENSIONS__=1 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_TANDEM_SOURCE=1 -DMODULE_SCOPE=static -DUSE_TCL_STUBS=1 -DPIC -I./tcc/include -I./tcc/include - 2>&1 | gawk -f ./headers.awk | while read src dst; do \
- dst="/home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/$dst"; \
- if [ -e "${dst}" ]; then continue; fi; \
- dstdir="$(dirname "$dst")"; \
- mkdir -p "$dstdir"; \
- echo cp "$src" "$dst"; \
- cp "$src" "$dst"; \
- done
- cp /usr/include/x86_64-linux-gnu/bits/wchar.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/wchar.h
- cp /usr/include/locale.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/locale.h
- cp /home/tcl/include/tcl.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/tcl.h
- cp /usr/include/x86_64-linux-gnu/bits/stdlib-float.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/stdlib-float.h
- cp /usr/include/xlocale.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/xlocale.h
- cp /usr/include/x86_64-linux-gnu/bits/sigset.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/sigset.h
- cp /usr/include/setjmp.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/setjmp.h
- cp /usr/include/x86_64-linux-gnu/bits/typesizes.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/typesizes.h
- cp /usr/lib/gcc/x86_64-linux-gnu/4.9/include/stdint.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/stdint.h
- cp /usr/include/x86_64-linux-gnu/sys/ucontext.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/sys/ucontext.h
- cp /usr/lib/gcc/x86_64-linux-gnu/4.9/include-fixed/syslimits.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/syslimits.h
- cp /usr/include/x86_64-linux-gnu/bits/sigaction.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/sigaction.h
- cp /usr/include/wchar.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/wchar.h
- cp /usr/include/x86_64-linux-gnu/bits/errno.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/errno.h
- cp /usr/include/linux/limits.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/linux/limits.h
- cp /usr/include/x86_64-linux-gnu/sys/cdefs.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/sys/cdefs.h
- cp /usr/include/linux/errno.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/linux/errno.h
- cp /usr/include/x86_64-linux-gnu/bits/select.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/select.h
- cp /usr/include/_G_config.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/_G_config.h
- cp /usr/include/stdint.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/1/stdint.h
- cp /usr/include/asm-generic/errno.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/asm-generic/errno.h
- cp /usr/include/errno.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/errno.h
- cp /usr/lib/gcc/x86_64-linux-gnu/4.9/include-fixed/limits.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/limits.h
- cp /usr/include/x86_64-linux-gnu/sys/select.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/sys/select.h
- cp /usr/include/x86_64-linux-gnu/bits/sys_errlist.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/sys_errlist.h
- cp /usr/include/stdc-predef.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/stdc-predef.h
- cp /usr/include/wctype.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/wctype.h
- cp /usr/include/x86_64-linux-gnu/sys/sysmacros.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/sys/sysmacros.h
- cp /usr/include/x86_64-linux-gnu/bits/types.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/types.h
- cp /usr/include/x86_64-linux-gnu/bits/signum.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/signum.h
- cp /usr/include/x86_64-linux-gnu/bits/xopen_lim.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/xopen_lim.h
- cp /usr/include/x86_64-linux-gnu/bits/inf.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/inf.h
- cp /usr/include/x86_64-linux-gnu/bits/mathcalls.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/mathcalls.h
- cp /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/byteswap-16.h
- cp /usr/include/asm-generic/errno-base.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/asm-generic/errno-base.h
- cp /usr/include/x86_64-linux-gnu/bits/huge_vall.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/huge_vall.h
- cp /usr/include/x86_64-linux-gnu/sys/types.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/sys/types.h
- cp /usr/include/x86_64-linux-gnu/bits/timex.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/timex.h
- cp /usr/include/x86_64-linux-gnu/bits/nan.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/nan.h
- cp /usr/include/stdlib.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/stdlib.h
- cp /usr/include/alloca.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/alloca.h
- cp /usr/include/stdio.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/stdio.h
- cp /home/tcl/include/tclPlatDecls.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/tclPlatDecls.h
- cp /home/tcl/include/tclDecls.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/tclDecls.h
- cp /usr/include/x86_64-linux-gnu/bits/stdio_lim.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/stdio_lim.h
- cp /usr/include/signal.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/signal.h
- cp /usr/include/x86_64-linux-gnu/bits/siginfo.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/siginfo.h
- cp /usr/include/x86_64-linux-gnu/bits/time.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/time.h
- cp /usr/include/x86_64-linux-gnu/bits/sigstack.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/sigstack.h
- cp /usr/include/x86_64-linux-gnu/bits/huge_valf.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/huge_valf.h
- cp /usr/include/x86_64-linux-gnu/bits/waitstatus.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/waitstatus.h
- cp /usr/include/libio.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/libio.h
- cp /usr/include/x86_64-linux-gnu/bits/sigcontext.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/sigcontext.h
- cp /usr/include/x86_64-linux-gnu/bits/huge_val.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/huge_val.h
- cp /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/pthreadtypes.h
- cp /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/posix2_lim.h
- cp /usr/include/x86_64-linux-gnu/gnu/stubs-64.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/gnu/stubs-64.h
- cp /usr/include/x86_64-linux-gnu/bits/endian.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/endian.h
- cp /usr/include/x86_64-linux-gnu/bits/waitflags.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/waitflags.h
- cp /usr/include/x86_64-linux-gnu/bits/mathdef.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/mathdef.h
- cp /usr/include/x86_64-linux-gnu/bits/posix1_lim.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/posix1_lim.h
- cp /usr/include/time.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/time.h
- cp /usr/include/x86_64-linux-gnu/bits/local_lim.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/local_lim.h
- cp /usr/include/string.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/string.h
- cp /usr/include/endian.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/endian.h
- cp /usr/include/x86_64-linux-gnu/bits/wordsize.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/wordsize.h
- cp /usr/include/x86_64-linux-gnu/asm/errno.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/asm/errno.h
- cp /usr/include/math.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/math.h
- cp /usr/include/ctype.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/ctype.h
- cp /usr/include/x86_64-linux-gnu/bits/locale.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/locale.h
- cp /usr/include/limits.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/1/limits.h
- cp /usr/include/x86_64-linux-gnu/gnu/stubs.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/gnu/stubs.h
- cp /usr/include/x86_64-linux-gnu/bits/byteswap.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/byteswap.h
- cp /usr/include/features.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/features.h
- cp /usr/include/assert.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/assert.h
- cp /usr/include/x86_64-linux-gnu/bits/setjmp.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/setjmp.h
- cp /usr/include/x86_64-linux-gnu/bits/sigthread.h /home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include/bits/sigthread.h
- ./patch-headers.sh "/home/tcl/src/tcc4tcl/__TMP__/tcc4tcl-@@VERS@@/include"
- make[1]: Leaving directory '/home/tcl/src/tcc4tcl'
- if [ "@@VERS@@" = '@@VERS@@' ]; then cd __TMP__/* && ( \
- for file in tcc4tcl.tcl pkgIndex.tcl; do \
- sed 's/@@VERS@@/0.0/g' "${file}" > "${file}.new"; \
- cat "${file}.new" > "${file}"; \
- rm -f "${file}.new"; \
- done \
- ); fi
- if [ 'x86_64-unknown-linux-gnu' = 'x86_64-unknown-linux-gnu' ]; then TCC4TCL_TEST_RUN_NATIVE=1; export TCC4TCL_TEST_RUN_NATIVE; fi; /home/tcl/lib/../bin/tclsh ./test.tcl __TMP__
- 43
- 43
- 43
- 43
- 44
- ok
- 43
- 43
- libcurl/7.38.0 GnuTLS/3.3.8 zlib/1.2.8 libidn/1.29 libssh2/1.4.3 librtmp/2.3
- 30
- library path /home/tcl/lib
- linking with tclstub8.6
- couldn't load file "/tmp/DELETEME_tcc4tcl_test_exec0.3422764653071186.so": /tmp/DELETEME_tcc4tcl_test_exec0.3422764653071186.so: undefined symbol: Tcl_InitStubs
- while executing
- "load $tmpfile myPkg"
- invoked from within
- "if {[info exists ::env(TCC4TCL_TEST_RUN_NATIVE)] && $::tcl_platform(os) != "Darwin"} {
- set tmpfile "/tmp/DELETEME_tcc4tcl_test_exec[expr rand()].so"
- ..."
- (file "./test.tcl" line 106)
- Makefile:91: recipe for target 'test' failed
- make: *** [test] Error 1
- :~/src/tcc4tcl$ which tclsh
- /home/tcl/bin/tclsh
- :~/src/tcc4tcl$ ldd /tmp/DELETEME_tcc4tcl_test_exec0.3422764653071186.so
- linux-vdso.so.1 (0x00007fff423f9000)
- libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fabf49ed000)
- /lib64/ld-linux-x86-64.so.2 (0x00007fabf4dc9000)
- :~/src/tcc4tcl$ objdump -T /tmp/DELETEME_tcc4tcl_test_exec0.3422764653071186.so
- /tmp/DELETEME_tcc4tcl_test_exec0.3422764653071186.so: file format elf64-x86-64
- DYNAMIC SYMBOL TABLE:
- 00007f2ea56109e8 g D *ABS* 0000000000000000 tclStubsPtr
- 0000000000000000 w D *UND* 0000000000000000 __gmon_start__
- 0000000000000808 g DF .init 0000000000000000 _init
- 0000000000001940 g DO .got 0000000000000004 _GLOBAL_OFFSET_TABLE_
- 0000000000000824 g DF .fini 0000000000000000 _fini
- 0000000000000545 g DF .text 00000000000001be tcl_ext_add
- 0000000000000703 g DF .text 0000000000000103 Mypkg_Init
- 0000000000000850 DF *UND* 0000000000000000 Tcl_InitStubs
- 0000000000000806 g D .text 0000000000000000 _etext
- 000000000000187a g D .data 0000000000000000 _edata
- 0000000000001980 g D .bss 0000000000000000 _end
- 0000000000000840 g D .preinit_array 0000000000000000 __preinit_array_start
- 0000000000000840 g D .preinit_array 0000000000000000 __preinit_array_end
- 0000000000000840 g D .init_array 0000000000000000 __init_array_start
- 0000000000000840 g D .init_array 0000000000000000 __init_array_end
- 0000000000000840 g D .fini_array 0000000000000000 __fini_array_start
- 0000000000000840 g D .fini_array 0000000000000000 __fini_array_end
- 0000000000000000 w D *UND* 0000000000000000 __gmon_start__
- 00007f2ea56109e8 g D *ABS* 0000000000000000 tclStubsPtr
- 0000000000000545 g DF .text 00000000000001be tcl_ext_add
- :~/src/tcc4tcl$ tclsh
- % load /tmp/DELETEME_tcc4tcl_test_exec0.3422764653071186.so
- couldn't load file "/tmp/DELETEME_tcc4tcl_test_exec0.3422764653071186.so": /tmp/DELETEME_tcc4tcl_test_exec0.3422764653071186.so: undefined symbol: Tcl_InitStubs
- % info pa
- 8.6.3
- % join [lmap x [::tcl::pkgconfig list] {list $x [::tcl::pkgconfig get $x]}] \n
- debug 0
- threaded 1
- profiled 0
- 64bit 0
- optimized 1
- mem_debug 0
- compile_debug 0
- compile_stats 0
- libdir,runtime /home/tcl/lib
- bindir,runtime /home/tcl/bin
- scriptdir,runtime /home/tcl/lib/tcl8.6
- includedir,runtime /home/tcl/include
- docdir,runtime /home/tcl/man
- libdir,install /home/tcl/lib
- bindir,install /home/tcl/bin
- scriptdir,install /home/tcl/lib/tcl8.6
- includedir,install /home/tcl/include
- docdir,install /home/tcl/man