Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build on Ubuntu 16.04 #54

Closed
kaiduanx opened this issue Jul 9, 2021 · 2 comments
Closed

Fails to build on Ubuntu 16.04 #54

kaiduanx opened this issue Jul 9, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@kaiduanx
Copy link

kaiduanx commented Jul 9, 2021

Hi,

The latest code fails to build on Ubuntu 16.04 with bazel 4.1.0. The following is the output of

bazel build -c opt :encoder_main

Starting local Bazel server and connecting to it...
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
currently loading:
Analyzing: target //:encoder_main (1 packages loaded, 0 targets configured)
Analyzing: target //:encoder_main (10 packages loaded, 6 targets configured)
Analyzing: target //:encoder_main (11 packages loaded, 6 targets configured)
Analyzing: target //:encoder_main (30 packages loaded, 123 targets configured)
Analyzing: target //:encoder_main (50 packages loaded, 329 targets configured)
WARNING: /home/kxie/.cache/bazel/_bazel_kxie/77ff6c6c1440df355d63577cfba068c9/external/com_google_audio_dsp/third_party/fft2d/BUILD:3:11: in linkstatic attribute of cc_library rule @com_google_audio_dsp//third_party/fft2d:fft2d: setting 'linkstatic=1' is recommended if there are no object files
Analyzing: target //:encoder_main (58 packages loaded, 1467 targets configured)
INFO: Analyzed target //:encoder_main (60 packages loaded, 1648 targets configured).
INFO: Found 1 target...
[2 / 5] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[215 / 448] Compiling src/google/protobuf/compiler/importer.cc; 1s linux-sandbox ... (4 actions running)
[217 / 448] Compiling src/google/protobuf/message.cc; 4s linux-sandbox ... (4 actions, 3 running)
ERROR: /home/kxie/lyra/lyra/BUILD:458:11: Compiling lyra_encoder.cc failed: (Exit 1): gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 68 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
In file included from ./sparse_matmul/compute/gru_gates.h:28:0,
from sparse_matmul/sparse_matmul.h:21,
from dsp_util.h:24,
from lyra_encoder.cc:31:
./sparse_matmul/compute/matmul.h: In constructor 'csrblocksparse::MatmulBase::MatmulBase()':
./sparse_matmul/compute/matmul.h:49:55: error: '__get_cpuid_count' was not declared in this scope
__get_cpuid_count(7, 0, &eax, &ebx, &ecx, &edx);
^
In file included from lyra_encoder.cc:36:0:
lyra_config.h: At global scope:
lyra_config.h:55:44: error: 'chromemedia::codec::kSupportedSampleRates' declared as an 'inline' variable
inline constexpr int kSupportedSampleRates[] = {8000, 16000, 32000, 48000};
^
lyra_config.h:56:22: error: 'chromemedia::codec::kInternalSampleRateHz' declared as an 'inline' variable
inline constexpr int kInternalSampleRateHz = 16000;
^
lyra_config.h:57:22: error: 'chromemedia::codec::kNumQuantizationBits' declared as an 'inline' variable
inline constexpr int kNumQuantizationBits = 120;
^
Target //:encoder_main failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 25.939s, Critical Path: 8.56s
INFO: 7 processes: 5 internal, 2 linux-sandbox.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully

The following is the output of

And the following is the output of lscpu command.

lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: AuthenticAMD
CPU family: 21
Model: 96
Model name: AMD A10-8700P Radeon R6, 10 Compute Cores 4C+6G
Stepping: 1
CPU MHz: 1296.898
CPU max MHz: 1800.0000
CPU min MHz: 1300.0000
BogoMIPS: 3593.16
Virtualization: AMD-V
L1d cache: 32K
L1i cache: 96K
L2 cache: 1024K
NUMA node0 CPU(s): 0-3
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good acc_power nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb bpext ptsc mwaitx cpb hw_pstate ssbd vmmcall fsgsbase bmi1 avx2 smep bmi2 xsaveopt arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif overflow_recov

@aluebs aluebs added the bug Something isn't working label Jul 9, 2021
@kaiduanx
Copy link
Author

kaiduanx commented Jul 9, 2021

I just tried on Ubuntu 20.04, the problem is gone.

@aluebs
Copy link
Contributor

aluebs commented Jul 9, 2021

Oh, that is great to hear :)

@aluebs aluebs closed this as completed Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants