Under Ubuntu 24.04.3 LTS (Noble Numbat), Debian 13 (trixie) or macOS 13.7.8 (Ventura), with the JAR release 1.7-21-g814d573 (https://github.com/rarsm/rars/releases/download/lastest/rars-flatlaf.jar) and the following settings:
assembling this simple code:
.text
.global main
main:
li a7,10
ecall
causes the following error:
Assemble: assembling /home/joe/bug.s
Error in : Duplicate text segment address: 0x00400004 already occupied by /home/joe/bug.s line 5 (caused by use of .text operand)
Assemble: operation completed with errors.
Disabling option Initialize Program Counter to global 'main' if defined apparently solves the issue.