Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No issue: just some info #2

Closed
nerd190 opened this issue Feb 18, 2021 · 4 comments
Closed

No issue: just some info #2

nerd190 opened this issue Feb 18, 2021 · 4 comments
Labels
question Further information is requested

Comments

@nerd190
Copy link

nerd190 commented Feb 18, 2021

Hi, first off, thank you! I love this!
Although Aegis is amazing, half the time, I need the code for the terminal and cotp does that perfectly, exporting from Aegis was made easy by cotp too.
In fact, it works so good that I went a step further completely deleted Aegis and built cotp on Termux (so I can still always access my codes away from my PC), now I am writing a small bash script for a Termux shortcut (a widget on my homescreen), when clicking it, if it detects a URL saved on my clipboard, it will try to find the coresponding entry (e.g https://github.com will return my github code, etc.), else prompts you to select one of your entries.
Good bye interpreted, memory-hogging Java and hello Rust! :)
So this is...
A: Thank you!
B: Reporting it works perfectly on Android for your ReadMe,
C: Whilst I was there, I noticed "Nix OS" wasnt listed, I can confirm it works on this distro too, another one for the ReadMe!

I'll close this now 🤣

@nerd190 nerd190 closed this as completed Feb 18, 2021
@replydev
Copy link
Owner

Hi and thank you for your support! I will surely add your informations in the project's README.
If you want to publish your script i will be happy to insert your repository link in my README. Thanks again!

@replydev
Copy link
Owner

replydev commented Feb 18, 2021

I was trying to compile cotp in termux. I installed the rust toolchain using pkg install rust because i cannot install it using rustup.
The problem is that I get an error during libsodium compilation. Have I to do some other steps to get a functional rust enviroment?

    Updating crates.io index
  Installing cotp v0.1.6
   Compiling libc v0.2.86
   Compiling proc-macro2 v1.0.24
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.60
   Compiling cc v1.0.66
   Compiling version_check v0.9.2
   Compiling rustversion v1.0.4
   Compiling serde_derive v1.0.123
   Compiling bitflags v1.2.1
   Compiling serde v1.0.123
   Compiling pkg-config v0.3.19
   Compiling nix v0.18.0
   Compiling ryu v1.0.5
   Compiling cfg-if v0.1.10
   Compiling serde_json v1.0.62
   Compiling itoa v0.4.7
   Compiling spin v0.5.2
   Compiling once_cell v1.5.2
   Compiling untrusted v0.7.1
   Compiling base64 v0.13.0
   Compiling ascii v1.0.0
   Compiling data-encoding v2.3.2
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling ring v0.16.20
   Compiling quote v1.0.9
   Compiling err-derive v0.3.0
   Compiling libsodium-sys v0.2.6
   Compiling dirs-sys v0.3.5
   Compiling rpassword v5.0.1
   Compiling dirs v3.0.1
   Compiling synstructure v0.12.4
   Compiling ctrlc v3.1.7
error: failed to compile `cotp v0.1.6`, intermediate artifacts can be found at `/data/data/com.termux/files/usr/tmp/cargo-installYb81O9`

Caused by:
  failed to run custom build command for `libsodium-sys v0.2.6`

