You are not logged in.

#1 2020-09-09 06:03:47

Faeren0327
Member
Registered: 2020-09-09
Posts: 8

avarice compile issue

Hello,

I have a problem when trying to install the latest avarice with "yaourt avarice" command.

It seems the problem is related to a compiler issue.
I tried different gcc versions, but still not able to install the package.

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)
      |                                       ^~~~~~~~
jtag3io.cc: In member function 'virtual bool jtag3::synchroniseAt(int)':
jtag3io.cc:358:31: warning: unused parameter 'bitrate' [-Wunused-parameter]
  358 | bool jtag3::synchroniseAt(int bitrate __unused)

Is there someone who successfully installed and using this package?

Thank you!

Offline

#2 2020-09-09 07:22:02

StJimmy
Member
From: De Lage Landen
Registered: 2020-02-26
Posts: 31

Re: avarice compile issue

Please put any shell / command output in code tags, as per the posting guidelines.

Try building it manually using makepkg, as there's a chance that yaourt (or any AUR helper, for that matter) is pulling some shenanigans.

While we're at it, hasn't yaourt been deprecated years ago?


If it ain't broke, don't ask Allan to fix it big_smile
"Arch sucks." - Allan
"Learn how to use your middle finger" - /dev/zero
"A derivate" is not "a version of". You're not a version of your parents either."- seth

Offline

#3 2020-09-09 07:50:13

Faeren0327
Member
Registered: 2020-09-09
Posts: 8

Re: avarice compile issue

Yes, I tried that one also.
Downloaded the git package directly and used the makepkg PKGBUILD command.
I had the same issue.

I also tried on a raspberry debian based linux with apt-get install avarice and it worked.

Offline

#4 2020-09-09 10:11:42

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 9,942
Website

Re: avarice compile issue

Mod note: Moving to AUR Issues.


Sakura:-
Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: nVidia GeForce GTX 970 // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2020-09-09 10:25:08

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 8,340

Re: avarice compile issue

for clarity : you are trying to build https://aur.archlinux.org/packages/avarice-svn ?


Multi-init booting with apg Openrc and systemd coexisting
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#6 2020-09-09 12:14:50

Faeren0327
Member
Registered: 2020-09-09
Posts: 8

Re: avarice compile issue

Yes, correct.

Offline

#7 2020-09-09 12:37:29

loqs
Member
Registered: 2014-03-06
Posts: 11,565

Re: avarice compile issue

diff --git a/PKGBUILD b/PKGBUILD
index 9502a12..1e0148f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,14 @@
 pkgname=avarice-svn
 _pkgname=avarice
 pkgrel=1
-pkgver=20150713.350
+pkgver=20200905.389
 pkgdesc="AVaRICE is a program for interfacing the Atmel JTAG ICE to GDB to allow users to debug their embedded AVR target."
 arch=(i686 x86_64)
 url="http://sourceforge.net/projects/avarice/"
 license=('GPL')
 groups=()
 depends=(libusb-compat)
-makedepends=(svn)
+makedepends=(subversion)
 optdepends=()
 provides=()
 conflicts=()
