WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: gcc libs  (Read 4038 times)

Offline Kingdomcome

  • Sr. Member
  • ****
  • Posts: 286
gcc libs
« on: October 03, 2009, 09:04:48 AM »
Ive noticed there are a few extensions that require one or more of gcc's shared libs to run, including one that I maintain. Currently, I and the others (I believe) are simply copying the libs into the extension during creation which causes extension sizes to increase slightly and the same files getting installed multiple times possibly.  I would like to propose that the shared libs in the gcc extension to be split off so that they could become a dependency of these extensions.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: gcc libs
« Reply #1 on: October 03, 2009, 09:40:06 AM »
There's libgomp, libssp, libmudflapth and libmudflap - which ones did you have in mind?


Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: gcc libs
« Reply #2 on: October 03, 2009, 10:25:52 AM »
Why not all of them? All can be used by apps, not just gcc.
The only barriers that can stop you are the ones you create yourself.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: gcc libs
« Reply #3 on: October 03, 2009, 10:30:11 AM »
libgomp.so is required by ImageMagick and GraphicsMagick. Currently inkscape is listed as a dependency for these just to have libgomp.so
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: gcc libs
« Reply #4 on: October 03, 2009, 11:01:30 AM »
Since the combined size of the gcc shared libs in /usr/local/lib add to only 225kb, my vote would be to have them in a gcc-libs extension to be used by apps during runtime and to be a dep of course of gcc.

That way when gcc is updated, we don't have to hunt down each extension that contains gcc lib files and update the libs in them when gcc is updated.  If those files are left in the extensions after the next gcc update, they would cause conflict with the newer gcc.  The size increase of extensions packing gcc libs in them is less of a concern than the conflict that would later occur after gcc update, but the less size would be a bonus. 

This would make an easier transition whenever the toolchain is updated.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: gcc libs
« Reply #5 on: October 03, 2009, 11:19:11 AM »
For me sounds OK.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: gcc libs
« Reply #6 on: October 03, 2009, 01:24:49 PM »
I do wonder if they are as version-sensitive as libstdc++. Anyway, even in that case, separation makes things easier.
The only barriers that can stop you are the ones you create yourself.

Offline Kingdomcome

  • Sr. Member
  • ****
  • Posts: 286
Re: gcc libs
« Reply #7 on: October 03, 2009, 06:38:27 PM »
It seems like the decision has already been made to split alll 3 shared libs out.  I agree with that totally.  Ive personally notices libssp being in a couple extensions and also read the libgomp discussion on the forum. So it just made sense to me to suggest this.  Thanks for the quick replies and action.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: gcc libs
« Reply #8 on: October 04, 2009, 01:31:00 AM »
gcc.tcz and gcc_libs.tczl posted

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: gcc libs
« Reply #9 on: October 04, 2009, 03:25:48 AM »
gcc_libs.tczl must be added to compiletc dependency list.

BTW I think compiletc.tcz must be renamed to  compiletc.tczl
« Last Edit: October 04, 2009, 03:27:34 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: gcc libs
« Reply #10 on: October 04, 2009, 05:47:18 AM »
compiletc.tcz.dep modified.

I don't think the name needs to be changed to tczl, the tczl on the individual packages would invoke ldconfig, no?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: gcc libs
« Reply #11 on: October 04, 2009, 06:24:47 AM »
I don't think the name needs to be changed to tczl, the tczl on the individual packages would invoke ldconfig, no?

Good question, I do not know. However if the result of installing it is installation of libraries it is more logical to name .tczl
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."