You are not logged in.

#1 2005-10-02 21:46:29

jftaylor21
Member
From: Arch Linux Forums
Registered: 2004-02-21
Posts: 237

Problems building ginac [Problem Solved]

Hi, I currently maintain ginac in the aur. Today, I was adding a part to the pkgbuild to remove .la files, but now it does not build. It used to build with the old gcc, but I can't seem to get it to build with gcc 4.0.2. Here is the pkgbuild:

#Contributor: Jason Taylor <jftaylor21@gmail.com>
#Contributor: rafal
pkgname=ginac
pkgver=1.3.2
pkgrel=2
pkgdesc="GiNaC is Not a CAS - Computer Algebra System"
url="http://www.ginac.de"
depends=()
makedepends=('cln>=1.1.9' 'transfig')
conflicts=()
replaces=()
backup=()
install=
source=(ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/$pkgname-$pkgver.tar.bz2)
md5sums=('0074aadac59a0ca57293b885ca8f8454')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1

#if you want documentation uncomment the following lines
# make html || return 1
# make dvi || return 1
# make ps || return 1
# make pdf || return 1

  make check || return 1
  make DESTDIR=$startdir/pkg install
  find $startdir/pkg -name '*.la' -exec rm {} ;
}

Many thanks for all your help.

Offline

#2 2005-10-02 22:23:01

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Problems building ginac [Problem Solved]

Post the error you got. 
It might need to be patched to work with gcc4.

Offline

#3 2005-10-02 23:42:43

jftaylor21
Member
From: Arch Linux Forums
Registered: 2004-02-21
Posts: 237

Re: Problems building ginac [Problem Solved]

Here is the complete output...

==> Making package: ginac 1.3.2-2 (Sun Oct  2 18:48:46 CDT 2005)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==>     Using local copy of ginac-1.3.2.tar.bz2
==> Validating source files with MD5sums
    ginac-1.3.2.tar.bz2 ... Passed
==> Extracting Sources...
==>     tar --use-compress-program=bzip2 -xf ginac-1.3.2.tar.bz2
==> Removing existing pkg/ directory...
==> Starting build()...
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for a BSD-compatible install... /bin/install -c
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gfortran option to produce PIC... -fPIC
checking if gfortran PIC flag -fPIC works... yes
checking if gfortran supports -c -o file.o... yes
checking whether the gfortran linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking for long... yes
checking size of long... 4
checking for long long... yes
checking size of long long... 8
checking for long double... yes
checking size of long double... 12
checking for unistd.h... (cached) yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
checking for tgetent... no
checking for tgetent in -lncurses... yes
checking for readline in -lreadline... yes
checking for version of libreadline... 5.0
checking iosfwd usability... yes
checking iosfwd presence... yes
checking for iosfwd... yes
checking iostream usability... yes
checking iostream presence... yes
checking for iostream... yes
checking vector usability... yes
checking vector presence... yes
checking for vector... yes
checking list usability... yes
checking list presence... yes
checking for list... yes
checking map usability... yes
checking map presence... yes
checking for map... yes
checking string usability... yes
checking string presence... yes
checking for string... yes
checking sstream usability... yes
checking sstream presence... yes
checking for sstream... yes
checking typeinfo usability... yes
checking typeinfo presence... yes
checking for typeinfo... yes
checking stdexcept usability... yes
checking stdexcept presence... yes
checking for stdexcept... yes
checking algorithm usability... yes
checking algorithm presence... yes
checking for algorithm... yes
checking limits usability... yes
checking limits presence... yes
checking for limits... yes
checking for cln-config... /usr/bin/cln-config
checking for CLN - version >= 1.1.0... yes, 1.1.9
checking for doxygen... no
checking for latex... /usr/bin/latex
checking for pdflatex... /usr/bin/pdflatex
checking for makeindex... /usr/bin/makeindex
checking for dvips... /usr/bin/dvips
checking for fig2dev... /usr/X11R6/bin/fig2dev
configure: creating ./config.status
config.status: creating Makefile
config.status: creating GiNaC.spec
config.status: creating ginac-config
config.status: creating ginac-config.1
config.status: creating ginac.pc
config.status: creating ginac/Makefile
config.status: creating ginac/version.h
config.status: creating check/Makefile
config.status: creating ginsh/Makefile
config.status: creating ginsh/ginsh.1
config.status: creating tools/Makefile
config.status: creating tools/viewgar.1
config.status: creating doc/Makefile
config.status: creating doc/tutorial/Makefile
config.status: creating doc/reference/Makefile
config.status: creating doc/reference/DoxyfileHTML
config.status: creating doc/reference/DoxyfileTEX
config.status: creating doc/reference/DoxyfilePDF
config.status: creating doc/reference/Doxyfooter
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default commands
Configuration of GiNaC 1.3.2 done. Now type "make".
make  all-recursive
make[1]: Entering directory `/var/abs/local/ginac/src/ginac-1.3.2'
Making all in ginac
make[2]: Entering directory `/var/abs/local/ginac/src/ginac-1.3.2/ginac'
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I..     -march=i686 -O2 -pipe -MT add.lo -MD -MP -MF ".deps/add.Tpo" 
  -c -o add.lo `test -f 'add.cpp' || echo './'`add.cpp; 
