I have a small assignment where I used TensorFlow to create music:
https://github.com/tensorflow/magenta
When I run the code --- bazel test //magenta:all
I get the following error:
WARNING: /home/admin/.cache/bazel/_bazel_admin/fb30f33370a5b97d4f9b1dde06f8f344/external/protobuf/protobuf.bzl:90:19: Variables HOST_CFG and DATA_CFG are deprecated in favor of strings "host" and "data" correspondingly.
WARNING: /home/admin/.cache/bazel/_bazel_admin/fb30f33370a5b97d4f9b1dde06f8f344/external/protobuf/protobuf.bzl:96:28: Variables HOST_CFG and DATA_CFG are deprecated in favor of strings "host" and "data" correspondingly.
INFO: Found 2 targets and 0 test targets...
INFO: Elapsed time: 4.977s, Critical Path: 0.66s
ERROR: No test targets were found, yet testing was requested.
When you run
bazel test magenta:all
This means "execute all *_test rules defined in file magenta/BUILD.
When I look at that file, there are no tests defined there.
https://github.com/tensorflow/magenta/blob/master/magenta/BUILD
You should try:
bazel test magenta/...
This translates to all things that are included in magenta folder, including other packages. For more information, please see:
https://bazel.build/versions/master/docs/command-line-reference.html
Related
I follow the steps specified in docs:
git clone -b 4.25 git#github.com:EpicGames/UnrealEngine.git
which results in:
Cloning into 'UnrealEngine'...
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
So I found a workaround by connecting my github account with EpicGames following the instructions here. Then I fork the UnrealEngine repo which is a private repo and you can't access it unless you connect your github account as specified earlier. Then I clone the fork:
git clone --depth 1 https://username:token#github.com/username/UnrealEngine.git
which results in
Cloning into 'UnrealEngine'...
remote: Enumerating objects: 111586, done.
remote: Counting objects: 100% (111586/111586), done.
remote: Compressing objects: 100% (83748/83748), done.
remote: Total 111586 (delta 26650), reused 92556 (delta 24736), pack-reused 0
Receiving objects: 100% (111586/111586), 236.57 MiB | 17.26 MiB/s, done.
Resolving deltas: 100% (26650/26650), done.
Checking out files: 100% (137999/137999), done.
Followed by the instructions specified in docs
cd UnrealEngine
./Setup.sh
./GenerateProjectFiles.sh
make
Which work perfectly fine until I get an error at the later stages of the build as shown below. You can check the full build log here
... truncated for readability
./v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/usr/lib64/librpcsvc.a
./v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/usr/lib64/libpthread.a
./v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/usr/lib64/libmcheck.a
./v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/usr/lib64/libnss_nisplus.so
./v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/usr/lib64/crt1.o
./v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/usr/lib64/libnss_dns.so
./v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/usr/lib64/Scrt1.o
./v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/usr/lib64/libc.a
./v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/usr/lib64/libBrokenLocale.so
./v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/usr/lib64/libnsl.a
Target arch set to: x86_64-unknown-linux-gnu
Building ThirdParty libraries
If you don't see SUCCESS message in the end, then building did not finish properly.
In that case, take a look into /content/UnrealEngine/Engine/Build/BatchFiles/Linux/BuildThirdParty.log for details.
No third party libs needed to be built locally
********** SUCCESS ****************
Setup successful.
Attempting to set up UE4 pretty printers for gdb (existing UE4Printers.py, if any, will be overwritten)...
updated UE4Printers.py
no ~/.gdbinit file found - creating a new one.
Setting up Unreal Engine 4 project files...
Fixing inconsistent case in filenames.
Setting up Mono
Generating data for project indexing... 100%
Generating data for project indexing... 100%
Writing project files... 100%
Generating data for project indexing... 100%
Generating data for project indexing... 100%
Generating data for project indexing... 100%
Generating data for project indexing... 100%
Writing project files... 100%
bash "/content/UnrealEngine/Engine/Build/BatchFiles/Linux/Build.sh" CrashReportClient Linux Shipping
Fixing inconsistent case in filenames.
Setting up Mono
Running command : Engine/Binaries/DotNET/UnrealBuildTool.exe CrashReportClient Linux Shipping
Using 'git status' to determine working set for adaptive non-unity build (/content/UnrealEngine).
Creating makefile for CrashReportClient (no existing makefile)
Creating makefile for UnrealHeaderTool (no existing makefile)
------- Build details --------
Using toolchain located at '/content/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu'.
Using clang (/content/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang++) version '10.0.1' (string), 10 (major), 0 (minor), 1 (patch)
Using bundled libc++ standard C++ library.
Using lld linker
Using llvm-ar : /content/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/bin/llvm-ar
Using fast way to relink circularly dependent libraries (no FixDeps).
------------------------------
Performing 38 actions (2 in parallel)
[1/38] Compile PCH.Core.h
[2/38] Compile PCH.CoreUObject.h
[3/38] Compile BuildSettings.cpp
[4/38] Compile Module.TraceLog.cpp
[5/38] Compile SharedPCH.Core.ShadowErrors.h
[6/38] Compile Module.Core.4_of_14.cpp
[7/38] Compile Module.Core.12_of_14.cpp
[8/38] Compile Module.Core.11_of_14.cpp
[9/38] Compile Module.Core.7_of_14.cpp
[10/38] Compile Module.Core.10_of_14.cpp
[11/38] Compile Module.Core.9_of_14.cpp
[12/38] Compile Module.Core.2_of_14.cpp
[13/38] Compile Module.Core.6_of_14.cpp
[14/38] Compile Module.Core.5_of_14.cpp
[15/38] Compile Module.Core.13_of_14.cpp
[16/38] Compile Module.Core.8_of_14.cpp
[17/38] Compile Module.Core.3_of_14.cpp
[18/38] Compile Module.Core.1_of_14.cpp
[19/38] Compile Module.Core.14_of_14.cpp
[20/38] Link (lld) libUnrealHeaderTool-TraceLog.so
[21/38] Link (lld) libUnrealHeaderTool-BuildSettings.so
[22/38] Compile Module.Json.cpp
[23/38] Link (lld) libUnrealHeaderTool-Core.so
[24/38] Compile Module.Projects.cpp
[25/38] Link (lld) libUnrealHeaderTool-Json.so
[26/38] Compile Module.CoreUObject.6_of_8.cpp
[27/38] Link (lld) libUnrealHeaderTool-Projects.so
[28/38] Compile Module.CoreUObject.2_of_8.cpp
[29/38] Compile Module.CoreUObject.7_of_8.cpp
[30/38] Compile Module.CoreUObject.1_of_8.cpp
[31/38] Compile Module.CoreUObject.8_of_8.cpp
[32/38] Compile Module.CoreUObject.4_of_8.cpp
[33/38] Compile Module.CoreUObject.5_of_8.cpp
[34/38] Compile Module.CoreUObject.3_of_8.cpp
[35/38] Compile Module.UnrealHeaderTool.cpp
[36/38] Link (lld) libUnrealHeaderTool-CoreUObject.so
[37/38] Link (lld) UnrealHeaderTool
[38/38] UnrealBuildTool.exe UnrealHeaderTool.target
Total time in Local executor: 472.22 seconds
Parsing headers for CrashReportClient
Running UnrealHeaderTool CrashReportClient "/content/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/CrashReportClient/Shipping/CrashReportClient.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -abslog="/content/UnrealEngine/Engine/Programs/UnrealBuildTool/Log_UHT.txt"
src/tcmalloc.cc:283] Attempt to free invalid pointer 0x7fab74511030
Makefile:327: recipe for target 'CrashReportClient-Linux-Shipping' failed
make: *** [CrashReportClient-Linux-Shipping] Error 3
I tried solutions to similar issues proposed here, here, and here and nothing seems to fix the problem, and some cause other errors.
For some reason it performs a wrongful memory deallocation (likely deallocating twice):
Attempt to free invalid pointer 0x7fab74511030
This might be a better place to ask: https://issues.unrealengine.com
My project can be built and run locally, but when running cargo publish I get an error:
PS C:\Users\jonat\Projects\vulkano_blas> cargo publish
Updating crates.io index
Packaging vulkano_blas v0.1.0 (C:\Users\jonat\Projects\vulkano_blas)
Verifying vulkano_blas v0.1.0 (C:\Users\jonat\Projects\vulkano_blas)
Compiling autocfg v1.0.0
Compiling lazy_static v1.4.0
Compiling maybe-uninit v2.0.0
Compiling libc v0.2.73
Compiling cfg-if v0.1.10
Compiling cc v1.0.58
Compiling proc-macro2 v1.0.19
Compiling scopeguard v1.1.0
Compiling unicode-xid v0.2.1
Compiling syn v1.0.35
Compiling vulkano v0.19.0
Compiling either v1.5.3
Compiling smallvec v1.4.1
Compiling vk-sys v0.5.2
Compiling half v1.6.0
Compiling fnv v1.0.7
Compiling itertools v0.9.0
Compiling crossbeam-utils v0.7.2
Compiling memoffset v0.5.5
Compiling crossbeam-epoch v0.8.2
Compiling shared_library v0.1.9
Compiling cmake v0.1.44
Compiling quote v1.0.7
Compiling shaderc-sys v0.6.2
Compiling crossbeam-queue v0.2.3
Compiling crossbeam-channel v0.4.3
Compiling crossbeam-deque v0.7.3
Compiling crossbeam v0.7.3
The following warnings were emitted during compilation:
warning: System installed library not found. Falling back to build from source
error: failed to verify package tarball
Caused by:
failed to run custom build command for `shaderc-sys v0.6.2`
Middle part removed due to its size
--- stderr
CMake Warning in spirv-tools/source/reduce/CMakeLists.txt:
The object file directory
C:/Users/jonat/Projects/vulkano_blas/target/package/vulkano_blas-0.1.0/target/debug/build/shaderc-sys-81aff4f7b9007197/out/build/spirv-tools/source/reduce/CMakeFiles/SPIRV-Tools-reduce.dir/./
has 191 characters. The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX). Object file
remove_unreferenced_instruction_reduction_opportunity_finder.cpp.obj
cannot be safely placed under this directory. The build may not work
correctly.
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_ASM_COMPILER
CMAKE_ASM_FLAGS
thread 'main' panicked at '
command did not execute successfully, got: exit code: 1
build script failed, must exit now', C:\Users\jonat\.cargo\registry\src\github.com-1ecc6299db9ec823\cmake-0.1.44\src\lib.rs:885:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Where does the problem lie? And how could I approach fixing this?
As the error says, the path is too long for CMake / Windows.
You might try to enable Long Paths support in Windows, or put your project in a shallower path.
Building in a shallower directory worked for me:
#.cargo/config.toml
[build]
# fixes CMAKE_OBJECT_PATH_MAX
target-dir = "C:/temp/crate_name"
While this can also be done with a compiler flag, that is not recommended because cargo clean etc will not work as expected.
A side note, Ive had some runtime linker errors using this method with embuild and an esp32. The solution there was to move the entire repo closer to root and keep the default target dir, its a bummer but no two ways about it.
I'm trying to start the next phase of my compiler project and I get this error when compiling
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libfl.so: undefined reference to `yylex'
collect2: error: ld returned 1 exit status
Makefile:82: recipe for target 'gpl' failed
i went back to previous phases, did a make clean and recompiled and none of it compiles now, same error (it did before). This happened after I upgraded to Ubuntu 18.04. I checked for further upgrades afterwords to see if any of the required packages needed an update and there's none. Does anyone have any idea why this stopped working after the update? (possibly config file or something?)
You can either link the static library (libfl.a) or use the --as-needed linker flag.
I'm new to the Nim programming language, and coming from a Lua background, it excited me to find out that there is a module for adding Lua bindings to Nim.
I installed Nimble (Nim's package manager) for Windows and executed "nimble install lua" to download and install the correct module. Upon trying to import it and compile the source, this happened:
C:\Users\Ashley\Desktop\Stuff\Coding\Nim\Projects\LuaTest>nim c -r "C:\Users\Ashley\Desktop\Stuff\Coding\Nim\Projects\LuaTest\main.nim"
Hint: system [Processing]
Hint: main [Processing]
Hint: lua [Processing]
CC: main
CC: lua_lua
Hint: [Link]
Hint: operation successful (10698 lines compiled; 1.262 sec total; 16.163MB; Debug Build) [SuccessX]
could not load: lua(|5.1|5.0).dll
Error: execution of an external program failed: 'c:\users\ashley\desktop\stuff\coding\nim\projects\luatest\main.exe '
I have Lua 5.1 already installed with the proper entries in PATH. It's located in Program Files (x86). The directory contains a dll called lua5.1.dll. I tried looking up the error on Google, but there were no results that helped. What could be the problem?
On Windows you can put the library at the same place as the generated binary. In this case the file should be called lua.dll, lua5.1.dll or lua5.0.dll. Also make sure that the library and binary are both for the same system architecture, either x86 (32bit) or x86-64 (64bit).
I am trying to develop applications with Eclipse / Linux for Stellaris Launchpad (LM4F120). I am following this guide: http://kernelhacks.blogspot.de/2012/11/the-complete-tutorial-for-stellaris.html
However, I can't compile StellarisWare with make:
adc.c:1: error: bad value (cortex-m4) for -mcpu= switch
adc.c:1: error: invalid floating point option: -mfpu=fpv4-sp-d16
Obviously for compilation 'cc' instead of arm-*-gcc is used. How can I circumvent this problem?
I am using gcc-arm-none-eabi-4_7-2012q4. I did the following things for both a) the full StellarisWare Package (SW-LM3S-9453.exe) and the one for the Stellaris Launchpad (SW-EK-LM4F120XL-9453.exe):
1. Unzip: ../SW-*.zip
2. Try to compile: make
please follow the instruction in the below article
http://www.embeddedcircle.com/stellaris-lm4f120-launchpad-compiling-in-ubuntu-12-04/
do not forget to set the compiler path as per instruction 4