From: William Tu <u9012063@gmail.com>
To: Dmitry Kozliuk <dmitry.kozliuk@gmail.com>
Cc: Jeremy Plsek <jplsek@iol.unh.edu>, dev@dpdk.org
Subject: Re: [dpdk-dev] DPDK Windows Build
Date: Mon, 3 Feb 2020 16:55:58 -0800 [thread overview]
Message-ID: <CALDO+SYtsitSm1wUEuida6+ybkkTcS-dSRYrRsrt4_bB6UOuPQ@mail.gmail.com> (raw)
In-Reply-To: <CAEYuUWAJGS8+su5p4S+4P-6w2T6uyA0xfd6XGLxT6oXqmnUyKg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2133 bytes --]
On Mon, Feb 3, 2020 at 3:43 PM Dmitry Kozliuk <dmitry.kozliuk@gmail.com> wrote:
>>
>> Do I mess up some linker's configurations?
>> I attached the meson log, thanks for your help!
>
>
> Those are not errors, just harmless warnings. You can now build and run an example program (rerun meson with -Dexamples=helloworld per Windows Getting Started Guide).
Hi Dmitry,
Thanks. However with -Dexamples=helloworld, it shows another error:
C:\dpdk-draft-windows>meson -Dexamples=helloworld build11
The Meson build system
Version: 0.53.999
Source dir: C:\dpdk-draft-windows
Build dir: C:\dpdk-draft-windows\build11
Build type: native build
Program cat found: NO
Program more found: YES (C:\WINDOWS\system32\more.COM)
Project name: DPDK
Project version: 19.05.0-rc4
C compiler for the host machine: clang (clang 7.0.1 "clang version
7.0.1 (tags/RELEASE_701/final)")
C linker for the host machine: clang link 14.24.28316.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program ../buildtools/symlink-drivers-solibs.sh found: YES (sh
C:\dpdk-draft-windows\config\../buildtools/symlink-drivers-solibs.sh)
Checking for size of "void *" : 8
Library libm found: NO
Library numa found: NO
Did not find pkg-config by name 'pkg-config'
Found Pkg-config: NO
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency libbsd found: NO (tried pkgconfig and cmake)
Compiler for C supports arguments -Wsign-compare: YES
Compiler for C supports arguments -Wcast-qual: YES
Compiler for C supports arguments -Wno-address-of-packed-member: YES
Fetching value of define "__SSE4_2__" : 1
Fetching value of define "__AES__" : 1
Fetching value of define "__PCLMUL__" : 1
Fetching value of define "__AVX__" : 1
Fetching value of define "__AVX2__" : 1
Fetching value of define "__AVX512F__" :
Compiler for C supports arguments -Wno-format-truncation: NO
Program doxygen found: NO
Program sphinx-build found: NO
Library execinfo found: NO
examples\meson.build:11:0: ERROR: Program or command 'sh' not found or
not executable
A full log can be found at
C:\dpdk-draft-windows\build11\meson-logs\meson-log.txt
Do I need to install "sh"?
Thanks
William
[-- Attachment #2: meson-log.txt --]
[-- Type: text/plain, Size: 12020 bytes --]
Build started at 2020-02-03T16:52:14.471565
Main binary: C:\Python38\python.exe
Build Options: -Dexamples=helloworld
Python system: Windows
The Meson build system
Version: 0.53.999
Source dir: C:\dpdk-draft-windows
Build dir: C:\dpdk-draft-windows\build11
Build type: native build
Program cat found: NO
Program more found: YES (C:\WINDOWS\system32\more.COM)
Running command: C:\WINDOWS\system32\more.COM C:\dpdk-draft-windows\VERSION
--- stdout ---
19.05.0-rc4
--- stderr ---
Project name: DPDK
Project version: 19.05.0-rc4
No CFLAGS in the environment, not changing global flags.
No LDFLAGS in the environment, not changing global flags.
No CPPFLAGS in the environment, not changing global flags.
Sanity testing C compiler: clang
Is cross compiler: False.
Sanity check compiler command line: clang C:\dpdk-draft-windows\build11\meson-private\sanitycheckc.c -o C:\dpdk-draft-windows\build11\meson-private\sanitycheckc.exe -Wl,/MDd -pipe
Sanity check compile stdout:
LINK : warning LNK4044: unrecognized option '/MDd'; ignored
-----
Sanity check compile stderr:
-----
Running test binary command: C:\dpdk-draft-windows\build11\meson-private\sanitycheckc.exe
C compiler for the build machine: clang (clang 7.0.1 "clang version 7.0.1 (tags/RELEASE_701/final)")
C linker for the build machine: clang link 14.24.28316.0
No CFLAGS in the environment, not changing global flags.
No LDFLAGS in the environment, not changing global flags.
No CPPFLAGS in the environment, not changing global flags.
Sanity testing C compiler: clang
Is cross compiler: False.
Sanity check compiler command line: clang C:\dpdk-draft-windows\build11\meson-private\sanitycheckc.c -o C:\dpdk-draft-windows\build11\meson-private\sanitycheckc.exe -Wl,/MDd -pipe
Sanity check compile stdout:
LINK : warning LNK4044: unrecognized option '/MDd'; ignored
-----
Sanity check compile stderr:
-----
Running test binary command: C:\dpdk-draft-windows\build11\meson-private\sanitycheckc.exe
C compiler for the host machine: clang (clang 7.0.1 "clang version 7.0.1 (tags/RELEASE_701/final)")
C linker for the host machine: clang link 14.24.28316.0
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: x86_64
Host machine cpu: x86_64
Target machine cpu family: x86_64
Target machine cpu: x86_64
Program ../buildtools/symlink-drivers-solibs.sh found: YES (sh C:\dpdk-draft-windows\config\../buildtools/symlink-drivers-solibs.sh)
Running compile:
Working directory: C:\dpdk-draft-windows\build11\meson-private\tmpyv_1ax7e
Command line: clang C:\dpdk-draft-windows\build11\meson-private\tmpyv_1ax7e\testfile.c -o C:\dpdk-draft-windows\build11\meson-private\tmpyv_1ax7e\output.exe -pipe -Wl,/MDd -O0
Code:
#include<stdio.h>
int main(void) {
printf("%ld\n", (long)(sizeof(void *)));
return 0;
};
Compiler stdout:
LINK : warning LNK4044: unrecognized option '/MDd'; ignored
Compiler stderr:
Program stdout:
8
Program stderr:
Checking for size of "void *" : 8
Running compile:
Working directory: C:\dpdk-draft-windows\build11\meson-private\tmp6hlm9j1v
Command line: clang C:\dpdk-draft-windows\build11\meson-private\tmp6hlm9j1v\testfile.c -o C:\dpdk-draft-windows\build11\meson-private\tmp6hlm9j1v\output.exe -pipe -Wl,/MDd -O0 -llibm
Code:
int main(void) { return 0; }
Compiler stdout:
LINK : warning LNK4044: unrecognized option '/MDd'; ignored
LINK : fatal error LNK1181: cannot open input file 'libm.lib'
Compiler stderr:
clang.exe: error: linker command failed with exit code 1181 (use -v to see invocation)
Running compile:
Working directory: C:\dpdk-draft-windows\build11\meson-private\tmpa7k5ljh3
Command line: clang C:\dpdk-draft-windows\build11\meson-private\tmpa7k5ljh3\testfile.c -o C:\dpdk-draft-windows\build11\meson-private\tmpa7k5ljh3\output.exe -pipe -Wl,/MDd -O0
Code:
#include<stdio.h>
int main(void) {
printf("%ld\n", (long)(sizeof(void *)));
return 0;
};
Compiler stdout:
LINK : warning LNK4044: unrecognized option '/MDd'; ignored
Compiler stderr:
Program stdout:
8
Program stderr:
Running compile:
Working directory: C:\dpdk-draft-windows\build11\meson-private\tmp2p5qh20j
Command line: clang C:\dpdk-draft-windows\build11\meson-private\tmp2p5qh20j\testfile.c -o C:\dpdk-draft-windows\build11\meson-private\tmp2p5qh20j\output.obj -pipe -c -O0 --print-search-dirs
Code:
Compiler stdout:
programs: =C:\LLVM\bin
libraries: =C:\LLVM\lib\clang\7.0.1
Compiler stderr:
Library libm found: NO
Running compile:
Working directory: C:\dpdk-draft-windows\build11\meson-private\tmpewifo72o
Command line: clang C:\dpdk-draft-windows\build11\meson-private\tmpewifo72o\testfile.c -o C:\dpdk-draft-windows\build11\meson-private\tmpewifo72o\output.exe -pipe -Wl,/MDd -O0 -lnuma
Code:
int main(void) { return 0; }
Compiler stdout:
LINK : warning LNK4044: unrecognized option '/MDd'; ignored
LINK : fatal error LNK1181: cannot open input file 'numa.lib'
Compiler stderr:
clang.exe: error: linker command failed with exit code 1181 (use -v to see invocation)
Library numa found: NO
Pkg-config binary for MachineChoice.HOST is not cached.
Pkg-config binary missing from cross or native file, or env var undefined.
Trying a default Pkg-config fallback at pkg-config
Trying pkg-config binary pkg-config for machine MachineChoice.HOST at [None]
Did not find pkg-config by name 'pkg-config'
Found Pkg-config: NO
Pkg-config binary for machine MachineChoice.HOST not found. Giving up.
CMake binary for MachineChoice.HOST is not cached
CMake binary missing from cross or native file, or env var undefined.
Trying a default CMake fallback at cmake
Trying CMake binary cmake for machine MachineChoice.HOST at [None]
Did not find CMake 'cmake'
Found CMake: NO
No CMake binary for machine MachineChoice.HOST not found. Giving up.
Run-time dependency libbsd found: NO (tried pkgconfig and cmake)
Running compile:
Working directory: C:\dpdk-draft-windows\build11\meson-private\tmp6q6sp5y0
Command line: clang C:\dpdk-draft-windows\build11\meson-private\tmp6q6sp5y0\testfile.c -o C:\dpdk-draft-windows\build11\meson-private\tmp6q6sp5y0\output.obj -pipe -c -O0 -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Wsign-compare
Code:
int i;
Compiler stdout:
Compiler stderr:
Compiler for C supports arguments -Wsign-compare: YES
Running compile:
Working directory: C:\dpdk-draft-windows\build11\meson-private\tmppl9wme13
Command line: clang C:\dpdk-draft-windows\build11\meson-private\tmppl9wme13\testfile.c -o C:\dpdk-draft-windows\build11\meson-private\tmppl9wme13\output.obj -pipe -c -O0 -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Wcast-qual
Code:
int i;
Compiler stdout:
Compiler stderr:
Compiler for C supports arguments -Wcast-qual: YES
Running compile:
Working directory: C:\dpdk-draft-windows\build11\meson-private\tmp7g7vi9yh
Command line: clang C:\dpdk-draft-windows\build11\meson-private\tmp7g7vi9yh\testfile.c -o C:\dpdk-draft-windows\build11\meson-private\tmp7g7vi9yh\output.obj -pipe -c -O0 -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Wno-address-of-packed-member -Waddress-of-packed-member
Code:
int i;
Compiler stdout:
Compiler stderr:
Compiler for C supports arguments -Wno-address-of-packed-member: YES
Running compile:
Working directory: C:\Users\CHENGC~1\AppData\Local\Temp\tmpon0h4h0r
Command line: clang C:\Users\CHENGC~1\AppData\Local\Temp\tmpon0h4h0r\testfile.c -pipe -E -P -P -O0 -march=native
Code:
#ifndef __SSE4_2__
# define __SSE4_2__
#endif
"MESON_GET_DEFINE_DELIMITER"
__SSE4_2__
Compiler stdout:
"MESON_GET_DEFINE_DELIMITER"
1
Compiler stderr:
Fetching value of define "__SSE4_2__" : 1
Running compile:
Working directory: C:\Users\CHENGC~1\AppData\Local\Temp\tmp6o2cobsj
Command line: clang C:\Users\CHENGC~1\AppData\Local\Temp\tmp6o2cobsj\testfile.c -pipe -E -P -P -O0 -march=native
Code:
#ifndef __AES__
# define __AES__
#endif
"MESON_GET_DEFINE_DELIMITER"
__AES__
Compiler stdout:
"MESON_GET_DEFINE_DELIMITER"
1
Compiler stderr:
Fetching value of define "__AES__" : 1
Running compile:
Working directory: C:\Users\CHENGC~1\AppData\Local\Temp\tmpweagj2i7
Command line: clang C:\Users\CHENGC~1\AppData\Local\Temp\tmpweagj2i7\testfile.c -pipe -E -P -P -O0 -march=native
Code:
#ifndef __PCLMUL__
# define __PCLMUL__
#endif
"MESON_GET_DEFINE_DELIMITER"
__PCLMUL__
Compiler stdout:
"MESON_GET_DEFINE_DELIMITER"
1
Compiler stderr:
Fetching value of define "__PCLMUL__" : 1
Running compile:
Working directory: C:\Users\CHENGC~1\AppData\Local\Temp\tmp4vssyigl
Command line: clang C:\Users\CHENGC~1\AppData\Local\Temp\tmp4vssyigl\testfile.c -pipe -E -P -P -O0 -march=native
Code:
#ifndef __AVX__
# define __AVX__
#endif
"MESON_GET_DEFINE_DELIMITER"
__AVX__
Compiler stdout:
"MESON_GET_DEFINE_DELIMITER"
1
Compiler stderr:
Fetching value of define "__AVX__" : 1
Running compile:
Working directory: C:\Users\CHENGC~1\AppData\Local\Temp\tmp77itg2qa
Command line: clang C:\Users\CHENGC~1\AppData\Local\Temp\tmp77itg2qa\testfile.c -pipe -E -P -P -O0 -march=native
Code:
#ifndef __AVX2__
# define __AVX2__
#endif
"MESON_GET_DEFINE_DELIMITER"
__AVX2__
Compiler stdout:
"MESON_GET_DEFINE_DELIMITER"
1
Compiler stderr:
Fetching value of define "__AVX2__" : 1
Running compile:
Working directory: C:\Users\CHENGC~1\AppData\Local\Temp\tmp5zymf20g
Command line: clang C:\Users\CHENGC~1\AppData\Local\Temp\tmp5zymf20g\testfile.c -pipe -E -P -P -O0 -march=native
Code:
#ifndef __AVX512F__
# define __AVX512F__
#endif
"MESON_GET_DEFINE_DELIMITER"
__AVX512F__
Compiler stdout:
"MESON_GET_DEFINE_DELIMITER"
Compiler stderr:
Fetching value of define "__AVX512F__" :
Running compile:
Working directory: C:\dpdk-draft-windows\build11\meson-private\tmp0ppxwe3l
Command line: clang C:\dpdk-draft-windows\build11\meson-private\tmp0ppxwe3l\testfile.c -o C:\dpdk-draft-windows\build11\meson-private\tmp0ppxwe3l\output.obj -pipe -c -O0 -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -Wno-format-truncation -Wformat-truncation
Code:
int i;
Compiler stdout:
Compiler stderr:
error: unknown warning option '-Wno-format-truncation' [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wformat-truncation' [-Werror,-Wunknown-warning-option]
Compiler for C supports arguments -Wno-format-truncation: NO
Program doxygen found: NO
Program sphinx-build found: NO
Running compile:
Working directory: C:\dpdk-draft-windows\build11\meson-private\tmp9gngcbub
Command line: clang C:\dpdk-draft-windows\build11\meson-private\tmp9gngcbub\testfile.c -o C:\dpdk-draft-windows\build11\meson-private\tmp9gngcbub\output.exe -pipe -Wl,/MDd -O0 -lexecinfo
Code:
int main(void) { return 0; }
Compiler stdout:
LINK : warning LNK4044: unrecognized option '/MDd'; ignored
LINK : fatal error LNK1181: cannot open input file 'execinfo.lib'
Compiler stderr:
clang.exe: error: linker command failed with exit code 1181 (use -v to see invocation)
Library execinfo found: NO
examples\meson.build:11:0: ERROR: Program or command 'sh' not found or not executable
next prev parent reply other threads:[~2020-02-04 0:56 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-29 18:05 Jeremy Plsek
[not found] ` <CALDO+SbTP6jsAsPyupHsXy2+qJLg5ndu31GLniQJN84=be2bNg@mail.gmail.com>
2020-02-01 11:43 ` Dmitry Kozliuk
2020-02-03 19:26 ` William Tu
2020-02-03 22:08 ` Dmitry Kozlyuk
2020-02-03 22:25 ` William Tu
2020-02-03 23:02 ` Dmitry Kozlyuk
2020-02-03 23:26 ` William Tu
2020-02-03 23:43 ` Dmitry Kozliuk
2020-02-04 0:55 ` William Tu [this message]
2020-02-04 6:16 ` Dmitry Kozlyuk
2020-02-04 20:58 ` William Tu
2020-02-04 21:51 ` Thomas Monjalon
-- strict thread matches above, loose matches on Subject: below --
2020-01-28 16:42 Jeremy Plsek
2020-01-28 21:36 ` Dmitry Kozliuk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CALDO+SYtsitSm1wUEuida6+ybkkTcS-dSRYrRsrt4_bB6UOuPQ@mail.gmail.com \
--to=u9012063@gmail.com \
--cc=dev@dpdk.org \
--cc=dmitry.kozliuk@gmail.com \
--cc=jplsek@iol.unh.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).