jerryscript-project / iotjs

Platform for Internet of Things with JavaScript http://www.iotjs.net
Other
2.59k stars 438 forks source link

GBS IoT.js build fails with cmake error: your C compiler: "arm-linux-gnueabi-gcc" was not found. #1085

Closed pmarcinkiew closed 7 years ago

pmarcinkiew commented 7 years ago

I compiled my change for (GPIO)[https://github.com/pmarcinkiew/iotjs/tree/temporary_peripheral_GPIO].

It fails with missing compiler error at basic cmake:

[ 1013s] -- Check for working C compiler: arm-linux-gnueabi-gcc
[ 1013s] CMake Error: your C compiler: "arm-linux-gnueabi-gcc" was not found.   Please set CMAKE_C_COMPILER to a valid compiler path or name.
[ 1013s] CMake Error: Internal CMake error, TryCompile configure of cmake failed
[ 1013s] -- Check for working C compiler: arm-linux-gnueabi-gcc -- broken
[ 1013s] CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:61 (message):
[ 1013s]   The C compiler "arm-linux-gnueabi-gcc" is not able to compile a simple test
[ 1013s]   program.
[ 1013s] 
[ 1013s]   It fails with the following output:
[ 1013s] 

My GBS conf:

[general]
profile = profile.tizen_unified

[profile.tizen_unified]
obs = obs.spin
repos = repo.public_4.0_base_arm, repo.tizen_unified

[profile.tizen_artik10]
obs = obs.spin
repos = repo.public_3.0_base_arm, repo.public_3_arm

[obs.spin]
url = http://168.219.209.58:81

[obs.tizen]
url = https://api.tizen.org
user = obs_viewer
passwdx = QlpoOTFBWSZTWRP5nYMAAB6fgCAAeUA9mr+QBvzF4CAAVGAZDTRoDI0YBlCKeptQBoA0aGZIAottAkltEPOK7BAFXE9mTUzocPMzQRkPoPpNwEZx3rRQhxkXmGHS6wCjHskyVCP4u5IpwoSAn8zsGA==

[repo.public_3_arm] 
url = http://download.tizen.org/releases/milestone/tizen/3.0.m2/common_artik/tizen-common-artik_20170111.3/repos/arm-wayland/packages/
user =
passwdx = 

[repo.tizen_unified]
url=http://download.tizen.org/snapshots/tizen/unified/latest/repos/standard/packages/
user=
passwdx=

[repo.base_arm]
url=http://download.tizen.org/snapshots/tizen/base/latest/repos/arm/
user=
passwdx=

[repo.public_3.0_base_arm]
url = http://download.tizen.org/snapshots/tizen/base/latest/repos/arm/packages/armv7l/
user = 
passwdx = 

[repo.public_4.0_base_arm]
url = http://download.tizen.org/snapshots/tizen/base/latest/repos/arm/packages/
user = 
passwdx =
marcinsmsg commented 7 years ago

Try this one:

[general]
profile = profile.mobile.arm_3.0_tm1

############
# Platform #
############
[obs.spin]
url = http://168.219.209.58:81

[obs.tizen]
url = https://api.tizen.org
user = obs_viewer
passwdx = QlpoOTFBWSZTWWV18UwAAAKDgAAAkiCZgCAAMQZMQQDJ6jQwAvxdyRThQkGV18Uw

#
# Tizen 3.0
#
[profile.mobile.arm_3.0_tm1]
#repos = repo.spin_3.0_base_arm, repo.spin_3.0_mobile_tm1, repo.public_3.0_base_arm, repo.public_3.0_mobile_tm1
repos = repo.public_3.0_base_arm, repo.public_3.0_mobile_tm1

[repo.public_3.0_base_arm]
url = http://download.tizen.org/snapshots/tizen/3.0-base/latest/repos/arm/packages/ 

[repo.public_3.0_mobile_tm1]
url = http://download.tizen.org/snapshots/tizen/3.0-mobile/latest/repos/target-TM1/packages/
pmarcinkiew commented 7 years ago

The number of installed GBS packages in environment is smaller but still my GBS fails to compile.

What is your GBS version?

piotr@bpower:~/src/iotjs$ gbs --version
gbs 0.24.6

I use Ubuntu Linux 16.04 LTS:

piotr@bpower:~/src/iotjs$ uname -a
Linux bpower 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

The full compilation log:

[  747s]  --jerry_profile: /usr/src/packages/BUILD/iotjs-1.0.0/deps/jerry/jerry-core/profiles/es5.1.profile
[  747s]  --no_init_submodule: True
[  747s]  --build_libs: /usr/src/packages/BUILD/iotjs-1.0.0/build/arm-tizen/debug/lib
[  747s]  --iotjs_exclude_module: set([])
[  747s]  --jerry_memstat: False
[  747s]  --buildlib: False
[  747s]  --clean: True
[  747s]  --external_include_dir: []
[  747s]  --external_static_lib: []
[  747s]  --experimental: False
[  748s]  --no_chec-- The C compiler identification is unknown
[  748s] -- Check for working C compiler: arm-linux-gnueabi-gcc
[  748s] CMake Error: your C compiler: "arm-linux-gnueabi-gcc" was not found.   Please set CMAKE_C_COMPILER to a valid compiler path or name.
[  748s] CMake Error: Internal CMake error, TryCompile configure of cmake failed
[  748s] -- Check for working C compiler: arm-linux-gnueabi-gcc -- broken
[  748s] CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:61 (message):
[  748s]   The C compiler "arm-linux-gnueabi-gcc" is not able to compile a simple test
[  748s]   program.
[  748s] 
[  748s]   It fails with the following output:
[  748s] 
pmarcinkiew commented 7 years ago

I successfully compiled IoT.js for Tizen IoT using Ubuntu 14.04 LTS with the same version of GBS and .gbs.conf from GITHUB. It is not clear that old Ubuntu works better because GBS is simply very indeterministic during compilation of IoT.js with Tizen Unified. I will temporarily close this issue.

We should consider introducing Travis GBS buils with some kind of virtualization to provide stable environment for Tizen IoT development.