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

Build error #76

Open
webhive opened this issue Jan 18, 2023 · 0 comments
Open

Build error #76

webhive opened this issue Jan 18, 2023 · 0 comments

Comments

@webhive
Copy link

webhive commented Jan 18, 2023

I am building branch khadas-linux-6.1.y with fenix tool using docker.
And I got some errors related to preprocess constant expressions. I was fixing it replacing expressions like 0.707 * 1024 with manually calculated values until stuck with the following error:

Info: Linux: Already on branch 'khadas-linux-6.1.y'
Info: Build linux...
aarch64-none-linux-gnu- /home/khadas/fenix/build/toolchains/gcc-arm-aarch64-none-linux-gnu-mainline/bin
make[1]: Entering directory '/home/khadas/fenix/build/linux'
#
# No change to .config
#
make[1]: Leaving directory '/home/khadas/fenix/build/linux'
make[1]: Entering directory '/home/khadas/fenix/build/linux'
  CALL    scripts/checksyscalls.sh
  CC      drivers/base/power/sysfs.o
  CC      drivers/base/power/generic_ops.o
  CC      drivers/gpu/drm/meson/meson_viu.o
  CC [M]  drivers/block/drbd/drbd_bitmap.o
  CC      drivers/base/power/common.o
  CC      drivers/base/power/qos.o
drivers/gpu/drm/meson/meson_viu.c:64:9: internal compiler error: Illegal instruction
   64 |         COEFF_NORM(0.181873),   COEFF_NORM(0.611831),   COEFF_NORM(0.061765),
      |         ^~~~~~~~~~
0x1732310 diagnostic_impl(rich_location*, diagnostic_metadata const*, int, char const*, __va_list_tag (*) [1], diagnostic_t)
	???:0
0x1732f96 internal_error(char const*, ...)
	???:0
0xc24faf crash_signal(int)
	???:0
0x1935b09 __gmpn_mul_basecase
	???:0
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://bugs.linaro.org/> for instructions.
make[6]: *** [scripts/Makefile.build:250: drivers/gpu/drm/meson/meson_viu.o] Error 1
make[5]: *** [scripts/Makefile.build:500: drivers/gpu/drm/meson] Error 2
make[4]: *** [scripts/Makefile.build:500: drivers/gpu/drm] Error 2
make[3]: *** [scripts/Makefile.build:500: drivers/gpu] Error 2
make[3]: *** Waiting for unfinished jobs....

It is related to same issue as compiler unable to precalculate expression #define COEFF_NORM(a) ((int)((((a) * 2048.0) + 1) / 2)), but I am not so familiar to this code to resolve such kind of issues.

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

1 participant