Opened 12 years ago

Last modified 6 years ago

#33045 new defect

cadabra: build fails with clang

Reported by: iteloo@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: clang Cc:
Port: cadabra

Description

compiling with llvm-gcc-4.2 works.

Attachments (1)

Portfile.diff (1.8 KB) - added by jmroot (Joshua Root) 6 years ago.
Update to 1.46

Download all attachments as: .zip

Change History (8)

comment:1 Changed 12 years ago by iteloo@…

Cc: iteloo@… added

Cc Me!

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: iteloo@… removed
Keywords: clang added
Summary: [cadabra] [@1.29] [Default compiler does not work with Xcode 4.2]cadabra: build fails with clang

It would be helpful if you could attach the main.log file showing the build failure with clang.

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to gwright@…

comment:4 Changed 12 years ago by jmroot (Joshua Root)

Log: http://build.macports.org/builders/buildports-lion-x86_64/builds/2693/steps/compile/logs/stdio/text

The code appears to be genuinely incorrect. Relevant errors are:

widgets.cc:356:15: error: redefinition of 'err' with a different type
                std::string err=handle_latex_errors(result);
                            ^
widgets.cc:350:26: note: previous definition is here
        catch(std::logic_error& err) {
                                ^

and

In file included from display.cc:24:
In file included from ./modules/algebra.hh:29:
./youngtab.hh:587:23: error: invalid use of nonstatic data member 'rows'
                if(++column_number==rows[row_number]) {
                                    ^~~~
./youngtab.hh:602:18: error: invalid use of nonstatic data member 'rows'
                        column_number=rows[row_number].size()-1;
                                      ^~~~

Temporarily blacklisted clang in r95560 until a fix can be applied.

comment:5 Changed 10 years ago by mf2k (Frank Schima)

Owner: changed from gwright@… to macports-tickets@…

gwright has retired. See #43784.

comment:6 Changed 6 years ago by jmroot (Joshua Root)

This should be fixed upstream as of 1.34. Cadabra 2 is also available BTW.

Changed 6 years ago by jmroot (Joshua Root)

Attachment: Portfile.diff added

Update to 1.46

comment:7 Changed 6 years ago by jmroot (Joshua Root)

Untested update to 1.46 attached. Can't be installed because modglue doesn't build, see #56523. Might be better to just switch to version 2.x.

Note: See TracTickets for help on using tickets.