Skip to contentSkip to conversation

arch/arm/lib/crt0_arm_efi.o build errors

U-Boot Andreas Färber 3 participants 3 messages Apr 11, 2017 – Apr 24, 2017

lore
Share & tools
lore
#0 lore raw

Hello,

In our OBS builds I occasionally see the following build failure with, e.g., -j 2, which seems to hint at a missing Makefile dependency somewhere:

Quoted 10 lines
[  234s]   CC      lib/efi_loader/helloworld.o
[  234s] make[2]: *** No rule to make target 'arch/arm/lib/crt0_arm_efi.o', needed by 'lib/efi_loader/helloworld.so'.  Stop.
[  234s] make[2]: *** Waiting for unfinished jobs....
[  234s] make[1]: *** [scripts/Makefile.build:425: lib/efi_loader] Error 2
[  234s] make: *** [Makefile:1234: lib] Error 2
[  234s] make: *** Waiting for unfinished jobs....
[  234s]   CC      arch/arm/lib/cache-cp15.o
[  234s]   CC      arch/arm/lib/psci-dt.o
[  235s]   AS      arch/arm/lib/ashldi3.o
[  235s]   AS      arch/arm/lib/ashrdi3.o
Quoted 8 lines
[  235s]   CC      arch/arm/lib/div0.o
[  235s]   AS      arch/arm/lib/div64.o
[  235s]   AS      arch/arm/lib/lib1funcs.o
[  235s]   AS      arch/arm/lib/lshrdi3.o
[  235s]   AS      arch/arm/lib/muldi3.o
[  235s]   AS      arch/arm/lib/uldivmod.o
[  235s]   CC      arch/arm/lib/eabi_compat.o
[  235s]   AS      arch/arm/lib/crt0_arm_efi.o

Here it built okay, but too late for helloworld.o.

Quoted 4 lines
[  235s]   CC      arch/arm/lib/reloc_arm_efi.o
[  235s]   LD      arch/arm/lib/built-in.o
[  235s]   AR      arch/arm/lib/lib.a
[  236s] error: Bad exit status from /var/tmp/rpm-tmp.3J9RiO (%build)

Happens for various defconfigs, hard to reproduce.

Regards,
Andreas

Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)
#1 lore raw
Quoted 23 lines · Andreas Färber

Hello,

In our OBS builds I occasionally see the following build failure with, e.g., -j 2, which seems to hint at a missing Makefile dependency somewhere:

Quoted 10 lines
[  234s]   CC      lib/efi_loader/helloworld.o
[  234s] make[2]: *** No rule to make target 'arch/arm/lib/crt0_arm_efi.o', needed by 'lib/efi_loader/helloworld.so'.  Stop.
[  234s] make[2]: *** Waiting for unfinished jobs....
[  234s] make[1]: *** [scripts/Makefile.build:425: lib/efi_loader] Error 2
[  234s] make: *** [Makefile:1234: lib] Error 2
[  234s] make: *** Waiting for unfinished jobs....
[  234s]   CC      arch/arm/lib/cache-cp15.o
[  234s]   CC      arch/arm/lib/psci-dt.o
[  235s]   AS      arch/arm/lib/ashldi3.o
[  235s]   AS      arch/arm/lib/ashrdi3.o
Quoted 8 lines
[  235s]   CC      arch/arm/lib/div0.o
[  235s]   AS      arch/arm/lib/div64.o
[  235s]   AS      arch/arm/lib/lib1funcs.o
[  235s]   AS      arch/arm/lib/lshrdi3.o
[  235s]   AS      arch/arm/lib/muldi3.o
[  235s]   AS      arch/arm/lib/uldivmod.o
[  235s]   CC      arch/arm/lib/eabi_compat.o
[  235s]   AS      arch/arm/lib/crt0_arm_efi.o
Quoted 7 lines

Here it built okay, but too late for helloworld.o.

Quoted 4 lines
[  235s]   CC      arch/arm/lib/reloc_arm_efi.o
[  235s]   LD      arch/arm/lib/built-in.o
[  235s]   AR      arch/arm/lib/lib.a
[  236s] error: Bad exit status from /var/tmp/rpm-tmp.3J9RiO (%build)

Happens for various defconfigs, hard to reproduce.

Simon, you introduced the efi crt0. Any idea what could be going wrong?

Alex

#2 lore raw

Hi Alex,

Quoted 37 lines · Alexander Graf
Quoted 36 lines · Andreas Färber

Hello,

In our OBS builds I occasionally see the following build failure with, e.g., -j 2, which seems to hint at a missing Makefile dependency somewhere:

Quoted 7 lines

[ 234s] CC lib/efi_loader/helloworld.o
[ 234s] make[2]: *** No rule to make target 'arch/arm/lib/crt0_arm_efi.o', needed by 'lib/efi_loader/helloworld.so'. Stop.
[ 234s] make[2]: *** Waiting for unfinished jobs....
[ 234s] make[1]: *** [scripts/Makefile.build:425: lib/efi_loader] Error 2

Quoted 14 lines
[  234s] make: *** [Makefile:1234: lib] Error 2
[  234s] make: *** Waiting for unfinished jobs....
[  234s]   CC      arch/arm/lib/cache-cp15.o
[  234s]   CC      arch/arm/lib/psci-dt.o
[  235s]   AS      arch/arm/lib/ashldi3.o
[  235s]   AS      arch/arm/lib/ashrdi3.o
[  235s]   CC      arch/arm/lib/div0.o
[  235s]   AS      arch/arm/lib/div64.o
[  235s]   AS      arch/arm/lib/lib1funcs.o
[  235s]   AS      arch/arm/lib/lshrdi3.o
[  235s]   AS      arch/arm/lib/muldi3.o
[  235s]   AS      arch/arm/lib/uldivmod.o
[  235s]   CC      arch/arm/lib/eabi_compat.o
[  235s]   AS      arch/arm/lib/crt0_arm_efi.o

Here it built okay, but too late for helloworld.o.

Quoted 4 lines
[  235s]   CC      arch/arm/lib/reloc_arm_efi.o
[  235s]   LD      arch/arm/lib/built-in.o
[  235s]   AR      arch/arm/lib/lib.a
[  236s] error: Bad exit status from /var/tmp/rpm-tmp.3J9RiO (%build)
Quoted 4 lines
Quoted 1 line

Happens for various defconfigs, hard to reproduce.

Simon, you introduced the efi crt0. Any idea what could be going wrong?

It is most likely a race condition due to a missing dependency.

I see that I have two separate rules in Makefile.lib for the crt0 file. I wonder if they can be combined?

Regards,
Simon