Caused by:
  process didn't exit successfully: `/data/data/com.termux/files/usr/tmp/cargo-installYb81O9/release/build/libsodium-sys-c12def3f90f40fe7/build-script-build` (exit code: 101)
  --- stdout
  cargo:rerun-if-env-changed=SODIUM_LIB_DIR
  cargo:rerun-if-env-changed=SODIUM_SHARED
  cargo:rerun-if-env-changed=SODIUM_USE_PKG_CONFIG
  cargo:rerun-if-env-changed=SODIUM_DISABLE_PIE
  OPT_LEVEL = Some("3")
  TARGET = Some("aarch64-linux-android")
  HOST = Some("aarch64-linux-android")
  CC_aarch64-linux-android = None
  CC_aarch64_linux_android = None
  HOST_CC = None
  CC = None
  CFLAGS_aarch64-linux-android = None
  CFLAGS_aarch64_linux_android = None
  HOST_CFLAGS = None
  CFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("false")
  CARGO_CFG_TARGET_FEATURE = None
  checking build system type... aarch64-unknown-linux-gnu
  checking host system type... aarch64-unknown-linux-android
  checking for a BSD-compatible install... /data/data/com.termux/files/usr/bin/install -c
  checking whether build environment is sane... yes
  checking for aarch64-linux-android-strip... aarch64-linux-android-strip
  checking for a thread-safe mkdir -p... /data/data/com.termux/files/usr/bin/mkdir -p
  checking for gawk... gawk
  checking whether make sets $(MAKE)... no
  checking whether make supports nested variables... no
  checking whether UID '10208' is supported by ustar format... yes
  checking whether GID '10208' is supported by ustar format... yes
  checking how to create a ustar tar archive... gnutar
  checking whether make supports nested variables... (cached) no
  checking whether to enable maintainer-specific portions of Makefiles... no
  checking whether make supports the include directive... no
  checking for aarch64-linux-android-gcc... aarch64-linux-android-gcc
  checking whether the C compiler works... yes
  checking for C compiler default output file name... a.out
  checking for suffix of executables... 
  checking whether we are cross compiling... no
  checking for suffix of object files... o
  checking whether we are using the GNU C compiler... yes
  checking whether aarch64-linux-android-gcc accepts -g... yes
  checking for aarch64-linux-android-gcc option to accept ISO C89... none needed
  checking whether aarch64-linux-android-gcc understands -c and -o together... yes
  checking dependency style of aarch64-linux-android-gcc... none
  checking for aarch64-linux-android-gcc option to accept ISO C99... none needed
  checking dependency style of aarch64-linux-android-gcc... none
  checking how to run the C preprocessor... aarch64-linux-android-gcc -E
  checking for grep that handles long lines and -e... /data/data/com.termux/files/usr/bin/grep
  checking for egrep... /data/data/com.termux/files/usr/bin/grep -E
  checking for ANSI C header files... yes
  checking for sys/types.h... yes
  checking for sys/stat.h... yes
  checking for stdlib.h... yes
  checking for string.h... yes
  checking for memory.h... yes
  checking for strings.h... yes
  checking for inttypes.h... yes
  checking for stdint.h... yes
  checking for unistd.h... yes
  checking minix/config.h usability... no
  checking minix/config.h presence... no
  checking for minix/config.h... no
  checking whether it is safe to define __EXTENSIONS__... yes
  checking for a sed that does not truncate output... /data/data/com.termux/files/usr/bin/sed
  checking whether aarch64-linux-android-gcc is Clang... yes
  checking whether Clang needs flag to prevent "argument unused" warning when linking with -pthread... no
  checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
  checking whether more special flags are required for pthreads... no
  checking for PTHREAD_PRIO_INHERIT... yes
  checking for variable-length arrays... yes
  checking for __wasi__ defined... no
  checking whether C compiler accepts -fvisibility=hidden... yes
  checking whether C compiler accepts -fPIC... yes
  checking whether C compiler accepts -fPIE... yes
  checking whether the linker accepts -pie... yes
  checking whether C compiler accepts -fno-strict-aliasing... yes
  checking whether C compiler accepts -fno-strict-overflow... yes
  checking for a broken Xcode version... no
  checking whether C compiler accepts -fstack-protector... yes
  checking whether the linker accepts -fstack-protector... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wall... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra... yes
  checking for clang... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-qual... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-qual -Wdiv-by-zero... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits -Wno-unknown-pragmas... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits -Wno-unknown-pragmas -Wnormalized=id... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits -Wno-unknown-pragmas -Wnormalized=id -Wnull-dereference... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits -Wno-unknown-pragmas -Wnormalized=id -Wnull-dereference -Wold-style-declaration... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits -Wno-unknown-pragmas -Wnormalized=id -Wnull-dereference -Wold-style-declaration -Wpointer-arith... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits -Wno-unknown-pragmas -Wnormalized=id -Wnull-dereference -Wold-style-declaration -Wpointer-arith -Wredundant-decls... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits -Wno-unknown-pragmas -Wnormalized=id -Wnull-dereference -Wold-style-declaration -Wpointer-arith -Wredundant-decls -Wrestrict... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits -Wno-unknown-pragmas -Wnormalized=id -Wnull-dereference -Wold-style-declaration -Wpointer-arith -Wredundant-decls -Wrestrict -Wshorten-64-to-32... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits -Wno-unknown-pragmas -Wnormalized=id -Wnull-dereference -Wold-style-declaration -Wpointer-arith -Wredundant-decls -Wrestrict -Wshorten-64-to-32 -Wsometimes-uninitialized... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits -Wno-unknown-pragmas -Wnormalized=id -Wnull-dereference -Wold-style-declaration -Wpointer-arith -Wredundant-decls -Wrestrict -Wshorten-64-to-32 -Wsometimes-uninitialized -Wstrict-prototypes... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits -Wno-unknown-pragmas -Wnormalized=id -Wnull-dereference -Wold-style-declaration -Wpointer-arith -Wredundant-decls -Wrestrict -Wshorten-64-to-32 -Wsometimes-uninitialized -Wstrict-prototypes -Wswitch-enum... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits -Wno-unknown-pragmas -Wnormalized=id -Wnull-dereference -Wold-style-declaration -Wpointer-arith -Wredundant-decls -Wrestrict -Wshorten-64-to-32 -Wsometimes-uninitialized -Wstrict-prototypes -Wswitch-enum -Wvariable-decl... yes
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-qual -Wdiv-by-zero -Wduplicated-branches -Wduplicated-cond -Wfloat-equal -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-type-limits -Wno-unknown-pragmas -Wnormalized=id -Wnull-dereference -Wold-style-declaration -Wpointer-arith -Wredundant-decls -Wrestrict -Wshorten-64-to-32 -Wsometimes-uninitialized -Wstrict-prototypes -Wswitch-enum -Wvariable-decl -Wwrite-strings... yes
  checking whether the linker accepts -Wl,-z,relro... yes
  checking whether the linker accepts -Wl,-z,now... yes
  checking whether the linker accepts -Wl,-z,noexecstack... yes
  checking whether segmentation violations can be caught when using the C compiler... yes
  checking whether SIGABRT can be caught when using the C compiler... yes
  checking for thread local storage (TLS) class... _Thread_local
  thread local storage is supported
  checking whether C compiler accepts -ftls-model=local-dynamic... yes
  checking how to print strings... printf
  checking for a sed that does not truncate output... (cached) /data/data/com.termux/files/usr/bin/sed
  checking for fgrep... /data/data/com.termux/files/usr/bin/grep -F
  checking for ld used by aarch64-linux-android-gcc... /data/data/com.termux/files/usr/bin/aarch64-linux-android-ld
  checking if the linker (/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld) is GNU ld... yes
  checking for BSD- or MS-compatible name lister (nm)... /data/data/com.termux/files/usr/bin/aarch64-linux-android-nm -B
  checking the name lister (/data/data/com.termux/files/usr/bin/aarch64-linux-android-nm -B) interface... BSD nm
  checking whether ln -s works... yes
  checking the maximum length of command line arguments... 32768
  checking how to convert aarch64-unknown-linux-gnu file names to aarch64-unknown-linux-android format... func_convert_file_noop
  checking how to convert aarch64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
  checking for /data/data/com.termux/files/usr/bin/aarch64-linux-android-ld option to reload object files... -r
  checking for aarch64-linux-android-objdump... aarch64-linux-android-objdump
  checking how to recognize dependent libraries... pass_all
  checking for aarch64-linux-android-dlltool... no
  checking for dlltool... no
  checking how to associate runtime and link libraries... printf %s\n
  checking for aarch64-linux-android-ar... aarch64-linux-android-ar
  checking for archiver @FILE support... @
  checking for aarch64-linux-android-strip... (cached) aarch64-linux-android-strip
  checking for aarch64-linux-android-ranlib... aarch64-linux-android-ranlib
  checking command to parse /data/data/com.termux/files/usr/bin/aarch64-linux-android-nm -B output from aarch64-linux-android-gcc object... ok
  checking for sysroot... no
  checking for a working dd... /data/data/com.termux/files/usr/bin/dd
  checking how to truncate binary pipes... /data/data/com.termux/files/usr/bin/dd bs=4096 count=1
  checking for aarch64-linux-android-mt... no
  checking for mt... no
  checking if : is a manifest tool... no
  checking for dlfcn.h... yes
  checking for objdir... .libs
  checking if aarch64-linux-android-gcc supports -fno-rtti -fno-exceptions... yes
  checking for aarch64-linux-android-gcc option to produce PIC... -fPIC -DPIC
  checking if aarch64-linux-android-gcc PIC flag -fPIC -DPIC works... yes
  checking if aarch64-linux-android-gcc static flag -static works... no
  checking if aarch64-linux-android-gcc supports -c -o file.o... yes
  checking if aarch64-linux-android-gcc supports -c -o file.o... (cached) yes
  checking whether the aarch64-linux-android-gcc linker (/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld) supports shared libraries... yes
  checking dynamic linker characteristics... Android linker
  checking how to hardcode library paths into programs... immediate
  checking whether stripping libraries is possible... yes
  checking if libtool supports shared libraries... yes
  checking whether to build shared libraries... no
  checking whether to build static libraries... yes
  checking for aarch64-linux-android-ar... (cached) aarch64-linux-android-ar
  checking whether C compiler accepts -mmmx... yes
  checking for MMX instructions set... no
  checking whether C compiler accepts -msse2... yes
  checking for SSE2 instructions set... no
  checking whether C compiler accepts -msse3... yes
  checking for SSE3 instructions set... no
  checking whether C compiler accepts -mssse3... yes
  checking for SSSE3 instructions set... no
  checking whether C compiler accepts -msse4.1... yes
  checking for SSE4.1 instructions set... no
  checking whether C compiler accepts -mavx... yes
  checking for AVX instructions set... no
  checking whether C compiler accepts -mavx2... yes
  checking for AVX2 instructions set... no
  checking whether C compiler accepts -mavx512f... yes
  checking for AVX512F instructions set... no
  checking whether C compiler accepts -O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra -pthread -fvisibility=hidden -fPIC -fPIE -fno-strict-aliasing -fno-strict-overflow -fstack-protector -ftls-model=local-dynamic -mavx512f -mno-avx512f... yes
  checking whether C compiler accepts -maes... yes
  checking whether C compiler accepts -mpclmul... yes
  checking for AESNI instructions set and PCLMULQDQ... no
  checking whether C compiler accepts -mrdrnd... yes
  checking for RDRAND... no
  checking sys/mman.h usability... yes
  checking sys/mman.h presence... yes
  checking for sys/mman.h... yes
  checking sys/random.h usability... yes
  checking sys/random.h presence... yes
  checking for sys/random.h... yes
  checking intrin.h usability... no
  checking intrin.h presence... no
  checking for intrin.h... no
  checking if _xgetbv() is available... no
  checking for inline... inline
  checking whether byte ordering is bigendian... no
  checking whether __STDC_LIMIT_MACROS is required... no
  checking whether we can use inline asm code... yes
  no
  checking whether we can use x86_64 asm code... no
  checking whether we can assemble AVX opcodes... no
  checking for 128-bit arithmetic... yes
  checking for cpuid instruction... no
  checking if the .private_extern asm directive is supported... no
  checking if the .hidden asm directive is supported... yes
  checking if weak symbols are supported... yes
  checking if data alignment is required... yes
  checking if atomic operations are supported... yes
  checking for size_t... yes
  checking for working alloca.h... yes
  checking for alloca... yes
  checking for arc4random... yes
  checking for arc4random_buf... yes
  checking for mmap... yes
  checking for mlock... yes
  checking for madvise... yes
  checking for mprotect... yes
  checking for getrandom with a standard API... yes
  checking for getrandom... yes
  checking for getentropy with a standard API... no
  checking for posix_memalign... yes
  checking for getpid... yes
  checking for nanosleep... yes
  checking for memset_s... no
  checking for explicit_bzero... no
  checking for explicit_memset... no
  checking if gcc/ld supports -Wl,--output-def... not needed, shared libraries are disabled
  checking that generated files are newer than configure... done
  configure: creating ./config.status
  config.status: creating Makefile
  config.status: creating builds/Makefile
  config.status: creating contrib/Makefile
  config.status: creating dist-build/Makefile
  config.status: creating libsodium.pc
  config.status: creating libsodium-uninstalled.pc
  config.status: creating msvc-scripts/Makefile
  config.status: creating src/Makefile
  config.status: creating src/libsodium/Makefile
  config.status: creating src/libsodium/include/Makefile
  config.status: creating src/libsodium/include/sodium/version.h
  config.status: creating test/default/Makefile
  config.status: creating test/Makefile
  config.status: executing depfiles commands

  --- stderr
  config.status: error: in `/data/data/com.termux/files/usr/tmp/cargo-installYb81O9/release/build/libsodium-sys-0d5556b91c59905c/out/source/libsodium':
  config.status: error: Something went wrong bootstrapping makefile fragments
      for automatic dependency tracking.  If GNU make was not used, consider
      re-running the configure script with MAKE="gmake" (or whatever is
      necessary).  You can also try re-running configure with the
      '--disable-dependency-tracking' option to at least be able to build
      the package (albeit without support for automatic dependency tracking).
  See `config.log' for more details
  thread 'main' panicked at '
  Failed to configure libsodium using "/data/data/com.termux/files/usr/tmp/cargo-installYb81O9/release/build/libsodium-sys-0d5556b91c59905c/out/source/libsodium/configure" "--prefix=/data/data/com.termux/files/usr/tmp/cargo-installYb81O9/release/build/libsodium-sys-0d5556b91c59905c/out/installed" "--libdir=/data/data/com.termux/files/usr/tmp/cargo-installYb81O9/release/build/libsodium-sys-0d5556b91c59905c/out/installed/lib" "--host=aarch64-linux-android" "--enable-shared=no"
  CFLAGS=-O3 -ffunction-sections -fdata-sections -fPIC -Wall -Wextra
  CC=aarch64-linux-android-gcc

  ', /data/data/com.termux/files/home/.cargo/registry/src/github.com-1ecc6299db9ec823/libsodium-sys-0.2.6/build.rs:240:9
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

@nerd190
Copy link
Author

nerd190 commented Feb 19, 2021

@replydev you can install it with apt install libsodium then it will build.
Apart from that things like make, cmake, clang (or gcc), llvm,build-essential, util-linux, ncurses will all be worth installing too, there are some others but these will get you started. (apt list to see every pkg available).
Honestly, once thats done, you should be good to go! 👍

If you have any problems, just ask me, I'd be happy to help!

As for the script, I wont bother making it a repo, but I'd gladly share it with you and your users, its nice to not have to open a terminal first, either hit the shortcut on the home screen or use the "share" function instead!

@replydev
Copy link
Owner

It compiles with no issues after installing all the packages you wrote, thanks for help.

@replydev replydev added the question Further information is requested label May 16, 2022
replydev added a commit that referenced this issue May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants