You are not logged in.

#1 Yesterday 22:05:46

PanosG
Member
Registered: Yesterday
Posts: 4

libgmp

Greetings everyone, this is my first post on the forum, tho I've found many answers to my questions over here.

I'm having some issues installing a custom C library, my issue is with GMP library.

Although all libgmp.* files exist under /usr/local the configuration of the library can't find the library gmp, the gmp.h header file is located successfully tho which is in the same sub-directory.

Any thoughts?

Thanks for your contribution!

Offline

#2 Yesterday 22:23:36

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 7,982
Website

Re: libgmp

Please share more details about what it is you're trying to accomplish. Why do you have libgmp files present under /usr/local? How have you accomplished this? Why aren't you using the gmp package from [extra]? How are you building/installing this custom library? Please post the exact messages you get when the configure process fails.

Mod note: Moving to NC.


Sakura:-
Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: nVidia GeForce GTX 970 // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 Yesterday 22:40:04

PanosG
Member
Registered: Yesterday
Posts: 4

Re: libgmp

The libgmp files where already installed on my machine from the official repo. Since I couldn't get the library built with this, I downloaded gmp from gmplib.org/#DOWNLOAD and built this package.
By default the libgmp files of this package were installed under /user/local/lib & usr/local/include respectively.

The way I execute the build command for my library is with : ./configure --without-sfsuser --without-sfsgroup --with-dmalloc.
dmalloc is another library built given to me and build successfully. I also provided --with-gmp=/usr/local in the configure command to directly provide the path to gmp files, tho it's already set on the configuration script with the same location.

The library was given to me by my professor, it's not my own work, i'm just trying to build it to compile my source code. The configuration script was already created and I was given some directions but libgmp is
stopping the build.

whereis libgmp returns the files located under /usr/local/lib and /usr/lib.

Thanks

Offline

#4 Yesterday 22:52:28

loqs
Member
Registered: 2014-03-06
Posts: 4,922

Re: libgmp

What were the actual errors when you tried to use the arch provided libgmp?  If you can not share this project can you provide an equivalent minimal reproducer of the issue?

Offline

#5 Today 08:01:59

PanosG
Member
Registered: Yesterday
Posts: 4

Re: libgmp

The error comes for the build, the configure script can't find the libgmp library, although it detects the gmp.h header file correctly.

Offline

#6 Today 09:44:10

Allan
Supreme Leader
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,727
Website

Re: libgmp

We need the actual error.  Look in config.log.

Offline

#7 Today 15:48:58

PanosG
Member
Registered: Yesterday
Posts: 4

Re: libgmp

Greetings,
ok so I've managed to fix the issue with libgmp it was actually something I didn't notice on to config.log file and managed to execute ./configure successfully.

As I've said before, it's a legacy library, in fact the professor is only sure it runs on Ubuntu 7 and kernel version 2.2 which is something I have confirmed also.

After ./configure comes the make & make install process, I've fixed some issues proposed during this operation but I believe, I have to downgrade my gcc/g++ compiler down to 4.x version which was running on my Ubuntu 7 VM and it worked flawless. I can't install the gcc43 from AUR because after the installer runs for about 5-10min it cancels the build with the error that yaourt_tmp is out of space. My machine has 8GB of RAM , how can this be possible? When trying to install gcc43 it first downloads and builds gcc49. Any clues about that?

Offline

Board footer

Powered by FluxBB