Bug 17549 - make EXTERNAL_MCS=${PWD}/mcs/class/lib/monolite/gmcs.exe fails on armhf chroot
Summary: make EXTERNAL_MCS=${PWD}/mcs/class/lib/monolite/gmcs.exe fails on armhf chroot
Status: RESOLVED NORESPONSE
Alias: None
Product: Tools
Classification: Mono
Component: other ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-02-02 15:42 UTC by nhusted
Modified: 2016-04-21 03:22 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description nhusted 2014-02-02 15:42:12 UTC
I'm attempting to compile mono within a qemu-debootstrap made chroot environment targeting the Raspberry Pi. I'm attempting to compile mono without a mono installation available to bootstrap from.

Mono version: git master commit commit 17fcfee696ac813e1fff6347f2d85b8a2de4085f

Command to create qemu boostrap environment: sudo qemu-debootstrap --no-check-gpg --arch armhf wheezy chroot-raspbian-armhf http://archive.raspbian.org/raspbian

Host OS: Debian Testing

Process:
1. ./autogen.sh --prefix=/usr/local --enable-nls=no
2. make get-monolite-latest
3. make EXTERNAL_MCS=${PWD}/mcs/class/lib/monolite/gmcs.exe

Resulting build error: 
make[2]: Entering directory `/root/mono/runtime'
if test -w /root/mono/mcs; then :; else chmod -R +w /root/mono/mcs; fi
cd /root/mono/mcs && /usr/bin/make --no-print-directory -s NO_DIR_CHECK=1 PROFILES='net_2_0 net_3_5 net_4_0 net_4_5 xbuild_12   ' CC='gcc' all-profiles
make[6]: /root/mono/mcs/class/lib/monolite/gmcs.exe: Command not found
make[6]: *** [build/deps/basic-profile-check.exe] Error 127
*** The compiler '/root/mono/mcs/class/lib/monolite/gmcs.exe' doesn't appear to be usable.
*** Trying the 'monolite' directory.
Mono requires /proc to be mounted.
make[8]: *** [build/deps/basic-profile-check.exe] Error 1
*** The contents of your 'monolite' directory may be out-of-date
*** You may want to try 'make get-monolite-latest'

Contents of ${PWD}/mcs/class/lib/monolite:
~/mono# ls ${PWD}/mcs/class/lib/monolite/
basic.exe	   mscorlib.dll     System.dll
Mono.Security.dll  System.Core.dll  System.Xml.dll

I am assuming by the lack of gmcs.exe that 'make get-monolite-latest' also fails for armhf.
Comment 1 Alex Rønne Petersen 2015-05-07 20:16:36 UTC
Is this still an issue?
Comment 2 Alex Rønne Petersen 2016-04-21 03:22:30 UTC
Closing due to lack of response. Feel free to reopen if this is still an issue on Mono master or 4.2.0+.