Menu

#3476 Build fails after make clean

open
Felix
None
Build
5
2022-09-06
2022-09-06
No

I cannot build current trunk again after a "make clean":

./configure && make -j 12 && make clean && ./configure && make

On a fresh checkout from svn gives:

g++ -std=c++11  -fno-PIE -c  -DIN_GCC_FRONTEND -g -O2     -DIN_GCC     -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -Ic-family -I. -I./c-family -I./../include -I./../sdbinutils/include -I./../libcpp/include -I./../libcody  -I./../libdecnumber -I./../libdecnumber/bid -I../libdecnumber -I./../libbacktrace   -o c-family/c-common.o -MT c-family/c-common.o -MMD -MP -MF c-family/.deps/c-common.TPo c-family/c-common.cc
In file included from c-family/c-common.cc:24:
./coretypes.h:458:10: fatal error: insn-modes.h: Datei oder Verzeichnis nicht gefunden
  458 | #include "insn-modes.h"
      |          ^~~~~~~~~~~~~~
compilation terminated.

Discussion

  • Philipp Klaus Krause

    Using "make distclean" instead of "make clean" doesn't seem to help either.

    This is the list of files left behind by "make clean; make distclean" (the ones with marked by '?'). More importantly: The files marked '!' are from subversion, but got deleted since the checkout:

    philipp@notebook6:/tmp/sdcc-from-current-trunk$ svn status
    ?       Makefile.depcc
    ?       Makefile.depcxx
    ?       bin/Makefile
    ?       bin/sdar
    ?       bin/sdcpp
    ?       bin/sdnm
    ?       bin/sdobjcopy
    ?       bin/sdranlib
    ?       device/lib/pic16/debug/.deps
    ?       device/lib/pic16/libc/.deps
    ?       device/lib/pic16/libio/.deps
    ?       device/lib/pic16/libm/.deps
    ?       device/lib/pic16/libm/isinf.c
    ?       device/lib/pic16/libm/isnan.c
    ?       device/lib/pic16/libsdcc/.deps
    ?       device/lib/pic16/startup/.deps
    ?       sdas/as6500/Makefile.depcc
    ?       sdas/as6500/Makefile.depcxx
    ?       sdas/as6808/Makefile.depcc
    ?       sdas/as6808/Makefile.depcxx
    ?       sdas/as8051/Makefile.depcc
    ?       sdas/as8051/Makefile.depcxx
    ?       sdas/as8xcxxx/Makefile.depcc
    ?       sdas/as8xcxxx/Makefile.depcxx
    ?       sdas/asgb/Makefile.depcc
    ?       sdas/asgb/Makefile.depcxx
    ?       sdas/asrab/Makefile.depcc
    ?       sdas/asrab/Makefile.depcxx
    ?       sdas/asstm8/Makefile.depcc
    ?       sdas/asstm8/Makefile.depcxx
    ?       sdas/astlcs90/Makefile.depcc
    ?       sdas/astlcs90/Makefile.depcxx
    ?       sdas/asz80/Makefile.depcc
    ?       sdas/asz80/Makefile.depcxx
    ?       sdas/linksrc/Makefile.depcc
    ?       sdas/linksrc/Makefile.depcxx
    ?       src/Makefile.depcc
    ?       src/Makefile.depcxx
    ?       src/ds390/Makefile.depcc
    ?       src/ds390/Makefile.depcxx
    ?       src/hc08/Makefile.depcc
    ?       src/hc08/Makefile.depcxx
    ?       src/mcs51/Makefile.depcc
    ?       src/mcs51/Makefile.depcxx
    ?       src/mos6502/Makefile.depcc
    ?       src/mos6502/Makefile.depcxx
    ?       src/pdk/Makefile.depcc
    ?       src/pdk/Makefile.depcxx
    ?       src/pic14/Makefile.depcc
    ?       src/pic14/Makefile.depcxx
    ?       src/pic16/Makefile.depcc
    ?       src/pic16/Makefile.depcxx
    ?       src/stm8/Makefile.depcc
    ?       src/stm8/Makefile.depcxx
    ?       src/z80/Makefile.depcc
    ?       src/z80/Makefile.depcxx
    ?       support/cpp/gcc/.deps
    ?       support/cpp/gcc/all-tree.def
    ?       support/cpp/gcc/analyzer/.deps
    ?       support/cpp/gcc/as
    ?       support/cpp/gcc/build
    ?       support/cpp/gcc/bversion.h
    ?       support/cpp/gcc/c/.deps
    ?       support/cpp/gcc/c-family/.deps
    ?       support/cpp/gcc/collect-ld
    ?       support/cpp/gcc/common/.deps
    ?       support/cpp/gcc/doc
    ?       support/cpp/gcc/dsymutil
    ?       support/cpp/gcc/gcc-driver-name.h
    !       support/cpp/gcc/insn-modes-inline.h
    !       support/cpp/gcc/insn-modes.h
    ?       support/cpp/gcc/nm
    ?       support/cpp/gcc/omp-device-properties.h
    ?       support/cpp/gcc/option-includes.mk
    ?       support/cpp/gcc/pass-instances.def
    ?       support/cpp/gcc/plugin-version.h
    ?       support/cpp/gcc/rtl-ssa
    !       support/cpp/gcc/tm-preds.h
    !       support/cpp/gcc/tm.h
    !       support/cpp/gcc/tm_p.h
    ?       support/cpp/gcc/version.h
    !       support/cpp/libbacktrace/allocfail.sh
    ?       support/cpp/libbacktrace/gstdint.h
    ?       support/makebin/Makefile.depcc
    ?       support/makebin/Makefile.depcxx
    ?       support/packihx/Makefile.dep
    ?       support/packihx/Makefile.depcc
    ?       support/packihx/Makefile.depcxx
    ?       support/regression/cases/Makefile
    ?       support/scripts/Makefile.depcc
    ?       support/scripts/Makefile.depcxx
    ?       support/sdbinutils/binutils/arlex.c
    ?       support/sdbinutils/binutils/arparse.c
    ?       support/sdbinutils/binutils/arparse.h
    ?       support/sdbinutils/binutils/defparse.c
    ?       support/sdbinutils/binutils/defparse.h
    ?       support/sdbinutils/binutils/mcparse.c
    ?       support/sdbinutils/binutils/mcparse.h
    ?       support/sdbinutils/binutils/rcparse.c
    ?       support/sdbinutils/binutils/rcparse.h
    ?       support/sdbinutils/binutils/sysinfo.c
    ?       support/sdbinutils/binutils/sysinfo.h
    ?       support/sdbinutils/binutils/syslex.c
    ?       support/sdbinutils/binutils/testsuite
    
     

    Last edit: Philipp Klaus Krause 2022-09-06
  • Maarten Brock

    Maarten Brock - 2022-09-06

    You should not need to rerun ./configure after make clean. Does it also fail if you leave that out?
    ./configure && make && make clean && make

     
    • Philipp Klaus Krause

      It also failed without the ./configure. I just discovered the bug when using ./configure (I did the make clean; ./configure since I had made changes to the system that I wanted configure to pick up).

      P.S.: I'm about to test the fix by @felixs

       
  • Felix

    Felix - 2022-09-06

    My bad. This is fixed in [r13694].

     

    Related

    Commit: [r13694]


    Last edit: Maarten Brock 2022-09-07
    • Philipp Klaus Krause

      Still fails for me.
      There are still 2 files in svn that make clean deletes:

      philipp@notebook6:/tmp/sdcc-from-current-trunk$ svn revert -R .
      Rückgängig gemacht: »support/cpp/gcc/tm-preds.h«
      Rückgängig gemacht: »support/cpp/libbacktrace/allocfail.sh«
      

      And that makes compilation fail:

      g++ -std=c++11  -fno-PIE -c  -DIN_GCC_FRONTEND -g -O2     -DIN_GCC     -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -Ic-family -I. -I./c-family -I./../include -I./../sdbinutils/include -I./../libcpp/include -I./../libcody  -I./../libdecnumber -I./../libdecnumber/bid -I../libdecnumber -I./../libbacktrace   -o c-family/c-common.o -MT c-family/c-common.o -MMD -MP -MF c-family/.deps/c-common.TPo c-family/c-common.cc
      In file included from c-family/c-common.cc:31:
      ./tm_p.h:4:11: fatal error: tm-preds.h: Datei oder Verzeichnis nicht gefunden
          4 | # include "tm-preds.h"
            |           ^~~~~~~~~~~~
      compilation terminated.
      
       
  • Felix

    Felix - 2022-09-06
    • status: open --> closed-fixed
    • assigned_to: Felix
     
  • Philipp Klaus Krause

    • status: closed-fixed --> open
     

Log in to post a comment.

Auth0 Logo