Downloading the latest version in on this page, unpacking, configuring and building it leads to the errors
jtag3io.cc:353:42: error: expected ‘,’ or ‘...’ before ‘__unused’ 353 | void jtag3::changeBitRate(int newBitRate __unused) | ^~~~~~~~ jtag3io.cc: In member function ‘virtual void jtag3::changeBitRate(int)’: jtag3io.cc:353:31: warning: unused parameter ‘newBitRate’ [-Wunused-parameter] 353 | void jtag3::changeBitRate(int newBitRate __unused) | ~~~~^~~~~~~~~~ jtag3io.cc: At global scope: jtag3io.cc:358:39: error: expected ‘,’ or ‘...’ before ‘__unused’ 358 | bool jtag3::synchroniseAt(int bitrate __unused) | ^~~~~~~~
That's on Ubuntu 20.04 with GCC version 9.3.0. The __unused
keyword seems to make problems here.
Doing a quick replace-with-nothing using
sed -i -e 's/__unused//g' src/jtag*.cc
makes the program compile after another make.
Hi Maximilian,
randomly I raised a ticket on same issue at nearly the same time. I also tried to remove "__unused", it compiled, but nothing was installed using
make install
. Have you the same problem?Regards,
Jörg
For installing you need to give it the install directory in the initial
./configure
command, likemkdir ~/avarice_installed
and./configure --prefix ~/avarice_installed
and thenmake && make install
. But for me, I just grabbed the executable insrc/avarice
.Is this not fixed in r390?
Yep, it is. Feel free to close this bug ticket.