Skip to content

test: hardcoded ld emulation mode doesn't work on non-darwin env #2824

Open
@folliehiyuki

Description

@folliehiyuki

cmd = '$TOOLS_LD -r --format binary -z noexecstack -m elf_$XARCH %s -o "${OUTS/.a/.o}" $SRC && $TOOLS_ARCAT ar --srcs "${OUTS/.a/.o}" && $TOOLS_AR s "$OUTS"' % CONFIG.DEFAULT_LDFLAGS

The build rule hardcodes -m elf_$XARCH argument and passes it to ld.

For my environment (AlpineLinux), this seems to only work on x86_64, and the test //test/cc_rules/gcc:* is failing on AlpineLinux's aarch64 CI: https://gitlab.alpinelinux.org/FollieHiyuki/aports/-/jobs/1049123

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions