By any chance, are you running under VirtualBox or other virtual VM? I
remember some years ago running into an issue where a program would try to
write to a shared directory tree under VirtualBox, and replacing writes
turned into appending writes, causing innocent small writes to get
amplified to several gigs. If so, does that happen if running outside a
virtualized environment?

That's just a long shot, but your description reminded me of that issue I
had.

2014-12-19 22:06 GMT+02:00 Alon Zakai <[email protected]>:
>
> That sounds strange. The output library is bigger than the input files,
> and contains lots of empty space? Is it functional otherwise though?
>
> Do you have a testcase that shows the problem?
>
> - Alon
>
>
> On Fri, Dec 19, 2014 at 3:41 AM, Lee Morgan <[email protected]>
> wrote:
>>
>> Hi
>>
>> llvm-ar appears to be writing a huge and empty file when trying to build
>> a library.
>>
>> strace reports thousands of 4k writes of blank strings and I can zip the
>> eventual output from 8Gb to 8Mb.
>>
>> Does anyone know why this could be?
>>
>> Thanks!
>>
>> (on ubuntu 14.4)
>> ./emsdk list
>>
>> The following individual tools exist:
>>            clang-incoming-32bit
>>            clang-incoming-64bit
>>            clang-master-32bit       INSTALLED
>>     (*)    clang-master-64bit       INSTALLED
>>            emscripten-1.25.0         INSTALLED
>>            emscripten-1.27.0
>>            emscripten-incoming
>>     (*)    emscripten-master         INSTALLED
>>
>>
>> The following Emscripten SDK versions are available:
>>          sdk-incoming-32bit
>>          sdk-incoming-64bit
>>          sdk-master-32bit         INSTALLED
>>     *    sdk-master-64bit         INSTALLED
>>
>> Items marked with * are activated for the current user.
>> Items marked with (*) are selected for use, but your current shell
>> environment is not configured to use them. Type "source ./emsdk_env.sh" to
>> set up your current shell to use them, or call "emsdk activate --global
>> <name_of_sdk>" to permanently activate them.
>>
>> To access the historical archived versions, type 'emsdk list --old'
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "emscripten-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to