I think that the filename and line number are not available, because noLineno becomes nonzero. Whatever this variable means. This is probably obvious, if true. If you change in line 108 ex->lineno = (noLineno ? 0 : lexLineno); the "default" value to nonzero, like ex->lineno = (noLineno ? 1 : lexLineno); then the filename is reported correctly (line number "1" is reported then). What may be more interesting, is that if you make an unconditional assignment: ex->lineno = lexLineno; then the error is...
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...
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...
Hi, it seems that now sdccconf_in.h was guilty - with the patch below I am able to again 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...
It failed again. There is no change to sdccconf.h, after adding manually the line mentioned in previous comment the build was successful.
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
Hi, I just wanted to report the same thing. After running configure with --disable-r2ka-port there should be line like #define OPT_DISABLE_R2KA 1 in sdccconf.h, but it's not there. Hence the failure. Best regards, Adam
Another case, in implementation of cyclic buffer: #define TX_BUF_SIZE (1 << 4) //it has to be a power of 2 #define TX_BUF_MAX_IND (TX_BUF_SIZE - 1) static volatile uint8_t tx_buf_start = 0; static volatile uint8_t tx_buf_end = 0; static uint8_t tx_buf[TX_BUF_SIZE]; static inline uint8_t tx_buf_next(const uint8_t ind) { return (ind + 1) & TX_BUF_MAX_IND; } static inline uint8_t tx_buf_empty() { return tx_buf_start == tx_buf_end; } static inline uint8_t tx_buf_full() { return tx_buf_next(tx_buf_end)...