@@ -24,6 +24,7 @@ md5sums=('SKIP')
 
 build() {
   cd "${srcdir}/${pkgname}/${_pkgname}"
+  sed -i 's/__unused/__attribute__((unused))/g' src/jtag3io.cc src/jtag3prog.cc
   ./Bootstrap
   ./configure --prefix=/usr
   make

Please report the issue upstream.

Offline

#8 2020-09-09 12:53:32

Faeren0327
Member
Registered: 2020-09-09
Posts: 8

Re: avarice compile issue

==> Making package: avarice-svn 20150713.350-1 (Wed Sep  9 12:51:07 2020)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating avarice-svn svn repo...
Updating '.':
At revision 389.
==> Validating source files with md5sums...
    avarice-svn ... Skipped
==> Extracting sources...
  -> Creating working copy of trunk svn repo...
==> Starting pkgver()...
==> Updated version: avarice-svn 20200905.389-1
==> Removing existing $pkgdir/ directory...
==> Starting build()...
+ aclocal
+ autoheader
+ autoconf
+ '[' -d config-aux ']'
+ automake -a -c
+ rm -f config.cache
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking for perl... /usr/bin/perl
checking for library containing gethostbyname... none required
checking for socket... yes
checking for library containing inet_aton... none required
checking for iconv_open in -liconv... no
checking for libiconv_open in -liconv... no
checking for dcgettext in -lintl... no
checking for xmalloc in -liberty... yes
checking for bfd_init in -lbfd... yes
checking for usb_get_string_simple in -lusb... yes
checking for libusb20_dev_open in -lusb... no
checking for library containing hid_init... -lhidapi-libusb
checking hidapi/hidapi.h usability... yes
checking hidapi/hidapi.h presence... no
configure: WARNING: hidapi/hidapi.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: hidapi/hidapi.h: proceeding with the compiler's result
checking for hidapi/hidapi.h... yes
checking for ANSI C header files... no
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... no
configure: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: arpa/inet.h: proceeding with the compiler's result
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... no
configure: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: fcntl.h: proceeding with the compiler's result
checking for fcntl.h... yes
checking netdb.h usability... yes
checking netdb.h presence... no
configure: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: netdb.h: proceeding with the compiler's result
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... no
configure: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: netinet/in.h: proceeding with the compiler's result
checking for netinet/in.h... yes
checking stdlib.h usability... yes
checking stdlib.h presence... no
configure: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: stdlib.h: proceeding with the compiler's result
checking for stdlib.h... yes
checking string.h usability... yes
checking string.h presence... no
configure: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: string.h: proceeding with the compiler's result
checking for string.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... no
configure: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: sys/socket.h: proceeding with the compiler's result
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... no
configure: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: sys/time.h: proceeding with the compiler's result
checking for sys/time.h... yes
checking termios.h usability... yes
checking termios.h presence... no
configure: WARNING: termios.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: termios.h: proceeding with the compiler's result
checking for termios.h... yes
checking unistd.h usability... yes
checking unistd.h presence... no
configure: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: unistd.h: proceeding with the compiler's result
checking for unistd.h... yes
checking bfd.h usability... yes
checking bfd.h presence... no
configure: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: bfd.h: proceeding with the compiler's result
checking for bfd.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for socklen_t... yes
checking whether libbfd requires libz... no
checking whether libbfd requires libdl... yes
checking for dlopen in -ldl... yes
checking for error_at_line... yes
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for working memcmp... yes
checking sys/select.h usability... yes
checking sys/select.h presence... no
configure: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: sys/select.h: proceeding with the compiler's result
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking whether lstat correctly handles trailing slash... no
checking whether stat accepts an empty string... yes
checking for vprintf... yes
checking for _doprnt... no
checking for atexit... yes
checking for gethostbyname... yes
checking for inet_ntoa... yes
checking for memmove... yes
checking for memset... yes
checking for select... yes
checking for socket... (cached) yes
checking for strcasecmp... yes
checking for strerror... yes
checking for strtol... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating scripts/Makefile
config.status: creating scripts/ice-gdb
config.status: WARNING:  'scripts/ice-gdb.in' seems to ignore the --datarootdir setting
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating avarice.spec
config.status: creating Makefile
config.status: creating src/autoconf.h
config.status: src/autoconf.h is unchanged
config.status: executing depfiles commands
Making all in scripts
make[1]: Entering directory '/home/faeren/Downloads/avarice/avarice-svn/src/avarice-svn/avarice/scripts'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/faeren/Downloads/avarice/avarice-svn/src/avarice-svn/avarice/scripts'
Making all in src
make[1]: Entering directory '/home/faeren/Downloads/avarice/avarice-svn/src/avarice-svn/avarice/src'
make  all-am
make[2]: Entering directory '/home/faeren/Downloads/avarice/avarice-svn/src/avarice-svn/avarice/src'
g++ -DHAVE_CONFIG_H -I.  -Wall -Wextra -DENABLE_TARGET_PROGRAMMING=0 -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -pthread -MT jtag3io.o -MD -MP -MF .deps/jtag3io.Tpo -c -o jtag3io.o jtag3io.cc
jtag3io.cc:353:42: error: expected ',' or '...' before '__unused'
 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]
 void jtag3::changeBitRate(int newBitRate __unused)
                               ^~~~~~~~~~
jtag3io.cc: At global scope:
jtag3io.cc:358:39: error: expected ',' or '...' before '__unused'
 bool jtag3::synchroniseAt(int bitrate __unused)
                                       ^~~~~~~~
jtag3io.cc: In member function 'virtual bool jtag3::synchroniseAt(int)':
jtag3io.cc:358:31: warning: unused parameter 'bitrate' [-Wunused-parameter]
 bool jtag3::synchroniseAt(int bitrate __unused)
                               ^~~~~~~
make[2]: *** [Makefile:524: jtag3io.o] Error 1
make[2]: Leaving directory '/home/faeren/Downloads/avarice/avarice-svn/src/avarice-svn/avarice/src'
make[1]: *** [Makefile:373: all] Error 2
make[1]: Leaving directory '/home/faeren/Downloads/avarice/avarice-svn/src/avarice-svn/avarice/src'
make: *** [Makefile:389: all-recursive] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

Last edited by Faeren0327 (2020-09-09 12:58:53)

Offline

#9 2020-09-09 12:54:09

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 3,329

Re: avarice compile issue

Please edit your post and use [ code ] tags (not quote tags) when posting output.

Offline

#10 2020-09-09 12:58:29

Faeren0327
Member
Registered: 2020-09-09
Posts: 8

Re: avarice compile issue

After executing PKGBUILD with this version then the version inside PKGBUILD is modified back automatically to 20200905.389.

Offline

#11 2020-09-09 13:07:55

loqs
Member
Registered: 2014-03-06
Posts: 11,565

Re: avarice compile issue

curl -o PKGBUILD.diff http://ix.io/2wWQ #download the git diff (I removed the pkgver update and makedepends change)
git apply -v PKGBUILd.diff #apply it

Edit:
The pkgver function updates the pkgver variable when makepkg is run.

Last edited by loqs (2020-09-09 13:12:03)

Offline

#12 2020-09-09 13:14:14

Faeren0327
Member
Registered: 2020-09-09
Posts: 8

Re: avarice compile issue

