FTBFS on riscv64

Bug #1993202 reported by Sergio Durigan Junior
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
spaln (Ubuntu)
Fix Released
Undecided
Sergio Durigan Junior

Bug Description

spaln is currently FTBFSing on riscv64 due to LTO:

makmdm.cc: In function ‘void exp_qdt(double (*)[20], double*, double, int)’:
makmdm.cc:395:15: warning: unused variable ‘q’ [-Wunused-variable]
  395 | static double q[2][20][20] = {
      | ^
lto-wrapper: warning: using serial compilation of 9 LTRANS jobs
lto-wrapper: note: see the ‘-flto’ option documentation for more information
makmdm.cc: At global scope:
makmdm.cc:395:15: warning: ‘q’ defined but not used [-Wunused-variable]
sortgrcd.cc: In function ‘int count_record(const char*, const char*, size_t)’:
sortgrcd.cc:997:25: warning: ISO C++ forbids variable length array ‘buf’ [-Wvla]
  997 | char buf[rcdsize];
      | ^~~
lto-wrapper: warning: using serial compilation of 2 LTRANS jobs
lto-wrapper: note: see the ‘-flto’ option documentation for more information
spaln.cc: In function ‘blkaln.constprop’:
spaln.cc:797:46: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
  797 | Gsinfo* GsI = new Gsinfo[nparalog + 1];
      | ^
/usr/include/c++/12/new:128:26: note: in a call to allocation function ‘operator new []’ declared here
  128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
      | ^
/tmp/ccUyjgRb.ltrans8.ltrans.o: in function `Ftable::setpath(char const*, char const*) [clone .constprop.0]':
./src/iolib.cc:431:(.text+0x3f7a): relocation truncated to fit: R_RISCV_PCREL_HI20 against `.LC24'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:85: spaln] Error 1

Changed in spaln (Ubuntu):
status: Confirmed → New
no longer affects: lto-disabled-list (Ubuntu)
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

The fix has been uploaded to Debian.

https://tracker.debian.org/news/1375023/accepted-spaln-249adfsg-3-source-into-unstable/

This bug will be closed once the package is sync'ed.

Changed in spaln (Ubuntu):
status: New → In Progress
assignee: nobody → Sergio Durigan Junior (sergiodj)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package spaln - 2.4.9a+dfsg-3

---------------
spaln (2.4.9a+dfsg-3) unstable; urgency=medium

  * Team upload.
  * d/rules: Simplify build flags setting.
    - No need to set "-Wall" nor "-flto" directly.
    - Don't enable LTO on RISC-V 64. (LP: #1993202)

 -- Sergio Durigan Junior <email address hidden> Mon, 17 Oct 2022 17:18:08 -0400

Changed in spaln (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.