Error while executing process C:\...\ndk-r19c\ndk\ndk-build.cmd with arguments - android-ndk

The following errors will occur. I use Android Studio.
Build command failed.
Error while executing process C:...\ndk-r19c\ndk\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:...\src\main\jni\Android.mk NDK_APPLICATION_MK=C:...\src\main\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-28 NDK_OUT=C:/.../build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=C:...\build\intermediates\ndkBuild\debug\lib jni_dlib}
'C:\Users\���C' �́A�����R�}���h�܂��͊O���R�}���h�A
����\�ȃv���O�����܂��̓o�b� �t�#�C���Ƃ��ĔF������Ă��܂���B 'C:\Users\���C' �́A�����R�}���h�܂��͊O���R�}���h�A ����\�ȃv���O�����܂��̓o�b� �t�#�C���Ƃ��ĔF������Ă��܂���B
make: *** [C:/.../build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs/jni_dlib] Error 1

Related

EclipseCDT will not debug executable: Error creating process

I just installed EclipseCDT 2022-12, created the HelloWorld example app, compiled, but when I debug I get an error. I have both current MSYS2 (MinGW64) and Cygwin64 installed, neither environment works and fails with the same error:
Error in final launch sequence:
Failed to execute MI command:
-exec-run
Error message from debugger back end:
Error creating process /cygdrive/c/Windows/system32/C:/Projects/cc3135/hello/C:/Projects/cc3135/hello/Debug/hello.exe, (error 2).
Failed to execute MI command:
-exec-run
Error message from debugger back end:
Error creating process /cygdrive/c/Windows/system32/C:/Projects/cc3135/hello/C:/Projects/cc3135/hello/Debug/hello.exe, (error 2).
Error creating process /cygdrive/c/Windows/system32/C:/Projects/cc3135/hello/C:/Projects/cc3135/hello/Debug/hello.exe, (error 2).
Any suggestions?
P.S. The hello executable runs fine in cmd.exe and under gdb.

Cannot build YugabyteDB with clang12 in Alma Linux 8.5

[Question posted by a user on YugabyteDB Community Slack]
Debug build does not seem to be working in the clang12 based build:
./yb_build.sh debug --sj
[100%] Linking CXX executable ../../../tests-integration-tests/cdc_service-int-test
[100%] Built target cdc_service-int-test
make: *** [Makefile:101: all] Error 2
real 0m28.279s
user 4m4.235s
sys 0m25.477s
[2022-02-26T15:52:32 yb_build.sh:466 run_cxx_build] C++ build finished with exit code 2 (build type: debug, compiler: clang12). Timing information is available above.
==========================================================================================
YUGABYTE BUILD SUMMARY
==========================================================================================
Build type : debug
C/C++ compiler : clang12
Build architecture : x86_64
Build directory : /yb-source/build/debug-clang12-dynamic
Third-party dir : /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20211222064150-dd4872fe56-almalinux8-x86_64-clang12
C++ compilation time : 28 seconds
Exit code : 2
------------------------------------------------------------------------------------------
doing
./yb_build.sh debug --clang12 --sj
also results in an error
...
[m-1] In YugabyteDB, setting LC_COLLATE to C and all other locale settings to en_US.UTF-8 by default. Locale support will be enhanced as part of addressing https://github.com/yugabyte/yugabyte-db/issues/1557
[m-1] initdb: invalid locale name "en_US.UTF-8"
[m-1] I0226 15:54:20.630203 15811 pg_wrapper.cc:521] initdb took 124 ms
[m-1] E0226 15:54:20.630272 15811 pg_wrapper.cc:525] initdb failed: Runtime error (yb/yql/pgwrapper/pg_wrapper.cc:467): /yb-source/build/debug-clang12-dynamic/postgres/bin/initdb failed with exit code 1
[m-1] E0226 15:54:20.630429 15811 catalog_manager.cc:7776] initdb failed: Runtime error (yb/yql/pgwrapper/pg_wrapper.cc:467): /yb-source/build/debug-clang12-dynamic/postgres/bin/initdb failed with exit code 1
E0226 15:54:21.075644 15749 external_mini_cluster.cc:1247] master reported an initdb error: Runtime error (yb/yql/pgwrapper/pg_wrapper.cc:467): /yb-source/build/debug-clang12-dynamic/postgres/bin/initdb failed with exit code 1
/yb-source/src/yb/yql/pgwrapper/pg_wrapper_test_base.cc:58: Failure
Failed
Bad status: Runtime error (yb/integration-tests/external_mini_cluster.cc:1248): Failed to start masters.: initdb failed: Runtime error (yb/yql/pgwrapper/pg_wrapper.cc:467): /yb-source/build/debug-clang12-dynamic/postgres/bin/initdb failed with exit code 1
[m-1] W0226 15:54:21.096375 15815 catalog_manager.cc:2084] Tablespace refresh task failed with error Internal error (yb/master/catalog_manager.cc:1929): pg_tablespace table info not found
Test failure stack trace:
/yb-source/src/yb/yql/pgwrapper/pg_wrapper_test_base.cc:58: # 0x7f2962b044e9 yb::pgwrapper::PgWrapperTestBase::SetUp()
/yb-source/src/yb/yql/pgwrapper/create_initial_sys_catalog_snapshot.cc:29: # 0x404d94 yb::pgwrapper::CreateInitialSysCatalogSnapshotTest::SetUp()
I0226 15:54:21.706461 15749 external_mini_cluster.cc:2206] { daemon_id: m-1 bound_rpc: :0 } Starting Shutdown()
I0226 15:54:21.706606 15749 external_mini_cluster.cc:2249] Killing /yb-source/build/debug-clang12-dynamic/tests-pgwrapper/../bin/yb-master with pid 15756 with SIGKILL
I0226 15:54:21.719123 15749 test_util.cc:94] -----------------------------------------------
I0226 15:54:21.719149 15749 test_util.cc:95] Had fatal failures, leaving test files at /tmp/yb_test.tmp.32433.7631.5669.pid15685/create_initial_sys_catalog_snapshot.CreateInitialSysCatalogSnapshotTest.CreateInitialSysCatalogSnapshot.1645890856672495-15749
[ FAILED ] CreateInitialSysCatalogSnapshotTest.CreateInitialSysCatalogSnapshot (5016 ms)
[----------] 1 test from CreateInitialSysCatalogSnapshotTest (5016 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (5016 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] CreateInitialSysCatalogSnapshotTest.CreateInitialSysCatalogSnapshot
1 FAILED TEST
I0226 15:54:21.751582 15748 run-with-timeout.cc:198] subprocess.Wait finished, waitpid() returned 256
...
[postprocess_test_result.py:246] 2022-02-26 15:54:22,577 INFO: Wrote JSON test report file: /yb-source/build/debug-clang12-dynamic/yb-test-logs/tests-pgwrapper__create_initial_sys_catalog_snapshot/CreateInitialSysCatalogSnapshotTest_CreateInitialSysCatalogSnapshot_test_report.json
(end of standard error)
Traceback (most recent call last):
File "/yb-source/python/yb/gen_initial_sys_catalog_snapshot.py", line 83, in <module>
main()
File "/yb-source/python/yb/gen_initial_sys_catalog_snapshot.py", line 74, in main
raise RuntimeError("initdb failed in %.1f sec" % elapsed_time_sec)
RuntimeError: initdb failed in 6.4 sec
make[2]: *** [src/yb/yql/pgwrapper/CMakeFiles/initial_sys_catalog_snapshot.dir/build.make:70: src/yb/yql/pgwrapper/CMakeFiles/initial_sys_catalog_snapshot] Error 1
make[1]: *** [CMakeFiles/Makefile2:51929: src/yb/yql/pgwrapper/CMakeFiles/initial_sys_catalog_snapshot.dir/all] Error 2
make: *** [Makefile:101: all] Error 2
This happens in Alma Linux 8.5. Any hints?
You need some additional packages and it should work:
dnf install langpacks-en glibc-all-langpacks -y

Execution of multiple shells in parallel in linux

I tried to execute a shell(outershell.sh) which calls 3 different shell parallely:
#!/bin/sh
/home/sujoy/LMTO-NMTO/2*vLB-NMTO-47.ZB.46.6/06.gfort/GaSb/nmshell.sh &
/home/sujoy/LMTO-NMTO/2*vLB-NMTO-47.ZB.46.6/06.gfort/InAs/nmshell.sh &
/home/sujoy/LMTO-NMTO/2*vLB-NMTO-47.ZB.46.6/06.gfort/InP/nmshell.sh &
The contents of the nmshell.sh are same in these three locations:
#!/bin/sh
../MAIN/lm47.run lmctl
../MAIN/lm47.run lmes
echo "lmes done"
The error comes as:
~/LMTO-NMTO/2*vLB-NMTO-47.ZB.46.6/06.gfort$ ./nmshell_multiprocessing.sh
/home/sujoy/LMTO-NMTO/2*vLB-NMTO-47.ZB.46.6/06.gfort/InAs/nmshell.sh: 2: /home/sujoy/LMTO-NMTO/2*vLB-NMTO-47.ZB.46.6/06.gfort/InAs/nmshell.sh: ../MAIN/lm47.run: not found
/home/sujoy/LMTO-NMTO/2*vLB-NMTO-47.ZB.46.6/06.gfort/GaSb/nmshell.sh: 2: /home/sujoy/LMTO-NMTO/2*vLB-NMTO-47.ZB.46.6/06.gfort/GaSb/nmshell.sh: ../MAIN/lm47.run: not found
/home/sujoy/LMTO-NMTO/2*vLB-NMTO-47.ZB.46.6/06.gfort/InP/nmshell.sh: 2: /home/sujoy/LMTO-NMTO/2*vLB-NMTO-47.ZB.46.6/06.gfort/InP/nmshell.sh: ../MAIN/lm47.run: not found/home/sujoy/LMTO-NMTO/2*vLB-NMTO-47.ZB.46.6/06.gfort/InAs/nmshell.sh: 3: /home/sujoy/LMTO-NMTO/2*vLB-NMTO-47.ZB.46.6/06.gfort/InAs/nmshell.sh: ../MAIN/lm47.run: not found
/home/sujoy/LMTO-NMTO/2*vLB-NMTO-47.ZB.46.6/06.gfort/GaSb/nmshell.sh: 3: /home/sujoy/LMTO-NMTO/2*vLB-NMTO-47.ZB.46.6/06.gfort/GaSb/nmshell.sh: ../MAIN/lm47.run: not found
lmes done
lmes done
I also tried to replace ../MAIN/lm47.run lmctl by the full path /home/sujoy/LMTO-NMTO/2*vLB-NMTO-47.ZB.46.6/06.gfort/MAIN/lm47.run lmctl
Now, the error comes as:
~/LMTO-NMTO/2*vLB-NMTO-47.ZB.46.6/06.gfort$ Error : OPEN_SETUP: Error opening SETUP file
STOP *** Program aborted ***
Error : OPEN_SETUP: Error opening SETUP file
STOP *** Program aborted ***
Error : OPEN_SETUP: Error opening SETUP file
STOP Error : OPEN_SETUP: Error opening SETUP file
STOP *** Program aborted ***
*** Program aborted ***
lmes done
Error : OPEN_SETUP: Error opening SETUP file
STOP *** Program aborted ***
lmes done
Error : OPEN_SETUP: Error opening SETUP file
STOP *** Program aborted ***
Error : OPEN_SETUP: Error opening SETUP file
STOP *** Program aborted ***
Error : OPEN_SETUP: Error opening SETUP file
STOP *** Program aborted ***
lmes done
Please help me to solve this problem

linux, error building AM33 Yocto image, bitbake

I am following the steps here:http://variwiki.com/index.php?title=VAR-SOM-AM33_Yocto_FIDO_GS
I get the following error:
ERROR: Function failed: do_compile (log file is located at /home/philip/yocto_varsomam33/tisdk/build/arago-tmp-external-linaro-toolchain/work/cortexa8hf-vfp-neon-linux-gnueabi/input-utils/1.0-r0/temp/log.do_compile.3467)
ERROR: Logfile of failure stored in: /home/philip/yocto_varsomam33/tisdk/build/arago-tmp-external-linaro-toolchain/work/cortexa8hf-vfp-neon-linux-gnueabi/input-utils/1.0-r0/temp/log.do_compile.3467
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 6 DESTDIR=/home/philip/yocto_varsomam33/tisdk/build/arago-tmp-external-linaro-toolchain/work/cortexa8hf-vfp-neon-linux-gnueabi/input-utils/1.0-r0/image STRIP=
| Make.config:1: *** empty variable name. Stop.
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/philip/yocto_varsomam33/tisdk/build/arago-tmp-external-linaro-toolchain/work/cortexa8hf-vfp-neon-linux-gnueabi/input-utils/1.0-r0/temp/log.do_compile.3467)
ERROR: Task 1815 (/home/philip/yocto_varsomam33/tisdk/sources/meta-arago/meta-arago-extras/recipes-devtools/input-utils/input-utils_1.0.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3217 tasks of which 3211 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
Waiting for 0 running tasks to finish:
Summary: 1 task failed:
/home/philip/yocto_varsomam33/tisdk/sources/meta-arago/meta-arago-extras/recipes-devtools/input-utils/input-utils_1.0.bb, do_compile
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
If I look at the inputs-utils_1.0.bb file:
# set the DESTDIR and the STRIP variables used by the GNUmakefile.
# The STRIP variable is set to blank or else the variable setting from OE
# is picked up as <TC>-strip and the install step sees that as another
# file to install.
EXTRA_OEMAKE = "DESTDIR=${D} STRIP=''"
do_install () {
oe_runmake install
}
What to I do with the STRIP variable?
Thanks!
I rebuilt the VM with ubuntu 14.04 and now it works

cordova phonegap error 1 while build apk

FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':processDebugResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\build-tools\22.0.1\aapt.exe'' finished with non-zero exit value 1
Try:
BUILD FAILED
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Total time: 7.291 secs
ERROR building one of the platforms: Error code 1 for command: cmd with args: /s,/c,"E:\nissagaza\platforms\android\gradlew cdvBuildDebug
-b E:\nissagaza\platforms\android\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"
You may not have the required environment or OS to build this project
Error: Error code 1 for command: cmd with args: /s,/c,"E:\nissagaza\platforms\android\gradlew cdvBuildDebug -b
E:\nissagaza\platforms\android\build.gradle -Dorg.gradle.daemon=true
-Pandroid.useDeprecatedNdk=true"

Resources