All of lore.kernel.org
 help / color / mirror / Atom feed
* 5.10 build issue creating library for driver support.
@ 2021-04-09  4:58 David F.
  2021-04-24 13:26 ` Fwd: " David F.
  0 siblings, 1 reply; 6+ messages in thread
From: David F. @ 2021-04-09  4:58 UTC (permalink / raw)
  To: Linux Kbuild mailing list

Hello,

I moved to 5.10 from 5.4 now I have build problem:

"No rule to make target '/path/to/sourcefile.o', needed by '/path/to/lib.a' Stop

The build will build a small library file of shared driver support
routines, but it doesn't appear the build will support a library
anymore?  Is there a patch for that?

There was a patch that fix a prior problem of linking to a lib.a file:

Subject: Moving from 4.x to 5.4.22 breaks custom module build.

Is there a fix for this new issue?

Thanks.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Fwd: 5.10 build issue creating library for driver support.
  2021-04-09  4:58 5.10 build issue creating library for driver support David F.
@ 2021-04-24 13:26 ` David F.
  2021-04-26  5:30   ` Masahiro Yamada
  0 siblings, 1 reply; 6+ messages in thread
From: David F. @ 2021-04-24 13:26 UTC (permalink / raw)
  To: Linux Kbuild mailing list

Hello,

I moved to 5.10 from 5.4 now I have build problem:

"No rule to make target '/path/to/sourcefile.o', needed by '/path/to/lib.a' Stop

The build will build a small library file of shared driver support
routines, but it doesn't appear the build will support a library
anymore?  Is there a patch for that?

There was a patch that fix a prior problem of linking to a lib.a file:

Subject: Moving from 4.x to 5.4.22 breaks custom module build.

Is there a fix for this new issue?

Thanks.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 5.10 build issue creating library for driver support.
  2021-04-24 13:26 ` Fwd: " David F.
@ 2021-04-26  5:30   ` Masahiro Yamada
  2021-05-01  5:04     ` David F.
  0 siblings, 1 reply; 6+ messages in thread
From: Masahiro Yamada @ 2021-04-26  5:30 UTC (permalink / raw)
  To: David F.; +Cc: Linux Kbuild mailing list

On Sat, Apr 24, 2021 at 10:26 PM David F. <df7729@gmail.com> wrote:
>
> Hello,
>
> I moved to 5.10 from 5.4 now I have build problem:
>
> "No rule to make target '/path/to/sourcefile.o', needed by '/path/to/lib.a' Stop
>
> The build will build a small library file of shared driver support
> routines, but it doesn't appear the build will support a library
> anymore?  Is there a patch for that?
>
> There was a patch that fix a prior problem of linking to a lib.a file:
>
> Subject: Moving from 4.x to 5.4.22 breaks custom module build.
>
> Is there a fix for this new issue?
>
> Thanks.


I think you asked the same question before,
and you found a patch.

https://patchwork.kernel.org/project/linux-kbuild/patch/20200106032324.3147-1-masahiroy@kernel.org/#23088533
Doesn't this solve your problem?

-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 5.10 build issue creating library for driver support.
  2021-04-26  5:30   ` Masahiro Yamada
@ 2021-05-01  5:04     ` David F.
  2021-05-17 21:03       ` David F.
  0 siblings, 1 reply; 6+ messages in thread
From: David F. @ 2021-05-01  5:04 UTC (permalink / raw)
  To: Masahiro Yamada; +Cc: Linux Kbuild mailing list

The old 5.4 patch fixed the problem I had then which was linking with
a library, this one is that it won't *create* the library.

"No rule to make target '/path/to/sourcefile.o', needed by '/path/to/lib.a' Stop

With 5.10 you get the above problem with 5.4 without the patch you can
still create it, just can't link with it, with the patch it works
perfectly.  So it's new in 5.10.

Thanks!!

On Sun, Apr 25, 2021 at 10:31 PM Masahiro Yamada <masahiroy@kernel.org> wrote:
>
> On Sat, Apr 24, 2021 at 10:26 PM David F. <df7729@gmail.com> wrote:
> >
> > Hello,
> >
> > I moved to 5.10 from 5.4 now I have build problem:
> >
> > "No rule to make target '/path/to/sourcefile.o', needed by '/path/to/lib.a' Stop
> >
> > The build will build a small library file of shared driver support
> > routines, but it doesn't appear the build will support a library
> > anymore?  Is there a patch for that?
> >
> > There was a patch that fix a prior problem of linking to a lib.a file:
> >
> > Subject: Moving from 4.x to 5.4.22 breaks custom module build.
> >
> > Is there a fix for this new issue?
> >
> > Thanks.
>
>
> I think you asked the same question before,
> and you found a patch.
>
> https://patchwork.kernel.org/project/linux-kbuild/patch/20200106032324.3147-1-masahiroy@kernel.org/#23088533
> Doesn't this solve your problem?
>
> --
> Best Regards
> Masahiro Yamada

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 5.10 build issue creating library for driver support.
  2021-05-01  5:04     ` David F.
@ 2021-05-17 21:03       ` David F.
       [not found]         ` <CAGRSmLvQ+BCGJDdSW0JEjeGHznu4vbosxBLSF28RFvbQ_x7AsA@mail.gmail.com>
  0 siblings, 1 reply; 6+ messages in thread
From: David F. @ 2021-05-17 21:03 UTC (permalink / raw)
  To: Masahiro Yamada; +Cc: Linux Kbuild mailing list

Any ideas on a patch to fix it?

On Fri, Apr 30, 2021 at 10:04 PM David F. <df7729@gmail.com> wrote:
>
> The old 5.4 patch fixed the problem I had then which was linking with
> a library, this one is that it won't *create* the library.
>
> "No rule to make target '/path/to/sourcefile.o', needed by '/path/to/lib.a' Stop
>
> With 5.10 you get the above problem with 5.4 without the patch you can
> still create it, just can't link with it, with the patch it works
> perfectly.  So it's new in 5.10.
>
> Thanks!!
>
> On Sun, Apr 25, 2021 at 10:31 PM Masahiro Yamada <masahiroy@kernel.org> wrote:
> >
> > On Sat, Apr 24, 2021 at 10:26 PM David F. <df7729@gmail.com> wrote:
> > >
> > > Hello,
> > >
> > > I moved to 5.10 from 5.4 now I have build problem:
> > >
> > > "No rule to make target '/path/to/sourcefile.o', needed by '/path/to/lib.a' Stop
> > >
> > > The build will build a small library file of shared driver support
> > > routines, but it doesn't appear the build will support a library
> > > anymore?  Is there a patch for that?
> > >
> > > There was a patch that fix a prior problem of linking to a lib.a file:
> > >
> > > Subject: Moving from 4.x to 5.4.22 breaks custom module build.
> > >
> > > Is there a fix for this new issue?
> > >
> > > Thanks.
> >
> >
> > I think you asked the same question before,
> > and you found a patch.
> >
> > https://patchwork.kernel.org/project/linux-kbuild/patch/20200106032324.3147-1-masahiroy@kernel.org/#23088533
> > Doesn't this solve your problem?
> >
> > --
> > Best Regards
> > Masahiro Yamada

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 5.10 build issue creating library for driver support.
       [not found]             ` <CAGRSmLvFh_DpPqyhq7qzeLHmQYQOeYSR6JVMXRdksFdQr3sNUw@mail.gmail.com>
@ 2021-06-12  4:03               ` David F.
  0 siblings, 0 replies; 6+ messages in thread
From: David F. @ 2021-06-12  4:03 UTC (permalink / raw)
  To: Masahiro Yamada; +Cc: Linux Kbuild mailing list

The problem is: No rule to make target '/path/to/sourcefile.o', needed
by '/path/to/lib.a' Stop

I now know it's related to sourcefile being a .cpp file.  I've looked
for differences between 5.4.x and 5.10.x and didn't see any.  Note I
have this in my make file that seems to be ignored which is the
problem:

# pattern for compiling the c++ parts
%.o: %.cpp $(FLAGS)
$(info doing [$@])
$(Q)g++ `cat $(FLAGS)` $(CC_FLAGS) -fno-exceptions -fno-rtti -Wall -c -o $@ $<

UPDATE: Found the problem.  Removing the $(FLAGS) from the first line fixed it:

# pattern for compiling the c++ parts
%.o: %.cpp
$(info doing [$@])
$(Q)g++ `cat $(FLAGS)` $(CC_FLAGS) -fno-exceptions -fno-rtti -Wall -c -o $@ $<

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-06-12  4:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-09  4:58 5.10 build issue creating library for driver support David F.
2021-04-24 13:26 ` Fwd: " David F.
2021-04-26  5:30   ` Masahiro Yamada
2021-05-01  5:04     ` David F.
2021-05-17 21:03       ` David F.
     [not found]         ` <CAGRSmLvQ+BCGJDdSW0JEjeGHznu4vbosxBLSF28RFvbQ_x7AsA@mail.gmail.com>
     [not found]           ` <CAGRSmLu5r4Jrq9C-2B7U6gueKK6B86+yWUJS_J=X10ZDwkzdQQ@mail.gmail.com>
     [not found]             ` <CAGRSmLvFh_DpPqyhq7qzeLHmQYQOeYSR6JVMXRdksFdQr3sNUw@mail.gmail.com>
2021-06-12  4:03               ` David F.

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.