bugGNU Octave - Bugs: bug #43345, [octave-forge] (lssa) fails to...

 
 

bug #43345: [octave-forge] (lssa) fails to build using llvm libc++ 3.4 and later

Submitted by:  Alexander Hansen <alexkhansen>
Submitted on:  Thu 02 Oct 2014 03:14:33 AM UTC  
 
Category: Octave Forge PackageSeverity: 3 - Normal
Priority: 1 - LaterItem Group: Build Failure
Status: Patch SubmittedAssigned to: None
Originator Name: Open/Closed: Open
Release: otherOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 02 Oct 2014 01:32:35 PM UTC, comment #4:

Can you please test the following patch?

Sorry for the spacing change. I've also reindented the code, but I didn't include all of the whitespace changes in this patch.

Jordi Gutiérrez Hermoso <jordigh>
Project Administrator
Thu 02 Oct 2014 01:27:11 PM UTC, comment #3:

Thanks. I forgot about my mailing list report and I didn't remember the Xcode <-> LLVM mapping for the compiler version (I knew it was Apple's clang-5, though).

Unsurprisingly, this also affects builds against Octave 3.8.2.

Alexander Hansen <alexkhansen>
Thu 02 Oct 2014 01:14:52 PM UTC, comment #2:

Recent versions of gcc also fail to compile this:

http://melpon.org/wandbox/permlink/foenoEwwmY0sETnE

Jordi Gutiérrez Hermoso <jordigh>
Project Administrator
Thu 02 Oct 2014 01:02:39 PM UTC, comment #1:

Actually, you noticed this almost a year ago, with clang 3.3:

http://octave.1599824.n4.nabble.com/Build-issue-with-lssa-0-1-2-on-OS-X-10-9-td4659560.html

Jordi Gutiérrez Hermoso <jordigh>
Project Administrator
Thu 02 Oct 2014 03:14:33 AM UTC, original submission:

(number based on the LLVM numbering rather than Apple's)

It worked for me for prior compiler versions, but now I get the following:

...
mkdir (/var/tmp/oct-WjkD9c)
untar (./lssa.tar, /var/tmp/oct-WjkD9c)
fastlscomplex.cc:65:9: warning: add explicit braces to avoid dangling else [-Wdangling-else]
else
^
fastlscomplex.cc:377:68: error: expression is not assignable
record_current->power_series[p].real() -= h_i;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
fastlscomplex.cc:378:68: error: expression is not assignable
record_current->power_series[p].imag() += h_r;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
fastlscomplex.cc:391:68: error: expression is not assignable
record_current->power_series[p].real() -= h_i;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
fastlscomplex.cc:392:68: error: expression is not assignable
record_current->power_series[p].imag() += h_r;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
fastlscomplex.cc:427:74: error: expression is not assignable
record_current->power_series[p].real() -= h_i;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
fastlscomplex.cc:428:74: error: expression is not assignable
record_current->power_series[p].imag() += h_r;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
fastlscomplex.cc:441:74: error: expression is not assignable
record_current->power_series[p].real() -= h_i;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
fastlscomplex.cc:442:74: error: expression is not assignable
record_current->power_series[p].imag() += h_r;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
fastlscomplex.cc:472:71: error: expression is not assignable
record_next->power_series[q].real() -= h_i;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
fastlscomplex.cc:473:71: error: expression is not assignable
record_next->power_series[q].imag() += h_r;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
fastlscomplex.cc:486:71: error: expression is not assignable
record_next->power_series[q].real() -= h_i;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
fastlscomplex.cc:487:71: error: expression is not assignable
record_next->power_series[q].imag() += h_r;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
1 warning and 12 errors generated.
make: *** [fastlscomplex.oct] Error 1
'make' returned the following error: /sw/bin/mkoctfile-3.6.4 fastlscomplex.cc
...

$ cc --version
Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix

I first noticed the error for clang from LLVM3.4svn.

Alexander Hansen <alexkhansen>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Updated the item)
  • -unavailable- added by mtmiller (Updated the item)
  • -unavailable- added by jordigh (Posted a comment)
  • -unavailable- added by alexkhansen (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 11 Aug 2017 05:40:36 PM UTCjweSummarylssa package: fails to build using llvm libc++ 3.4 and later=>[octave-forge] (lssa) fails to build using llvm libc++ 3.4 and later
    Tue 29 Mar 2016 05:16:53 PM UTCmtmillerPriority5 - Normal=>1 - Later
      Release3.6.4=>other
      Operating SystemMac OS=>Any
      Summarylssa fails to build using clang-3.4 and later=>lssa package: fails to build using llvm libc++ 3.4 and later
    Thu 02 Oct 2014 01:32:35 PM UTCjordighStatusConfirmed=>Patch Submitted
    Thu 02 Oct 2014 01:02:39 PM UTCjordighStatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1