[faeren@archlinux avarice-svn]$ makepkg PKGBUILD 
==> Making package: avarice-svn 20150713.350-1 (Wed Sep  9 13:11:56 2020)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning avarice-svn svn repo...
A    avarice-svn/avarice
A    avarice-svn/avarice/src
A    avarice-svn/avarice/ChangeLog
A    avarice-svn/avarice/NEWS
A    avarice-svn/avarice/configure.ac
A    avarice-svn/avarice/src/avarice.h
A    avarice-svn/avarice/doc
A    avarice-svn/avarice/src/jtag2_defs.h
A    avarice-svn/avarice/src/ioreg.h
A    avarice-svn/avarice/src/jtag2io.cc
A    avarice-svn/avarice/src/jtag3io.cc
A    avarice-svn/avarice/src/jtagrun.cc
A    avarice-svn/avarice/src/crc16.h
A    avarice-svn/avarice/src/jtaggeneric.cc
A    avarice-svn/avarice/src/jtag2bp.cc
A    avarice-svn/avarice/src/jtagio.cc
A    avarice-svn/avarice/src/utils.cc
A    avarice-svn/avarice/src/jtag2prog.cc
A    avarice-svn/avarice/tools
A    avarice-svn/avarice/src/jtagprog.cc
A    avarice-svn/avarice/src/main.cc
A    avarice-svn/avarice/src/jtag2usb.cc
A    avarice-svn/avarice/src/jtag3prog.cc
A    avarice-svn/avarice/src/jtag3run.cc
A    avarice-svn/avarice/src/jtag2misc.cc
A    avarice-svn/avarice/scripts
A    avarice-svn/avarice/doc/Makefile.am
A    avarice-svn/avarice/doc/kill-avarice.1
A    avarice-svn/avarice/src/jtagbp.cc
A    avarice-svn/avarice/src/jtag2run.cc
A    avarice-svn/avarice/src/jtagmisc.cc
A    avarice-svn/avarice/src/crc16.c
A    avarice-svn/avarice/src/gnu_getopt1.c
A    avarice-svn/avarice/doc/ice-gdb.1
A    avarice-svn/avarice/doc/mk2-protocol.txt
A    avarice-svn/avarice/src/jtag3misc.cc
A    avarice-svn/avarice/doc/dev_desc.txt
A    avarice-svn/avarice/doc/ice-insight.1
A    avarice-svn/avarice/doc/README.cygwin
A    avarice-svn/avarice/tools/pdml.xsl
A    avarice-svn/avarice/tools/ocdrev.xsl
A    avarice-svn/avarice/Makefile.am
A    avarice-svn/avarice/scripts/io_gen.py
A    avarice-svn/avarice/INSTALL-FROM-CVS
A    avarice-svn/avarice/scripts/start-avarice
A    avarice-svn/avarice/scripts/Makefile.am
A    avarice-svn/avarice/INSTALL
A    avarice-svn/avarice/Bootstrap
A    avarice-svn/avarice/COPYING
A    avarice-svn/avarice/doc/avr-studio-5-detlev-kraft.pdf
A    avarice-svn/avarice/src/devdescr.cc
A    avarice-svn/avarice/src/jtag.h
A    avarice-svn/avarice/src/jtag2rw.cc
A    avarice-svn/avarice/src/jtag3.h
A    avarice-svn/avarice/src/jtag3rw.cc
A    avarice-svn/avarice/src/pragma.h
A    avarice-svn/avarice/src/remote.cc
A    avarice-svn/avarice/src/jtag3bp.cc
A    avarice-svn/avarice/doc/running.txt
A    avarice-svn/avarice/tools/edbg.lua
A    avarice-svn/avarice/m4_ax_pthread.m4
A    avarice-svn/avarice/scripts/gdb-avarice-script
A    avarice-svn/avarice/scripts/kill-avarice
A    avarice-svn/avarice/src/ioreg.cc
A    avarice-svn/avarice/src/jtagrw.cc
A    avarice-svn/avarice/AUTHORS
A    avarice-svn/avarice/src/jtag2.h
A    avarice-svn/avarice/src/jtag1.h
A    avarice-svn/avarice/src/Makefile.am
A    avarice-svn/avarice/src/remote.h
A    avarice-svn/avarice/src/gnu_getopt.c
A    avarice-svn/avarice/src/gnu_getopt.h
A    avarice-svn/avarice/doc/avarice.1
A    avarice-svn/avarice/doc/start-avarice.1
A    avarice-svn/avarice/doc/todo.txt
A    avarice-svn/avarice/doc/avrIceProtocol.txt
A    avarice-svn/avarice/tools/devdescr.xsl
A    avarice-svn/avarice/scripts/ice-gdb.in
A    avarice-svn/avarice/scripts/ice-insight
A    avarice-svn/avarice/avarice.spec.in
Checked out revision 389.
==> Validating source files with md5sums...
    avarice-svn ... Skipped
==> Extracting sources...
  -> Creating working copy of trunk svn repo...
