[PATCH] ld: Fix a H8/300 specific test case

Alan Modra amodra@gmail.com
Mon Nov 10 23:05:23 GMT 2025


On Mon, Nov 10, 2025 at 10:52:33AM +0100, Jan Dubiec wrote:
> On 10.11.2025 01:17, Alan Modra wrote:
> [...]
> > It works here for me on Linux.
> That's really strange. Here is the log from my Ubuntu 24.04.2 running on
> VirtualBox:
> 
> /mnt/Works/xcomp/build-binutils-h8300-linux/ld/../gas/as-new     -o
> tmpdir/relax-7?.o /mnt/Works/binutils/ld/testsuite/ld-h8300/relax-7?.s
> Executing on host: sh -c
> {/mnt/Works/xcomp/build-binutils-h8300-linux/ld/../gas/as-new     -o
> tmpdir/relax-7?.o /mnt/Works/binutils/ld/testsuite/ld-h8300/relax-7?.s 2>&1}
> /dev/null dump.tmp (timeout = 300)
> spawn [open ...]
> Assembler messages:
> Fatal error: can't create tmpdir/relax-7?.o: No such file or directory
> failed with: <Assembler messages:
> Fatal error: can't create tmpdir/relax-7?.o: No such file or directory>, no
> expected output
> FAIL: H8300 Relaxation Test 7
> 
> It looks virtually the same as the log from Windows/MSYS2. I'm using DejaGnu
> 1.6.3 and bash 5.2.21, but I don't think that this is an issue related to
> these tools. Perhaps you are using a modified version of run_dump_test & Co?
> I'm using unmodified.

No, everything standard here.

I can run the following without error from the command line.
../gas/as-new -o tmpdir/relax-7\?.o /home/alan/src/binutils-gdb/ld/testsuite/ld-h8300/relax-7?.s
(And without the backslash if I remove the new tmpdir/relax-7a.o and
tmpdir/relax-7b.o)

Perhaps it is a filesystem restriction for you?

-- 
Alan Modra


More information about the Binutils mailing list