Package Details: c64-debugger-git 0.64.58.6.r63.f97772e-1

Git Clone URL: https://aur.archlinux.org/c64-debugger-git.git (read-only, click to copy)
Package Base: c64-debugger-git
Description: Commodore 64, Atari XL/XE and NES debugger that works in real time
Upstream URL: https://sourceforge.net/projects/c64-debugger/
Licenses: unknown
Conflicts: c64-debugger
Provides: c64-debugger
Submitter: ruzsa.balazs
Maintainer: ruzsa.balazs
Last Packager: ruzsa.balazs
Votes: 0
Popularity: 0.000000
First Submitted: 2020-02-08 12:51 (UTC)
Last Updated: 2022-03-16 17:40 (UTC)

Latest Comments

nipsky commented on 2022-03-16 17:56 (UTC)

Thanks, compiles fine now! :)

ruzsa.balazs commented on 2022-03-16 17:38 (UTC)

Thanks for the bug report. Hopefully fixed the build, check it out.

nipsky commented on 2022-03-16 00:30 (UTC)

Hi, building this aborts with the following errors:

==> Starting build()...
MM -- Engine/Audio/CAudioChannel.o
MM -- Engine/Audio/CAudioChannelBusFloat.o
MM -- Engine/Audio/CAudioChannelBusInt.o
MM -- Engine/Audio/CAudioChannelMusicPlayer.o
MM -- Engine/Audio/CMusicChannel.o
MM -- Engine/Audio/CPianoKeyboard.o
MM -- Engine/Audio/CSlrMusicFile.o
MM -- Engine/Audio/CSlrMusicFileOgg.o
MM -- Engine/Audio/SND_Main.o
MM -- Engine/Audio/CSlrMusicSwitcher.o
MM -- Engine/Audio/WAV/SND_WavReader.o
MM -- Engine/Core/CBitBuffer.o
In file included from Engine/Audio/CAudioChannel.h:4,
                 from Engine/Audio/CAudioChannel.mm:1:
Engine/Core/SYS_Defs.h:12:14: error: unnamed scoped enum is not allowed
   12 | #define byte unsigned char
      |              ^~~~~~~~
Engine/Core/SYS_Defs.h:12:14: error: expected identifier before 'unsigned'
In file included from /usr/include/c++/11.2.0/cmath:42,
                 from /usr/include/c++/11.2.0/math.h:36,
                 from Engine/Core/SYS_Defs.h:274,
                 from Engine/Audio/CAudioChannel.h:4,
                 from Engine/Audio/CAudioChannel.mm:1:
/usr/include/c++/11.2.0/bits/cpp_type_traits.h:404:19: error: expected unqualified-id before ':' token
  404 |   enum class byte : unsigned char;
      |                   ^
/usr/include/c++/11.2.0/bits/cpp_type_traits.h:407:12: error: redefinition of 'struct std::__is_byte<unsigned char>'
  407 |     struct __is_byte<byte>
      |            ^~~~~~~~~~~~~~~
/usr/include/c++/11.2.0/bits/cpp_type_traits.h:397:12: note: previous definition of 'struct std::__is_byte<unsigned char>'
  397 |     struct __is_byte<unsigned char>
      |            ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11.2.0/bits/cpp_type_traits.h:533:63: error: wrong number of template arguments (1, should be at least 2)
  533 |     struct __is_memcmp_ordered_with<std::byte, std::byte, true>
      |                                                               ^
/usr/include/c++/11.2.0/bits/cpp_type_traits.h:511:12: note: provided for 'template<class _Tp, class _Up, bool <anonymous> > struct std::__is_memcmp_ordered_with'
  511 |     struct __is_memcmp_ordered_with
      |            ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11.2.0/bits/cpp_type_traits.h:537:62: error: template argument 2 is invalid
  537 |     struct __is_memcmp_ordered_with<_Tp, std::byte, _SameSize>
      |                                                              ^
/usr/include/c++/11.2.0/bits/cpp_type_traits.h:537:62: error: template argument 3 is invalid
/usr/include/c++/11.2.0/bits/cpp_type_traits.h:541:62: error: wrong number of template arguments (1, should be at least 2)
  541 |     struct __is_memcmp_ordered_with<std::byte, _Up, _SameSize>
      |                                                              ^
/usr/include/c++/11.2.0/bits/cpp_type_traits.h:511:12: note: provided for 'template<class _Tp, class _Up, bool <anonymous> > struct std::__is_memcmp_ordered_with'
  511 |     struct __is_memcmp_ordered_with
      |            ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from Engine/Audio/CSlrMusicFile.h:4,
                 from Engine/Audio/CSlrMusicFile.mm:1:
