Skip to content

Segfault cc target riscv32-linux #12212

@RodrigoDornelles

Description

@RodrigoDornelles

Zig Version

0.9.1

Steps to Reproduce

git clone https://github.com/rodrigodornelles/3bc-lang
zig cc main.c -target riscv32-linux -o 3bc.so

Expected Behavior

build as a success.

Actual Behavior

zsh: segmentation fault zig cc main.c -target riscv32-linux -dynamiclib -o 3bc.so

PC INFO

Darwin mac.local 19.6.0 Darwin Kernel Version 19.6.0: Mon Apr 18 21:50:40 PDT 2022; root:xnu-6153.141.62~1/RELEASE_X86_64 x86_64

Hardware Overview:
      Model Name: MacBook Pro
      Model Identifier: MacBookPro9,2
      Processor Name: Dual-Core Intel Core i5
      Processor Speed: 2,5 GHz
      Number of Processors: 1
      Total Number of Cores: 2
      L2 Cache (per Core): 256 KB
      L3 Cache: 3 MB
      Hyper-Threading Technology: Enabled
      Memory: 16 GB
      Boot ROM Version: 429.0.0.0.0
      SMC Version (system): 2.2f44
      Serial Number (system): DX1NG00TF5WV
      Hardware UUID: 972F115E-0B4E-5B5C-9D04-D5A10D2CC5DD
      Sudden Motion Sensor:
          State: Enabled

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-riscv3232-bit RISC-VbugObserved behavior contradicts documented or intended behavioros-linuxLinuxzig ccZig as a drop-in C compiler feature

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions