Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Singular 3-0-2beta under OpenBSD3.9
PostPosted: Fri Aug 04, 2006 11:27 am 

Joined: Fri Aug 04, 2006 11:21 am
Posts: 1
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Singular on OpenBSD
PostPosted: Mon Sep 18, 2006 4:24 pm 
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


Report this post
Top
  
Reply with quote  
 Post subject: Re: Singular on OpenBSD
PostPosted: Fri Sep 22, 2006 8:39 am 
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


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Fri May 13, 2022 11:00 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group