then mv -f ".deps/add.Tpo" ".deps/add.Plo"; 
else rm -f ".deps/add.Tpo"; exit 1; 
fi
 g++ -DHAVE_CONFIG_H -I. -I. -I.. -march=i686 -O2 -pipe -MT add.lo -MD -MP -MF .deps/add.Tpo -c add.cpp  -fPIC -DPIC -o .libs/add.o
add.cpp:35: error: no matching function for call to 'GiNaC::registered_class_options::print_func(void (GiNaC::add::*)(const GiNaC::print_context&, unsigned int)const)'
registrar.h:73: note: candidates are: GiNaC::registered_class_options& GiNaC::registered_class_options::print_func(const GiNaC::print_functor&) [with Ctx = GiNaC::print_context]
add.cpp:35: error: request for member 'print_func' in '&GiNaC::add::do_print_latex', which is of non-class type 'void (GiNaC::add::*)(const GiNaC::print_latex&, unsigned int)const'
add.cpp:35: error: request for member 'print_func' in '&GiNaC::add::do_print_csrc', which is of non-class type 'void (GiNaC::add::*)(const GiNaC::print_csrc&, unsigned int)const'
add.cpp:35: error: request for member 'print_func' in '&GiNaC::expairseq::do_print_tree', which is of non-class type 'void (GiNaC::expairseq::*)(const GiNaC::print_tree&, unsigned int)const'
add.cpp:35: error: expected primary-expression before '(' token
add.cpp:35: error: no matching function for call to 'GiNaC::registered_class_options::print_func(void (GiNaC::add::*)(const GiNaC::print_context&, unsigned int)const)'
registrar.h:73: note: candidates are: GiNaC::registered_class_options& GiNaC::registered_class_options::print_func(const GiNaC::print_functor&) [with Ctx = GiNaC::print_context]
add.cpp:35: error: expected primary-expression before '>' token
add.cpp:35: error: request for member 'print_func' in '&GiNaC::add::do_print_latex', which is of non-class type 'void (GiNaC::add::*)(const GiNaC::print_latex&, unsigned int)const'
add.cpp:35: error: expected primary-expression before '>' token
add.cpp:35: error: request for member 'print_func' in '&GiNaC::add::do_print_csrc', which is of non-class type 'void (GiNaC::add::*)(const GiNaC::print_csrc&, unsigned int)const'
add.cpp:35: error: expected primary-expression before '>' token
add.cpp:35: error: request for member 'print_func' in '&GiNaC::expairseq::do_print_tree', which is of non-class type 'void (GiNaC::expairseq::*)(const GiNaC::print_tree&, unsigned int)const'
add.cpp:35: error: expected primary-expression before '>' token
make[2]: *** [add.lo] Error 1
make[2]: Leaving directory `/var/abs/local/ginac/src/ginac-1.3.2/ginac'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/abs/local/ginac/src/ginac-1.3.2'
make: *** [all] Error 2
==> ERROR: Build Failed.  Aborting...

Offline

#4 2005-10-05 22:27:20

jftaylor21
Member
From: Arch Linux Forums
Registered: 2004-02-21
Posts: 237

Re: Problems building ginac [Problem Solved]

Thanks to Tomas Groth, who found a patch, ginac now builds with gcc-4.0.2

Offline

Board footer

Powered by FluxBB