On Fri, Nov 6, 2020 at 8:55 AM Ben Pfaff <[email protected]> wrote:
>
> Numan, during the OVN meeting today, you reported that building current
> master of OVS, on a machine that supports AVX512, and then building OVN
> based on that, caused the following build failure:
>
>     depbase=`echo northd/ovn-northd-ddlog.o | sed 
> 's|[^/]*$|.deps/&|;s|\.o$||'`;\
>     gcc -DHAVE_CONFIG_H -I.   -I ./include  -I ./include -I ./ovn -I 
> ./include -I ./lib -I ./lib -I /mnt/alt_home/numans/workspace_cpp/ovs/include 
> -I /mnt/alt_home/numans/workspace_cpp/ovs/include -I 
> /mnt/alt_home/numans/workspace_cpp/ovs/lib -I 
> /mnt/alt_home/numans/workspace_cpp/ovs/lib -I 
> /mnt/alt_home/numans/workspace_cpp/ovs -I 
> /mnt/alt_home/numans/workspace_cpp/ovs    -Wstrict-prototypes -Wall -Wextra 
> -Wno-sign-compare -Wpointer-arith -Wformat -Wformat-security -Wswitch-enum 
> -Wunused-parameter -Wbad-function-cast -Wcast-align -Wstrict-prototypes 
> -Wold-style-definition -Wmissing-prototypes -Wmissing-field-initializers 
> -fno-strict-aliasing -Wswitch-bool -Wlogical-not-parentheses 
> -Wsizeof-array-argument -Wbool-compare -Wshift-negative-value 
> -Wduplicated-cond -Wshadow -Wmultistatement-macros -Wcast-align=strict   -g 
> -O2 -MT northd/ovn-northd-ddlog.o -MD -MP -MF $depbase.Tpo -c -o 
> northd/ovn-northd-ddlog.o northd/ovn-northd-ddlog.c &&\
>     mv -f $depbase.Tpo $depbase.Po
>     LIBOVN_DEPS=`. lib/libovn.la && echo "$dependency_libs"` && \
>     LIBOPENVSWITCH_DEPS=`. 
> /mnt/alt_home/numans/workspace_cpp/ovs/lib/libopenvswitch.la && echo 
> "$dependency_libs"` && \
>     cd northd/ovn_northd_ddlog && \
>     RUSTC='rustc' RUSTFLAGS="-L ../../lib/.libs -L 
> /mnt/alt_home/numans/workspace_cpp/ovs/lib/.libs $LIBOPENVSWITCH_DEPS 
> $LIBOVN_DEPS -Awarnings -C opt-level=z" \
>         cargo build --release --verbose --lib --no-default-features 
> --features ovsdb
>     error: failed to run `rustc` to learn about target-specific information
>
>     Caused by:
>       process didn't exit successfully: `rustc - --crate-name ___ 
> --print=file-names -L ../../lib/.libs -L 
> /mnt/alt_home/numans/workspace_cpp/ovs/lib/.libs -lssl -lcrypto -lcap-ng 
> /mnt/alt_home/numans/workspace_cpp/ovs/lib/libopenvswitchavx512.la -lpthread 
> -lrt -lm -lunbound -lpthread -lrt -lm -lunbound -Awarnings -C opt-level=z 
> --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib 
> --crate-type staticlib --crate-type proc-macro --print=sysroot --print=cfg` 
> (exit code: 1)
>       --- stderr
>       error: multiple input filenames provided (first two filenames are `-` 
> and `/mnt/alt_home/numans/workspace_cpp/ovs/lib/libopenvswitchavx512.la`)
>
>     make[1]: *** [Makefile:3527: 
> northd/ovn_northd_ddlog/target/release/libovn_northd_ddlog.la] Error 101
>     make[1]: Leaving directory '/mnt/alt_home/numans/workspace_cpp/ovn'
>     make: *** [Makefile:1401: all] Error 2
>
> However, I tried this myself just now (on a laptop that does indeed have
> AVX512), and I can't see the failure.  Do you have any suggestions on
> what else I might need to cause it?
>

Thanks to Dumitru for finding this issue. Dumitru noticed this issue
on a server with the below CPU information

*****
...
processor : 55
vendor_id : GenuineIntel
cpu family : 6
model : 79
model name : Intel(R) Xeon(R) CPU E5-2690 v4 @ 2.60GHz
stepping : 1
microcode : 0xb00001f
cpu MHz : 1199.992
cache size : 35840 KB
physical id : 1
siblings : 28
core id : 14
cpu cores : 14
apicid : 61
initial apicid : 61
fpu : yes
fpu_exception : yes
cpuid level : 20
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx
pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl
xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor
ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1
sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm abm
3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single pti
tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1
hle avx2 smep bmi2 erms invpcid rtm cqm rdt_a rdseed adx smap intel_pt
xsaveopt cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida
arat pln pts
vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only
ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid
unrestricted_guest vapic_reg vid ple shadow_vmcs pml
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds
swapgs taa itlb_multihit
bogomips : 5199.29
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
*************


I noticed on my Macbook pro laptop running fedora 33.

******
processor : 7
vendor_id : GenuineIntel
cpu family : 6
model : 70
model name : Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
stepping : 1
microcode : 0x1c
cpu MHz : 1592.439
cache size : 6144 KB
physical id : 0
siblings : 8
core id : 3
cpu cores : 4
apicid : 7
initial apicid : 7
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx
pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl
xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor
ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2
x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand
lahf_lm abm cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp
tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1
avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts md_clear
flush_l1d
vmx flags : vnmi preemption_timer invvpid ept_x_only ept_ad ept_1gb
flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest ple
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds
swapgs itlb_multihit srbds
bogomips : 4390.13
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:

*******


I don't have any suggestions at this point. I will try in some other
systems and let you know.

@Dumitru Ceara  If you have any suggestions or comments.

Thanks
Numan


> Thanks,
>
> Ben.
>
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to