You are not logged in.

#1 2010-05-03 09:33:59

Beridel
Member
Registered: 2010-05-03
Posts: 1

Can't build ginac which is required for octave-forge

Trying to get octave-forge installed but I can't ginac to build.  First ginac is outdated on AUR, but I went to ginac.de and got the new version, changed the PKGBUILD etc, still the same error.  Here's the error I get:

function.cpp: In member function 'GiNaC::ex GiNaC::function::power(const GiNaC::ex&) const':
function.cpp:1800:15: error: expected type-specifier
function.cpp:1800:15: error: expected ')'
function.cpp:1801:72: error: conversion from 'int*' to 'GiNaC::ex' is ambiguous
ex.h:279:1: note: candidates are: GiNaC::ex::ex(long unsigned int) <near match>
ex.h:273:1: note:                 GiNaC::ex::ex(long int) <near match>
ex.h:267:1: note:                 GiNaC::ex::ex(unsigned int) <near match>
ex.h:261:1: note:                 GiNaC::ex::ex(int) <near match>
make[2]: *** [function.lo] Error 1
make[2]: Leaving directory `/var/tmp/aurbuild/build/ginac/ginac/src/ginac-1.5.7/ginac'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/aurbuild/build/ginac/ginac/src/ginac-1.5.7/ginac'
make: *** [all-recursive] Error 1
==> ERROR: Build Failed.
    Aborting...

Any help would be greatly appreciated!  Thanks in advance.

Offline

#2 2010-05-03 10:33:29

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: Can't build ginac which is required for octave-forge

Can you isolate the failed compilation command and reproduce it from the command line?
Also, have a look (and post) the problematic line (1800 ?) in function.cpp.


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#3 2010-05-03 10:33:51

yannsen
Member
From: Germany
Registered: 2010-05-03
Posts: 18

Re: Can't build ginac which is required for octave-forge

Same error here, but there is a hint in the INSTALL file:

INSTALL wrote:

Known to work with:
- Linux on x86 and x86_64 using GCC 3.4, 4.0, 4.1, and 4.2.
- Linux on Alpha using GCC 3.4.
- Solaris on Sparc using GCC 3.4.
- Windows on x86 using GCC 3.4 (MinGW)

Known not to work with:
- GCC 4.3.0 due to the compiler bug,
   see <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35548>.
- GCC 2.96 or earlier because proper exception and standard library support
   is missing there.

Offline

#4 2010-05-03 10:54:20

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: Can't build ginac which is required for octave-forge

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35548 is a different issue: it's fixed in 4.3.1 and it's a run time failure, while the OP reports a compilation failure.


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#5 2010-05-03 13:44:06

yannsen
Member
From: Germany
Registered: 2010-05-03
Posts: 18

Re: Can't build ginac which is required for octave-forge

Also, have a look (and post) the problematic line (1800 ?) in function.cpp.

1798    // No derivative defined? Then return abstract derivative object
1799    if (opt.power_f == NULL)
1800        return (new power::power(*this, power_param))->setflag(status_flags::dynallocated |
1801                                                   status_flags::evaluated);

Offline

#6 2010-05-04 18:52:42

Imajie
Member
Registered: 2010-05-04
Posts: 1

Re: Can't build ginac which is required for octave-forge

yannsen wrote:

Also, have a look (and post) the problematic line (1800 ?) in function.cpp.

1798    // No derivative defined? Then return abstract derivative object
1799    if (opt.power_f == NULL)
1800        return (new power::power(*this, power_param))->setflag(status_flags::dynallocated |
1801                                                   status_flags::evaluated);

I believe I've found a solution. Changing power::power to GiNaC::power removes the compile error.

1800        return (new GiNaC::power(*this, power_param))->setflag(status_flags::dynallocated |
1801                                                   status_flags::evaluated);

Offline

#7 2010-05-04 20:17:56

yannsen
Member
From: Germany
Registered: 2010-05-03
Posts: 18

Re: Can't build ginac which is required for octave-forge

@Imajie

It also works for me.

I made a new PKGBUILD with a patch... http://rapidshare.com/files/385812806/g … src.tar.gz

Last edited by yannsen (2010-05-10 22:01:38)

Offline

#8 2010-05-29 16:47:21

xangelux
Member
Registered: 2010-05-29
Posts: 73

Re: Can't build ginac which is required for octave-forge

Thank you for the patch, It helped me a lot, I'm new in Archlinux and needed the octave-forge package for my school.:lol:

Offline

Board footer

Powered by FluxBB