x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

UE4 4.21 Increased Linux Binary Size

We just upgraded to from 4.20 to 4.21 and our Linux standalone binaries have grown from ~300MB to ~3GB.

I've diffed the UBT build files for Linux and nothing is jumping out at me that would cause the issue. We are using the cross compile toolchain on windows and have updated to using v12_clang-6.0.1-centos7. No significant change in Win64 standalone binary size.

Is anyone else seeing this? Any ideas as to what is going wrong?

Product Version: UE 4.21
Tags:
more ▼

asked Nov 28 '18 at 07:47 PM in Linux

avatar image

Todd Smith
1 1 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

You are talking only about the debug info, right, the stripped binaries are roughly the same? If so, two things might have contributed: the debug info for generated code is now on by default (you can disable it in Target.cs file of a particular target or in TargetRules.cs globally, set bDisableDebugInfoForGeneratedCode=true), and -fstandalone-debug was enabled. This was all done in attempts to improve the debug experience, however -fstandalone-debug has been undone for 4.21.1 (in monolithic builds), see this commit.

more ▼

answered Nov 28 '18 at 08:01 PM

avatar image

RCL STAFF
2.7k 59 6 88

avatar image Todd Smith Nov 28 '18 at 08:35 PM

Excellent. That fixed the issue. Binary is back down to ~250MB.

I was referring to the main game binary being built. i.e. YourGameNameServer without any extension.

Also, I ran the strip tool on the previous 3GB binary with --strip-all and it brought it down to ~370MB

Thanks so much for the help.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question