Engine/Core/SYS_Defs.h:12:14: error: unnamed scoped enum is not allowed
   12 | #define byte unsigned char
      |              ^~~~~~~~
Engine/Core/SYS_Defs.h:12:14: error: expected identifier before 'unsigned'
In file included from /usr/include/c++/11.2.0/cmath:42,
                 from /usr/include/c++/11.2.0/math.h:36,
                 from Engine/Core/SYS_Defs.h:274,
                 from Engine/Audio/CSlrMusicFile.h:4,
                 from Engine/Audio/CSlrMusicFile.mm:1:
/usr/include/c++/11.2.0/bits/cpp_type_traits.h:404:19: error: expected unqualified-id before ':' token
  404 |   enum class byte : unsigned char;
      |                   ^
/usr/include/c++/11.2.0/bits/cpp_type_traits.h:407:12: error: redefinition of 'struct std::__is_byte<unsigned char>'
  407 |     struct __is_byte<byte>
      |            ^~~~~~~~~~~~~~~
/usr/include/c++/11.2.0/bits/cpp_type_traits.h:397:12: note: previous definition of 'struct std::__is_byte<unsigned char>'
  397 |     struct __is_byte<unsigned char>
      |            ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11.2.0/bits/cpp_type_traits.h:533:63: error: wrong number of template arguments (1, should be at least 2)
  533 |     struct __is_memcmp_ordered_with<std::byte, std::byte, true>
      |                                                               ^
/usr/include/c++/11.2.0/bits/cpp_type_traits.h:511:12: note: provided for 'template<class _Tp, class _Up, bool <anonymous> > struct std::__is_memcmp_ordered_with'
  511 |     struct __is_memcmp_ordered_with
      |            ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11.2.0/bits/cpp_type_traits.h:537:62: error: template argument 2 is invalid
  537 |     struct __is_memcmp_ordered_with<_Tp, std::byte, _SameSize>
      |                                                              ^
/usr/include/c++/11.2.0/bits/cpp_type_traits.h:537:62: error: template argument 3 i

arch_jeff commented on 2020-11-15 13:51 (UTC)

Thanks! I can confirm it works now.

ruzsa.balazs commented on 2020-11-15 07:08 (UTC)

Fixed the build by replacing any dashes found in the generated pkgver with underscores.

arch_jeff commented on 2020-11-13 15:34 (UTC)

This PKGBUILD will no longer build:

==> Starting prepare()...
==> Starting pkgver()...
==> ERROR: pkgver is not allowed to contain colons, forward slashes, hyphens or whitespace.
==> ERROR: pkgver() generated an invalid version: 0.64.58.2-gl1b.r58.508076f
:: Unable to build c64-debugger-git - makepkg exited with code: 12

ruzsa.balazs commented on 2020-06-14 12:29 (UTC) (edited on 2020-06-14 12:30 (UTC) by ruzsa.balazs)

Found it. It's due to a change in GCC 10.

As https://gcc.gnu.org/gcc-10/changes.html says: "GCC now defaults to -fno-common. As a result, global variable accesses are more efficient on various targets. In C, global variables with multiple tentative definitions now result in linker errors. With -fcommon such definitions are silently merged during linking."

In other words, GCC 10 puts global variables without an initializer into the .bss section, while previously these were placed into a COMMON block where the linker could find them and unify them into a single object at link time.

Adding -fcommon to CFLAGS fixed the problem on my machine.

I incorporated this fix into the PKGBUILD, so if you do a git pull and remove the src directory (necessary because the problematic object files need to be rebuilt), you shall be able to build the package without problems.

ruzsa.balazs commented on 2020-06-14 11:23 (UTC)

I tried to reproduce this. My first build (of the latest upstream version 0.64.58.2rc2.r55.74a8461) succeeded. Then I upgraded Arch via pacman -Syu and rebooted my system. Afterwards building the same upstream version in the same way (makepkg -s) failed and I got the same error message you did.

From this it would seem the error is due to some Arch issue, not an upstream issue.

PTBM133A4X commented on 2020-06-14 00:41 (UTC)

I tried to install this tonight but after downloading and building it, I got this right at the end.

/usr/bin/ld: Games/c64/Emulators/atari800/cpu.o:(.bss+0x1a): multiple definition of CPU_regPC'; Games/c64/Emulators/atari800/AtariInterface/AtariWrapper.o:(.bss+0x18): first defined here /usr/bin/ld: Games/c64/Emulators/vice/arch/ui.o:(.bss+0x0): multiple definition ofc64d_is_cpu_in_jam_state'; Games/c64/Emulators/atari800/esc.o:(.bss+0x0): first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:77: c64debugger] Error 1 ==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: Makepkg was unable to build c64-debugger-git. ==> Restart building c64-debugger-git ? [y/N]