You are not logged in.
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
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
Same error here, but there is a hint in the INSTALL file:
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
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
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
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
@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
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