Welcome to iraf.net Friday, March 29 2024 @ 06:17 AM GMT


 Forum Index > Help Desk > Non-IRAF Software New Topic Post Reply
 Yet another question about DAOSPEC!
   
astkholl
 06/23/2015 09:29AM (Read 1360 times)  
+----
Newbie

Status: offline


Registered: 06/22/2015
Posts: 3
Hi,

I've been having some issues installing daospec on my Linux machine running Ubuntu 14.04.

The error I'm getting is:

/usr/bin/ld: cannot find -lgcc_s

I originally had a similar problem and found the fix was to use the command:

LIBRARY_PATH=/usr/lib/x86_64-linux-gnu make daospec

instead of just 'make daospec', so it was pointed to the correct folder. I've looked in this folder and I can't find anything with lgcc in the name, but I do have libgcc files in the x86_64-linux-gnu folder. Is this a problem because I don't have the libcompat.a library? And if so, where can I get it from for my build?

Thanks!

Katie

 
Profile Email
 Quote
astkholl
 06/23/2015 09:31AM  
+----
Newbie

Status: offline


Registered: 06/22/2015
Posts: 3
Ah I forgot to mention that I'm using the g77 compiler.

 
Profile Email
 Quote
fitz
 06/24/2015 06:25PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040

Even though you may be using the G77 compiler for DAOSPEC itself, any IRAF libs would have been built using the native XC compiler that calls F2C/GCC and so you'll need to include the GCC libs in the link command. The libcompat.a was needed for older linux distributions and could be removed, however I'd suggest adding "-lgcc -lgcc_s" to the Makefile link libraries. You may need to also add "-lf2c" to include the F2C library, if this isn't already installed on your system you can explicitly include the version in the iraf$unix/bin.linux64 directory.

I don't have DAOSPEC available myself, but post any error messages you see and I'll try to talk you through it.

 
Profile Email
 Quote
astkholl
 06/25/2015 02:35PM  
+----
Newbie

Status: offline


Registered: 06/22/2015
Posts: 3
Thanks for your help!

I added -lgcc_s and -lgcc to the libraries in the Makefile but still get errors. I had to link to the libf2c.a in the folder you said, which I guessed was the same thing and I didn't have a f2c.a file on my machine.

I now get the same error twice:

/usr/bin/ld: cannot find -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
make: *** [daospec] Error 1

I've searched the computer for a file named lgcc_s or even lgcc and there's nothing. I have a libgcc-compat.c and libgcc-compat.s but that's the closest. Will these do the same thing or will I need to download some new files?

Thanks so much again!

Katie

 
Profile Email
 Quote
fitz
 06/26/2015 05:57AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
If you Google "ubuntu libgcc_s missing" you'll find this is a common problem. Apparently the missing libgcc_s.so.1 library file is part of the libgcc1 package. So, try installing this using

% sudo apt-get install libgcc1

 
Profile Email
 Quote
   
Content generated in: 0.14 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login