==> Starting pkgver()...
==> Updated version: avarice-svn 20200905.389-1
==> Starting build()...
+ aclocal
+ autoheader
+ autoconf
+ '[' -d config-aux ']'
+ mkdir config-aux
+ automake -a -c
configure.ac:35: installing 'config-aux/compile'
configure.ac:38: installing 'config-aux/config.guess'
configure.ac:38: installing 'config-aux/config.sub'
configure.ac:31: installing 'config-aux/install-sh'
configure.ac:31: installing 'config-aux/missing'
src/Makefile.am: installing 'config-aux/depcomp'
+ rm -f config.cache
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking for perl... /usr/bin/perl
checking for library containing gethostbyname... none required
checking for socket... yes
checking for library containing inet_aton... none required
checking for iconv_open in -liconv... no
checking for libiconv_open in -liconv... no
checking for dcgettext in -lintl... no
checking for xmalloc in -liberty... yes
checking for bfd_init in -lbfd... yes
checking for usb_get_string_simple in -lusb... yes
checking for libusb20_dev_open in -lusb... no
checking for library containing hid_init... -lhidapi-libusb
checking hidapi/hidapi.h usability... yes
checking hidapi/hidapi.h presence... no
configure: WARNING: hidapi/hidapi.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: hidapi/hidapi.h: proceeding with the compiler's result
checking for hidapi/hidapi.h... yes
checking for ANSI C header files... no
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... no
configure: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: arpa/inet.h: proceeding with the compiler's result
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... no
configure: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: fcntl.h: proceeding with the compiler's result
checking for fcntl.h... yes
checking netdb.h usability... yes
checking netdb.h presence... no
configure: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: netdb.h: proceeding with the compiler's result
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... no
configure: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: netinet/in.h: proceeding with the compiler's result
checking for netinet/in.h... yes
checking stdlib.h usability... yes
checking stdlib.h presence... no
configure: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: stdlib.h: proceeding with the compiler's result
checking for stdlib.h... yes
checking string.h usability... yes
checking string.h presence... no
configure: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: string.h: proceeding with the compiler's result
checking for string.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... no
configure: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: sys/socket.h: proceeding with the compiler's result
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... no
configure: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: sys/time.h: proceeding with the compiler's result
checking for sys/time.h... yes
checking termios.h usability... yes
checking termios.h presence... no
configure: WARNING: termios.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: termios.h: proceeding with the compiler's result
checking for termios.h... yes
checking unistd.h usability... yes
checking unistd.h presence... no
configure: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: unistd.h: proceeding with the compiler's result
checking for unistd.h... yes
checking bfd.h usability... yes
checking bfd.h presence... no
configure: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: bfd.h: proceeding with the compiler's result
checking for bfd.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for socklen_t... yes
checking whether libbfd requires libz... no
checking whether libbfd requires libdl... yes
checking for dlopen in -ldl... yes
checking for error_at_line... yes
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for working memcmp... yes
checking sys/select.h usability... yes
checking sys/select.h presence... no
configure: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: sys/select.h: proceeding with the compiler's result
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking whether lstat correctly handles trailing slash... no
checking whether stat accepts an empty string... yes
checking for vprintf... yes
checking for _doprnt... no
checking for atexit... yes
checking for gethostbyname... yes
checking for inet_ntoa... yes
checking for memmove... yes
checking for memset... yes
checking for select... yes
checking for socket... (cached) yes
checking for strcasecmp... yes
checking for strerror... yes
checking for strtol... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating scripts/Makefile
config.status: creating scripts/ice-gdb
config.status: WARNING:  'scripts/ice-gdb.in' seems to ignore the --datarootdir setting
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating avarice.spec
config.status: creating Makefile
config.status: creating src/autoconf.h
config.status: executing depfiles commands
Making all in scripts
make[1]: Entering directory '/home/faeren/Downloads/avarice/avarice-svn/src/avarice-svn/avarice/scripts'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/faeren/Downloads/avarice/avarice-svn/src/avarice-svn/avarice/scripts'
Making all in src
make[1]: Entering directory '/home/faeren/Downloads/avarice/avarice-svn/src/avarice-svn/avarice/src'
make  all-am
make[2]: Entering directory '/home/faeren/Downloads/avarice/avarice-svn/src/avarice-svn/avarice/src'
gcc -DHAVE_CONFIG_H -I.  -Wall -Wextra -DENABLE_TARGET_PROGRAMMING=0 -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -MT crc16.o -MD -MP -MF .deps/crc16.Tpo -c -o crc16.o crc16.c
mv -f .deps/crc16.Tpo .deps/crc16.Po
g++ -DHAVE_CONFIG_H -I.  -Wall -Wextra -DENABLE_TARGET_PROGRAMMING=0 -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -pthread -MT devdescr.o -MD -MP -MF .deps/devdescr.Tpo -c -o devdescr.o devdescr.cc
mv -f .deps/devdescr.Tpo .deps/devdescr.Po
g++ -DHAVE_CONFIG_H -I.  -Wall -Wextra -DENABLE_TARGET_PROGRAMMING=0 -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -pthread -MT ioreg.o -MD -MP -MF .deps/ioreg.Tpo -c -o ioreg.o ioreg.cc
mv -f .deps/ioreg.Tpo .deps/ioreg.Po
g++ -DHAVE_CONFIG_H -I.  -Wall -Wextra -DENABLE_TARGET_PROGRAMMING=0 -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -pthread -MT jtag2bp.o -MD -MP -MF .deps/jtag2bp.Tpo -c -o jtag2bp.o jtag2bp.cc
mv -f .deps/jtag2bp.Tpo .deps/jtag2bp.Po
g++ -DHAVE_CONFIG_H -I.  -Wall -Wextra -DENABLE_TARGET_PROGRAMMING=0 -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -pthread -MT jtag2io.o -MD -MP -MF .deps/jtag2io.Tpo -c -o jtag2io.o jtag2io.cc
mv -f .deps/jtag2io.Tpo .deps/jtag2io.Po
g++ -DHAVE_CONFIG_H -I.  -Wall -Wextra -DENABLE_TARGET_PROGRAMMING=0 -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -pthread -MT jtag2misc.o -MD -MP -MF .deps/jtag2misc.Tpo -c -o jtag2misc.o jtag2misc.cc
mv -f .deps/jtag2misc.Tpo .deps/jtag2misc.Po
g++ -DHAVE_CONFIG_H -I.  -Wall -Wextra -DENABLE_TARGET_PROGRAMMING=0 -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -pthread -MT jtag2prog.o -MD -MP -MF .deps/jtag2prog.Tpo -c -o jtag2prog.o jtag2prog.cc
mv -f .deps/jtag2prog.Tpo .deps/jtag2prog.Po
g++ -DHAVE_CONFIG_H -I.  -Wall -Wextra -DENABLE_TARGET_PROGRAMMING=0 -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -pthread -MT jtag2run.o -MD -MP -MF .deps/jtag2run.Tpo -c -o jtag2run.o jtag2run.cc
mv -f .deps/jtag2run.Tpo .deps/jtag2run.Po
g++ -DHAVE_CONFIG_H -I.  -Wall -Wextra -DENABLE_TARGET_PROGRAMMING=0 -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -pthread -MT jtag2rw.o -MD -MP -MF .deps/jtag2rw.Tpo -c -o jtag2rw.o jtag2rw.cc
mv -f .deps/jtag2rw.Tpo .deps/jtag2rw.Po
g++ -DHAVE_CONFIG_H -I.  -Wall -Wextra -DENABLE_TARGET_PROGRAMMING=0 -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -pthread -MT jtag2usb.o -MD -MP -MF .deps/jtag2usb.Tpo -c -o jtag2usb.o jtag2usb.cc
jtag2usb.cc: In function 'void* usb_thread_write(void*)':
jtag2usb.cc:999:38: warning: unused parameter 'data' [-Wunused-parameter]
 static void *usb_thread_write(void * data)
                                      ^~~~
jtag2usb.cc: In function 'void* usb_thread_read(void*)':
jtag2usb.cc:1046:36: warning: unused parameter 'data' [-Wunused-parameter]
 static void *usb_thread_read(void *data)
                                    ^~~~
jtag2usb.cc: In function 'void* usb_thread_event(void*)':
jtag2usb.cc:1179:60: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (write(pype[0], buf, pkt_len + sizeof(unsigned int)) !=
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
        pkt_len + sizeof(unsigned int))
        ~~~~~~~~~~~~~~~~~                                    
jtag2usb.cc:1136:37: warning: unused parameter 'data' [-Wunused-parameter]
 static void *usb_thread_event(void *data)
                                     ^~~~
jtag2usb.cc: In function 'void* hid_thread(void*)':
jtag2usb.cc:1372:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if ((buf[offset + 1] >> 4) != thispacket)
       ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
jtag2usb.cc:1274:51: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
    write(pype[0], buf, len + sizeof(unsigned int));
                                                   ^
jtag2usb.cc:1398:61: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
        write(pype[0], buf, totlength + sizeof(unsigned int));
                                                             ^
mv -f .deps/jtag2usb.Tpo .deps/jtag2usb.Po
g++ -DHAVE_CONFIG_H -I.  -Wall -Wextra -DENABLE_TARGET_PROGRAMMING=0 -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -pthread -MT jtag3bp.o -MD -MP -MF .deps/jtag3bp.Tpo -c -o jtag3bp.o jtag3bp.cc
mv -f .deps/jtag3bp.Tpo .deps/jtag3bp.Po
g++ -DHAVE_CONFIG_H -I.  -Wall -Wextra -DENABLE_TARGET_PROGRAMMING=0 -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -pthread -MT jtag3io.o -MD -MP -MF .deps/jtag3io.Tpo -c -o jtag3io.o jtag3io.cc
jtag3io.cc:353:42: error: expected ',' or '...' before '__unused'
 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]
 void jtag3::changeBitRate(int newBitRate __unused)
                               ^~~~~~~~~~
jtag3io.cc: At global scope:
jtag3io.cc:358:39: error: expected ',' or '...' before '__unused'
 bool jtag3::synchroniseAt(int bitrate __unused)
                                       ^~~~~~~~
jtag3io.cc: In member function 'virtual bool jtag3::synchroniseAt(int)':
jtag3io.cc:358:31: warning: unused parameter 'bitrate' [-Wunused-parameter]
 bool jtag3::synchroniseAt(int bitrate __unused)
                               ^~~~~~~
make[2]: *** [Makefile:524: jtag3io.o] Error 1
make[2]: Leaving directory '/home/faeren/Downloads/avarice/avarice-svn/src/avarice-svn/avarice/src'
make[1]: *** [Makefile:373: all] Error 2
make[1]: Leaving directory '/home/faeren/Downloads/avarice/avarice-svn/src/avarice-svn/avarice/src'
make: *** [Makefile:388: all-recursive] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

Unfortunately, it is still trying to install the latest version in the end.

Offline

#13 2020-09-09 13:17:36

Faeren0327
Member
Registered: 2020-09-09
Posts: 8

Re: avarice compile issue

[faeren@archlinux avarice-svn]$ makepkg PKGBUILD 
==> Making package: avarice-svn 20150713.350-1 (Wed Sep  9 13:15:59 2020)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning avarice-svn svn repo...
A    avarice-svn/avarice
A    avarice-svn/avarice/src
A    avarice-svn/avarice/doc
A    avarice-svn/avarice/src/ioreg.h
A    avarice-svn/avarice/src/jtag2_defs.h
A    avarice-svn/avarice/ChangeLog
A    avarice-svn/avarice/NEWS
A    avarice-svn/avarice/src/jtagrun.cc
A    avarice-svn/avarice/src/crc16.h
A    avarice-svn/avarice/doc/Makefile.am
A    avarice-svn/avarice/src/jtaggeneric.cc
A    avarice-svn/avarice/src/jtag2bp.cc
A    avarice-svn/avarice/configure.ac
A    avarice-svn/avarice/src/avarice.h
A    avarice-svn/avarice/src/jtag2io.cc
A    avarice-svn/avarice/src/jtagbp.cc
A    avarice-svn/avarice/src/jtag2run.cc
A    avarice-svn/avarice/src/jtagmisc.cc
A    avarice-svn/avarice/src/crc16.c
A    avarice-svn/avarice/src/gnu_getopt1.c
A    avarice-svn/avarice/doc/ice-gdb.1
A    avarice-svn/avarice/tools
A    avarice-svn/avarice/doc/kill-avarice.1
A    avarice-svn/avarice/doc/dev_desc.txt
A    avarice-svn/avarice/src/jtag3io.cc
A    avarice-svn/avarice/doc/start-avarice.1
A    avarice-svn/avarice/doc/todo.txt
A    avarice-svn/avarice/scripts
A    avarice-svn/avarice/doc/mk2-protocol.txt
A    avarice-svn/avarice/doc/ice-insight.1
A    avarice-svn/avarice/doc/README.cygwin
A    avarice-svn/avarice/tools/pdml.xsl
A    avarice-svn/avarice/src/jtagio.cc
A    avarice-svn/avarice/src/utils.cc
A    avarice-svn/avarice/src/jtag2prog.cc
A    avarice-svn/avarice/tools/ocdrev.xsl
A    avarice-svn/avarice/Makefile.am
A    avarice-svn/avarice/doc/avrIceProtocol.txt
A    avarice-svn/avarice/tools/devdescr.xsl
A    avarice-svn/avarice/INSTALL-FROM-CVS
A    avarice-svn/avarice/scripts/start-avarice
A    avarice-svn/avarice/src/jtagprog.cc
A    avarice-svn/avarice/scripts/io_gen.py
A    avarice-svn/avarice/Bootstrap
A    avarice-svn/avarice/scripts/ice-gdb.in
A    avarice-svn/avarice/scripts/ice-insight
A    avarice-svn/avarice/scripts/Makefile.am
A    avarice-svn/avarice/src/main.cc
A    avarice-svn/avarice/COPYING
A    avarice-svn/avarice/INSTALL
A    avarice-svn/avarice/avarice.spec.in
A    avarice-svn/avarice/src/jtag2usb.cc
A    avarice-svn/avarice/src/jtag3prog.cc
A    avarice-svn/avarice/src/jtag3run.cc
A    avarice-svn/avarice/src/jtag2misc.cc
A    avarice-svn/avarice/src/jtag3misc.cc
A    avarice-svn/avarice/src/devdescr.cc
A    avarice-svn/avarice/src/jtag.h
A    avarice-svn/avarice/src/jtag2rw.cc
A    avarice-svn/avarice/src/jtag3.h
A    avarice-svn/avarice/src/jtag3rw.cc
A    avarice-svn/avarice/src/pragma.h
A    avarice-svn/avarice/src/remote.cc
A    avarice-svn/avarice/src/jtag3bp.cc
A    avarice-svn/avarice/src/ioreg.cc
A    avarice-svn/avarice/src/jtagrw.cc
A    avarice-svn/avarice/src/jtag2.h
A    avarice-svn/avarice/src/jtag1.h
A    avarice-svn/avarice/src/Makefile.am
A    avarice-svn/avarice/src/remote.h
A    avarice-svn/avarice/src/gnu_getopt.c
A    avarice-svn/avarice/src/gnu_getopt.h
A    avarice-svn/avarice/doc/avarice.1
A    avarice-svn/avarice/doc/avr-studio-5-detlev-kraft.pdf
A    avarice-svn/avarice/doc/running.txt
A    avarice-svn/avarice/tools/edbg.lua
A    avarice-svn/avarice/m4_ax_pthread.m4
A    avarice-svn/avarice/scripts/gdb-avarice-script
A    avarice-svn/avarice/scripts/kill-avarice
A    avarice-svn/avarice/AUTHORS
Checked out revision 389.
==> Validating source files with md5sums...
    avarice-svn ... Skipped
==> Extracting sources...
  -> Creating working copy of trunk svn repo...
