https://developer.chrome.com/native-client/sdk/download
On Sun, Oct 23, 2016 at 3:59 AM, <lael.c...@gmail.com> wrote:
> Hello, which is the binary package I need to install in order to get sel_ldr
> working on Debian ?
You should download and install the SDK from:
https://developer.chrome.com/native-client/sdk/download
> I recognize I have also no idea on how to use sel_ldr to run dynamically
> linked nexe outside the web browser.
There is a tool called tools/sel_ldr.py in the SDK which should be of
some help to you.
The SDK installs into a directory of your choosing (normally somewhere
in your $HOME). It won't effect the system files or directories or
interfere with your distro. It does not require root privileges to
install.
In the most simply case just pass the nexe itself as the argument and
it will be run. See --help for more options if you need them.
On Tue, Oct 25, 2016 at 1:31 PM, <lael.c...@gmail.com> wrote:
> Le lundi 24 octobre 2016 23:50:44 UTC+2, Sam Clegg a écrit :
>>
>> The SDK installs into a directory of your choosing (normally somewhere
>> in your $HOME). It won't effect the system files or directories or
>> interfere with your distro. It does not require root privileges to
>> install.
>
> Ok, so it’s impossible to install it globally, isn’t it ? (something that
> Fedora provides through packages)
Its not impossible, its just that there are no pre-built packages for
any specific linux distribution such as redhat or debian. The only
official binary are in simple tar archives.
>>
>> In the most simply case just pass the nexe itself as the argument and
>> it will be run. See --help for more options if you need them.
>
> I’m interested into debugging the validator, How I can build sel_ldr ?
If you want to build stuff yourself you will want to checkout the source:
https://chromium.googlesource.com/native_client/src/native_client.git
You will need to use gclient to get the source plus any dependencies.
See: https://chromium.googlesource.com/native_client/src/native_client/+/master/docs/source.md.
Once you have that you can can use `gn` to build the ninja build file
and then `ninja` to build build sel_ldr or the validator on its own
(ncval).
Its not impossible, its just that there are no pre-built packages for
any specific linux distribution such as redhat or debian. The only
official binary are in simple tar archives.
That is interesting. I wasn't aware of any distributions that had
packages the NaCl SDK. Do you have any links to the package?
Googling for "native client sdk rpm package" didn't seem to come up
with anything.
Actually I mis-spoke. If you want to build native_client standalone
the easiest is the scons build. For example to build sel_ldr, you
would run something like this:
./scons platform=x86_64 MODE=nacl,dbg-host sel_ldr
The gn build is mostly used to building withing chromium builds.
scons won't download anything, no. The source code is fetched by the
"gclient sync" phase (which fetches from several git repositories).
Ah, indeed, it looks like someone on the fedora project did package
(or attempt to package) some version of the NaC toolchain:
https://admin.fedoraproject.org/pkgdb/package/rpms/nacl-gcc/
I was not aware of such packages, and would be interested to know how
actively they are maintained. The maintainer did not reach out to us
(the NaCl team) when creating these but if they work then great. It
does look like some key components are missing though, such as
nacl-clang and also the entire pnacl toolchain.
You'll need to take a look at how the scons build system works. A good
place to start is the top level SConstruct file. As a quick hack it
looks like you could add flags in `MakeUnixLikeEnv` on line 2337.
No such tool named