I am trying to build Native Client SDK from source code following instructions on: www.chromium.org/nativeclient/how-tos/building-and-testing-gcc-and-gnu-binutils. After I run make clean build-with-newlib -j16, I get errors. When I saw the contents of Makefile, I realized that CROSS_ARCH was set to x86_64. Changing it to arm32 threw different kind of errors. What are the settings to generate binaries for ARM platform?
I also tried to run toolchain_build.py on x86-64 machine also. Getting the same error as on ARM machine.
On Saturday, 19 September 2015 12:36:01 UTC+2, Vasant k wrote:I am trying to build Native Client SDK from source code following instructions on: www.chromium.org/nativeclient/how-tos/building-and-testing-gcc-and-gnu-binutils. After I run make clean build-with-newlib -j16, I get errors. When I saw the contents of Makefile, I realized that CROSS_ARCH was set to x86_64. Changing it to arm32 threw different kind of errors. What are the settings to generate binaries for ARM platform?
--
You received this message because you are subscribed to the Google Groups "Native-Client-Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to native-client-di...@googlegroups.com.
To post to this group, send email to native-cli...@googlegroups.com.
Visit this group at http://groups.google.com/group/native-client-discuss.
For more options, visit https://groups.google.com/d/optout.
Yeah, pretty sure that is how I checked out following the instructions on that page.
--
You received this message because you are subscribed to a topic in the Google Groups "Native-Client-Discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/native-client-discuss/A5IcVoZD5pw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to native-client-di...@googlegroups.com.
In the above log, I can see that bot builds gdb only for x86-64 and x86-32 (in steps 39 and 40 respectively). It still doesn't talk about ARM 32.
I found a gdb for arm 32 in the mentioned link. However it is of type ELF x86-64 executable. I don't even understand the meaning of this gdb. How can you debug an ARM binary on x86-64.
On Saturday, 19 September 2015 12:36:01 UTC+2, Vasant k wrote:
I am trying to build Native Client SDK from source code following instructions on: www.chromium.org/nativeclient/how-tos/building-and-testing-gcc-and-gnu-binutils. After I run make clean build-with-newlib -j16, I get errors. When I saw the contents of Makefile, I realized that CROSS_ARCH was set to x86_64. Changing it to arm32 threw different kind of errors. What are the settings to generate binaries for ARM platform?
--
You received this message because you are subscribed to the Google Groups "Native-Client-Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to native-client-di...@googlegroups.com.
Sounds good. This is the closest I have been to solving this toochain problem. But, life is not that simple. I have a raspberry Pi on ARMV7 for which there is no Chrome OS available so far.
Hmm.. Yes. I am still hopeful that if someone who has built gdb/SDK toolchain for ARM from source on Chrome OS helps me, I might be able to emulate that on my Raspberry Pi 2. What do you think might be the problem when I run toolchain_build/toolchain_build.py to get the following error?
/bin/sh: 0: Can't open ../../src/binutils/configureError building binutils_arm_arm_linux_gnueabihf: Command '['/bin/sh', '../../src/binutils/configure', '--with-pkgversion=Native Client SDK [a9b9286cb331416c96834875c78d15de55ce953e]', '--with-bugurl=http://gonacl.com/reportissue', '--prefix=', '--disable-silent-rules', 'CXX=g++ -static-libstdc++', '--without-gcc-arch', '--without-zlib', '--target=arm-nacl', '--with-sysroot=/arm-nacl', 'STRIP_FOR_TARGET=/home/linaro/nacl_src/native_client/toolchain_build/out/binutils_arm_arm_linux_gnueabihf_work/strip_for_target', '--enable-targets=arm-nacl,i686-nacl,x86_64-nacl', '--enable-deterministic-archives', '--enable-gold', '--enable-plugins']' returned non-zero exit status 127
On Saturday, 19 September 2015 12:36:01 UTC+2, Vasant k wrote:I am trying to build Native Client SDK from source code following instructions on: www.chromium.org/nativeclient/how-tos/building-and-testing-gcc-and-gnu-binutils. After I run make clean build-with-newlib -j16, I get errors. When I saw the contents of Makefile, I realized that CROSS_ARCH was set to x86_64. Changing it to arm32 threw different kind of errors. What are the settings to generate binaries for ARM platform?
--
It works on Trusty?.
It throws below error on my ubuntu 13.04 x86-64 machine. Failed 4 times, checked out fresh source code each time.
checking for library containing strerror... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make[1]: *** [configure-libiberty] Error 1
make[1]: Leaving directory `/media/vasant/76001f9e-d10d-4243-84b2-7b2996a78b87/home/vasant/native_client/native_client/toolchain_build/out/binutils_arm_i686_w64_mingw32_work'
make: *** [all] Error 2
Error building binutils_arm_i686_w64_mingw32: Command '['/usr/bin/make', '-j4', 'HAVE_LIBICONV=no']' returned non-zero exit status 2
Traceback (most recent call last):
File "buildbot/buildbot_toolchain_build.py", line 145, in <module>
sys.exit(main(sys.argv[1:]))
File "buildbot/buildbot_toolchain_build.py", line 96, in main
['--packages-file', TEMP_PACKAGES_FILE])
File "/usr/lib/python2.7/subprocess.py", line 542, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python', '/media/vasant/76001f9e-d10d-4243-84b2-7b2996a78b87/home/vasant/native_client/native_client/toolchain_build/toolchain_build.py', '--bot', '--packages-file', '/media/vasant/76001f9e-d10d-4243-84b2-7b2996a78b87/home/vasant/native_client/native_client/toolchain_build/out/packages.txt']' returned non-zero exit status 1
Same command never completes on my Raspberry Pi2, I think it is to do with tiny 1GB RAM of it.
On Saturday, 19 September 2015 12:36:01 UTC+2, Vasant k wrote:I am trying to build Native Client SDK from source code following instructions on: www.chromium.org/nativeclient/how-tos/building-and-testing-gcc-and-gnu-binutils. After I run make clean build-with-newlib -j16, I get errors. When I saw the contents of Makefile, I realized that CROSS_ARCH was set to x86_64. Changing it to arm32 threw different kind of errors. What are the settings to generate binaries for ARM platform?
--
Yeah, My bad. It's building now on my ubuntu 13.04, hopefully to completion.Meanwhile I tried to run: run.py to run my .nexe file on ARM. got below error:scons: Reading SConscript files ...Exception: Cannot find a toolchain for arm in /home/linaro/native_client/native_client/toolchain/linux_arm/pnacl_newlib_raw:I noticed some significant differences in toolchain directory between ARM and x86-64. On ARM, only one pnacl_translation is available, where as on x86 there are many directories.
After building for long time: buildbot/buildbot_toolchain_build.py on ubuntu 13.04 complains:
arm-linux-gnueabihf-gcc -v -c
sh: 1: arm-linux-gnueabihf-gcc: not found
scons: *** Error 127
installing gcc-4.7-arm-linux-gnueabihf had no effect...
--