All of lore.kernel.org
 help / color / mirror / Atom feed
* [dpdk-dev] dpdk fail at build.
@ 2021-10-25 21:11 yn h
  2021-10-25 21:34 ` Dmitry Kozlyuk
  2021-10-25 21:35 ` David Marchand
  0 siblings, 2 replies; 5+ messages in thread
From: yn h @ 2021-10-25 21:11 UTC (permalink / raw)
  To: dev

I downloaded dpdk version 21.08 from
http://static.dpdk.org/rel/.

Extracted and ran meson build.
During ninja build, I ran into

FAILED: drivers/rte_common_cpt.pmd.c

/usr/bin/python3 ../buildtools/gen-pmdinfo-cfile.py
/home/ybuser/dpdk-21.05/build/buildtools ar
/home/ybuser/dpdk-21.05/build/drivers/libtmp_rte_common_cpt.a
drivers/rte_common_cpt.pmd.c /usr/bin/python3 ../buildtools/pmdinfogen.py
elf

ar: `x' cannot be used on thin archives.

Traceback (most recent call last):

  File "../buildtools/gen-pmdinfo-cfile.py", line 17, in <module>

    run_ar("x")

  File "../buildtools/gen-pmdinfo-cfile.py", line 12, in <lambda>

    run_ar = lambda command: subprocess.run(

  File "/usr/lib/python3.8/subprocess.py", line 516, in run

    raise CalledProcessError(retcode, process.args,

subprocess.CalledProcessError: Command '['ar', 'x',
'/home/ybuser/dpdk-21.05/build/drivers/libtmp_rte_common_cpt.a']' returned
non-zero exit status 1.

[508/2498] Compiling C object
lib/librte_pipeline.a.p/pipeline_rte_table_action.c.o

ninja: build stopped: subcommand failed.



The issue was bypassed when I edited the run_ar("x") to run_ar("p").

Is this a known issue?

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

* Re: [dpdk-dev] dpdk fail at build.
  2021-10-25 21:11 [dpdk-dev] dpdk fail at build yn h
@ 2021-10-25 21:34 ` Dmitry Kozlyuk
  2021-10-25 21:35 ` David Marchand
  1 sibling, 0 replies; 5+ messages in thread
From: Dmitry Kozlyuk @ 2021-10-25 21:34 UTC (permalink / raw)
  To: yn h; +Cc: dev

2021-10-25 17:11 (UTC-0400), yn h:
> I downloaded dpdk version 21.08 from
> http://static.dpdk.org/rel/.
> 
> Extracted and ran meson build.
> During ninja build, I ran into
> 
> FAILED: drivers/rte_common_cpt.pmd.c
> 
> /usr/bin/python3 ../buildtools/gen-pmdinfo-cfile.py
> /home/ybuser/dpdk-21.05/build/buildtools ar
> /home/ybuser/dpdk-21.05/build/drivers/libtmp_rte_common_cpt.a
> drivers/rte_common_cpt.pmd.c /usr/bin/python3 ../buildtools/pmdinfogen.py
> elf
> 
> ar: `x' cannot be used on thin archives.
> 
> Traceback (most recent call last):
> 
>   File "../buildtools/gen-pmdinfo-cfile.py", line 17, in <module>
> 
>     run_ar("x")
> 
>   File "../buildtools/gen-pmdinfo-cfile.py", line 12, in <lambda>
> 
>     run_ar = lambda command: subprocess.run(
> 
>   File "/usr/lib/python3.8/subprocess.py", line 516, in run
> 
>     raise CalledProcessError(retcode, process.args,
> 
> subprocess.CalledProcessError: Command '['ar', 'x',
> '/home/ybuser/dpdk-21.05/build/drivers/libtmp_rte_common_cpt.a']' returned
> non-zero exit status 1.
> 
> [508/2498] Compiling C object
> lib/librte_pipeline.a.p/pipeline_rte_table_action.c.o
> 
> ninja: build stopped: subcommand failed.
> 
> 
> 
> The issue was bypassed when I edited the run_ar("x") to run_ar("p").
> 
> Is this a known issue?

Yes, try using meson < 0.60:
https://bugs.dpdk.org/show_bug.cgi?id=836

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

* Re: [dpdk-dev] dpdk fail at build.
  2021-10-25 21:11 [dpdk-dev] dpdk fail at build yn h
  2021-10-25 21:34 ` Dmitry Kozlyuk
@ 2021-10-25 21:35 ` David Marchand
  2021-10-27  0:43   ` yn h
  1 sibling, 1 reply; 5+ messages in thread
From: David Marchand @ 2021-10-25 21:35 UTC (permalink / raw)
  To: yn h; +Cc: dev

On Mon, Oct 25, 2021 at 11:30 PM yn h <yncraig123@gmail.com> wrote:
>
> I downloaded dpdk version 21.08 from
> http://static.dpdk.org/rel/.
>
> Extracted and ran meson build.
> During ninja build, I ran into
>
> FAILED: drivers/rte_common_cpt.pmd.c
>
> /usr/bin/python3 ../buildtools/gen-pmdinfo-cfile.py
> /home/ybuser/dpdk-21.05/build/buildtools ar
> /home/ybuser/dpdk-21.05/build/drivers/libtmp_rte_common_cpt.a
> drivers/rte_common_cpt.pmd.c /usr/bin/python3 ../buildtools/pmdinfogen.py
> elf
>
> ar: `x' cannot be used on thin archives.
>
> Traceback (most recent call last):
>
>   File "../buildtools/gen-pmdinfo-cfile.py", line 17, in <module>
>
>     run_ar("x")
>
>   File "../buildtools/gen-pmdinfo-cfile.py", line 12, in <lambda>
>
>     run_ar = lambda command: subprocess.run(
>
>   File "/usr/lib/python3.8/subprocess.py", line 516, in run
>
>     raise CalledProcessError(retcode, process.args,
>
> subprocess.CalledProcessError: Command '['ar', 'x',
> '/home/ybuser/dpdk-21.05/build/drivers/libtmp_rte_common_cpt.a']' returned
> non-zero exit status 1.
>
> [508/2498] Compiling C object
> lib/librte_pipeline.a.p/pipeline_rte_table_action.c.o
>
> ninja: build stopped: subcommand failed.
>
>
>
> The issue was bypassed when I edited the run_ar("x") to run_ar("p").
>
> Is this a known issue?

It looks like https://bugs.dpdk.org/show_bug.cgi?id=836
You can try downgrading meson.



-- 
David Marchand


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

* Re: [dpdk-dev] dpdk fail at build.
  2021-10-25 21:35 ` David Marchand
@ 2021-10-27  0:43   ` yn h
  2021-10-27  9:44     ` David Marchand
  0 siblings, 1 reply; 5+ messages in thread
From: yn h @ 2021-10-27  0:43 UTC (permalink / raw)
  To: David Marchand, dmitry.kozliuk; +Cc: dev

Downgrading to 0.59.0 helped to fix that error, but another error
occurred during ninja build.

[0/1] Installing files.


*ERROR:* Build directory has been generated with Meson version 0.59.0,
which is incompatible with the current version 0.60.0.

FAILED: meson-install

/home/ybuser/.local/bin/meson install --no-rebuild

ninja: build stopped: subcommand failed.

On Mon, Oct 25, 2021 at 5:35 PM David Marchand <david.marchand@redhat.com>
wrote:

> On Mon, Oct 25, 2021 at 11:30 PM yn h <yncraig123@gmail.com> wrote:
> >
> > I downloaded dpdk version 21.08 from
> > http://static.dpdk.org/rel/.
> >
> > Extracted and ran meson build.
> > During ninja build, I ran into
> >
> > FAILED: drivers/rte_common_cpt.pmd.c
> >
> > /usr/bin/python3 ../buildtools/gen-pmdinfo-cfile.py
> > /home/ybuser/dpdk-21.05/build/buildtools ar
> > /home/ybuser/dpdk-21.05/build/drivers/libtmp_rte_common_cpt.a
> > drivers/rte_common_cpt.pmd.c /usr/bin/python3 ../buildtools/pmdinfogen.py
> > elf
> >
> > ar: `x' cannot be used on thin archives.
> >
> > Traceback (most recent call last):
> >
> >   File "../buildtools/gen-pmdinfo-cfile.py", line 17, in <module>
> >
> >     run_ar("x")
> >
> >   File "../buildtools/gen-pmdinfo-cfile.py", line 12, in <lambda>
> >
> >     run_ar = lambda command: subprocess.run(
> >
> >   File "/usr/lib/python3.8/subprocess.py", line 516, in run
> >
> >     raise CalledProcessError(retcode, process.args,
> >
> > subprocess.CalledProcessError: Command '['ar', 'x',
> > '/home/ybuser/dpdk-21.05/build/drivers/libtmp_rte_common_cpt.a']'
> returned
> > non-zero exit status 1.
> >
> > [508/2498] Compiling C object
> > lib/librte_pipeline.a.p/pipeline_rte_table_action.c.o
> >
> > ninja: build stopped: subcommand failed.
> >
> >
> >
> > The issue was bypassed when I edited the run_ar("x") to run_ar("p").
> >
> > Is this a known issue?
>
> It looks like https://bugs.dpdk.org/show_bug.cgi?id=836
> You can try downgrading meson.
>
>
>
> --
> David Marchand
>
>

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

* Re: [dpdk-dev] dpdk fail at build.
  2021-10-27  0:43   ` yn h
@ 2021-10-27  9:44     ` David Marchand
  0 siblings, 0 replies; 5+ messages in thread
From: David Marchand @ 2021-10-27  9:44 UTC (permalink / raw)
  To: yn h; +Cc: Dmitry Kozlyuk, dev

On Wed, Oct 27, 2021 at 2:43 AM yn h <yncraig123@gmail.com> wrote:
>
> Downgrading to 0.59.0 helped to fix that error, but another error occurred during ninja build.
>
> [0/1] Installing files.
>
>
> ERROR: Build directory has been generated with Meson version 0.59.0, which is incompatible with the current version 0.60.0.
>
> FAILED: meson-install
>
> /home/ybuser/.local/bin/meson install --no-rebuild
>
> ninja: build stopped: subcommand failed.

I am no meson expert, but I think you should start your build from
scratch or in a different directory.


-- 
David Marchand


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

end of thread, other threads:[~2021-10-27 15:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-25 21:11 [dpdk-dev] dpdk fail at build yn h
2021-10-25 21:34 ` Dmitry Kozlyuk
2021-10-25 21:35 ` David Marchand
2021-10-27  0:43   ` yn h
2021-10-27  9:44     ` David Marchand

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.