My question is two fold:
Firefox browser
I compiled firefox source-code in releases :
https://archive.mozilla.org/pub/firefox/releases/52.0/source/
but after I finish compiling, I met Nightly, not Firefox browser.
I would execute Firefox.
Might be there is any option to build Firefox?
( I searched the build configuration, but cannot find the option about browser)
If anyone have an experience about compiling Firefox from its source code, please help :)
Rust dependency
When I compiled Firefox, I encountered error below:
0:06.97 Compiling mp4parse_capi v0.6.0 (file:///home/signal/Desktop/firefox_source/firefox-53.0/media/libstagefright/binding/mp4parse_capi)
0:06.97 Running /home/signal/.cargo/bin/rustc --crate-name build_script_build /home/signal/Desktop/firefox_source/firefox-53.0/media/libstagefright/binding/mp4parse_capi/build.rs --color always --crate-type bin --emit=dep-info,link -C opt-level=2 -C codegen-units=1 -C debuginfo=2 -C metadata=2476a8a7a86fe109 -C extra-filename=-2476a8a7a86fe109 --out-dir /home/signal/Desktop/firefox_source/firefox-53.0/obj-x86_64-pc-linux-gnu/toolkit/library/gtest/rust/./release/build/mp4parse_capi-2476a8a7a86fe109 -L dependency=/home/signal/Desktop/firefox_source/firefox-53.0/obj-x86_64-pc-linux-gnu/toolkit/library/gtest/rust/./release/deps
0:07.05 error[E0463]: can't find crate for cheddar
0:07.05 --> /home/signal/Desktop/firefox_source/firefox-53.0/media/libstagefright/binding/mp4parse_capi/build.rs:1:1
0:07.05 |
0:07.05 1 | extern crate cheddar;
0:07.05 | ^^^^^^^^^^^^^^^^^^^^^ can't find crate
0:07.05
0:07.05 error: aborting due to previous error
0:07.05
0:07.06 error: Could not compile mp4parse_capi.
0:07.06
0:07.06 Caused by:
0:07.06 process didn't exit successfully: /home/signal/.cargo/bin/rustc --crate-name build_script_build /home/signal/Desktop/firefox_source/firefox-53.0/media/libstagefright/binding/mp4parse_capi/build.rs --color always --crate-type bin --emit=dep-info,link -C opt-level=2 -C codegen-units=1 -C debuginfo=2 -C metadata=2476a8a7a86fe109 -C extra-filename=-2476a8a7a86fe109 --out-dir /home/signal/Desktop/firefox_source/firefox-53.0/obj-x86_64-pc-linux-gnu/toolkit/library/gtest/rust/./release/build/mp4parse_capi-2476a8a7a86fe109 -L dependency=/home/signal/Desktop/firefox_source/firefox-53.0/obj-x86_64-pc-linux-gnu/toolkit/library/gtest/rust/./release/deps (exit code: 101)
0:07.06 Build failed, waiting for other jobs to finish...
0:08.68 error: build failed
0:08.68 /home/signal/Desktop/firefox_source/firefox-53.0/config/rules.mk:966: recipe for target 'force-cargo-library-build' failed
0:08.68 make[5]: *** [force-cargo-library-build] Error 101
0:08.68 /home/signal/Desktop/firefox_source/firefox-53.0/config/recurse.mk:71: recipe for target 'toolkit/library/gtest/rust/target' failed
That seems I need a rust package to resolve dependecny.
But in the latest version, I could complie firefox without any error.
Could anyone give any advice?
Adding
build = false
to media/libstagefright/binding/mp4parse_capi/Cargo.toml fixed the issue.
More info here: don't try to build mp4parse
Related
I am trying to build project esp-obd-emulator I always get the following error, maybe someone can help me with that.
I am using esp-idf to build project.
C:\Users\edvar\Desktop\esp-idf-2\examples\emu>idf.py build
Checking Python dependencies...
Python requirements from C:\Users\edvar\Desktop\esp-idf-2\requirements.txt are satisfied.
Executing action: all (aliases: build)
Running ninja in directory c:\users\edvar\desktop\esp-idf-2\examples\emu\build
Executing "ninja all"...
[1/5] Performing build step for 'bootloader'
ninja: no work to do.
[2/3] Linking CXX executable emu.elf
FAILED: emu.elf
cmd.exe /C "cd . && C:\Users\edvar\.espressif\tools\xtensa-esp32-elf\esp-2019r2-8.2.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe -mlongcalls -Wno-frame-address -nostdlib #CMakeFiles\emu.elf.rsp -o emu.elf && cd ."
c:/users/edvar/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/esp32/libesp32.a(cpu_start.c.obj):(.literal.main_task+0x18): undefined reference to `app_main'
c:/users/edvar/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/esp32/libesp32.a(cpu_start.c.obj): in function `main_task':
C:/Users/edvar/Desktop/esp-idf-2/components/esp32/cpu_start.c:539: undefined reference to `app_main'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
esp-obd-emulator seems to not have been ported to ESP-IDF 2.0; it seems to still be using Make instead of CMake. Either compile this with an old version of ESP-IDF, or ask it to be updated to CMake.
When I try to build a golang plugin on macOS Catalina using go 1.13.4, the build process breaks with the following error:
$ make buildPlugin
env GOOS=linux go build -buildmode=plugin -o bin/common common/*.go
# command-line-arguments
/usr/local/Cellar/go/1.13.4/libexec/pkg/tool/darwin_amd64/link: running clang failed: exit status 1
ld: unknown option: -z
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [buildPlugin] Error 2
✘ $ go tool cgo -V
cgo version go1.13.4
Removing env GOOS=linux helps but it is not a solution. Any ideas about the reason for this problem?
I am trying to build a python (2.7) module using cygwin:
D:\Python27\python.exe setup.py build -c cygwin
However I get the following error:
running build
running build_ext
building 'mod' extension
D:\cygwin64\bin\gcc.exe -mcygwin -mdll -O -Wall -ID:\Python27\include -ID:\Python27\PC -c my_mod.c -o build\temp.win32-2.7\Release\my_mod.o
gcc: error: unrecognized command line option '-mcygwin'
error: command 'D:\\cygwin64\\bin\\gcc.exe' failed with exit status 1
What does this mean? How do I fix it?
We are trying to build a TensorFlow test case with debug flag:
bazel build -c dbg
//tensorflow/python/kernel_tests:sparse_matmul_op_test
However the build is failing with below error:
/usr/include/features.h:330:4: error: #warning _FORTIFY_SOURCE
requires compiling with optimization (-O) [-Werror=cpp]
warning _FORTIFY_SOURCE requires compiling with optimization (-O)
cc1: all warnings being treated as errors
Target //tensorflow/python/kernel_tests:sparse_matmul_op_test failed
to build
We have tried below options to resolve this:
built by exporting export CFLAGS and CXXFLAGS to "-Wno-error"
bazel build -c dbg --cxxopt="-Wno-all" --cxxopt="-Wno-error" //tensorflow/python/kernel_tests:sparse_matmul_op_test
Tried commenting compiler_flag from third_party/gpus/crosstool/CROSSTOOL.tpl
What is the correct way to suppress these warnings for the build to proceed?
We are using gcc v5.4.0.
I've had the same issue recently. It got solved by adding --copt=-O and -c opt to the build command.
Example:
bazel build --copt=-O -c dbg -c opt //tensorflow/python/kernel_tests:sparse_matmul_op_test
Solution by #BernardoGO does not work when CUDA build is enabled:
$ bazel build --copt=-O -c opt --config cuda -c dbg --strip=never //tensorflow/tools/pip_package:build_pip_package -s
/usr/include/c++/6/bits/stl_pair.h(327): error: calling a __host__ function("std::_Rb_tree_const_iterator< ::tensorflow::NcclManager::NcclStream *> ::_Rb_tree_const_iterator") from a __device__ function("std::pair< ::std::_Rb_tree_const_iterator< ::tensorflow::NcclManager::NcclStream *> , bool> ::pair< ::std::_Rb_tree_iterator< ::tensorflow::NcclManager::NcclStream *> &, bool &, (bool)1> ") is not allowed
/usr/include/c++/6/bits/stl_pair.h(327): error: identifier "std::_Rb_tree_const_iterator< ::tensorflow::NcclManager::NcclStream *> ::_Rb_tree_const_iterator" is undefined in device code
/usr/include/c++/6/bits/stl_algobase.h(1009): error: calling a __host__ function("__builtin_clzl") from a __device__ function("std::__lg") is not allowed
3 errors detected in the compilation of "/tmp/tmpxft_00007abb_00000000-6_nccl_manager.cpp1.ii".
Works only if --copt=-O is replaced with --copt=-O1, but -O1 is too much for comfortable debugging.
Output for 'make all'
[root#parags-pc caffe]# make all
CXX src/caffe/layers/batch_norm_layer.cpp
CXX src/caffe/layers/sigmoid_layer.cpp
CXX src/caffe/layer.cpp
CXX src/caffe/layer_factory.cpp
CXX src/caffe/data_transformer.cpp
AR -o .build_release/lib/libcaffe.a
LD -o .build_release/lib/libcaffe.so
/usr/bin/ld: cannot find -lcblas
/usr/bin/ld: cannot find -latlas
collect2: error: ld returned 1 exit status
Makefile:544: recipe for target '.build_release/lib/libcaffe.so' failed
make: *** [.build_release/lib/libcaffe.so] Error 1
[root#parags-pc caffe]#
I have been trying to install caffe on fedora 21 with little success. On running the following make command I get the errors as given in the screenshot.
I have tried the following to fix this but have had no success.
[root#parags-pc caffe]# export LDFLAGS=-L/lib64/atlas/
[root#parags-pc caffe]# ld -lcblas --verbose
==================================================
attempt to open /usr/x86_64-redhat-linux/lib64/libcblas.so failed
attempt to open /usr/x86_64-redhat-linux/lib64/libcblas.a failed
attempt to open /usr/local/lib64/libcblas.so failed
attempt to open /usr/local/lib64/libcblas.a failed
attempt to open /lib64/libcblas.so failed
attempt to open /lib64/libcblas.a failed
attempt to open /usr/lib64/libcblas.so failed
attempt to open /usr/lib64/libcblas.a failed
attempt to open /usr/x86_64-redhat-linux/lib/libcblas.so failed
attempt to open /usr/x86_64-redhat-linux/lib/libcblas.a failed
attempt to open /usr/lib64/libcblas.so failed
attempt to open /usr/lib64/libcblas.a failed
attempt to open /usr/local/lib/libcblas.so failed
attempt to open /usr/local/lib/libcblas.a failed
attempt to open /lib/libcblas.so failed
attempt to open /lib/libcblas.a failed
attempt to open /usr/lib/libcblas.so failed
attempt to open /usr/lib/libcblas.a failed
ld: cannot find -lcblas
[root#parags-pc caffe]#
The contents of /lib64/atlas/ are as shown below I am not sure though if these are the required libraries.
[root#parags-pc caffe]# ls /lib64/atlas/
libsatlas.so.3 libsatlas.so.3.10 libtatlas.so.3 libtatlas.so.3.10
Google say's to make use of -L to link command. But I don't know which command should be used, how that command is to be used and which libraries should be linked.
I need help please. Thanks!
cd /lib64/atlas
sudo ln -s libtatlas.so /lib/libatlas.so
sudo ln -s libtatlas.so /lib/libcblas.so
The new Atlas ver3 is bundled with both atlas and cblas. Thus there is no need to include both of them separately.
Either you can follow the above method or remove calling the cblas library in your makefile.
I think the reason is you use make to compile, which makes caffe's python port only find libraries in this catalog. Maybe you use cmaketo compile and it could work.
$make clean
$cd caffe-master
$mkdir build
$cd build
$cmake ..
$make all -j8
I hope I could help you!