Raised This Month: $51 Target: $400
 12% 

*.so file are too big after compile


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
keygens
Senior Member
Join Date: Mar 2010
Location: Somewhere
Old 10-29-2015 , 19:06   *.so file are too big after compile
Reply With Quote #1

Hello. After compiling sourcemod on linux, files in folders: bin/ and extensions/ are too big (4-5 MB) Sourcemod can't running, because files really big. What alliedmooders uses for compression * .so files on linux? Thanks.
keygens is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 10-29-2015 , 19:36   Re: *.so file are too big after compile
Reply With Quote #2

You have a build with debug symbols, configure with --enable-optimize. This will not be affecting loading however - you've done something else wrong (probably building with GCC rather than Clang.)
__________________
asherkin is offline
keygens
Senior Member
Join Date: Mar 2010
Location: Somewhere
Old 10-29-2015 , 19:58   Re: *.so file are too big after compile
Reply With Quote #3

Quote:
Originally Posted by asherkin View Post
You have a build with debug symbols, configure with --enable-optimize. This will not be affecting loading however - you've done something else wrong (probably building with GCC rather than Clang.)
Need to compile with clang? Ohh... mine package done by gcc. Probably this is a key for solution. Thanks.

Last edited by keygens; 10-29-2015 at 19:58.
keygens is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 10-30-2015 , 01:43   Re: *.so file are too big after compile
Reply With Quote #4

Quote:
Originally Posted by keygens View Post
Need to compile with clang? Ohh... mine package done by gcc. Probably this is a key for solution. Thanks.
Read more, and assume less!

Like Asherkin stated. You probably compiled with debug settings, hence the bigger file size. Compilers are not to be blamed here.
__________________
Spirit_12 is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 10-30-2015 , 07:16   Re: *.so file are too big after compile
Reply With Quote #5

Quote:
Originally Posted by Spirit_12 View Post
Read more, and assume less!

Like Asherkin stated. You probably compiled with debug settings, hence the bigger file size. Compilers are not to be blamed here.
And if you read asherkin's response fully then read what you quoted, you will notice it was GCC's fault for the big .so size
WildCard65 is offline
Ade
I love purple
Join Date: May 2010
Old 10-30-2015 , 08:27   Re: *.so file are too big after compile
Reply With Quote #6

Quote:
Originally Posted by WildCard65 View Post
And if you read asherkin's response fully then read what you quoted, you will notice it was GCC's fault for the big .so size
filesize no, loading ye (from what i understood)
__________________
Ade is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 10-30-2015 , 08:30   Re: *.so file are too big after compile
Reply With Quote #7

Size difference between Clang and GCC is nominal. I would still blame the debug option for the larger size.
__________________
Spirit_12 is offline
keygens
Senior Member
Join Date: Mar 2010
Location: Somewhere
Old 10-30-2015 , 09:59   Re: *.so file are too big after compile
Reply With Quote #8

dbi.mysql.ext.so = 7.5 MB. sourcemod.logic.so = 4.0 MB. Compiled with gcc 4.9, after, compiled with clang, and binaries have same size. What i'm doing wrong? Const for debug set to 0:
Code:
('--enable-debug', action='store_const', const='0', dest='debug', help='Enable debugging symbols')
Correct? But binaries still really big. Configure.py are originally from https://github.com/alliedmodders/sou...r/configure.py

Code:
python ../configure.py --enable-optimize (are not help too, binaries still alot of MB)

Last edited by keygens; 10-30-2015 at 10:09.
keygens is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 10-30-2015 , 10:16   Re: *.so file are too big after compile
Reply With Quote #9

Looks like someone derped this again, add --symbol-files as well.
__________________
asherkin is offline
keygens
Senior Member
Join Date: Mar 2010
Location: Somewhere
Old 10-30-2015 , 11:05   Re: *.so file are too big after compile
Reply With Quote #10

Quote:
Originally Posted by asherkin View Post
Looks like someone derped this again, add --symbol-files as well.
Need to use with --enable-optimize?
keygens is offline
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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode