Menu

#5 Dtrace and compile: again?

2.1.0
open
ssoberni
None
2019-03-02
2019-02-25
No

Hi!

Well this dtrace stuff is really persistent!
I do not know why but it again asks me about dtrace on Linux compile...
I am now using the 2.2.0 version. Some time ago I compiled a fresh
distribution on my Linux w/o problems. Then I left it lying arround since
I had other stuff to do. Today I wanted to compile it again -> boom!

This is how I build:
./configure --enable-symbols --enable-threads --enable-64bit

and after doing make I get:

zoran@zoranvbox:~/hg/lexxapps/src/nsf2.2.0$ make
dtrace -h -o generic/nsfDTrace.h -s ./generic/nsfDTrace.d
/bin/bash: dtrace: command not found
Makefile:790: recipe for target 'generic/nsfDTrace.h' failed
make: *** [generic/nsfDTrace.h] Error 127

So SOMETHING is wrong with this stuff but I cannot tell you what.
Can you tell me how can I disable it? Or... better... what info do you
need to be able to fix that?
BTW... the --without-dtrace does not work. Neither --with-dtrace=NO.
It always wants to use dtrace during compile.

Cheers
Zoran

Discussion

  • Zoran Vasiljevic

    FYI: I am using 8.5.19 Tcl

     
  • Zoran Vasiljevic

    I have downloaded the fresh new 2.2.0 and there it works :-/
    So SOMETHING is wrong between my older version of 2.2.0 and the new one.
    But I would like to know what, if possible. The only change is that my version
    was checked in under Mercurial as part of our project. I am afraid this will happen
    again so I would really like to find out what is happening.
    What files/info you need to be able to track this down?

     
  • Zoran Vasiljevic

    Here is the complete terminal output of configure/make:

    zoran@zoranvbox:~/hg/lexxapps/src/nsf2.2.0$ ./configure --enable-symbols --enable-threads --enable-64bit --with-tcl=/home/zoran/hg/lexxapps/src/tcl8.5.19/unix/
    checking for correct TEA configuration... ok (TEA 3.10)
    configure: configuring nsf 2.2.0
    Configuring NSF Version 2.2.0
    checking for git... yes
    checking for Tcl configuration... found /home/zoran/hg/lexxapps/src/tcl8.5.19/unix/tclConfig.sh
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking for existence of /home/zoran/hg/lexxapps/src/tcl8.5.19/unix/tclConfig.sh... loading
    checking platform... unix
    checking for strnstr... no
    configure: --prefix defaulting to TCL_PREFIX /usr/local
    configure: --exec-prefix defaulting to TCL_EXEC_PREFIX /usr/local
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ISO C89... (cached) none needed
    checking how to run the C preprocessor... gcc -E
    checking whether make sets $(MAKE)... yes
    checking for ranlib... ranlib
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking if the compiler understands -pipe... yes
    checking whether byte ordering is bigendian... no
    checking for sin... no
    checking for main in -lieee... no
    checking for main in -linet... no
    checking net/errno.h usability... no
    checking net/errno.h presence... no
    checking for net/errno.h... no
    checking for connect... yes
    checking for gethostbyname... yes
    checking dirent.h... yes
    checking errno.h usability... yes
    checking errno.h presence... yes
    checking for errno.h... yes
    checking float.h usability... yes
    checking float.h presence... yes
    checking for float.h... yes
    checking values.h usability... yes
    checking values.h presence... yes
    checking for values.h... yes
    checking limits.h usability... yes
    checking limits.h presence... yes
    checking for limits.h... yes
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking sys/wait.h usability... yes
    checking sys/wait.h presence... yes
    checking for sys/wait.h... yes
    checking dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking sys/param.h usability... yes
    checking sys/param.h presence... yes
    checking for sys/param.h... yes
    checking for Tcl public headers... /home/zoran/hg/lexxapps/src/tcl8.5.19/generic
    checking for Tcl private include files... Using srcdir found in tclConfig.sh: /home/zoran/hg/lexxapps/src/tcl8.5.19
    checking for pthread_mutex_init in -lpthread... yes
    checking for building with threads... yes (default)
    checking how to build libraries... shared
    checking for ranlib... (cached) ranlib
    checking if 64bit support is requested... yes
    checking if 64bit Sparc VIS support is requested... no
    checking if compiler supports visibility "hidden"... yes
    checking if rpath support is requested... yes
    checking system version... Linux-4.15.0-45-generic
    checking for ar... ar
    checking if compiler accepts -m64 flag... yes
    checking for cast to union support... yes
    checking for required early compiler flags... _LARGEFILE64_SOURCE
    checking for 64-bit integer type... using long
    checking for build with symbols... yes (standard debugging)
    checking for tclsh... /home/zoran/hg/lexxapps/src/tcl8.5.19/unix/tclsh
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating ./nsfConfig.sh
    config.status: creating ./library/xotcl/xotclsh
    config.status: creating ./library/xotcl/xowish
    config.status: creating ./unix/pkgIndex.unix
    config.status: creating nxsh
    config.status: creating nxwish
    config.status: creating ./doc/version.inc

    zoran@zoranvbox:~/hg/lexxapps/src/nsf2.2.0$ make
    dtrace -h -o generic/nsfDTrace.h -s ./generic/nsfDTrace.d
    /bin/bash: dtrace: command not found
    Makefile:790: recipe for target 'generic/nsfDTrace.h' failed
    make: *** [generic/nsfDTrace.h] Error 127
    zoran@zoranvbox:~/hg/lexxapps/src/nsf2.2.0$

     
  • Zoran Vasiljevic

    Post awaiting moderation.
  • Zoran Vasiljevic

    I 'solved' the problem by scrapping all DTRACE variables from the Makefile
    and configure templates. Had to make awk script that does this for me
    automatically.

     
  • ssoberni

    ssoberni - 2019-03-02

    Hi Zoran!

    So SOMETHING is wrong between my older version of 2.2.0 and the new one.

    Could you zip up your 2.2.0 source directory and attach it to the ticket (or send it to us)? Pls make it sure it contains the artifacts of running a failing ./configure (config.log).

    I believe your DTRACE sensing
    code in configure is not working properly for some reason.

    This has certainly that smell. Can you tell me more about the build environment?

    Cheers, Stefan

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.