LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-13-2019, 10:40 AM   #1
Zexuo
Member
 
Registered: Mar 2015
Location: Florida
Distribution: Slackware
Posts: 64

Rep: Reputation: Disabled
Slackware-current: gcc-gdc just lost libgphobos.a and libgdruntime.a


Sometime this past week the gcc-gdc-9.2.0 package in Slackware-current lost the static libraries libgphobos.a and libgdruntime.a. Even simple D programs will not link (unless perhaps dynamically with the *.so versions of the above libraries, which remain).
 
Old 11-13-2019, 12:33 PM   #2
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,561

Rep: Reputation: 8603Reputation: 8603Reputation: 8603Reputation: 8603Reputation: 8603Reputation: 8603Reputation: 8603Reputation: 8603Reputation: 8603Reputation: 8603Reputation: 8603
Working fine here, tested with a simple hello.d.
 
Old 11-13-2019, 12:45 PM   #3
Zexuo
Member
 
Registered: Mar 2015
Location: Florida
Distribution: Slackware
Posts: 64

Original Poster
Rep: Reputation: Disabled
Running `gdc hello.d`, I get the message:

/usr/bin/ld: cannot find -lgphobos
/usr/bin/ld: cannot find -lgdruntime
collect2: error: ld returned 1 exit status

My locate database has /usr/lib/libgphobos.a and /usr/lib/libgdruntime.a but these files do not appear in the filesystem or in the gcc-gdc package file list (I updated current last night). Did you use a different command?
 
Old 11-13-2019, 01:14 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107
The two static libraries were removed from the gcc-gdc package during the rebuild earlier this week: https://git.slackware.nl/current/dif...0f557400b3206d
 
Old 11-13-2019, 01:46 PM   #5
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,561

Rep: Reputation: 8603Reputation: 8603Reputation: 8603Reputation: 8603Reputation: 8603Reputation: 8603Reputation: 8603Reputation: 8603Reputation: 8603Reputation: 8603Reputation: 8603
Ah, no wonder it was working here... it seems my machine still has the static libraries although they were removed from the gcc-gdc package. I'd previously removed the static libraries from gcc-go and it continued to work as expected, but it seems there's an issue with the shared D libraries. Not sure why they don't work when the static libraries are missing, but I'll go ahead and add the static libraries back. They'll be the biggest static libraries we ship, but for now it looks like we'll have to take that hit.
 
Old 11-13-2019, 01:49 PM   #6
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, LFS, Manjaro (for gaming)
Posts: 570

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413
I haven't come across anything written in "d" but I can't compile this program:

Code:
import std.stdio;
void main()
{
    writeln("Hello, World!");
}
Code:
[grogan@getstuffed:~]$ gdc -o hello hello.d
/usr/bin/ld: cannot find -lgphobos
/usr/bin/ld: cannot find -lgdruntime
collect2: error: ld returned 1 exit status
However, if I do this, I can:

Code:
[grogan@getstuffed:~]$ gdc -o hello -shared-libphobos hello.d
[grogan@getstuffed:~]$ ./hello
Hello, World!
 
2 members found this post helpful.
Old 11-13-2019, 02:04 PM   #7
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,561

Rep: Reputation: 8603Reputation: 8603Reputation: 8603Reputation: 8603Reputation: 8603Reputation: 8603Reputation: 8603Reputation: 8603Reputation: 8603Reputation: 8603Reputation: 8603
Quote:
Originally Posted by TheRealGrogan View Post
However, if I do this, I can:

Code:
[grogan@getstuffed:~]$ gdc -o hello -shared-libphobos hello.d
[grogan@getstuffed:~]$ ./hello
Hello, World!
Thanks for the clue
 
Old 11-13-2019, 03:51 PM   #8
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, LFS, Manjaro (for gaming)
Posts: 570

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413
Quote:
Originally Posted by volkerdi View Post
Thanks for the clue
My pleasure to be able to help, I got it from the man page for gdc.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Civilization VI comes to Linux, GDC 2017, and more open gaming news LXer Syndicated Linux News 0 02-11-2017 09:36 PM
LXer: Source Engine 2, Steam Link And More Announced At GDC LXer Syndicated Linux News 0 03-04-2015 10:20 AM
GDC: Porting Source to Linux dugan Linux - News 0 07-14-2013 11:50 PM
LXer: Valve's GDC slides on porting Source to Linux! LXer Syndicated Linux News 0 04-05-2013 03:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration