The build is failed with the following error:
mkdir -p -- build/deps
gmake: mcs: Command not found
build/profiles/basic.make:93: recipe for target
gmake: *** [build/deps/basic-profile-check.exe] Error 127
*** The compiler 'mcs' doesn't appear to be usable.
The same error is described here: https://firstname.lastname@example.org/msg64911.html.
But it compiles with poudriere.
I take a look in poudriere and got mono compile in the port with following flags (maybe someone can interpret this. I don't think all flags are necessarily but I haven't all tested yet - it needs time).
The command is:
make install clean MONO_SHARED_DIR="/wrkdirs/usr/ports/lang/mono/work" INSTALL_STRIP_FLAG="-s" LC_ALL=C TZ=UTC XDG_DATA_HOME=/wrkdirs/usr/ports/lang/mono/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/lang/mono/work HOME=/wrkdirs/usr/ports/lang/mono/work TMPDIR="/tmp" NO_PIE=yes SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local LIBDIR="/usr/lib" CC="cc" CFLAGS="-O2 -pipe -fstack-protector -fno-strict-aliasing" CPP="cpp" LDFLAGS=" -fstack-protector" LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector -fno-strict-aliasing" MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 444" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" ac_cv_header_sys_inotify_h=no ac_cv_path_PERL=/usr/local/bin/perl ac_cv_path_PERL_PATH=/usr/local/bin/perl XDG_DATA_ SHELL=/bin/sh CONFIG_SHELL=/bin/sh CONFIG_SITE=/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=262144 CFLAGS+=-lpthread
(most of this flags are in the Makefile - I think the important difference are the pathes of MONO and XDG - some of the other errors seems locale errors).
Changed the Makefile and put in:
at last I had a error, the Makefile seems a little malformated
***missing separator on line 61 (last line, now last line is 67)
I deleted the the line .include <bsd.port.mk> and the empty line before and tipped with vi in
maybe a not printable character, or something else.
with this it compiled and installed fine.
Forgot one thing:
The tons of warnings during the compilation are nearly the same as with poudriere. (Seems not a good code).
ok, I check all. So I can reduce the flags to:
make install clean XDG_DATA_HOME=/wrkdirs/usr/ports/lang/mono/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/lang/mono/work HOME=/wrkdirs/usr/ports/lang/mono/work NO_PIE=yes PREFIX=/usr/local LOCALBASE=/usr/local LIBDIR="/usr/lib" CC="cc" CFLAGS="-O2 -pipe -fstack-protector -fno-strict-aliasing" CPP="cpp" LDFLAGS=" -fstack-protector" LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector -fno-strict-aliasing" CFLAGS="-lpthread"
Created attachment 159388 [details]
The problem in the above Makefile is: It ignored LIBS="" or LIBS=. I stilll had to write it on the commandline.
I want to write following above (but it does not save this post, I repeat it).
I was trying to put all (necessarily) flags poudriere used in the Makefile, it compiles fine if I start compilatation with make install clean LIBS=. But it does not compile without that. I guess I did something wrong in the syntax.
It is solved with update to 184.108.40.206.
Close as per requested