Singular
https://www.singular.uni-kl.de/forum/

Singular 3-0-2beta under OpenBSD3.9
https://www.singular.uni-kl.de/forum/viewtopic.php?f=10&t=1514
Page 1 of 1

Author:  udag [ Fri Aug 04, 2006 11:27 am ]
Post subject:  Singular 3-0-2beta under OpenBSD3.9

Hi,

I'm trying to build Singular 3-0-2beta under OpenBSD3.9.

I download the gmp sources and make a gmp directory under the /Singular-3-0-2 directory
and make and install gmp and found out that gmp uses this "pentium3-pc-openbsd3.9" when running
gmp configure.

To make configure work better I do like this

./configure --host=pentium3-pc-openbsd3.9 --build=pentium3-pc-openbsd3.9 --target=pentium3-pc-openbsd3.9 --with-malloc=system

Configure runs with no errors.

gmake works after after some manual configuration in NTL Configuration File../ntl/config.h

but ends up in this error:
---log ---

gmake[2]: Leaving directory `/home/eraudag/eraudag/proj/temp/byggen/Singular-3-0-2/ntl'
gmake install in factory
gmake[2]: Entering directory `/home/eraudag/eraudag/proj/temp/byggen/Singular-3-0-2/factory'
c++ -c canonicalform.cc -w -fno-implicit-templates -I/home/eraudag/eraudag/proj/temp/byggen/Singular-3-0-2/ix86-openbsd/include -I. -I. -DHAVE_CONFIG_H -O2 -fomit-frame-pointer -fno-rtti -fno-exceptions -o canonicalform.o
In file included from /home/eraudag/eraudag/proj/temp/byggen/Singular-3-0-2/ix86-openbsd/include/gmp.h:54,
from cf_gmp.h:11,
from cf_factory.h:9,
from canonicalform.cc:13:
/usr/include/stddef.h:54: error: syntax error before `wchar_t'
gmake[2]: *** [canonicalform.o] Error 1
gmake[2]: Leaving directory `/home/eraudag/eraudag/proj/temp/byggen/Singular-3-0-2/factory'
gmake install in libfac
/bin/sh: cd: /home/eraudag/eraudag/proj/temp/byggen/Singular-3-0-2/factory/libfac - No such file or directory
gmake install in kernel
/bin/sh: cd: /home/eraudag/eraudag/proj/temp/byggen/Singular-3-0-2/factory/kernel - No such file or directory
gmake install in Singular
/bin/sh: cd: /home/eraudag/eraudag/proj/temp/byggen/Singular-3-0-2/factory/Singular - No such file or directory
gmake install in IntegerProgramming
/bin/sh: cd: /home/eraudag/eraudag/proj/temp/byggen/Singular-3-0-2/factory/IntegerProgramming - No such file or directory
echo "* do not forget to install Singular-3-0-2-share.tar.gz"
* do not forget to install Singular-3-0-2-share.tar.gz
gmake[1]: Leaving directory `/home/eraudag/eraudag/proj/temp/byggen/Singular-3-0-2'

Compilation finished at Fri Aug 4 11:12:17

----------------------------------
How to work around this little problem ?

/Best regards
Ulf D

Author:  Guest [ Mon Sep 18, 2006 4:24 pm ]
Post subject:  Re: Singular on OpenBSD

You may try the following trick:
- copy gmp.h to OpenBSD/include/gmp.h
- edit the copy and remove all lines containing __GMP_DECLSPEC_XX
- change IntegerProgramming/si_gmp.h factory/cf_gmp.h kernel/si_gmp.h
to the single line:
#include <gmp.h>
and recompile.
Hope that helps,
Hans Schoenemann, Singular team

Author:  Guest [ Fri Sep 22, 2006 8:39 am ]
Post subject:  Re: Singular on OpenBSD

Anonymous wrote:
You may try the following trick:
- copy gmp.h to OpenBSD/include/gmp.h
- edit the copy and remove all lines containing __GMP_DECLSPEC_XX
- change IntegerProgramming/si_gmp.h factory/cf_gmp.h kernel/si_gmp.h
to the single line:
#include <gmp.h>
and recompile.
Hope that helps,
Hans Schoenemann, Singular team


It worked! Nice "trick".
Thanks Hans.

ESingular works fine but Singular confuses me with this log

bash-3.1$ ./Singular
SINGULAR / Development
A Computer Algebra System for Polynomial Computations / version 3-0-2
0<
by: G.-M. Greuel, G. Pfister, H. Schoenemann July 2006
FB Mathematik der Universitaet, D-67653 Kaiserslautern
// ** executing /home/eraudag/eraudag/proj/temp/byggen/Singular-3-0-2/LIB/.singularrc
> 3+4;
Singular in free(): error: modified (chunk-) pointer
Singular : signal 6 (v: 3002/2006092109):
Segment fault/Bus error occurred (r:1158906107)
please inform the authors
trying to restart...
fatal flex scanner internal error--end of buffer missed
bash-3.1$

/Ulf D

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/