Skip to content

cc: internal compiler error: Segmentation fault signal terminated program cc1 #43

Description

@kapcom01

While building an application with corteca build, randomly we receive the following error:

...

14.54 cc -Werror -Wall -Wextra -Wformat=2 -Wshadow -Wwrite-strings -Wredundant-decls -Wpedantic -Wmissing-declarations -Wno-format-nonliteral -fPIC -g3 -I ../include -I ../include_priv -Wstrict-prototypes -Wold-style-definition -Wnested-externs -Wdeclaration-after-statement -std=c11 -c -o ../output/aarch64-alpine-linux-musl/amxc_string.o amxc_string.c
15.70 cc: internal compiler error: Segmentation fault signal terminated program cc1
15.70 Please submit a full bug report, with preprocessed source (by using -freport-bug).
15.70 See <https://gitlab.alpinelinux.org/alpine/aports/-/issues> for instructions.
15.70 make[1]: *** [makefile:62: ../output/aarch64-alpine-linux-musl/amxc_string.o] Error 4
15.70 make[1]: Leaving directory '/Ambiorix/libamxc/src'
15.71 make: *** [makefile:23: all] Error 2
...

The workaround I have found is to run the following command:

sudo sysctl -w kernel.randomize_va_space=0

This command is from a related issue of buildx, which is used internally by corteca.
Related issue: docker/buildx#3170

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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