Menu

#76 missing file from SVN?

v1.0 (example)
open
nobody
None
1
2021-08-17
2021-08-16
No

I'm getting a build error from the user tree of the SVN pull.

/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -D_REENTRANT -DDEFAULT_CONFIG_FILE="\"/usr/local/etc/gpib.conf\"" -g -O2 -MT libgpib_la-ibConfLex.lo -MD -MP -MF .deps/libgpib_la-ibConfLex.Tpo -c -o libgpib_la-ibConfLex.lo test -f 'ibConfLex.c' || echo './'ibConfLex.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -D_REENTRANT -DDEFAULT_CONFIG_FILE=\"/usr/local/etc/gpib.conf\" -g -O2 -MT libgpib_la-ibConfLex.lo -MD -MP -MF .deps/libgpib_la-ibConfLex.Tpo -c ./ibConfLex.c -fPIC -DPIC -o .libs/libgpib_la-ibConfLex.o
cc1: fatal error: ./ibConfLex.c: No such file or directory

Related

Bugs: #76

Discussion

  • Frank Mori Hess

    Frank Mori Hess - 2021-08-16

    ibConfLex.c is a generated file. Make sure you have the "flex"
    program installed and it is found by the configure script. You will
    also need "bison" installed for similar reasons.

     
  • Michael Katzmann

    Yes, I installed bison/byacc/flex after previous build errors. It still wouldn't compile (even after make clean). I wiped the tree and pulled it from the repo again. This time it compiled.
    Shouldn't "configure" complain if the required tools are not present?

     
    • Frank Mori Hess

      Frank Mori Hess - 2021-08-16

      If I remove flex, ibConfLex.c and ibConfLex.h then do configure and make I get:

      $ make
      /bin/bash /home/fluke/svn/linux-gpib/linux-gpib-user/missing flex ibConfLex.l
      /home/fluke/svn/linux-gpib/linux-gpib-user/missing: line 81: flex:
      command not found
      WARNING: 'flex' is missing on your system.
      You should only need it if you modified a '.l' file.
      You may want to install the Fast Lexical Analyzer package:
      https://github.com/westes/flex
      make: *** [Makefile:1344: ibConfLex.c] Error 127

      On Mon, Aug 16, 2021 at 1:25 PM Michael Katzmann
      michaelgk@users.sourceforge.net wrote:

      Yes, I installed bison/byacc/flex after previous build errors. It still wouldn't compile (even after make clean). I wiped the tree and pulled it from the repo again. This time it compiled.
      Shouldn't "configure" complain if the required tools are not present?


      [bugs:#76] missing file from SVN?

      Status: open
      Group: v1.0 (example)
      Created: Mon Aug 16, 2021 04:39 PM UTC by Michael Katzmann
      Last Updated: Mon Aug 16, 2021 04:39 PM UTC
      Owner: nobody

      I'm getting a build error from the user tree of the SVN pull.

      /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -D_REENTRANT -DDEFAULT_CONFIG_FILE="\"/usr/local/etc/gpib.conf\"" -g -O2 -MT libgpib_la-ibConfLex.lo -MD -MP -MF .deps/libgpib_la-ibConfLex.Tpo -c -o libgpib_la-ibConfLex.lo test -f 'ibConfLex.c' || echo './'ibConfLex.c
      libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -D_REENTRANT -DDEFAULT_CONFIG_FILE=\"/usr/local/etc/gpib.conf\" -g -O2 -MT libgpib_la-ibConfLex.lo -MD -MP -MF .deps/libgpib_la-ibConfLex.Tpo -c ./ibConfLex.c -fPIC -DPIC -o .libs/libgpib_la-ibConfLex.o
      cc1: fatal error: ./ibConfLex.c: No such file or directory


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/linux-gpib/bugs/76/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

      --
      Frank

       

      Related

      Bugs: #76

  • Michael Katzmann

    Rather odd... configure doesn't complain om my Linux system. ... just notes that they are not there

    checking for flex... no
    checking for lex... no
    checking for bison... no
    checking for byacc... no

    [michael@dirac linux-gpib-user]$ sudo dnf remove byacc flex bison
    Dependencies resolved.
    =====================================================================================================================================================================================================================================
     Package                                            Architecture                                         Version                                                          Repository                                            Size
    =====================================================================================================================================================================================================================================
    Removing:
     bison                                              aarch64                                              3.7.4-2.fc34                                                     @fedora                                              3.2 M
     byacc                                              aarch64                                              2.0.20210109-2.fc34                                              @fedora                                              300 k
     flex                                               aarch64                                              2.6.4-7.fc34                                                     @fedora                                              946 k
    
    Transaction Summary
    =====================================================================================================================================================================================================================================
    Remove  3 Packages
    
    Freed space: 4.4 M
    Is this ok [y/N]: y
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
      Preparing        :                                                                                                                                                                                                             1/1 
      Erasing          : flex-2.6.4-7.fc34.aarch64                                                                                                                                                                                   1/3 
      Erasing          : byacc-2.0.20210109-2.fc34.aarch64                                                                                                                                                                           2/3 
      Erasing          : bison-3.7.4-2.fc34.aarch64                                                                                                                                                                                  3/3 
      Running scriptlet: bison-3.7.4-2.fc34.aarch64                                                                                                                                                                                  3/3 
      Verifying        : bison-3.7.4-2.fc34.aarch64                                                                                                                                                                                  1/3 
      Verifying        : byacc-2.0.20210109-2.fc34.aarch64                                                                                                                                                                           2/3 
      Verifying        : flex-2.6.4-7.fc34.aarch64                                                                                                                                                                                   3/3 
    
    Removed:
      bison-3.7.4-2.fc34.aarch64                                                byacc-2.0.20210109-2.fc34.aarch64                                                flex-2.6.4-7.fc34.aarch64                                               
    
    Complete!
    [michael@dirac linux-gpib-user]$ ./configure 
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking build system type... aarch64-unknown-linux-gnu
    checking host system type... aarch64-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 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 whether gcc understands -c and -o together... yes
    checking whether make supports the include directive... yes (GNU style)
    checking dependency style of gcc... gcc3
    checking for flex... no
    checking for lex... no
    checking for bison... no
    checking for byacc... no
    checking how to print strings... printf
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for fgrep... /usr/bin/grep -F
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking how to convert aarch64-unknown-linux-gnu file names to aarch64-unknown-linux-gnu format... func_convert_file_noop
    checking how to convert aarch64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for dlltool... no
    checking how to associate runtime and link libraries... printf %s\n
    checking for ar... ar
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for sysroot... no
    checking for a working dd... /usr/bin/dd
    checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
    checking for mt... no
    checking if : is a manifest tool... no
    checking how to run the C preprocessor... gcc -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 for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC -DPIC
    checking if gcc PIC flag -fPIC -DPIC works... yes
    checking if gcc static flag -static works... no
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    checking for jw... no
    configure: docbook-tools (jw) not found, disabling documentation
    checking for a Python interpreter with version >= 3.0... python
    checking for python... /usr/bin/python
    checking for python version... 3.9
    checking for python platform... linux
    checking for python script directory... ${prefix}/lib/python3.9/site-packages
    checking for python extension module directory... ${exec_prefix}/lib64/python3.9/site-packages
    checking for perl... /usr/bin/perl
    checking for Tcl configuration... configure: WARNING: Can't find Tcl configuration definitions
    configure: TCL config not found, disabling TCL binding
    checking for php-config... no
    configure: php-config not found, disabling PHP binding
    checking for gh_define in -lguile... no
    configure: libguile not found, disabling guile binding
    checking for readline in -lreadline... no
    checking for unistd.h... (cached) yes
    checking sys/param.h usability... yes
    checking sys/param.h presence... yes
    checking for sys/param.h... yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking time.h usability... yes
    checking time.h presence... yes
    checking for time.h... yes
    checking sys/mkdev.h usability... no
    checking sys/mkdev.h presence... no
    checking for sys/mkdev.h... no
    checking sys/sysmacros.h usability... yes
    checking sys/sysmacros.h presence... yes
    checking for sys/sysmacros.h... yes
    checking for string.h... (cached) yes
    checking for memory.h... (cached) yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking dirent.h usability... yes
    checking dirent.h presence... yes
    checking for dirent.h... yes
    checking sys/ndir.h usability... no
    checking sys/ndir.h presence... no
    checking for sys/ndir.h... no
    checking ndir.h usability... no
    checking ndir.h presence... no
    checking for ndir.h... no
    checking alloca.h usability... yes
    checking alloca.h presence... yes
    checking for alloca.h... yes
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking for headers required to compile python extensions... not found
    configure: python headers not found, disabling python binding
    checking readline/readline.h usability... no
    checking readline/readline.h presence... no
    checking for readline/readline.h... no
    checking readline/history.h usability... no
    checking readline/history.h presence... no
    checking for readline/history.h... no
    checking whether sys/types.h defines makedev... no
    checking for sys/mkdev.h... (cached) no
    checking for sys/sysmacros.h... (cached) yes
    checking for size_t... yes
    checking for working alloca.h... yes
    checking for alloca... yes
    checking whether struct tm is in sys/time.h or time.h... time.h
    checking for struct stat.st_blocks... yes
    checking for dirent.h that defines DIR... yes
    checking for library containing opendir... none required
    checking whether closedir returns void... no
    checking for mkfifo... yes
    checking for mknod... yes
    
    Configuration:
    SGML Documentation: no
    Guile binding: no
    Perl binding: yes
    PHP binding: no
    Python binding: no
    TCL binding: no
    sysconfdir: /usr/local/etc
    
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating drivers/Makefile
    config.status: creating lib/Makefile
    config.status: creating lib/libgpib.pc
    config.status: creating lib/gpib_config/Makefile
    config.status: creating examples/Makefile
    config.status: creating test/Makefile
    config.status: creating doc/Makefile
    config.status: creating include/Makefile
    config.status: creating include/gpib/Makefile
    config.status: creating language/Makefile
    config.status: creating language/guile/Makefile
    config.status: creating language/php/Makefile
    config.status: creating language/php/TESTS/Makefile
    config.status: creating language/python/Makefile
    config.status: creating language/tcl/Makefile
    config.status: creating usb/Makefile
    config.status: creating usb/ni_usb_gpib/Makefile
    config.status: creating usb/agilent_82357a/Makefile
    config.status: creating usb/lpvo_usb_gpib/Makefile
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing depfiles commands
    config.status: executing libtool commands
    [michael@dirac linux-gpib-user]$ 
    
     
    • Frank Mori Hess

      Frank Mori Hess - 2021-08-16

      configure doesn't complain, it just sets the "missing" script for use
      if flex is actually attempted to be used during make. If you were
      using a release,
      ibConfLex.c would be in the tarball and you would never need flex.

      On Mon, Aug 16, 2021 at 5:22 PM Michael Katzmann
      michaelgk@users.sourceforge.net wrote:

      Rather odd... configure doesn't complain om my Linux system. ... just notes that they are not there

       
  • Michael Katzmann

    OK

     

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.