==> Starting build()...
+ aclocal
+ autoheader
+ autoconf
+ '[' -d config-aux ']'
+ mkdir config-aux
+ automake -a -c
configure.ac:35: installing 'config-aux/compile'
configure.ac:38: installing 'config-aux/config.guess'
configure.ac:38: installing 'config-aux/config.sub'
configure.ac:31: installing 'config-aux/install-sh'
configure.ac:31: installing 'config-aux/missing'
src/Makefile.am: installing 'config-aux/depcomp'
+ rm -f config.cache
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking for perl... /usr/bin/perl
checking for library containing gethostbyname... none required
checking for socket... yes
checking for library containing inet_aton... none required
checking for iconv_open in -liconv... no
checking for libiconv_open in -liconv... no
checking for dcgettext in -lintl... no
checking for xmalloc in -liberty... yes
checking for bfd_init in -lbfd... yes
checking for usb_get_string_simple in -lusb... yes
checking for libusb20_dev_open in -lusb... no
checking for library containing hid_init... -lhidapi-libusb
checking hidapi/hidapi.h usability... yes
checking hidapi/hidapi.h presence... no
configure: WARNING: hidapi/hidapi.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: hidapi/hidapi.h: proceeding with the compiler's result
checking for hidapi/hidapi.h... yes
checking for ANSI C header files... no
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... no
configure: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: arpa/inet.h: proceeding with the compiler's result
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... no
configure: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: fcntl.h: proceeding with the compiler's result
checking for fcntl.h... yes
checking netdb.h usability... yes
checking netdb.h presence... no
configure: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: netdb.h: proceeding with the compiler's result
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... no
configure: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: netinet/in.h: proceeding with the compiler's result
checking for netinet/in.h... yes
checking stdlib.h usability... yes
checking stdlib.h presence... no
configure: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: stdlib.h: proceeding with the compiler's result
checking for stdlib.h... yes
checking string.h usability... yes
checking string.h presence... no
configure: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: string.h: proceeding with the compiler's result
checking for string.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... no
configure: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: sys/socket.h: proceeding with the compiler's result
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... no
configure: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: sys/time.h: proceeding with the compiler's result
checking for sys/time.h... yes
checking termios.h usability... yes
checking termios.h presence... no
configure: WARNING: termios.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: termios.h: proceeding with the compiler's result
checking for termios.h... yes
checking unistd.h usability... yes
checking unistd.h presence... no
configure: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: unistd.h: proceeding with the compiler's result
checking for unistd.h... yes
checking bfd.h usability... yes
checking bfd.h presence... no
configure: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: bfd.h: proceeding with the compiler's result
checking for bfd.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for socklen_t... yes
checking whether libbfd requires libz... no
checking whether libbfd requires libdl... yes
checking for dlopen in -ldl... yes
checking for error_at_line... yes
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for working memcmp... yes
checking sys/select.h usability... yes
checking sys/select.h presence... no
configure: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: sys/select.h: proceeding with the compiler's result
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking whether lstat correctly handles trailing slash... no
checking whether stat accepts an empty string... yes
checking for vprintf... yes
checking for _doprnt... no
checking for atexit... yes
checking for gethostbyname... yes
checking for inet_ntoa... yes
checking for memmove... yes
checking for memset... yes
checking for select... yes
checking for socket... (cached) yes
checking for strcasecmp... yes
checking for strerror... yes
checking for strtol... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating scripts/Makefile
config.status: creating scripts/ice-gdb
config.status: WARNING:  'scripts/ice-gdb.in' seems to ignore the --datarootdir setting
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating avarice.spec
config.status: creating Makefile
config.status: creating src/autoconf.h
config.status: executing depfiles commands
Making all in scripts
make[1]: Entering directory '/home/faeren/Downloads/avarice/avarice-svn/src/avarice-svn/avarice/scripts'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/faeren/Downloads/avarice/avarice-svn/src/avarice-svn/avarice/scripts'
Making all in src
make[1]: Entering directory '/home/faeren/Downloads/avarice/avarice-svn/src/avarice-svn/avarice/src'
make  all-am
make[2]: Entering directory '/home/faeren/Downloads/avarice/avarice-svn/src/avarice-svn/avarice/src'
gcc -DHAVE_CONFIG_H -I.  -Wall -Wextra -DENABLE_TARGET_PROGRAMMING=0 -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -MT crc16.o -MD -MP -MF .deps/crc16.Tpo -c -o crc16.o crc16.c
mv -f .deps/crc16.Tpo .deps/crc16.Po
g++ -DHAVE_CONFIG_H -I.  -Wall -Wextra -DENABLE_TARGET_PROGRAMMING=0 -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -pthread -MT devdescr.o -MD -MP -MF .deps/devdescr.Tpo -c -o devdescr.o devdescr.cc
mv -f .deps/devdescr.Tpo .deps/devdescr.Po
g++ -DHAVE_CONFIG_H -I.  -Wall -Wextra -DENABLE_TARGET_PROGRAMMING=0 -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -pthread -MT ioreg.o -MD -MP -MF .deps/ioreg.Tpo -c -o ioreg.o ioreg.cc
mv -f .deps/ioreg.Tpo .deps/ioreg.Po
g++ -DHAVE_CONFIG_H -I.  -Wall -Wextra -DENABLE_TARGET_PROGRAMMING=0 -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -pthread -MT jtag2bp.o -MD -MP -MF .deps/jtag2bp.Tpo -c -o jtag2bp.o jtag2bp.cc
mv -f .deps/jtag2bp.Tpo .deps/jtag2bp.Po
g++ -DHAVE_CONFIG_H -I.  -Wall -Wextra -DENABLE_TARGET_PROGRAMMING=0 -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -pthread -MT jtag2io.o -MD -MP -MF .deps/jtag2io.Tpo -c -o jtag2io.o jtag2io.cc
mv -f .deps/jtag2io.Tpo .deps/jtag2io.Po
g++ -DHAVE_CONFIG_H -I.  -Wall -Wextra -DENABLE_TARGET_PROGRAMMING=0 -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -pthread -MT jtag2misc.o -MD -MP -MF .deps/jtag2misc.Tpo -c -o jtag2misc.o jtag2misc.cc
mv -f .deps/jtag2misc.Tpo .deps/jtag2misc.Po
g++ -DHAVE_CONFIG_H -I.  -Wall -Wextra -DENABLE_TARGET_PROGRAMMING=0 -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -pthread -MT jtag2prog.o -MD -MP -MF .deps/jtag2prog.Tpo -c -o jtag2prog.o jtag2prog.cc
mv -f .deps/jtag2prog.Tpo .deps/jtag2prog.Po
g++ -DHAVE_CONFIG_H -I.  -Wall -Wextra -DENABLE_TARGET_PROGRAMMING=0 -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -pthread -MT jtag2run.o -MD -MP -MF .deps/jtag2run.Tpo -c -o jtag2run.o jtag2run.cc
mv -f .deps/jtag2run.Tpo .deps/jtag2run.Po
g++ -DHAVE_CONFIG_H -I.  -Wall -Wextra -DENABLE_TARGET_PROGRAMMING=0 -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -pthread -MT jtag2rw.o -MD -MP -MF .deps/jtag2rw.Tpo -c -o jtag2rw.o jtag2rw.cc
mv -f .deps/jtag2rw.Tpo .deps/jtag2rw.Po
g++ -DHAVE_CONFIG_H -I.  -Wall -Wextra -DENABLE_TARGET_PROGRAMMING=0 -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -pthread -MT jtag2usb.o -MD -MP -MF .deps/jtag2usb.Tpo -c -o jtag2usb.o jtag2usb.cc
jtag2usb.cc: In function 'void* usb_thread_write(void*)':
jtag2usb.cc:999:38: warning: unused parameter 'data' [-Wunused-parameter]
 static void *usb_thread_write(void * data)
                                      ^~~~
