[Pkg-electronics-devel] Bug#984677: ngspice: Please mark symbols optimized away with -O3 as optional

Logan Rosen logan at ubuntu.com
Sat Mar 6 22:56:38 GMT 2021


Package: ngspice
Version: 34+ds-1
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu hirsute ubuntu-patch

Hi,

ngspice 34+ds-1 failed to build on ppc64el in Ubuntu [1] because we use -O3
by default on that architecture, and two symbols are optimized away at
that level.

In Ubuntu, the attached patch was applied to achieve the following:

  * d/libngspice0.symbols: Mark a couple of symbols as optional that are
    optimized away with -O3 on ppc64el.

Thanks for considering the patch.

Logan

[1] https://launchpad.net/ubuntu/+source/ngspice/34+ds-1
-------------- next part --------------
diff -Nru ngspice-34+ds/debian/libngspice0.symbols ngspice-34+ds/debian/libngspice0.symbols
--- ngspice-34+ds/debian/libngspice0.symbols	2021-01-31 06:43:20.000000000 -0500
+++ ngspice-34+ds/debian/libngspice0.symbols	2021-03-05 22:53:34.000000000 -0500
@@ -16,8 +16,8 @@
  _Z6HICFCTdN5duals4dualIdEEPS1_S2_ at Base 34+ds
  _Z6QJMODFN5duals4dualIdEES1_S1_dS1_S1_PS1_S2_ at Base 34+ds
  _Z7TMPHICJN5duals4dualIdEEdS1_S1_dddddddPS1_S2_S2_ at Base 34+ds
- _ZNSt14_Function_baseD1Ev at Base 34+ds
- _ZNSt14_Function_baseD2Ev at Base 34+ds
+ (optional=templinst)_ZNSt14_Function_baseD1Ev at Base 34+ds
+ (optional=templinst)_ZNSt14_Function_baseD2Ev at Base 34+ds
  hicum_thermal_update at Base 34+ds
 # added in 28
  ngGet_Evt_NodeInfo at Base 28


More information about the Pkg-electronics-devel mailing list