Menu ▾ ▴

#858 Server r20721 does not compile, missing arch_types_valid.c

2.x
closed
None
1
2019-03-22
2019-03-17
Rick Tanner
No

Trying to compile r20721 of the server on Ubuntu Bionic results in the following problem. Was a file missed on the commit?

Server r20720 compiles and runs without issues or problems.

make[1]: Entering directory '/media/leaf/mSSD/server.svn/common'
cd .. && /bin/bash /media/leaf/mSSD/server.svn/utils/missing automake-1.15 --foreign common/Makefile
cd .. && /bin/bash ./config.status common/Makefile depfiles
config.status: creating common/Makefile
config.status: executing depfiles commands
CC arch.o
arch.c:755:10: fatal error: arch_types_valid.c: No such file or directory
#include <arch_types_valid.c>
^~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:482: recipe for target 'arch.o' failed
make[1]: *** [arch.o] Error 1
make[1]: Leaving directory '/media/leaf/mSSD/server.svn/common'
Makefile:420: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1</arch_types_valid.c>

Discussion

  • SilverNexus

    SilverNexus - 2019-03-17

    It should be generated from a perl script on build. Did you re-run the scripts that generate the Makefiles from Makefile.am?

     
  • Rick Tanner

    Rick Tanner - 2019-03-17

    I am runing ./configure && make && sudo make install

    During the 'make' step is when I encounter the alert about missing arch_types_valid.c

    Is there now an additional step to compiling the server?

     
  • SilverNexus

    SilverNexus - 2019-03-18

    I think the configure step only generates from the Makefile.in level.

    I had to run autogen.sh to get the updates from Makefile.am to propagate.

     
  • Rick Tanner

    Rick Tanner - 2019-03-20

    Running autogen.sh is not working for me on my "old" local test server and on a brand new install of Ubuntu Bionic. Still the same error or problem with "arch_types_valid.c: No such file or directory"

    make[2]: Leaving directory '/home/leaf/server.svn/include'
    make[1]: Leaving directory '/home/leaf/server.svn/include'
    Making all in common
    make[1]: Entering directory '/home/leaf/server.svn/common'
    CC arch.o
    arch.c:755:10: fatal error: arch_types_valid.c: No such file or directory
    #include <arch_types_valid.c>
    ^~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    Makefile:482: recipe for target 'arch.o' failed
    make[1]: *** [arch.o] Error 1
    make[1]: Leaving directory '/home/leaf/server.svn/common'
    Makefile:420: recipe for target 'all-recursive' failed
    make: *** [all-recursive] Error 1</arch_types_valid.c>

     
  • SilverNexus

    SilverNexus - 2019-03-20

    Hmm...

    Just tried the same in a server that I hadn't built the code in, and it did as you describe.

    I'm going to guess there's a source dependency problem, e.g. arch.c is building too early.

     
  • SilverNexus

    SilverNexus - 2019-03-20

    I refactored how the generated code is being put into the project and it is looking like it works.
    Just need to reconcile the changes in my sandbox with what needs to change in my svn-linked version.

     
  • SilverNexus

    SilverNexus - 2019-03-20
    • status: open --> patched
     
  • SilverNexus

    SilverNexus - 2019-03-20

    Should be fixed in r20728.

     
  • Rick Tanner

    Rick Tanner - 2019-03-21

    Confirmed that the changes in 20728 fixes the problem for me.

    Thank you.

     
  • SilverNexus

    SilverNexus - 2019-03-22
    • status: patched --> closed
    • assigned_to: SilverNexus
     
  • SilverNexus

    SilverNexus - 2019-03-22

    Sounds like the issue is resolved, then.

    Closing ticket.

     

Log in to post a comment.