Before attempting my compiles of the latest fsharp code, I have compiled and installed mono-5.0.1 on my RedHat Enterprise 7 linux distribution running on Linux on Z.
mono --version
Mono JIT compiler version 5.0.1.1 (2017-02/5077205 Fri Jul 28 08:35:19 EDT 2017)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: normal
Notifications: epoll
Architecture: s390x
Disabled: none
Misc: softdebug
GC: sgen (concurrent by default)
I have installed mono in /usr/local. Before attempting to run autogen.sh, I had previously exported the following envars:
export PKG_CONFIG_PATH=/usr/local/mono/lib/pkgconfig/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export PKG_CONFIG_LIBDIR=/usr/local/lib/pkgconfig
When I attempt to run autogen.sh, I get the following errors:
./autogen.sh --prefix=/usr/local
checking whether make sets $(MAKE)... yes
checking for pkg-config... /bin/pkg-config
configure: "pkg-config: /bin/pkg-config"
configure: "PKG_CONFIG_LIBDIR: /usr/local/lib/pkgconfig"
checking for msbuild... no
configure: error: Could not find msbuild
I checked the extraction of mono-5.0.1 tarball that I got and see no reference to msbuild. Is there anyway to overcome the lack of msbuild in mono so that I can get fsharp to compile and work? I got a later version of mono so it ought to be there. Any thoughts or suggestions are greatly appreciated.
I tried following the suggestion of getting a branch of mono with msbuild included in it and I got the following errors:
# ./cibuild.sh --target Mono
** Using mono from /usr/local/bin/mono
Mono JIT compiler version 5.0.1.1 (2017-02/5077205 Fri Jul 28 08:35:19 EDT 2017)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: normal
Notifications: epoll
Architecture: s390x
Disabled: none
Misc: softdebug
GC: sgen (concurrent by default)
** Downloading MSBUILD from https://github.com/Microsoft/msbuild/releases/download/mono-hosted-msbuild-v0.03/mono_msbuild_d25dd923839404bd64cc63f420e75acf96fc75c4.zip
Installing dotnet cli...
Restoring BuildTools version 1.0.27-prerelease-00927-05...
/home/xxx/Downloads/msbuild-d15.3/init-tools.sh: line 116: /home/xxx/Downloads/msbuild-d15.3/Tools/dotnetcli/dotnet: cannot execute binary file
ERROR: Could not restore build tools correctly. See '/home/xxx/Downloads/msbuild-d15.3/init-tools.log' for more details.
============= /home/xxx/Downloads/msbuild-d15.3/init-tools.log ===========
Running: /home/xxx/Downloads/msbuild-d15.3/init-tools.sh
Installing 'https://dotnetcli.blob.core.windows.net/dotnet/Sdk/1.0.0-preview3-003686/dotnet-dev-rhel-x64.1.0.0-preview3-003686.tar.gz' to '/home/xxx/Downloads/msbuild-d15.3/Tools/dotnetcli/dotnet.tar'
Running: /home/xxx/Downloads/msbuild-d15.3/Tools/dotnetcli/dotnet restore "/home/xxx/Downloads/msbuild-d15.3/Tools/1.0.27-prerelease-00927-05/project.json" --no-cache --packages /home/xxx/Downloads/msbuild-d15.3/packages --source https://dotnet.myget.org/F/dotnet-buildtools/api/v3/index.json --legacy-packages-directory
============= end of /home/xxx/Downloads/msbuild-d15.3/init-tools.log ===========
Initializing BuildTools...
/home/xxx/Downloads/msbuild-d15.3/init-tools.sh: line 127: /home/xxx/Downloads/msbuild-d15.3/packages/Microsoft.DotNet.BuildTools/1.0.27-prerelease-00927-05/lib/init-tools.sh: No such file or directory
ERROR: An error occured when trying to initialize the tools. Please check '/home/xxx/Downloads/msbuild-d15.3/init-tools.log' for more details.1
# ls -l /home/xxx/Downloads/msbuild-d15.3/init-tools.log
-rw-r--r--. 1 root root 880 Jul 31 08:16 /home/xxx/Downloads/msbuild-d15.3/init-tools.log
# ls -l /home/xxx/Downloads/msbuild-d15.3/Tools/dotnetcli/dotnet
-rwxr-xr-x. 1 root root 128766 Jun 15 2016 /home/xxx/Downloads/msbuild-d15.3/Tools/dotnetcli/dotnet
As suggested in the comments, I tried to use Mono-5.2 builds currently present in https://github.com/mono/mono/releases and they all fail with the following errors:
if test -w /home/xxx/Downloads/mono-mono-5.2.0.213/mcs; then :; else chmod -R +w /home/xxx/Downloads/mono-mono-5.2.0.213/mcs; fi
cd /home/xxx/Downloads/mono-mono-5.2.0.213/mcs && make --no-print-directory -s NO_DIR_CHECK=1 PROFILES='binary_reference_assemblies net_4_x xbuild_12 xbuild_14 ' CC='gcc' all-profiles
mkdir -p -- build/deps
/usr/local/bin/mcs: line 2: /usr/local/bin/mono: No such file or directory
make[6]: *** [build/deps/basic-profile-check.exe] Error 127
*** Downloading bootstrap required 'monolite/1050200001'
--2017-08-01 08:03:09-- https://download.mono-project.com/monolite/monolite-1050200001-latest.tar.gz
Resolving download.mono-project.com (download.mono-project.com)... 72.21.81.200, 2606:2800:11f:17a5:191a:18d5:537:22f9
Connecting to download.mono-project.com (download.mono-project.com)|72.21.81.200|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4740059 (4.5M) [application/x-gzip]
Saving to: ‘STDOUT’
0K .......... .......... .......... .......... .......... 1% 4.34M 1s
... <removed extra lines>
... <removed extra lines>
4600K .......... .......... ........ 100% 7.54M=0.6s
2017-08-01 08:03:10 (7.54 MB/s) - written to stdout [4740059/4740059]
*** The runtime 'mono' doesn't appear to be usable.
*** Trying the 'monolite/1050200001' directory.
Creating .dep_dirs-basic...
mkdir -p -- ../../class/lib/basic/
make[8]: *** No rule to make target `../../../external/corefx/src/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509ContentType.cs', needed by `../../class/lib/basic/mscorlib.dll'. Stop.
make[7]: *** [do-all] Error 2
make[6]: *** [all-recursive] Error 1
make[5]: *** [all-recursive] Error 1
make[4]: *** [profile-do--basic--all] Error 2
make[3]: *** [profiles-do--all] Error 2
make[2]: *** [all-local] Error 2
make[2]: Leaving directory `/home/xxx/Downloads/mono-mono-5.2.0.213/runtime'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/xxx/Downloads/mono-mono-5.2.0.213'
make: *** [all] Error 2
Related
I want to compile linux kernel subdirectory just like this:
make M=drivers/staging/comedi/
Unfortunately when I do this I get this error:
ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
Makefile:648: include/config/auto.conf: Nie ma takiego pliku ani katalogu
make: *** [Makefile:719: include/config/auto.conf] Błąd 1
It may be fixed by this command:
make oldconfig
After executing it, I have to press enter for 2 minutes to select the default options everywhere, and then I get this error anyway:
AR drivers/staging/comedi//built-in.a
WARNING: Symbol version dump "Module.symvers" is missing.
Modules may not have dependencies or modversions.
MODPOST drivers/staging/comedi//Module.symvers
/bin/sh: scripts/mod/modpost: Nie ma takiego pliku ani katalogu
make[1]: *** [scripts/Makefile.modpost:111: drivers/staging/comedi//Module.symvers] Błąd 127
make: *** [Makefile:1701: modules] Błąd 2
I have seen many times in the videos people just building a subdirectory with one make M=somedir command. Why doesn't it work for me?
I'm following the README here to get set up: https://github.com/chipsalliance/rocket-chip. When I run make -j6 run in my $ROCKETCHIP/emulator directory, I get the following error message:
make: *** [output/rv64uf-p-fclass.out] Error 255
make: *** Waiting for unfinished jobs....
make: *** [output/rv64uf-p-fcmp.out] Error 255
make: *** [output/rv64uf-p-move.out] Error 255
make: *** [output/rv64uf-p-ldst.out] Error 255
make: *** [output/rv64uf-p-fcvt.out] Error 255
make: *** [output/rv64uf-p-fcvt_w.out] Error 255
I opened up one of the *.out files and it outputted:
using random seed 1586636887
This emulator compiled with JTAG Remote Bitbang client. To enable, use +jtag_rbb_enable=1.
Listening on port 37902
emulator-freechips.rocketchip.system-freechips.rocketchip.system.DefaultConfig: ../fesvr/dtm.cc:61: uint32_t dtm_t::do_command(dtm_t::req): Assertion `resp_buf.resp == 0' failed.
I updated rocket-tools and rebuilt it but still got the same errors. I'm able to skip to generating synthesizable Verilog in the vsim directory.
I did not dig into this, but it seems that this is a bug recently introduced to the master branch of rocket-chip. Switching to a tagged version (v1.2.4 is the latest stable) can solve this problem.
cd rocket-chip
git checkout v1.2.4
git submodule update --init --recursive
cd emulator
make -jN run
I'm trying to install openssl 1.0.2 on Fedora 21 follow steps:
./config
make
make test
make install
I got error in step 3:
CMS consistency test
/bin/perl cms-test.pl
CMS => PKCS#7 compatibility tests
signed content DER format, RSA key: verify error
Makefile:314: recipe for target 'test_cms' failed
make[1]: *** [test_cms] Error 1
make[1]: Leaving directory '/home/l3/Desktop/Lib3rd/openssl-1.0.2-stable-SNAP-20121003/test'
Makefile:456: recipe for target 'tests' failed
make: *** [tests] Error 2
Please help me,
Thanks,
I'm trying to build PCL 1.8.0 on my Ubuntu 14.04 machine from source, following these instructions. But every time I get the following error:
[ 73%] Building CXX object apps/CMakeFiles/pcl_manual_registration.dir/include/pcl/apps/moc_manual_registration.cpp.o
In file included from ~/pcl/release/apps/ui_manual_registration.h:26:0,
from ~/pcl/release/apps/include/pcl/apps/../../../../../apps/include/pcl/apps/manual_registration.h:37,
from ~/pcl/release/apps/include/pcl/apps/moc_manual_registration.cpp:9:
/usr/include/vtk-5.8/QVTKWidget.h:40:25: fatal error: QtGui/QWidget: No such file or directory
#include <QtGui/QWidget>
^
compilation terminated.
make[2]: *** [apps/CMakeFiles/pcl_manual_registration.dir/include/pcl/apps/moc_manual_registration.cpp.o] Error 1
make[1]: *** [apps/CMakeFiles/pcl_manual_registration.dir/all] Error 2
make: *** [all] Error 2
for locate QWidget I get amongst others the following output:
...
/usr/include/qt4/QtGui/QWidget
...
/usr/include/qt5/QtWidgets/QWidget
...
So how can I resolve the error and install pcl?
The problem happens because your configuration is trying to mix Qt4 and Qt5 during PCL build.
According to the link you've provided, PCL is suppossed so be built against Qt4 in this case.
Try to remove everything in release directory and re-initialize CMake config with correct version of Qt.
Like that (following provided example):
cd ~/Documents/pcl
rm -rf relese
mkdir release
cd release
cmake -DCMAKE_BUILD_TYPE=Release -DPCL_QT_VERSION=4 -DBUILD_GPU=ON -DBUILD_apps=ON -DBUILD_examples=ON ..
make
I have been working through the LLVM Kaleidoscope Tutorial for OCaml. On the third part of the tutorial, I have navigated to the example code in the folder
OCaml-Kaleidoscope\Chapter3
I am encountering an issue when compiling with
ocamlbuild toy.byte
on cygwin. This is the code given in the tutorial to compile.
The error I am getting is
''ocamlc.opt -c -o codegen.cmo codegen.ml
File "codegen.ml", line 5, characters 5-9:
Error: Unbound module Llvm
Exit code 2 while executing this command:
''ocamlc.opt -c -o codegen.cmo codegen.ml
I looked up some solutions to this issue. One solution I found was to use
ocamlbuild -use-ocamlfind toy.byte -package llvm
instead of
ocamlbuild toy.byte
However, when I tried that I received this error:
Failure: ocamlfind not found on path, but -no-ocamlfind not used.
To fix this I tried:
opam install ocamlfind
But ocamlfind is already installed.
Another solution I found was to use:
opam install llvm
This resulted in:
The following actions will be performed:
- install llvm 3.7
=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[llvm: ./install.sh 3.7] Command started
[ERROR] The installation of llvm failed at "./install.sh 3.7 make
C:\\cygwin64\\home\\setup\\.opam\\system
C:\\cygwin64\\home\\setup\\.opam\\system\\lib".
[llvm: ocamlfind remove] Command started
#=== ERROR while installing llvm.3.7 ==========================================#
# opam-version 1.3.0~dev2 (d4f7e01216dbb44af4e7cc6539a1b0afa9be9d2c)
# os win32
# command bash -c ./install.sh 3.7 make C:/cygwin64/home/setup/.opa m/system C:/cygwin64/home/setup/.opam/system/lib
# path C:\cygwin64\home\setup\.opam\system\build\llvm.3.7
# exit-code 2
# env-file C:\cygwin64\home\setup\.opam\system\build\llvm.3.7\llvm-1 0768-58c514.env
# stdout-file C:\cygwin64\home\setup\.opam\system\build\llvm.3.7\llvm-1 0768-58c514.out
# stderr-file C:\cygwin64\home\setup\.opam\system\build\llvm.3.7\llvm-1 0768-58c514.err
### stdout ###
# [...]
# config.status: executing bindings/ocaml/Makefile.ocaml commands
# make: Entering directory '/home/setup/.opam/system/build/llvm.3.7/build/bindin gs'
# llvm[0]: Constructing LLVMBuild project information.
# make[1]: Entering directory '/home/setup/.opam/system/build/llvm.3.7/build/bin dings/ocaml'
# make[2]: Entering directory '/home/setup/.opam/system/build/llvm.3.7/build/bin dings/ocaml/llvm'
# llvm[2]: Compiling llvm_ocaml.c for Release+Asserts build
# /home/setup/.opam/system/build/llvm.3.7/Makefile.rules:1536: recipe for target '/home/setup/.opam/system/build/llvm.3.7/build/bindings/ocaml/llvm/Release+Asse rts/llvm_ocaml.o' failed
# make[2]: Leaving directory '/home/setup/.opam/system/build/llvm.3.7/build/bind ings/ocaml/llvm'
# /home/setup/.opam/system/build/llvm.3.7/Makefile.rules:880: recipe for target 'all' failed
# make[1]: Leaving directory '/home/setup/.opam/system/build/llvm.3.7/build/bind ings/ocaml'
# /home/setup/.opam/system/build/llvm.3.7/Makefile.rules:939: recipe for target 'ocaml/.makeall' failed
# make: Leaving directory '/home/setup/.opam/system/build/llvm.3.7/build/binding s'
### stderr ###
# [...]
# configure: WARNING: dlopen() not found - disabling plugin support
# configure: WARNING: mmap() of a fixed address required but not supported
# configure: WARNING: mmap() of files required but not found
# configure: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not inst alled. Tests will not run
# + make -C bindings all SYSTEM_LLVM_CONFIG=llvm-config
# gcc.exe: error: /home/setup/.opam/system/build/llvm.3.7/bindings/ocaml/llvm/ll vm_ocaml.c: No such file or directory
# gcc.exe: fatal error: no input files
# compilation terminated.
# /usr/bin/rm: cannot remove '/home/setup/.opam/system/build/llvm.3.7/build/bind ings/ocaml/llvm/Release+Asserts/llvm_ocaml.d.tmp': No such file or directory
# make[2]: *** [/home/setup/.opam/system/build/llvm.3.7/build/bindings/ocaml/llv m/Release+Asserts/llvm_ocaml.o] Error 1
# make[1]: *** [all] Error 1
# make: *** [ocaml/.makeall] Error 2
=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following actions failed
- install llvm 3.7
No changes have been performed
=-=- llvm.3.7 troubleshooting -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=> This package relies on external (system) dependencies that may be missing.
`opam depext llvm.3.7' may help you find the correct installation for your
system.
I am using version 3.8.0 of llvm and version 4.02.3 of OCaml from this link.
Am I on the right track? What do I need to do to fix this?
As I have answered in your question LLVM tutorial OCaml Compilation Assembler Error, your best way is not to use Windows.
OPAM is now usable in Cygwin OCaml or even in MinGW OCaml (using Cygwin opam binary) but packages in the OPAM repository are not tested in these environments. Just avoid them unless you are experienced with OCaml program development in Windows.
If you stick to Windows, then check the build at C:\cygwin64\home\setup\.opam\system\build\llvm.3.7. There should be stdout and stderr log files which can help to understand what happend.