jtag2usb.cc: In function 'void* usb_thread_read(void*)':
jtag2usb.cc:1046:36: warning: unused parameter 'data' [-Wunused-parameter]
 static void *usb_thread_read(void *data)
                                    ^~~~
jtag2usb.cc: In function 'void* usb_thread_event(void*)':
jtag2usb.cc:1179:60: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (write(pype[0], buf, pkt_len + sizeof(unsigned int)) !=
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
        pkt_len + sizeof(unsigned int))
        ~~~~~~~~~~~~~~~~~                                    
jtag2usb.cc:1136:37: warning: unused parameter 'data' [-Wunused-parameter]
 static void *usb_thread_event(void *data)
                                     ^~~~
jtag2usb.cc: In function 'void* hid_thread(void*)':
jtag2usb.cc:1372:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if ((buf[offset + 1] >> 4) != thispacket)
       ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
jtag2usb.cc:1274:51: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
    write(pype[0], buf, len + sizeof(unsigned int));
                                                   ^
jtag2usb.cc:1398:61: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
        write(pype[0], buf, totlength + sizeof(unsigned int));
                                                             ^
mv -f .deps/jtag2usb.Tpo .deps/jtag2usb.Po
g++ -DHAVE_CONFIG_H -I.  -Wall -Wextra -DENABLE_TARGET_PROGRAMMING=0 -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -pthread -MT jtag3bp.o -MD -MP -MF .deps/jtag3bp.Tpo -c -o jtag3bp.o jtag3bp.cc
mv -f .deps/jtag3bp.Tpo .deps/jtag3bp.Po
g++ -DHAVE_CONFIG_H -I.  -Wall -Wextra -DENABLE_TARGET_PROGRAMMING=0 -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -pthread -MT jtag3io.o -MD -MP -MF .deps/jtag3io.Tpo -c -o jtag3io.o jtag3io.cc
jtag3io.cc:353:42: error: expected ',' or '...' before '__unused'
 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]
 void jtag3::changeBitRate(int newBitRate __unused)
                               ^~~~~~~~~~
jtag3io.cc: At global scope:
jtag3io.cc:358:39: error: expected ',' or '...' before '__unused'
 bool jtag3::synchroniseAt(int bitrate __unused)
                                       ^~~~~~~~
jtag3io.cc: In member function 'virtual bool jtag3::synchroniseAt(int)':
jtag3io.cc:358:31: warning: unused parameter 'bitrate' [-Wunused-parameter]
 bool jtag3::synchroniseAt(int bitrate __unused)
                               ^~~~~~~
make[2]: *** [Makefile:524: jtag3io.o] Error 1
make[2]: Leaving directory '/home/faeren/Downloads/avarice/avarice-svn/src/avarice-svn/avarice/src'
make[1]: *** [Makefile:373: all] Error 2
make[1]: Leaving directory '/home/faeren/Downloads/avarice/avarice-svn/src/avarice-svn/avarice/src'
make: *** [Makefile:388: all-recursive] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

Now it seems it is installing the correct version, but I still have the same issue.

Offline

#14 2020-09-09 13:17:43

loqs
Member
Registered: 2014-03-06
Posts: 11,565

Re: avarice compile issue

That is the purpose of a -svn package.
Edit:
See my fixes in post #7 and #11.
Edit:
Removing the pkgver function prevents the pkgver variable from being changed but does not change the version of the source being used.

Last edited by loqs (2020-09-09 13:20:18)

Offline

#15 2020-09-09 13:49:22

Faeren0327
Member
Registered: 2020-09-09
Posts: 8

Re: avarice compile issue

That way it is working. Sorry I missed the following parts:

+makedepends=(subversion)
+  sed -i 's/__unused/__attribute__((unused))/g' src/jtag3io.cc src/jtag3prog.cc

Thank you!

Offline

Board footer

Powered by FluxBB