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

Issue 1039253003: Remove NACL_BUILD_ARCH_MAP (Closed)

Created:
5 years, 8 months ago by teravest
Modified:
5 years, 8 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/src/native_client.git@master
Target Ref:
refs/heads/master
Project:
nacl
Visibility:
Public.

Description

Remove NACL_BUILD_ARCH_MAP. This mapping is no longer necessary now that build_config.h provides these definitions. The only exception is when NACL_BUILD_ARCH=pnacl should be defined, which build_config.h doesn't have the necessary information to detect. BUG=https://code.google.com/p/chromium/issues/detail?id=440012 Committed: https://chromium.googlesource.com/native_client/src/native_client/+/1e45f86b3f0b78399d853fd187e8a3d515b1a38f

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -15 lines) Patch
M build/build_nexe.py View 2 chunks +2 lines, -15 lines 1 comment Download

Messages

Total messages: 11 (3 generated)
teravest
5 years, 8 months ago (2015-03-30 21:45:38 UTC) #2
Nick Bray (chromium)
LGTM, but write a decent commit message and BUG= before committing. https://codereview.chromium.org/1039253003/diff/1/build/build_nexe.py File build/build_nexe.py (right): ...
5 years, 8 months ago (2015-03-31 00:25:23 UTC) #3
teravest
On 2015/03/31 00:25:23, Nick Bray (chromium) wrote: > LGTM, but write a decent commit message ...
5 years, 8 months ago (2015-03-31 14:05:24 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1039253003/1
5 years, 8 months ago (2015-03-31 14:09:27 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/native_client/src/native_client/+/1e45f86b3f0b78399d853fd187e8a3d515b1a38f
5 years, 8 months ago (2015-03-31 15:07:08 UTC) #7
JF
This change broke the PNaCl FYI bots for x86-32 tests MIPS: http://chromegw.corp.google.com/i/client.nacl.toolchain/builders/linux-pnacl-x86_32-tests-mips/builds/3978/steps/gyp_compile%20%5BRelease%5D/logs/stdio#error1 In file included ...
5 years, 8 months ago (2015-04-04 16:40:09 UTC) #9
teravest
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/1056363003/ by teravest@chromium.org. ...
5 years, 8 months ago (2015-04-06 15:13:35 UTC) #10
petarj
5 years, 8 months ago (2015-04-06 15:39:19 UTC) #11
Message was sent while issue was closed.
On 2015/04/06 15:13:35, teravest wrote:
> A revert of this CL (patchset #1 id:1) has been created in
> https://codereview.chromium.org/1056363003/ by mailto:teravest@chromium.org.
> 
> The reason for reverting is: build_nexe.py may perform cross-compliation with
> the "--arch flag"; it looks like one of the PNaCl FYI bots builds MIPS nexes
on
> a x86_32 without defining the __mipsel__ flag.
> 
> I'd prefer to revert instead of hacking around this for MIPS; I'm a bit
confused
> as to why the output from the FYI bot is using pnacl-clang and gcc and don't
> want to..

I believe it's fine if you just add "--pnacl-bias=mips32", i.e. you can likely
fix this with:

diff --git a/build/untrusted.gypi b/build/untrusted.gypi
index 77b9f11..512deec 100755
--- a/build/untrusted.gypi
+++ b/build/untrusted.gypi
@@ -1062,7 +1062,7 @@
                   '--name', '>(out_newlib_mips)',
                   '--objdir', '>(objdir_newlib_mips)',
                   '--include-dirs=>(tc_include_dir_newlib) ^(include_dirs)
>(_include_dirs)',
-                  '--compile_flags=^(compile_flags) >(_compile_flags)
^(pnacl_compile_flags) >(_pnacl_compile_flags)',
+                  '--compile_flags=--pnacl-bias=mips32 ^(compile_flags)
>(_compile_flags) ^(pnacl_compile_flags) >(_pnacl_compile_flags)',
                   '--gomadir', '<(gomadir)',
                   '--defines=^(defines) >(_defines)',
                   '--link_flags=-B>(tc_lib_dir_newlib_mips) ^(link_flags)
>(_link_flags)',
@@ -1105,7 +1105,7 @@
                   '--name', '>(out_newlib_mips)',
                   '--objdir', '>(objdir_newlib_mips)',
                   '--include-dirs=>(tc_include_dir_newlib) ^(include_dirs)
>(_include_dirs)',
-                  '--compile_flags=^(compile_flags) >(_compile_flags)
^(pnacl_compile_flags) >(_pnacl_compile_flags)',
+                  '--compile_flags=--pnacl-bias=mips32 ^(compile_flags)
>(_compile_flags) ^(pnacl_compile_flags) >(_pnacl_compile_flags)',
                   '--gomadir', '<(gomadir)',
                   '--defines=^(defines) >(_defines)',
                   '--link_flags=-arch mips --pnacl-allow-translate
--pnacl-allow-native -Wt,-mtls-use-call --pnacl-disable-abi-check
-B>(tc_lib_dir_irt_mips) -L>(tc_lib_dir_irt_mips) ^(pnacl_irt_link_flags)
^(link_flags) >(_link_flags) >(libcpp_irt_stdlibs)',
@@ -1148,7 +1148,7 @@
                   '--name', '>(out_newlib_mips)',
                   '--objdir', '>(objdir_newlib_mips)',
                   '--include-dirs=>(tc_include_dir_newlib) ^(include_dirs)
>(_include_dirs)',
-                  '--compile_flags=-Wt,-mtls-use-call ^(compile_flags)
>(_compile_flags) ^(pnacl_compile_flags) >(_pnacl_compile_flags)',
+                  '--compile_flags=--pnacl-bias=mips32 -Wt,-mtls-use-call
^(compile_flags) >(_compile_flags) ^(pnacl_compile_flags)
>(_pnacl_compile_flags)',
                   '--gomadir', '<(gomadir)',
                   '--defines=^(defines) >(_defines)',
                   '--link_flags=-B>(tc_lib_dir_irt_mips)
-L>(tc_lib_dir_irt_mips) ^(pnacl_irt_link_flags) ^(link_flags) >(_link_flags)',

Powered by Google App Engine
This is Rietveld 408576698