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

clang build error: instruction requires fp registers #786

Open
xuwenlong02 opened this issue Jul 29, 2023 · 1 comment
Open

clang build error: instruction requires fp registers #786

xuwenlong02 opened this issue Jul 29, 2023 · 1 comment

Comments

@xuwenlong02
Copy link

xuwenlong02 commented Jul 29, 2023

System Details

clang 15.0
armeabi-v7a

Problems Description

./include/ffi.h:295:93: note: 'ffi_java_ptrarray_to_raw' has been explicitly marked deprecated here
void ffi_java_ptrarray_to_raw (ffi_cif *cif, void **args, ffi_java_raw *raw) __attribute__((deprecated));
                                                                                            ^
2 warnings generated.
libtool: compile:  /home/wlxuz/ohos-sdk/linux/native/llvm/bin/arm-linux-ohos-clang -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -DOHOS_NDK -fPIC -march=armv7a -D__MUSL__=1 -Wall -fexceptions -MT src/java_raw_api.lo -MD -MP -MF src/.deps/java_raw_api.Tpo -c src/java_raw_api.c -o src/java_raw_api.o >/dev/null 2>&1
depbase=`echo src/closures.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ./libtool  --tag=CC   --mode=compile /home/wlxuz/ohos-sdk/linux/native/llvm/bin/arm-linux-ohos-clang -DHAVE_CONFIG_H -I.  -I. -I./include -Iinclude -I./src   -DOHOS_NDK -fPIC -march=armv7a -D__MUSL__=1 -Wall -fexceptions -MT src/closures.lo -MD -MP -MF $depbase.Tpo -c -o src/closures.lo src/closures.c &&\
mv -f $depbase.Tpo $depbase.Plo
depbase=`echo src/arm/ffi.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ./libtool  --tag=CC   --mode=compile /home/wlxuz/ohos-sdk/linux/native/llvm/bin/arm-linux-ohos-clang -DHAVE_CONFIG_H -I.  -I. -I./include -Iinclude -I./src   -DOHOS_NDK -fPIC -march=armv7a -D__MUSL__=1 -Wall -fexceptions -MT src/arm/ffi.lo -MD -MP -MF $depbase.Tpo -c -o src/arm/ffi.lo src/arm/ffi.c &&\
mv -f $depbase.Tpo $depbase.Plo
depbase=`echo src/arm/sysv.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ./libtool  --tag=CC   --mode=compile /home/wlxuz/ohos-sdk/linux/native/llvm/bin/arm-linux-ohos-clang -DHAVE_CONFIG_H -I.  -I. -I./include -Iinclude -I./src  -I. -I./include -Iinclude -I./src -DOHOS_NDK -fPIC -march=armv7a -D__MUSL__=1 -MT src/arm/sysv.lo -MD -MP -MF $depbase.Tpo -c -o src/arm/sysv.lo src/arm/sysv.S &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  /home/wlxuz/ohos-sdk/linux/native/llvm/bin/arm-linux-ohos-clang -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -DOHOS_NDK -fPIC -march=armv7a -D__MUSL__=1 -Wall -fexceptions -MT src/closures.lo -MD -MP -MF src/.deps/closures.Tpo -c src/closures.c  -fPIC -DPIC -o src/.libs/closures.o
libtool: compile:  /home/wlxuz/ohos-sdk/linux/native/llvm/bin/arm-linux-ohos-clang -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -DOHOS_NDK -fPIC -march=armv7a -D__MUSL__=1 -Wall -fexceptions -MT src/arm/ffi.lo -MD -MP -MF src/arm/.deps/ffi.Tpo -c src/arm/ffi.c  -fPIC -DPIC -o src/arm/.libs/ffi.o
libtool: compile:  /home/wlxuz/ohos-sdk/linux/native/llvm/bin/arm-linux-ohos-clang -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -I. -I./include -Iinclude -I./src -DOHOS_NDK -fPIC -march=armv7a -D__MUSL__=1 -MT src/arm/sysv.lo -MD -MP -MF src/arm/.deps/sysv.Tpo -c src/arm/sysv.S  -fPIC -DPIC -o src/arm/.libs/sysv.o
In file included from src/closures.c:524:
./src/dlmalloc.c:3385:7: warning: variable 'nfences' set but not used [-Wunused-but-set-variable]
  int nfences = 0;
      ^
src/arm/sysv.S:132:2: error: instruction requires: fp registers
 vldrle d0, [sp]
 ^
src/arm/sysv.S:133:2: error: instruction requires: fp registers
 vldmgt sp, {d0-d7}
 ^
src/arm/sysv.S:176:2: error: instruction requires: fp registers
 vstr s0, [r2]
 ^
src/arm/sysv.S:183:2: error: instruction requires: fp registers
 vstr d0, [r2]
 ^
src/arm/sysv.S:190:2: error: instruction requires: fp registers
 vstm r2, {d0-d3}
 ^
src/arm/sysv.S:291:2: error: instruction requires: fp registers
 vstm sp, {d0-d7}
 ^
src/arm/sysv.S:324:2: error: instruction requires: fp registers
 vldr s0, [r2]
 ^
src/arm/sysv.S:331:2: error: instruction requires: fp registers
 vldr d0, [r2]
 ^
src/arm/sysv.S:338:2: error: instruction requires: fp registers
 vldm r2, {d0-d3}
 ^
libtool: compile:  /home/wlxuz/ohos-sdk/linux/native/llvm/bin/arm-linux-ohos-clang -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -DOHOS_NDK -fPIC -march=armv7a -D__MUSL__=1 -Wall -fexceptions -MT src/arm/ffi.lo -MD -MP -MF src/arm/.deps/ffi.Tpo -c src/arm/ffi.c -o src/arm/ffi.o >/dev/null 2>&1
make[2]: *** [Makefile:1249: src/arm/sysv.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
1 warning generated.
libtool: compile:  /home/wlxuz/ohos-sdk/linux/native/llvm/bin/arm-linux-ohos-clang -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -DOHOS_NDK -fPIC -march=armv7a -D__MUSL__=1 -Wall -fexceptions -MT src/closures.lo -MD -MP -MF src/.deps/closures.Tpo -c src/closures.c -o src/closures.o >/dev/null 2>&1
make[2]: Leaving directory '/home/wlxuz/tpc_c_cplusplus/thirdparty/libffi/libffi-3.3-armeabi-v7a-build'
make[1]: *** [Makefile:1347: all-recursive] Error 1
make[1]: Leaving directory '/home/wlxuz/tpc_c_cplusplus/thirdparty/libffi/libffi-3.3-armeabi-v7a-build'
make: *** [Makefile:622: all] Error 2
@Driiiim
Copy link

Driiiim commented Aug 11, 2023

The PR #747 may be helpful to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants