Your message dated Sat, 05 Apr 2025 12:35:48 +0000
with message-id <[email protected]>
and subject line Bug#1098791: fixed in kicad 9.0.1+dfsg-1
has caused the Debian Bug report #1098791,
regarding kicad: Please include patch to link against libatomic on powerpc
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1098791: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1098791
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: kicad
Version: 9.0.0+dfsg-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: powerpc
X-Debbugs-Cc: [email protected]

Hi,

src:kicad currently fails to build from source due to missing linking against 
libatomic:

[ 34%] Linking CXX executable bitmap2component
cd /build/reproducible-path/kicad-9.0.0+dfsg/debian/build/bitmap2component && 
/usr/bin/cmake -E cmake_link_script CMakeFiles/bitmap2component.dir/link.txt 
--verbose=1
/usr/bin/ld: ../common/libcommon.a(wx_view_controls.cpp.o): undefined reference 
to symbol '__atomic_fetch_add_8@@LIBATOMIC_1.0'
/usr/bin/ld: /lib/powerpc-linux-gnu/libatomic.so.1: error adding symbols: DSO 
missing from command line
collect2: error: ld returned 1 exit status

This can be fixed by patching debian/rules to append -latomic to 
DEB_LDFLAGS_MAINT_APPEND:

--- debian/rules.orig   2025-02-23 07:00:36.000000000 -0800
+++ debian/rules        2025-02-23 22:43:58.488539668 -0800
@@ -9,6 +9,11 @@
 CFLAGS+=$(CPPFLAGS)
 CXXFLAGS+=$(CPPFLAGS)
 
+# workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81358
+ifneq (,$(filter $(DEB_HOST_ARCH), armel m68k powerpc sh4))
+export DEB_LDFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic -Wl,--as-needed
+endif
+
 # out of tree build folder for kicad application
 DEB_BUILD_DIR=debian/build
 # default install folder

Please see the attached patch. I have also included armel, m68k and sh4 in the
architecture list as this should also be necessary on these architectures.

PS: Would be nice if kicad could be built for any architecture.

Thanks,
Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
--- debian/rules.orig   2025-02-23 07:00:36.000000000 -0800
+++ debian/rules        2025-02-23 22:43:58.488539668 -0800
@@ -9,6 +9,11 @@
 CFLAGS+=$(CPPFLAGS)
 CXXFLAGS+=$(CPPFLAGS)
 
+# workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81358
+ifneq (,$(filter $(DEB_HOST_ARCH), armel m68k powerpc sh4))
+export DEB_LDFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic -Wl,--as-needed
+endif
+
 # out of tree build folder for kicad application
 DEB_BUILD_DIR=debian/build
 # default install folder

--- End Message ---
--- Begin Message ---
Source: kicad
Source-Version: 9.0.1+dfsg-1
Done: Carsten Schoenert <[email protected]>

We believe that the bug you reported is fixed in the latest version of
kicad, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Carsten Schoenert <[email protected]> (supplier of updated kicad package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 04 Apr 2025 16:07:28 +0200
Source: kicad
Architecture: source
Version: 9.0.1+dfsg-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Electronics Team 
<[email protected]>
Changed-By: Carsten Schoenert <[email protected]>
Closes: 1098791
Changes:
 kicad (9.0.1+dfsg-1) unstable; urgency=medium
 .
   [ Carsten Schoenert ]
   * [23d6e54] New upstream version 9.0.1+dfsg
   * [3682fc3] d/control: Increase Standards-Version to 4.7.2
     + No further changes needed.
   * [3f344b9] d/kicad-demos.install: Add new subfolder to install
 .
   [ RICCIARDI-Adrien ]
   * [1c64540] Rebuild patch queue from patch-queue branch
     + Updated patch:
       fixes/Adjusting-content-in-the-desktop-files.patch
       See also
       https://salsa.debian.org/electronics-team/KiCad/kicad/-/merge_requests/2
 .
   [ John Paul Adrian Glaubitz ]
   * [5f03e00] d/rules: Add needed linking for armel m68k powerpc sh4
     (Closes: #1098791)
Checksums-Sha1:
 672dcf30b1ead8b3b33ebe1f750cabdf2e2f37f9 4357 kicad_9.0.1+dfsg-1.dsc
 140b40805c68476e7a6d42d872cdaec86c2646a9 90401936 
kicad_9.0.1+dfsg.orig-doc.tar.xz
 f1ff08a8525305d2dbff68eee771cbb284c3152c 101834612 kicad_9.0.1+dfsg.orig.tar.xz
 c4f716f12d9fe0d7cf56266ea7690ea89e2b290c 64560 kicad_9.0.1+dfsg-1.debian.tar.xz
 308a303faf4763682d9ca4f72364c2e238637f3e 29311 
kicad_9.0.1+dfsg-1_amd64.buildinfo
Checksums-Sha256:
 d1293cd15a2e18b08d9b61d64ea7b9b7ece0fca8cbe573179d29ae4c5e54b51c 4357 
kicad_9.0.1+dfsg-1.dsc
 d0d628d65ce02549ebd792246c989eac08ce49dbb7ef069d143c1db7798fa2f3 90401936 
kicad_9.0.1+dfsg.orig-doc.tar.xz
 067e541a6692be5fe1f54f878c14ea21d29a0c2a60e554f09dc84367f07b715d 101834612 
kicad_9.0.1+dfsg.orig.tar.xz
 cb861d316c2948f3a9e0f3e6dce64589230eaa6e9ec80143de961c73c8a61d0b 64560 
kicad_9.0.1+dfsg-1.debian.tar.xz
 3a7fe5a58bd3534b50297a7c181a34c71d0b21b67ec438dbc51cf3a0bb3586a4 29311 
kicad_9.0.1+dfsg-1_amd64.buildinfo
Files:
 8f57e4477b2f5948aef8d045e9634882 4357 electronics optional 
kicad_9.0.1+dfsg-1.dsc
 b6da14a96479af108105e2a40adf631c 90401936 electronics optional 
kicad_9.0.1+dfsg.orig-doc.tar.xz
 eac5d66f0d0f6dd4a0f3ed9292265923 101834612 electronics optional 
kicad_9.0.1+dfsg.orig.tar.xz
 148272c8871e51325041228a410ac614 64560 electronics optional 
kicad_9.0.1+dfsg-1.debian.tar.xz
 a376ed2d7c0334814d150d2e69656490 29311 electronics optional 
kicad_9.0.1+dfsg-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEtw38bxNP7PwBHmKqgwFgFCUdHbAFAmfwxbEACgkQgwFgFCUd
HbDslxAAlFPJzQMAypSsRJWS0Mv+Ap89Nv2+y9BU7O0+n/LHqjFkUiJmJmEjALPR
KGpZjrB8lhXbBXmoVhWWCYlA3pkrtKb4q9Dn+iIoHe1BD91ca+TTpy+Oe3gGIqwf
Q33r8+qRfNmgIt7K19WcFvDltRzXlwApXlW1TZM0zkjA8tDDMssotidoPiIqo4Qk
33u2hdSFi+gn/p0oFEW2wMfDlvBveBzHXRZYfgyaiWxrOI+5FKf2TITYewpE/rSx
0eS8kke+xTH6q2+cHYY+xuSY60nQGU+nwiOHSr0XitjPQ+vVCrFGH5qHzPPV9vNe
5p6vbY9NFieCE37BbKstzn+eFq8e9l0wnHusbXNKI3NXJK5HDV8yrnGB0SCU8I+B
8S4CEOHAWfcei5tWYUke0BbWC9HwUqN5T/kG3da+aPtkfn3T9oNHlRot+5BYbreK
FDI5oHAXr2aTjcZE2Ny/Jab+nWxrNreMedjdNYU10rzR9Yq9ez63VRwxAufqBOLc
RMANyTZRUUW+HBkEJnfWoQePbLTUbmQxKGyHdyLiuPQSB4y9199O+T4ShydZG/pv
GcTDkDYNPdtJEnyQyGFeYGZEYc8pGSTDeDP/84B2nK2yFDOOOxS/ztTpuX7zKYnm
XgDBq+cQee4m56DyRsvUVUBw/KmTOycEN+LqB5prbeY7Hn1O+zM=
=bfCF
-----END PGP SIGNATURE-----

Attachment: pgpFvXLZPmg2y.pgp
Description: PGP signature


--- End Message ---

Reply via email to