Menu

#3122 Error building without Rabbit port

closed-fixed
Build
5
2020-10-11
2020-10-02
No

When building without any rabbit port I got the error below

make[1]: *** sdas/asrab: No such file or directory.  Stop.

The fix was adding this line to Makefile.common.in

OPT_DISABLE_R2KA        = @OPT_DISABLE_R2KA@

Tim S.

Discussion

  • A.R.f.

    A.R.f. - 2020-10-02

    Hi,
    I just wanted to report the same thing.
    It seems that after running configure with --disable-r2ka-port there should be line like

    #define OPT_DISABLE_R2KA 1
    

    in sdccconf.h too, but it's not there.
    Best regards,
    Adam

     

    Last edit: A.R.f. 2020-10-02
  • Philipp Klaus Krause

    • status: open --> closed-fixed
    • assigned_to: Philipp Klaus Krause
    • Category: Rabbit --> Build
     
  • Philipp Klaus Krause

    Fixed in [r11888].

     
  • A.R.f.

    A.R.f. - 2020-10-03

    It failed again. There is no change to sdccconf.h, after adding manually the line mentioned in previous comment the build was successful.

     
    • Philipp Klaus Krause

      Reopened, will look into it again tomorrow.

       
  • Philipp Klaus Krause

    • status: closed-fixed --> open
     
  • A.R.f.

    A.R.f. - 2020-10-04

    Hi,
    it seems that now sdccconf_in.h was guilty - with the patch below I am able to again run configure and successfully build SDCC.
    I didn't find any more places where something similar would be defined, but of course it doesn't mean there are none left.
    Best regards,
    Adam

    Index: sdccconf_in.h
    ===================================================================
    --- sdccconf_in.h       (revision 11889)
    +++ sdccconf_in.h       (working copy)
    @@ -158,6 +158,9 @@
     #undef OPT_DISABLE_R2K
    
     /* XXX */
    +#undef OPT_DISABLE_R2KA
    +
    +/* XXX */
     #undef OPT_DISABLE_R3KA
    
     /* XXX */
    
     

    Last edit: A.R.f. 2020-10-04
    • Philipp Klaus Krause

      I see that that macro is missing from sdccconf_in.h, but that should not result in a build failure (rather it should result in a successful build that does not have Rabbit support in assembler and libraries, but does have the r2ka port in the compiler).

      And that is what I see on my system: An sdcc build where -mr2ka is there (but not r2k and r3ka), but assembler and libraries for all Rabbit ports are missing.

      Of course, I'll fix sdccconf_in.h anyway, but I still don't understand why you see a build failure.

       
  • Philipp Klaus Krause

    [11890] has the fixed sdccconf_in.h (by regenerating it via autoheader).

     
  • A.R.f.

    A.R.f. - 2020-10-04

    Whatever the problem was, and whether this fixed the cause or the symptoms, now SDCC builds fine without any assistance.
    If that matters, I build only the STM8 port.

    $ LC_ALL=C svn up
    Updating '.':
    At revision 11890.
    $ mkdir build
    $ cd build
    $ ../configure --prefix=/home/ar/.userroot --disable-pic14-port --disable-pic16-port --disable-mcs51-port --disable-z80-port --disable-z180-port --disable-r2k-port --disable-r2ka-port --disable-r3ka-port --disable-gbz80-port --disable-tlcs90-port --disable-ez80_z80-port --disable-z80n-port --disable-ds390-port --disable-ds400-port --disable-hc08-port --disable-s08-port --disable-pdk13-port --disable-pdk14-port --disable-pdk15-port
    
     
  • Philipp Klaus Krause

    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB