Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Issue 15891011: [NaCl SDK] Fix create_nmf handling of missing libraries. (Closed)

Created:
7 years, 6 months ago by Sam Clegg
Modified:
7 years ago
Reviewers:
binji1, binji
CC:
chromium-reviews, binji
Visibility:
Public.

Description

[NaCl SDK] Fix create_nmf handling of missing libraries. Previously a library that was needed on two architectures but only found on one would be silently ignored. BUG= R=binji@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202688

Patch Set 1 #

Patch Set 2 : #

Total comments: 7

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -41 lines) Patch
M native_client_sdk/src/tools/create_nmf.py View 1 2 3 10 chunks +75 lines, -39 lines 0 comments Download
M native_client_sdk/src/tools/tests/create_nmf_test.py View 3 chunks +15 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Sam Clegg
7 years, 6 months ago (2013-05-28 22:10:54 UTC) #1
binji
lgtm https://codereview.chromium.org/15891011/diff/2001/native_client_sdk/src/tools/create_nmf.py File native_client_sdk/src/tools/create_nmf.py (right): https://codereview.chromium.org/15891011/diff/2001/native_client_sdk/src/tools/create_nmf.py#newcode283 native_client_sdk/src/tools/create_nmf.py:283: found_basenames = {} = set(), you never use ...
7 years, 6 months ago (2013-05-28 22:52:41 UTC) #2
Sam Clegg
https://codereview.chromium.org/15891011/diff/2001/native_client_sdk/src/tools/create_nmf.py File native_client_sdk/src/tools/create_nmf.py (right): https://codereview.chromium.org/15891011/diff/2001/native_client_sdk/src/tools/create_nmf.py#newcode283 native_client_sdk/src/tools/create_nmf.py:283: found_basenames = {} On 2013/05/28 22:52:41, binji wrote: > ...
7 years, 6 months ago (2013-05-28 23:04:39 UTC) #3
Sam Clegg
Committed patchset #4 manually as r202688 (presubmit successful).
7 years, 6 months ago (2013-05-28 23:29:43 UTC) #4
M-A Ruel
On 2013/05/28 23:29:43, Sam Clegg wrote: > Committed patchset #4 manually as r202688 (presubmit successful). ...
7 years ago (2013-11-26 18:19:41 UTC) #5
binji1
7 years ago (2013-11-26 18:30:31 UTC) #6
I spoke to Sam, and neither of us have seen this before. We'll take a look.


On Tue, Nov 26, 2013 at 10:19 AM, <maruel@chromium.org> wrote:

> On 2013/05/28 23:29:43, Sam Clegg wrote:
>
>> Committed patchset #4 manually as r202688 (presubmit successful).
>>
>
> I got the following failure on a local Try Server setup building on linux:
>
> FAILED: cd ../../chrome/test/data/nacl; python
> ../../../../native_client_sdk/src/tools/create_nmf.py
> ../../../../out/Release/nacl_test_data/glibc/simple_glibc_x86_64.nexe
> ../../../../out/Release/nacl_test_data/glibc/simple_glibc_x86_32.nexe
> "--objdump=../../../../native_client/toolchain/linux_x86/
> bin/x86_64-nacl-objdump"
> "--output=../../../../out/Release/nacl_test_data/glibc/simple.nmf"
> "--path-prefix=simple_libs"
> "--stage-dependencies=../../../../out/Release/nacl_test_data/glibc"
> "--library-path=../../../../native_client/toolchain/linux_
> x86/x86_64-nacl/lib"
> "--library-path=../../../../out/Release/gen/tc_glibc/lib64"
> "--library-path=../../../../native_client/toolchain/linux_
> x86/x86_64-nacl/lib32"
> "--library-path=../../../../out/Release/gen/tc_glibc/lib32"
> Traceback (most recent call last):
>   File "../../../../native_client_sdk/src/tools/create_nmf.py", line 766,
> in
> <module>
>     rtn = main(sys.argv[1:])
>   File "../../../../native_client_sdk/src/tools/create_nmf.py", line 750,
> in
> main
>     nmf.GetManifest()
>   File "../../../../native_client_sdk/src/tools/create_nmf.py", line 518,
> in
> GetManifest
>     self._GenerateManifest()
>   File "../../../../native_client_sdk/src/tools/create_nmf.py", line 470,
> in
> _GenerateManifest
>     needed = self.GetNeeded()
>   File "../../../../native_client_sdk/src/tools/create_nmf.py", line 368,
> in
> GetNeeded
>     all_files, unexamined = self.GleanFromObjdump(self.main_files, None)
>   File "../../../../native_client_sdk/src/tools/create_nmf.py", line 323,
> in
> GleanFromObjdump
>     match = '/'.join([file_arch, matched.group(1)])
> UnboundLocalError: local variable 'file_arch' referenced before assignment
>
> It looks like matched may first be None and then match on "matched =
> NeededMatcher.match(line)", causing file_arch to not be yet defined or use
> the
> value of the previous iteration.
>
> Not sure why I got it here, maybe there's a race condition in the order of
> build
> steps in the .gyp files?
>
> https://codereview.chromium.org/15891011/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698