Skip to contentSkip to conversation

arch/powerpc/kernel/vdso32/gettimeofday.S:40: Error: syntax error; found `@', expected `,'

PATCH Nick Desaulniers 1 participant 1 message Sep 24, 2020 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 10 lines · Segher Boessenkool
Quoted 1 line · Nick Desaulniers

I wonder if we need to be setting --target=powerpc-linux-gnu instead?

Yes, probably.

Quoted 2 lines

ah, -a32 will put the assembler in 32b mode. I'm guessing gcc maybe adds this implicitly for -m32?

For Linux and many other systems, yes (if it isn't the default, etc).

Now I'm curious if this behavior works in Clang for x86...does the target triple used internally change when -m32 is specified? If so, I wonder if Clang doesn't do the same thing for PPC maybe.

For now, I'll just send a patch marking the relevant config as broken or "un-selectable" when CC_IS_CLANG with a TODO until we have more time to sort this out; that way the CI will stop harassing folks over it.

Signature · 2 lines
Thanks,
~Nick Desaulniers