https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119578

            Bug ID: 119578
           Summary: internal compiler error when building torch-2.6.0 on
                    aarch64-linux
           Product: gcc
           Version: 14.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pavol at rusnak dot io
  Target Milestone: ---

I tried to compile torch-2.6.0 on aarch64-linux with NixOS/nixpkgs.

I encountered the following error:

In file included from
ESC[K/tmp/nix-build-python3.12-torch-2.6.0.drv-0/pytorch/aten/src/ATen/native/cpu/Activation.cpp:12ESC[K,
                 from
ESC[K/tmp/nix-build-python3.12-torch-2.6.0.drv-0/pytorch/build/aten/src/ATen/native/cpu/Activation.cpp.DEFAULT.cpp:1ESC[K:
ESC[K/tmp/nix-build-python3.12-torch-2.6.0.drv-0/pytorch/aten/src/ATen/native/cpu/Activation.cpp:ESC[K
In lambda function:
ESC[K/tmp/nix-build-python3.12-torch-2.6.0.drv-0/pytorch/aten/src/ATen/native/cpu/Activation.cpp:89:7:ESC[K
ESC[Kinternal compiler error: ESC[KSegmentation fault
   89 |       ESC[K}ESC[K);
      |       ESC[K^ESC[K
ESC[K/tmp/nix-build-python3.12-torch-2.6.0.drv-0/pytorch/aten/src/ATen/Dispatch.h:202:7:ESC[K
ESC[Knote: ESC[Kin definition of macro ‘ESC[KAT_DISPATCH_SWITCHESC[K’
  202 |       ESC[K__VA_ARGS__ESC[K                                            
              \
      |       ESC[K^~~~~~~~~~~ESC[K
ESC[K/tmp/nix-build-python3.12-torch-2.6.0.drv-0/pytorch/aten/src/ATen/Dispatch.h:73:3:ESC[K
ESC[Knote: ESC[Kin expansion of macro
‘ESC[KAT_PRIVATE_CASE_TYPE_USING_HINTESC[K’
   73 |   ESC[KAT_PRIVATE_CASE_TYPE_USING_HINTESC[K(enum_type, scalar_t,
__VA_ARGS__)
      |   ESC[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ESC[K
ESC[K/tmp/nix-build-python3.12-torch-2.6.0.drv-0/pytorch/aten/src/ATen/Dispatch.h:215:3:ESC[K
ESC[Knote: ESC[Kin expansion of macro ‘ESC[KAT_DISPATCH_CASEESC[K’
  215 |   ESC[KAT_DISPATCH_CASEESC[K(at::ScalarType::Double, __VA_ARGS__) \
      |   ESC[K^~~~~~~~~~~~~~~~ESC[K
ESC[K/tmp/nix-build-python3.12-torch-2.6.0.drv-0/pytorch/aten/src/ATen/Dispatch.h:219:34:ESC[K
ESC[Knote: ESC[Kin expansion of macro
‘ESC[KAT_DISPATCH_CASE_FLOATING_TYPESESC[K’
  219 |   AT_DISPATCH_SWITCH(TYPE, NAME,
ESC[KAT_DISPATCH_CASE_FLOATING_TYPESESC[K(__VA_ARGS__))
      |                                 
ESC[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ESC[K
ESC[K/tmp/nix-build-python3.12-torch-2.6.0.drv-0/pytorch/aten/src/ATen/native/cpu/Activation.cpp:65:5:ESC[K
ESC[Knote: ESC[Kin expansion of macro ‘ESC[KAT_DISPATCH_FLOATING_TYPESESC[K’
   65 |     ESC[KAT_DISPATCH_FLOATING_TYPESESC[K(input.scalar_type(),
"log_sigmoid_cpu", [&] {
      |     ESC[K^~~~~~~~~~~~~~~~~~~~~~~~~~ESC[K
0x1ec56ff diagnostic_impl(rich_location*, diagnostic_metadata const*, int, char
const*, std::__va_list*, diagnostic_t)
        ???:0
0x1ec5f2f internal_error(char const*, ...)
        ???:0
0xfa4853 crash_signal(int)
        ???:0
0xdb594c mark_jump_label_1(rtx_def*, rtx_insn*, bool, bool)
        ???:0
0xdb5b5f mark_jump_label_1(rtx_def*, rtx_insn*, bool, bool)
        ???:0
0xdb5b5f mark_jump_label_1(rtx_def*, rtx_insn*, bool, bool)
        ???:0
0xdb5d47 mark_all_labels(rtx_insn*)
        ???:0
0xdb6073 rebuild_jump_labels(rtx_insn*)
        ???:0
0xaaebdf (anonymous namespace)::pass_expand::execute(function*)
        ???:0

Reply via email to