Skip to content

Compilation Fails with Segmentation Fault on ARM64 (RK3568) when Building lpeg/re.lua #304

@t59688

Description

@t59688

Hello,

I'm encountering a segmentation fault while trying to compile Luvi on an RK3568 (ARM64, A55 core) based system. The compilation process fails specifically when it attempts to build /home/ubuntu/luvi/deps/lpeg/re.lua into /home/ubuntu/luvi/build/compiled_lua/re_luvi_generated.c.

The same Luvi source code compiles successfully on x86 architecture systems without any issues.

Steps to Reproduce:

  1. Set up the build environment on an RK3568 (ARM64) board.
  2. Clone the Luvi repository
  3. make regular && make

Expected Behavior:

Luvi should compile successfully on the ARM64 (RK3568) architecture, similar to its behavior on x86 systems.

Actual Behavior:

The compilation process aborts at the following stage with a segmentation fault:

[ 90%] Linking C static library libluv.a
make[3]: Leaving directory '/home/ubuntu/luvi/build'
[ 90%] Built target libluv_a
make[3]: Entering directory '/home/ubuntu/luvi/build'
[ 90%] Building Lua /home/ubuntu/luvi/deps/lpeg/re.lua: /home/ubuntu/luvi/build/compiled_lua/re_luvi_generated.c
make[3]: *** [CMakeFiles/luvi.dir/build.make:78: compiled_lua/re_luvi_generated.c] Segmentation fault (core dumped)
make[3]: Leaving directory '/home/ubuntu/luvi/build'
make[2]: *** [CMakeFiles/Makefile2:213: CMakeFiles/luvi.dir/all] Error 2
make[2]: Leaving directory '/home/ubuntu/luvi/build'
make[1]: *** [Makefile:130: all] Error 2
make[1]: Leaving directory '/home/ubuntu/luvi/build'
make: *** [Makefile:192: luvi] Error 2

Environment Details:

  • Hardware Platform: RK3568
  • CPU Architecture: ARM64 (A55)
  • Operating System: , Ubuntu 20.04 LTS for ARM64
  • **Compiler Version:**gcc version 9.4.0
  • CMake Version: cmake version 3.16.3

Possible Causes ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions