Re: arch/um's ssl.o [was: con3270.o] is built twice, leading to errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 19, 2023 at 5:30 PM Jiri Slaby <jirislaby@xxxxxxxxxx> wrote:
>
> On 14. 07. 23, 8:33, Jiri Slaby wrote:
> > Hi,
> >
> > if I create an s390 defconfig:
> > mkdir /tmp/s390/
> > make O=/tmp/s390/ ARCH=s390 CROSS_COMPILE=s390x-suse-linux- defconfig
> >
> > And then if I try for a couple times:
> > make O=/tmp/s390/ -j17 ARCH=s390 CROSS_COMPILE=s390x-suse-linux-
> > drivers/s390/char/con3270.o
> >
> > Most of the time, I get:
> > make[1]: Entering directory '/tmp/s390'
> >    GEN     Makefile
> >    CALL    /home/latest/linux/scripts/checksyscalls.sh
> >    CC      drivers/s390/char/con3270.o
> >    CC      drivers/s390/char/con3270.o
> >
> > I.e. it is built twice.
>
> Similarly, another tty driver, another arch (um):
>
> $ make O=../a/arch/um/ -j17 ARCH=um arch/um/drivers/ssl.o V=2
>    GEN     Makefile - due to target is PHONY
>    CALL    scripts/checksyscalls.sh - due to target is PHONY
>    CC      arch/um/drivers/ssl.o - due to: arch/um/drivers/ssl.c
>    CC      arch/um/drivers/ssl.o - due to: arch/um/drivers/ssl.c
>
> This leads often to corrupted arch/um/arch/um/drivers/.ssl.o.cmd.
>
> But in this case, I see:
> obj-$(CONFIG_SSL) += ssl.o
>
> So is this has this a different root cause?


It is a similar symptom.

See arch/um/Makefile line 26


core-y                  += $(ARCH_DIR)/kernel/          \
                           $(ARCH_DIR)/drivers/         \
                           $(ARCH_DIR)/os-$(OS)/


I will send a patch.



>
> > Sometimes, I also get an error:
> > fixdep: error opening file: drivers/s390/char/.con3270.o.d: No such file
> > or directory
> > make[4]: *** [/home/latest/linux/scripts/Makefile.build:243:
> > drivers/s390/char/con3270.o] Error 2
> > make[4]: *** Deleting file 'drivers/s390/char/con3270.o'
> > make[3]: *** [/home/latest/linux/scripts/Makefile.build:477: drivers]
> >
> > Obviously due to some race.
> >
> > Any ideas what is going on?
> >
> > thanks,
>
> --
> js
> suse labs
>


-- 
Best Regards
Masahiro Yamada




[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux