WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: libgmp  (Read 3977 times)

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
libgmp
« on: June 03, 2009, 07:50:54 PM »
Thanks to robc for libgmp:

Code: [Select]
Title:          libgmp.tcel
Description:    Library for arbitrary precision arithmetic (TESTING)
Version:        4.3.1
Author:         various (http://gmplib.org/manual/Contributors.html#Contributors)
Original-site:  http://gmplib.org/
Copying-policy: LGPL
Size: 299.9k
Extension_by:   robc
Comments:       

126/126 tests passed, 100% pass rate

Library and header files.

This extension is PPI compatible.

Change-log:     2009/5/6  Original
2009/6/3  Updated to 4.3.1, rebuilt for TC 2.X
Current: 2009/6/3  Updated to 4.3.1, rebuilt for TC 2.X


Code: [Select]
Title:          libgmp.tczl
Description:    Library for arbitrary precision arithmetic (TESTING)
Version:        4.3.1
Author:         various (http://gmplib.org/manual/Contributors.html#Contributors)
Original-site:  http://gmplib.org/
Copying-policy: LGPL
Size: 316k
Extension_by:   robc
Comments:       

126/126 tests passed, 100% pass rate

Library and header files.

Change-log:     2009/5/6 Original
2009/6/3  Updated to 4.3.1, rebuilt for TC 2.X
Current: 2009/6/3  Updated to 4.3.1, rebuilt for TC 2.X


Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: libgmp
« Reply #1 on: June 23, 2009, 10:04:55 PM »
This extension has been updated to fix permissions.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: libgmp
« Reply #2 on: July 14, 2009, 07:27:04 AM »
Would it be possible to recompile this extension with the switch "--enable-cxx" to build the libgmpxx c++ lib?

Edit: ..and if possible, build it with CPPFLAGS=-fexceptions ./configure ... so that I can use the extension to build ppl/cloog
« Last Edit: July 14, 2009, 08:49:48 AM by Juanito »

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: libgmp
« Reply #3 on: July 15, 2009, 11:51:40 AM »
I rebuilt libgmp with those options but libgmpcxx is failing in some of its tests and is causing make check to abort. All of the test for libgmp pass.
The failed tests are:
t-assign
t-constr
t-rand
I'll see what I can find about this.

Edit: After looking into this further, the tests are failing to catch the expected exceptions. I editted the test source code to try and catch all exceptions but still does not work...this looks like a bug in the gcc exception handling?
« Last Edit: July 15, 2009, 07:11:31 PM by robc »
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: libgmp
« Reply #4 on: July 24, 2009, 10:14:22 AM »
I got the same 3 tests failing.

I used gmp, mpfr, ppl and cloog to build gcc-4.4.0 making two ./configure runs:

1. With CFLAGS and CXXFLAGS unset
2. Adding "-march=i486 -mtune=i686 -pipe" to whatever CFLAGS and CXXFLAGS resulted from 1. above

Then when I recompiled gmp with gcc-4.4.0, all of the tests passed.

I'll try again with the tc version of gcc and see what happens

Edit: so even when I recompile gcc-4.2.2, the same three tests fail.
« Last Edit: July 24, 2009, 11:46:44 AM by Juanito »

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: libgmp
« Reply #5 on: July 24, 2009, 01:01:21 PM »
Quote
Edit: so even when I recompile gcc-4.2.2, the same three tests fail.
So this would mean its a bug in gcc and not the configuration or libstdc++?
Is gcc going to be updated to 4.4.0 then?
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: libgmp
« Reply #6 on: July 25, 2009, 01:29:18 AM »
tinycore was compiled with gcc-4.2.2, so I'm not sure we should replace it.

I could post gcc-4.4.0 (if you post libgmp with the c++ lib  :) ) for those that would like to play with it? Note that there are a couple of gcc-4.2.2 libs in the base, which might clash with any newer versions of gcc in /usr/local

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: libgmp
« Reply #7 on: July 31, 2009, 04:57:30 PM »
If you already have libgmp built with gcc-4.4.0 then you can go ahead and submit it. Otherwise I can rebuild libgmp if the gcc-4.4.0 is posted.
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: libgmp
« Reply #8 on: August 01, 2009, 04:01:57 AM »
OK - I'll try to get around to this in the next few days.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: libgmp
« Reply #9 on: August 03, 2009, 04:10:30 PM »
update posted:
Code: [Select]
Title:          libgmp.tcel
Description:    Library for arbitrary precision arithmetic (TESTING)
Version:        4.3.1
Author:         various (http://gmplib.org/manual/Contributors.html#Contributors)
Original-site:  http://gmplib.org/
Copying-policy: LGPL
Size: 344KB
Extension_by:   robc/juanito
Comments:       

126/126 tests passed, 100% pass rate

Library and header files.

This extension is PPI compatible.

Change-log:     2009/5/6  Original
2009/6/3  Updated to 4.3.1, rebuilt for TC 2.X
                2009/06/03
                re-compiled to add libgmpxx and used gcc-4.4.0 so that
                ..all gmpxx tests pass.
Current: 2009/07/24