Re: [Mono-dev] mono make install fails with Error 1
did you try it with sudo? cd into the mcs/class/System and do a 'gacutil -i System.dll' to see if that is really working. and check the results via : gacutil -l Also run make in verbose debug mode and see which step is failing. Subject: RE: [Mono-dev] mono make install fails with Error 1 From: chasel...@gmail.com Date: Sun, 31 May 2015 11:15:00 -0500 To: mono-devel-list@lists.ximian.com CC: sushihango...@outlook.com This is going to sound weird, but I think the error is being thrown after the update but before the successful install message. Here's the listing of lib/mono/gac and subdirs after running make install in sourcebasedir/mcs/class/System: /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac total 12 drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 10:27 . drwxrwx--- 8 u0_a186 u0_a186 4096 May 31 10:27 .. drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 System /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac/System/ total 12 drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 . drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 10:27 .. drwxrwx--- 2 u0_a186 u0_a186 4096 May 31 11:06 4.0.0.0__b77a5c561934e089 /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/ total 2856 drwxrwx--- 2 u0_a186 u0_a186 4096 May 31 11:06 . drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 .. -rwxrwx--- 1 u0_a186 u0_a186 2063360 May 30 06:12 System.dll -rw-rwx--- 1 u0_a186 u0_a186 851131 May 30 06:12 System.dll.mdb But make install still fails On May 31, 2015 10:53:09 AM CDT, Robert N sushihango...@outlook.com wrote: Permissions problem? Looks like you are installing into /usr/mono/lib (FYI: I'd be careful, installing builds into system usr is not a good idea usually). At that point of the install it is trying to update the gac with System.dll so I would assume you do not have permissions, you can always do a 'sudo make install'. If you cd into sourcebasedir/mcs/class/System and do a sudo make install you should see the successful gac update like this: Installed ./../../class/lib/net_4_5/System.dll into the gac (/Users/administrator/playscript-install/lib/mono/gac) From: chasel...@gmail.com Date: Sun, 31 May 2015 09:29:20 -0500 To: mono-devel-list@lists.ximian.com Subject: [Mono-dev] mono make install fails with Error 1 I've finally managed to get mono to build from sources, but make install invoked from the top build directory fails at the following point: make[6]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System' make install-local WARNING: generic atexit() called from legacy shared library make[7]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System' MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/System.dll /f /root /usr/mono/lib /package 4.5 make[7]: *** [install-local] Error 1 make[7]: Leaving directory `/bld/mono/mono-4.0.0/mcs/class/System' make[6]: *** [do-install] Error 2 Error 1 is the only error thrown. I can run this command without errors MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/System.dll /f /root /usr/mono/lib /package 4.5 And I can run the final command in mono-wrapper without errors /bld/mono/mono-4.0.0 $ /bld/mono/mono-4.0.0/libtool --verbose --mode=execute mono/mini/mono --config /bld/mono/mono-4.0.0/runtime/etc/mono/config mcs/class/lib/build/gacutil.exe /i mcs/class/lib/net_4_5/System.dll /f /root /usr/mono/lib /package 4.5 But running 'make install' fails. Any ideas? Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list -- Sent from my Android device with K-9 Mail. Please excuse my brevity. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] mono make install fails with Error 1
If I didn't lose you at no sudo, Android here's the output from make --debug=vv install: Invoking recipe from ../../build/library.make:197 to update target `install-local'. make[1]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System' MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/System.dll /f /gacdir /usr/mono/lib /root /usr/mono/lib /package 4.5 make[1]: *** [install-local] Error 1 make[1]: Leaving directory `/bld/mono/mono-4.0.0/mcs/class/System' make: *** [do-install] Error 2 On May 31, 2015 11:30:51 AM CDT, Robert N sushihango...@outlook.com wrote: did you try it with sudo? cd into the mcs/class/System and do a 'gacutil -i System.dll' to see if that is really working. and check the results via : gacutil -l Also run make in verbose debug mode and see which step is failing. Subject: RE: [Mono-dev] mono make install fails with Error 1 From: chasel...@gmail.com Date: Sun, 31 May 2015 11:15:00 -0500 To: mono-devel-list@lists.ximian.com CC: sushihango...@outlook.com This is going to sound weird, but I think the error is being thrown after the update but before the successful install message. Here's the listing of lib/mono/gac and subdirs after running make install in sourcebasedir/mcs/class/System: /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac total 12 drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 10:27 . drwxrwx--- 8 u0_a186 u0_a186 4096 May 31 10:27 .. drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 System /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac/System/ total 12 drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 . drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 10:27 .. drwxrwx--- 2 u0_a186 u0_a186 4096 May 31 11:06 4.0.0.0__b77a5c561934e089 /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/ total 2856 drwxrwx--- 2 u0_a186 u0_a186 4096 May 31 11:06 . drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 .. -rwxrwx--- 1 u0_a186 u0_a186 2063360 May 30 06:12 System.dll -rw-rwx--- 1 u0_a186 u0_a186 851131 May 30 06:12 System.dll.mdb But make install still fails On May 31, 2015 10:53:09 AM CDT, Robert N sushihango...@outlook.com wrote: Permissions problem? Looks like you are installing into /usr/mono/lib (FYI: I'd be careful, installing builds into system usr is not a good idea usually). At that point of the install it is trying to update the gac with System.dll so I would assume you do not have permissions, you can always do a 'sudo make install'. If you cd into sourcebasedir/mcs/class/System and do a sudo make install you should see the successful gac update like this: Installed ./../../class/lib/net_4_5/System.dll into the gac (/Users/administrator/playscript-install/lib/mono/gac) From: chasel...@gmail.com Date: Sun, 31 May 2015 09:29:20 -0500 To: mono-devel-list@lists.ximian.com Subject: [Mono-dev] mono make install fails with Error 1 I've finally managed to get mono to build from sources, but make install invoked from the top build directory fails at the following point: make[6]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System' make install-local WARNING: generic atexit() called from legacy shared library make[7]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System' MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/System.dll /f /root /usr/mono/lib /package 4.5 make[7]: *** [install-local] Error 1 make[7]: Leaving directory `/bld/mono/mono-4.0.0/mcs/class/System' make[6]: *** [do-install] Error 2 Error 1 is the only error thrown. I can run this command without errors MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/System.dll /f /root /usr/mono/lib /package 4.5 And I can run the final command in mono-wrapper without errors /bld/mono/mono-4.0.0 $ /bld/mono/mono-4.0.0/libtool --verbose --mode=execute mono/mini/mono --config /bld/mono/mono-4.0.0/runtime/etc/mono/config mcs/class/lib/build/gacutil.exe /i mcs/class/lib/net_4_5/System.dll /f /root /usr/mono/lib /package 4.5 But running 'make install' fails. Any ideas? Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -- Sent from my Android device with K-9 Mail. Please excuse my brevity.___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com
Re: [Mono-dev] Profiling / Memory Management tools
THIS!! https://github.com/mono/mono/blob/master/data/mono.supp +1 On Sun, May 31, 2015 at 8:31 PM, Greg Young gregoryyou...@gmail.com wrote: Will read through but I am interested in the unmanaged side (part of what I am working on is actually an injected profiler) Cheers, Greg On Sun, May 31, 2015 at 8:29 PM, Dan Liew d...@su-root.co.uk wrote: On 31 May 2015 at 17:35, Greg Young gregoryyou...@gmail.com wrote: What tools are people using with mono? I have tried as an example using valgrind to verify the stuff I am working on is reasonable but the listings of problems that come out are massive. Checking the memory usage via valgrind will be pretty useless to you unless you know the mono internals. If you do want to continue down that route look at [1]. You're more likely to be interested in memory use at the level of your C#/F# code. To do this I've used mono's built-in memory profiling [2], e.g. $ mono --profile=log:heapshot my_program.exe You can specify how frequently shots of the heap are taken. You can view the result using mprof or heapshot [3]. [1] http://www.mono-project.com/docs/debug+profile/debug/#using-valgrind-on-mono [2] http://www.mono-project.com/docs/debug+profile/profile/profiler/#profiler-option-documentation [3] https://github.com/mono/heap-shot -- Studying for the Turing test -- Studying for the Turing test ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] mono make install fails with Error 1
Unfortunately based on what I;m seeing, the rest of the install is throwing errors as well. I'll go through the log once it's done. On May 31, 2015 12:51:00 PM CDT, Robert N sushihango...@outlook.com wrote: Cool, well at least we know it is not perms issue... You can always run make with --keep-going and see it the rest of the gacutil calls are an issue but everything is ok... (fingers crossed) Try something like: make --keep-going install 21 | tee /tmp/monooinstall.log and that way you can grep out the failures after the run... More coffee please... ;-) Subject: RE: [Mono-dev] mono make install fails with Error 1 From: chasel...@gmail.com Date: Sun, 31 May 2015 12:31:04 -0500 To: sushihango...@outlook.com; mono-devel-list@lists.ximian.com Hopefully that won't deter you (the Android bit, not the coffee) Here's the successful output from the manual run of gacutil.exe /bld/mono/mono-4.0.0/mcs/class/lib/net_4_5 $ ../../../../mono/mini/mono ./gacutil.exe -i ./System.dll Installed ./System.dll into the gac (/usr/mono/lib/mono/gac) /bld/mono/mono-4.0.0/mcs/class/lib/net_4_5 $ ../../../../mono/mini/mono ./gacutil.exe -l System The following assemblies are installed into the GAC: System, Version=4.0.0.0http://4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Number of items = 1 I wonder why it's not working in make install... On May 31, 2015 12:21:39 PM CDT, Robert N sushihango...@outlook.com wrote: No, did not lose me, but still working on the coffee ;-) Personally never build/installed on android No output on gacutil -i System.dll gacutil -l is a problem... h Ok, lets prove (or eliminate) the gac install as a problem, gacutil is just a script that runs mono with the gacutil.exe with some options passed in... So, in your mono source/build dir, cd into the mcs/class/lib/net_4_5 dir and manually run gacutil.exe with the System.dll (both should be in that dir)... your built mono binary should be in mono/mini, so the cmd should look like: ../../../../mono/mini/mono ./gacutil.exe -i ./System.dll Try it that way first and if it fails, rerun it and add -v to mono for verbose output: ../../../../mono/mini/mono -v ./gacutil.exe -i ./System.dll Passed/installed into gac: pwd /Users/administrator/Documents/Code/playscript/Playscript-master/mcs/class/lib/net_4_5 Win81Pro:net_4_5 administrator$ ../../../../mono/mini/mono ./gacutil.exe -i ./System.dll Installed ./System.dll into the gac (/Users/administrator/mono-install/lib/mono/gac) gacutil -l System The following assemblies are installed into the GAC: System, Version=4.0.0.0http://4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Number of items = 1 Subject: RE: [Mono-dev] mono make install fails with Error 1 From: chasel...@gmail.com Date: Sun, 31 May 2015 11:49:26 -0500 To: sushihango...@outlook.com; mono-devel-list@lists.ximian.com If I didn't lose you at no sudo, Android here's the output from make --debug=vv install: Invoking recipe from ../../build/library.make:197 to update target `install-local'. make[1]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System' MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/System.dll /f /gacdir /usr/mono/lib /root /usr/mono/lib /package 4.5 make[1]: *** [install-local] Error 1 make[1]: Leaving directory `/bld/mono/mono-4.0.0/mcs/class/System' make: *** [do-install] Error 2 On May 31, 2015 11:30:51 AM CDT, Robert N sushihango...@outlook.com wrote: did you try it with sudo? cd into the mcs/class/System and do a 'gacutil -i System.dll' to see if that is really working. and check the results via : gacutil -l Also run make in verbose debug mode and see which step is failing. Subject: RE: [Mono-dev] mono make install fails with Error 1 From: chasel...@gmail.com Date: Sun, 31 May 2015 11:15:00 -0500 To: mono-devel-list@lists.ximian.com CC: sushihango...@outlook.com This is going to sound weird, but I think the error is being thrown after the update but before the successful install message. Here's the listing of lib/mono/gac and subdirs after running make install in sourcebasedir/mcs/class/System: /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac total 12 drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 10:27 . drwxrwx--- 8 u0_a186 u0_a186 4096 May 31 10:27 .. drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 System /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac/System/ total 12 drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 . drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 10:27 .. drwxrwx--- 2 u0_a186 u0_a186 4096 May 31 11:06 4.0.0.0__b77a5c561934e089 /bld/mono/mono-4.0.0 $ ls -al
Re: [Mono-dev] mono make install fails with Error 1
You can try make install V=1 for more output as well. From: chasel...@gmail.com Date: Sun, 31 May 2015 11:49:26 -0500 To: sushihango...@outlook.com; mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] mono make install fails with Error 1 If I didn't lose you at no sudo, Android here's the output from make --debug=vv install: Invoking recipe from ../../build/library.make:197 to update target `install-local'. make[1]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System' MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/System.dll /f /gacdir /usr/mono/lib /root /usr/mono/lib /package 4.5 make[1]: *** [install-local] Error 1 make[1]: Leaving directory `/bld/mono/mono-4.0.0/mcs/class/System' make: *** [do-install] Error 2 On May 31, 2015 11:30:51 AM CDT, Robert N sushihango...@outlook.com wrote: did you try it with sudo? cd into the mcs/class/System and do a 'gacutil -i System.dll' to see if that is really working. and check the results via : gacutil -l Also run make in verbose debug mode and see which step is failing. Subject: RE: [Mono-dev] mono make install fails with Error 1 From: chasel...@gmail.com Date: Sun, 31 May 2015 11:15:00 -0500 To: mono-devel-list@lists.ximian.com CC: sushihango...@outlook.com This is going to sound weird, but I think the error is being thrown after the update but before the successful install message. Here's the listing of lib/mono/gac and subdirs after running make install in sourcebasedir/mcs/class/System: /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac total 12 drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 10:27 . drwxrwx--- 8 u0_a186 u0_a186 4096 May 31 10:27 .. drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 System /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac/System/ total 12 drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 . drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 10:27 .. drwxrwx--- 2 u0_a186 u0_a186 4096 May 31 11:06 4.0.0.0__b77a5c561934e089 /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/ total 2856 drwxrwx--- 2 u0_a186 u0_a186 4096 May 31 11:06 . drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 .. -rwxrwx--- 1 u0_a186 u0_a186 2063360 May 30 06:12 System.dll -rw-rwx--- 1 u0_a186 u0_a186 851131 May 30 06:12 System.dll.mdb But make install still fails On May 31, 2015 10:53:09 AM CDT, Robert N sushihango...@outlook.com wrote: Permissions problem? Looks like you are installing into /usr/mono/lib (FYI: I'd be careful, installing builds into system usr is not a good idea usually). At that point of the install it is trying to update the gac with System.dll so I would assume you do not have permissions, you can always do a 'sudo make install'. If you cd into sourcebasedir/mcs/class/System and do a sudo make install you should see the successful gac update like this: Installed ./../../class/lib/net_4_5/System.dll into the gac (/Users/administrator/playscript-install/lib/mono/gac) From: chasel...@gmail.com Date: Sun, 31 May 2015 09:29:20 -0500 To: mono-devel-list@lists.ximian.com Subject: [Mono-dev] mono make install fails with Error 1 I've finally managed to get mono to build from sources, but make install invoked from the top build directory fails at the following point: make[6]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System' make install-local WARNING: generic atexit() called from legacy shared library make[7]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System' MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/System.dll /f /root /usr/mono/lib /package 4.5 make[7]: *** [install-local] Error 1 make[7]: Leaving directory `/bld/mono/mono-4.0.0/mcs/class/System' make[6]: *** [do-install] Error 2 Error 1 is the only error thrown. I can run this command without errors MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/System.dll /f /root /usr/mono/lib /package 4.5 And I can run the final command in mono-wrapper without errors /bld/mono/mono-4.0.0 $ /bld/mono/mono-4.0.0/libtool --verbose --mode=execute mono/mini/mono --config /bld/mono/mono-4.0.0/runtime/etc/mono/config mcs/class/lib/build/gacutil.exe /i mcs/class/lib/net_4_5/System.dll /f /root /usr/mono/lib /package 4.5 But running 'make install' fails. Any ideas? Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Re: [Mono-dev] mono make install fails with Error 1
Will try it. Thanks for the help! Oh and I still haven't gotten my coffee yet... On May 31, 2015 12:51:00 PM CDT, Robert N sushihango...@outlook.com wrote: Cool, well at least we know it is not perms issue... You can always run make with --keep-going and see it the rest of the gacutil calls are an issue but everything is ok... (fingers crossed) Try something like: make --keep-going install 21 | tee /tmp/monooinstall.log and that way you can grep out the failures after the run... More coffee please... ;-) Subject: RE: [Mono-dev] mono make install fails with Error 1 From: chasel...@gmail.com Date: Sun, 31 May 2015 12:31:04 -0500 To: sushihango...@outlook.com; mono-devel-list@lists.ximian.com Hopefully that won't deter you (the Android bit, not the coffee) Here's the successful output from the manual run of gacutil.exe /bld/mono/mono-4.0.0/mcs/class/lib/net_4_5 $ ../../../../mono/mini/mono ./gacutil.exe -i ./System.dll Installed ./System.dll into the gac (/usr/mono/lib/mono/gac) /bld/mono/mono-4.0.0/mcs/class/lib/net_4_5 $ ../../../../mono/mini/mono ./gacutil.exe -l System The following assemblies are installed into the GAC: System, Version=4.0.0.0http://4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Number of items = 1 I wonder why it's not working in make install... On May 31, 2015 12:21:39 PM CDT, Robert N sushihango...@outlook.com wrote: No, did not lose me, but still working on the coffee ;-) Personally never build/installed on android No output on gacutil -i System.dll gacutil -l is a problem... h Ok, lets prove (or eliminate) the gac install as a problem, gacutil is just a script that runs mono with the gacutil.exe with some options passed in... So, in your mono source/build dir, cd into the mcs/class/lib/net_4_5 dir and manually run gacutil.exe with the System.dll (both should be in that dir)... your built mono binary should be in mono/mini, so the cmd should look like: ../../../../mono/mini/mono ./gacutil.exe -i ./System.dll Try it that way first and if it fails, rerun it and add -v to mono for verbose output: ../../../../mono/mini/mono -v ./gacutil.exe -i ./System.dll Passed/installed into gac: pwd /Users/administrator/Documents/Code/playscript/Playscript-master/mcs/class/lib/net_4_5 Win81Pro:net_4_5 administrator$ ../../../../mono/mini/mono ./gacutil.exe -i ./System.dll Installed ./System.dll into the gac (/Users/administrator/mono-install/lib/mono/gac) gacutil -l System The following assemblies are installed into the GAC: System, Version=4.0.0.0http://4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Number of items = 1 Subject: RE: [Mono-dev] mono make install fails with Error 1 From: chasel...@gmail.com Date: Sun, 31 May 2015 11:49:26 -0500 To: sushihango...@outlook.com; mono-devel-list@lists.ximian.com If I didn't lose you at no sudo, Android here's the output from make --debug=vv install: Invoking recipe from ../../build/library.make:197 to update target `install-local'. make[1]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System' MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/System.dll /f /gacdir /usr/mono/lib /root /usr/mono/lib /package 4.5 make[1]: *** [install-local] Error 1 make[1]: Leaving directory `/bld/mono/mono-4.0.0/mcs/class/System' make: *** [do-install] Error 2 On May 31, 2015 11:30:51 AM CDT, Robert N sushihango...@outlook.com wrote: did you try it with sudo? cd into the mcs/class/System and do a 'gacutil -i System.dll' to see if that is really working. and check the results via : gacutil -l Also run make in verbose debug mode and see which step is failing. Subject: RE: [Mono-dev] mono make install fails with Error 1 From: chasel...@gmail.com Date: Sun, 31 May 2015 11:15:00 -0500 To: mono-devel-list@lists.ximian.com CC: sushihango...@outlook.com This is going to sound weird, but I think the error is being thrown after the update but before the successful install message. Here's the listing of lib/mono/gac and subdirs after running make install in sourcebasedir/mcs/class/System: /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac total 12 drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 10:27 . drwxrwx--- 8 u0_a186 u0_a186 4096 May 31 10:27 .. drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 System /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac/System/ total 12 drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 . drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 10:27 .. drwxrwx--- 2 u0_a186 u0_a186 4096 May 31 11:06 4.0.0.0__b77a5c561934e089 /bld/mono/mono-4.0.0 $ ls -al
Re: [Mono-dev] mono make install fails with Error 1
Robert...I re-ran the gacutil -I command with the -v switch and got the following: /bld/mono/mono-4.0.0/mcs/class/System $ /bld/mono/mono-4.0.0/runtime/mono-wrapper -v ../../class/lib/build/gacutil.exe -i System.dll Failure adding assembly System.dll to the cache: The system cannot find the file specified. Re-running it again with the path to class/build/System yields: /bld/mono/mono-4.0.0/mcs/class/System $ /bld/mono/mono-4.0.0/runtime/mono-wrapper -v ../../class/lib/build/gacutil.exe -i ../../class/lib/build/System.dll Failure adding assembly ../../class/lib/build/System.dll to the cache: Strong name cannot be verified for delay-signed assembly On May 31, 2015 12:06:17 PM CDT, Alexander Köplinger alex.koeplin...@outlook.com wrote: You can try make install V=1 for more output as well. From: chasel...@gmail.com Date: Sun, 31 May 2015 11:49:26 -0500 To: sushihango...@outlook.com; mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] mono make install fails with Error 1 If I didn't lose you at no sudo, Android here's the output from make --debug=vv install: Invoking recipe from ../../build/library.make:197 to update target `install-local'. make[1]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System' MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/System.dll /f /gacdir /usr/mono/lib /root /usr/mono/lib /package 4.5 make[1]: *** [install-local] Error 1 make[1]: Leaving directory `/bld/mono/mono-4.0.0/mcs/class/System' make: *** [do-install] Error 2 On May 31, 2015 11:30:51 AM CDT, Robert N sushihango...@outlook.com wrote: did you try it with sudo? cd into the mcs/class/System and do a 'gacutil -i System.dll' to see if that is really working. and check the results via : gacutil -l Also run make in verbose debug mode and see which step is failing. Subject: RE: [Mono-dev] mono make install fails with Error 1 From: chasel...@gmail.com Date: Sun, 31 May 2015 11:15:00 -0500 To: mono-devel-list@lists.ximian.com CC: sushihango...@outlook.com This is going to sound weird, but I think the error is being thrown after the update but before the successful install message. Here's the listing of lib/mono/gac and subdirs after running make install in sourcebasedir/mcs/class/System: /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac total 12 drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 10:27 . drwxrwx--- 8 u0_a186 u0_a186 4096 May 31 10:27 .. drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 System /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac/System/ total 12 drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 . drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 10:27 .. drwxrwx--- 2 u0_a186 u0_a186 4096 May 31 11:06 4.0.0.0__b77a5c561934e089 /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/ total 2856 drwxrwx--- 2 u0_a186 u0_a186 4096 May 31 11:06 . drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 .. -rwxrwx--- 1 u0_a186 u0_a186 2063360 May 30 06:12 System.dll -rw-rwx--- 1 u0_a186 u0_a186 851131 May 30 06:12 System.dll.mdb But make install still fails On May 31, 2015 10:53:09 AM CDT, Robert N sushihango...@outlook.com wrote: Permissions problem? Looks like you are installing into /usr/mono/lib (FYI: I'd be careful, installing builds into system usr is not a good idea usually). At that point of the install it is trying to update the gac with System.dll so I would assume you do not have permissions, you can always do a 'sudo make install'. If you cd into sourcebasedir/mcs/class/System and do a sudo make install you should see the successful gac update like this: Installed ./../../class/lib/net_4_5/System.dll into the gac (/Users/administrator/playscript-install/lib/mono/gac) From: chasel...@gmail.com Date: Sun, 31 May 2015 09:29:20 -0500 To: mono-devel-list@lists.ximian.com Subject: [Mono-dev] mono make install fails with Error 1 I've finally managed to get mono to build from sources, but make install invoked from the top build directory fails at the following point: make[6]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System' make install-local WARNING: generic atexit() called from legacy shared library make[7]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System' MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/System.dll /f /root /usr/mono/lib /package 4.5 make[7]: *** [install-local] Error 1 make[7]: Leaving directory `/bld/mono/mono-4.0.0/mcs/class/System' make[6]: *** [do-install] Error 2 Error 1 is the only error thrown. I can run this command without errors MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i
[Mono-dev] Profiling / Memory Management tools
What tools are people using with mono? I have tried as an example using valgrind to verify the stuff I am working on is reasonable but the listings of problems that come out are massive. -- Studying for the Turing test ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] mono make install fails with Error 1
Hopefully that won't deter you (the Android bit, not the coffee) Here's the successful output from the manual run of gacutil.exe /bld/mono/mono-4.0.0/mcs/class/lib/net_4_5 $ ../../../../mono/mini/mono ./gacutil.exe -i ./System.dll Installed ./System.dll into the gac (/usr/mono/lib/mono/gac) /bld/mono/mono-4.0.0/mcs/class/lib/net_4_5 $ ../../../../mono/mini/mono ./gacutil.exe -l System The following assemblies are installed into the GAC: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Number of items = 1 I wonder why it's not working in make install... On May 31, 2015 12:21:39 PM CDT, Robert N sushihango...@outlook.com wrote: No, did not lose me, but still working on the coffee ;-) Personally never build/installed on android No output on gacutil -i System.dll gacutil -l is a problem... h Ok, lets prove (or eliminate) the gac install as a problem, gacutil is just a script that runs mono with the gacutil.exe with some options passed in... So, in your mono source/build dir, cd into the mcs/class/lib/net_4_5 dir and manually run gacutil.exe with the System.dll (both should be in that dir)... your built mono binary should be in mono/mini, so the cmd should look like: ../../../../mono/mini/mono ./gacutil.exe -i ./System.dll Try it that way first and if it fails, rerun it and add -v to mono for verbose output: ../../../../mono/mini/mono -v ./gacutil.exe -i ./System.dll Passed/installed into gac: pwd /Users/administrator/Documents/Code/playscript/Playscript-master/mcs/class/lib/net_4_5 Win81Pro:net_4_5 administrator$ ../../../../mono/mini/mono ./gacutil.exe -i ./System.dll Installed ./System.dll into the gac (/Users/administrator/mono-install/lib/mono/gac) gacutil -l System The following assemblies are installed into the GAC: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Number of items = 1 Subject: RE: [Mono-dev] mono make install fails with Error 1 From: chasel...@gmail.com Date: Sun, 31 May 2015 11:49:26 -0500 To: sushihango...@outlook.com; mono-devel-list@lists.ximian.com If I didn't lose you at no sudo, Android here's the output from make --debug=vv install: Invoking recipe from ../../build/library.make:197 to update target `install-local'. make[1]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System' MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/System.dll /f /gacdir /usr/mono/lib /root /usr/mono/lib /package 4.5 make[1]: *** [install-local] Error 1 make[1]: Leaving directory `/bld/mono/mono-4.0.0/mcs/class/System' make: *** [do-install] Error 2 On May 31, 2015 11:30:51 AM CDT, Robert N sushihango...@outlook.com wrote: did you try it with sudo? cd into the mcs/class/System and do a 'gacutil -i System.dll' to see if that is really working. and check the results via : gacutil -l Also run make in verbose debug mode and see which step is failing. Subject: RE: [Mono-dev] mono make install fails with Error 1 From: chasel...@gmail.com Date: Sun, 31 May 2015 11:15:00 -0500 To: mono-devel-list@lists.ximian.com CC: sushihango...@outlook.com This is going to sound weird, but I think the error is being thrown after the update but before the successful install message. Here's the listing of lib/mono/gac and subdirs after running make install in sourcebasedir/mcs/class/System: /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac total 12 drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 10:27 . drwxrwx--- 8 u0_a186 u0_a186 4096 May 31 10:27 .. drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 System /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac/System/ total 12 drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 . drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 10:27 .. drwxrwx--- 2 u0_a186 u0_a186 4096 May 31 11:06 4.0.0.0__b77a5c561934e089 /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/ total 2856 drwxrwx--- 2 u0_a186 u0_a186 4096 May 31 11:06 . drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 .. -rwxrwx--- 1 u0_a186 u0_a186 2063360 May 30 06:12 System.dll -rw-rwx--- 1 u0_a186 u0_a186 851131 May 30 06:12 System.dll.mdb But make install still fails On May 31, 2015 10:53:09 AM CDT, Robert N sushihango...@outlook.com wrote: Permissions problem? Looks like you are installing into /usr/mono/lib (FYI: I'd be careful, installing builds into system usr is not a good idea usually). At that point of the install it is trying to update the gac with System.dll so I would assume you do not have permissions, you can always do a 'sudo make install'. If you cd into sourcebasedir/mcs/class/System and do a sudo make install you should see the successful gac update like this: Installed
Re: [Mono-dev] mono make install fails with Error 1
Cool, well at least we know it is not perms issue... You can always run make with --keep-going and see it the rest of the gacutil calls are an issue but everything is ok... (fingers crossed) Try something like: make --keep-going install 21 | tee /tmp/monooinstall.log and that way you can grep out the failures after the run... More coffee please... ;-) Subject: RE: [Mono-dev] mono make install fails with Error 1 From: chasel...@gmail.com Date: Sun, 31 May 2015 12:31:04 -0500 To: sushihango...@outlook.com; mono-devel-list@lists.ximian.com Hopefully that won't deter you (the Android bit, not the coffee) Here's the successful output from the manual run of gacutil.exe /bld/mono/mono-4.0.0/mcs/class/lib/net_4_5 $ ../../../../mono/mini/mono ./gacutil.exe -i ./System.dll Installed ./System.dll into the gac (/usr/mono/lib/mono/gac) /bld/mono/mono-4.0.0/mcs/class/lib/net_4_5 $ ../../../../mono/mini/mono ./gacutil.exe -l System The following assemblies are installed into the GAC: System, Version=4.0.0.0http://4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Number of items = 1 I wonder why it's not working in make install... On May 31, 2015 12:21:39 PM CDT, Robert N sushihango...@outlook.com wrote: No, did not lose me, but still working on the coffee ;-) Personally never build/installed on android No output on gacutil -i System.dll gacutil -l is a problem... h Ok, lets prove (or eliminate) the gac install as a problem, gacutil is just a script that runs mono with the gacutil.exe with some options passed in... So, in your mono source/build dir, cd into the mcs/class/lib/net_4_5 dir and manually run gacutil.exe with the System.dll (both should be in that dir)... your built mono binary should be in mono/mini, so the cmd should look like: ../../../../mono/mini/mono ./gacutil.exe -i ./System.dll Try it that way first and if it fails, rerun it and add -v to mono for verbose output: ../../../../mono/mini/mono -v ./gacutil.exe -i ./System.dll Passed/installed into gac: pwd /Users/administrator/Documents/Code/playscript/Playscript-master/mcs/class/lib/net_4_5 Win81Pro:net_4_5 administrator$ ../../../../mono/mini/mono ./gacutil.exe -i ./System.dll Installed ./System.dll into the gac (/Users/administrator/mono-install/lib/mono/gac) gacutil -l System The following assemblies are installed into the GAC: System, Version=4.0.0.0http://4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Number of items = 1 Subject: RE: [Mono-dev] mono make install fails with Error 1 From: chasel...@gmail.com Date: Sun, 31 May 2015 11:49:26 -0500 To: sushihango...@outlook.com; mono-devel-list@lists.ximian.com If I didn't lose you at no sudo, Android here's the output from make --debug=vv install: Invoking recipe from ../../build/library.make:197 to update target `install-local'. make[1]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System' MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/System.dll /f /gacdir /usr/mono/lib /root /usr/mono/lib /package 4.5 make[1]: *** [install-local] Error 1 make[1]: Leaving directory `/bld/mono/mono-4.0.0/mcs/class/System' make: *** [do-install] Error 2 On May 31, 2015 11:30:51 AM CDT, Robert N sushihango...@outlook.com wrote: did you try it with sudo? cd into the mcs/class/System and do a 'gacutil -i System.dll' to see if that is really working. and check the results via : gacutil -l Also run make in verbose debug mode and see which step is failing. Subject: RE: [Mono-dev] mono make install fails with Error 1 From: chasel...@gmail.com Date: Sun, 31 May 2015 11:15:00 -0500 To: mono-devel-list@lists.ximian.com CC: sushihango...@outlook.com This is going to sound weird, but I think the error is being thrown after the update but before the successful install message. Here's the listing of lib/mono/gac and subdirs after running make install in sourcebasedir/mcs/class/System: /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac total 12 drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 10:27 . drwxrwx--- 8 u0_a186 u0_a186 4096 May 31 10:27 .. drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 System /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac/System/ total 12 drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 . drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 10:27 .. drwxrwx--- 2 u0_a186 u0_a186 4096 May 31 11:06 4.0.0.0__b77a5c561934e089 /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/ total 2856 drwxrwx--- 2 u0_a186 u0_a186 4096 May 31 11:06 . drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 .. -rwxrwx--- 1
Re: [Mono-dev] mono make install fails with Error 1
This is going to sound weird, but I think the error is being thrown after the update but before the successful install message. Here's the listing of lib/mono/gac and subdirs after running make install in sourcebasedir/mcs/class/System: /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac total 12 drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 10:27 . drwxrwx--- 8 u0_a186 u0_a186 4096 May 31 10:27 .. drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 System /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac/System/ total 12 drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 . drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 10:27 .. drwxrwx--- 2 u0_a186 u0_a186 4096 May 31 11:06 4.0.0.0__b77a5c561934e089 /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/ total 2856 drwxrwx--- 2 u0_a186 u0_a1864096 May 31 11:06 . drwxrwx--- 3 u0_a186 u0_a1864096 May 31 11:06 .. -rwxrwx--- 1 u0_a186 u0_a186 2063360 May 30 06:12 System.dll -rw-rwx--- 1 u0_a186 u0_a186 851131 May 30 06:12 System.dll.mdb But make install still fails On May 31, 2015 10:53:09 AM CDT, Robert N sushihango...@outlook.com wrote: Permissions problem? Looks like you are installing into /usr/mono/lib (FYI: I'd be careful, installing builds into system usr is not a good idea usually). At that point of the install it is trying to update the gac with System.dll so I would assume you do not have permissions, you can always do a 'sudo make install'. If you cd into sourcebasedir/mcs/class/System and do a sudo make install you should see the successful gac update like this: Installed ./../../class/lib/net_4_5/System.dll into the gac (/Users/administrator/playscript-install/lib/mono/gac) From: chasel...@gmail.com Date: Sun, 31 May 2015 09:29:20 -0500 To: mono-devel-list@lists.ximian.com Subject: [Mono-dev] mono make install fails with Error 1 I've finally managed to get mono to build from sources, but make install invoked from the top build directory fails at the following point: make[6]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System' make install-local WARNING: generic atexit() called from legacy shared library make[7]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System' MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/System.dll /f /root /usr/mono/lib /package 4.5 make[7]: *** [install-local] Error 1 make[7]: Leaving directory `/bld/mono/mono-4.0.0/mcs/class/System' make[6]: *** [do-install] Error 2 Error 1 is the only error thrown. I can run this command without errors MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/System.dll /f /root /usr/mono/lib /package 4.5 And I can run the final command in mono-wrapper without errors /bld/mono/mono-4.0.0 $ /bld/mono/mono-4.0.0/libtool --verbose --mode=execute mono/mini/mono --config /bld/mono/mono-4.0.0/runtime/etc/mono/config mcs/class/lib/build/gacutil.exe /i mcs/class/lib/net_4_5/System.dll /f /root /usr/mono/lib /package 4.5 But running 'make install' fails. Any ideas? ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list -- Sent from my Android device with K-9 Mail. Please excuse my brevity.___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] mono make install fails with Error 1
*deep breath* No, I didn't try it with sudo because I don't have sudo per-se on this system. It's Android, rooted. I did run gacutil -I System.dll and gacutil -l but there wasn't much output: /bld/mono/mono-4.0.0/mcs/class/System $ /bld/mono/mono-4.0.0/runtime/mono-wrapper ../../class/lib/build/gacutil.exe -i System.dll /bld/mono/mono-4.0.0/mcs/class/System $ /bld/mono/mono-4.0.0/runtime/mono-wrapper ../../class/lib/build/gacutil.exe -l /bld/mono/mono-4.0.0/mcs/class/System $ Running make in debug mode now... On May 31, 2015 11:30:51 AM CDT, Robert N sushihango...@outlook.com wrote: did you try it with sudo? cd into the mcs/class/System and do a 'gacutil -i System.dll' to see if that is really working. and check the results via : gacutil -l Also run make in verbose debug mode and see which step is failing. Subject: RE: [Mono-dev] mono make install fails with Error 1 From: chasel...@gmail.com Date: Sun, 31 May 2015 11:15:00 -0500 To: mono-devel-list@lists.ximian.com CC: sushihango...@outlook.com This is going to sound weird, but I think the error is being thrown after the update but before the successful install message. Here's the listing of lib/mono/gac and subdirs after running make install in sourcebasedir/mcs/class/System: /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac total 12 drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 10:27 . drwxrwx--- 8 u0_a186 u0_a186 4096 May 31 10:27 .. drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 System /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac/System/ total 12 drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 . drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 10:27 .. drwxrwx--- 2 u0_a186 u0_a186 4096 May 31 11:06 4.0.0.0__b77a5c561934e089 /bld/mono/mono-4.0.0 $ ls -al /usr/mono/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/ total 2856 drwxrwx--- 2 u0_a186 u0_a186 4096 May 31 11:06 . drwxrwx--- 3 u0_a186 u0_a186 4096 May 31 11:06 .. -rwxrwx--- 1 u0_a186 u0_a186 2063360 May 30 06:12 System.dll -rw-rwx--- 1 u0_a186 u0_a186 851131 May 30 06:12 System.dll.mdb But make install still fails On May 31, 2015 10:53:09 AM CDT, Robert N sushihango...@outlook.com wrote: Permissions problem? Looks like you are installing into /usr/mono/lib (FYI: I'd be careful, installing builds into system usr is not a good idea usually). At that point of the install it is trying to update the gac with System.dll so I would assume you do not have permissions, you can always do a 'sudo make install'. If you cd into sourcebasedir/mcs/class/System and do a sudo make install you should see the successful gac update like this: Installed ./../../class/lib/net_4_5/System.dll into the gac (/Users/administrator/playscript-install/lib/mono/gac) From: chasel...@gmail.com Date: Sun, 31 May 2015 09:29:20 -0500 To: mono-devel-list@lists.ximian.com Subject: [Mono-dev] mono make install fails with Error 1 I've finally managed to get mono to build from sources, but make install invoked from the top build directory fails at the following point: make[6]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System' make install-local WARNING: generic atexit() called from legacy shared library make[7]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System' MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/System.dll /f /root /usr/mono/lib /package 4.5 make[7]: *** [install-local] Error 1 make[7]: Leaving directory `/bld/mono/mono-4.0.0/mcs/class/System' make[6]: *** [do-install] Error 2 Error 1 is the only error thrown. I can run this command without errors MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/System.dll /f /root /usr/mono/lib /package 4.5 And I can run the final command in mono-wrapper without errors /bld/mono/mono-4.0.0 $ /bld/mono/mono-4.0.0/libtool --verbose --mode=execute mono/mini/mono --config /bld/mono/mono-4.0.0/runtime/etc/mono/config mcs/class/lib/build/gacutil.exe /i mcs/class/lib/net_4_5/System.dll /f /root /usr/mono/lib /package 4.5 But running 'make install' fails. Any ideas? Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -- Sent from my Android device with K-9 Mail. Please excuse my brevity. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] mono make install fails with Error 1
Yeah...looks like none of the classes built. Here's a snip: make[7]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System.XML' MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/System.Xml.dll /f /root /usr/mono/lib /package 4.5 make[7]: *** [install-local] Error 1 make[7]: Leaving directory `/bld/mono/mono-4.0.0/mcs/class/System.XML' make[6]: *** [do-install] Error 2 make[6]: Target `install' not remade because of errors. make[6]: Leaving directory `/bld/mono/mono-4.0.0/mcs/class/System.XML' WARNING: generic atexit() called from legacy shared library -- make[7]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/Mono.CompilerServices.SymbolWriter' MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/Mono.CompilerServices.SymbolWriter.dll /f /root /usr/mono/lib /package 4.5 make[7]: *** [install-local] Error 1 make[7]: Leaving directory `/bld/mono/mono-4.0.0/mcs/class/Mono.CompilerServices.SymbolWriter' make[6]: *** [do-install] Error 2 make[6]: Target `install' not remade because of errors. make[6]: Leaving directory `/bld/mono/mono-4.0.0/mcs/class/Mono.CompilerServices.SymbolWriter' WARNING: generic atexit() called from legacy shared library On May 31, 2015 12:51:00 PM CDT, Robert N sushihango...@outlook.com wrote: Cool, well at least we know it is not perms issue... You can always run make with --keep-going and see it the rest of the gacutil calls are an issue but everything is ok... (fingers crossed) Try something like: make --keep-going install 21 | tee /tmp/monooinstall.log and that way you can grep out the failures after the run... More coffee please... ;-) Subject: RE: [Mono-dev] mono make install fails with Error 1 From: chasel...@gmail.com Date: Sun, 31 May 2015 12:31:04 -0500 To: sushihango...@outlook.com; mono-devel-list@lists.ximian.com Hopefully that won't deter you (the Android bit, not the coffee) Here's the successful output from the manual run of gacutil.exe /bld/mono/mono-4.0.0/mcs/class/lib/net_4_5 $ ../../../../mono/mini/mono ./gacutil.exe -i ./System.dll Installed ./System.dll into the gac (/usr/mono/lib/mono/gac) /bld/mono/mono-4.0.0/mcs/class/lib/net_4_5 $ ../../../../mono/mini/mono ./gacutil.exe -l System The following assemblies are installed into the GAC: System, Version=4.0.0.0http://4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Number of items = 1 I wonder why it's not working in make install... On May 31, 2015 12:21:39 PM CDT, Robert N sushihango...@outlook.com wrote: No, did not lose me, but still working on the coffee ;-) Personally never build/installed on android No output on gacutil -i System.dll gacutil -l is a problem... h Ok, lets prove (or eliminate) the gac install as a problem, gacutil is just a script that runs mono with the gacutil.exe with some options passed in... So, in your mono source/build dir, cd into the mcs/class/lib/net_4_5 dir and manually run gacutil.exe with the System.dll (both should be in that dir)... your built mono binary should be in mono/mini, so the cmd should look like: ../../../../mono/mini/mono ./gacutil.exe -i ./System.dll Try it that way first and if it fails, rerun it and add -v to mono for verbose output: ../../../../mono/mini/mono -v ./gacutil.exe -i ./System.dll Passed/installed into gac: pwd /Users/administrator/Documents/Code/playscript/Playscript-master/mcs/class/lib/net_4_5 Win81Pro:net_4_5 administrator$ ../../../../mono/mini/mono ./gacutil.exe -i ./System.dll Installed ./System.dll into the gac (/Users/administrator/mono-install/lib/mono/gac) gacutil -l System The following assemblies are installed into the GAC: System, Version=4.0.0.0http://4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Number of items = 1 Subject: RE: [Mono-dev] mono make install fails with Error 1 From: chasel...@gmail.com Date: Sun, 31 May 2015 11:49:26 -0500 To: sushihango...@outlook.com; mono-devel-list@lists.ximian.com If I didn't lose you at no sudo, Android here's the output from make --debug=vv install: Invoking recipe from ../../build/library.make:197 to update target `install-local'. make[1]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System' MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/System.dll /f /gacdir /usr/mono/lib /root /usr/mono/lib /package 4.5 make[1]: *** [install-local] Error 1 make[1]: Leaving directory `/bld/mono/mono-4.0.0/mcs/class/System' make: *** [do-install] Error 2 On May 31, 2015 11:30:51 AM CDT, Robert N sushihango...@outlook.com wrote: did
Re: [Mono-dev] mono make install fails with Error 1
Permissions problem? Looks like you are installing into /usr/mono/lib (FYI: I'd be careful, installing builds into system usr is not a good idea usually). At that point of the install it is trying to update the gac with System.dll so I would assume you do not have permissions, you can always do a 'sudo make install'. If you cd into sourcebasedir/mcs/class/System and do a sudo make install you should see the successful gac update like this: Installed ./../../class/lib/net_4_5/System.dll into the gac (/Users/administrator/playscript-install/lib/mono/gac) From: chasel...@gmail.com Date: Sun, 31 May 2015 09:29:20 -0500 To: mono-devel-list@lists.ximian.com Subject: [Mono-dev] mono make install fails with Error 1 I've finally managed to get mono to build from sources, but make install invoked from the top build directory fails at the following point: make[6]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System' make install-local WARNING: generic atexit() called from legacy shared library make[7]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System' MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/System.dll /f /root /usr/mono/lib /package 4.5 make[7]: *** [install-local] Error 1 make[7]: Leaving directory `/bld/mono/mono-4.0.0/mcs/class/System' make[6]: *** [do-install] Error 2 Error 1 is the only error thrown. I can run this command without errors MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/System.dll /f /root /usr/mono/lib /package 4.5 And I can run the final command in mono-wrapper without errors /bld/mono/mono-4.0.0 $ /bld/mono/mono-4.0.0/libtool --verbose --mode=execute mono/mini/mono --config /bld/mono/mono-4.0.0/runtime/etc/mono/config mcs/class/lib/build/gacutil.exe /i mcs/class/lib/net_4_5/System.dll /f /root /usr/mono/lib /package 4.5 But running 'make install' fails. Any ideas? ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] mono make install fails with Error 1
Hi maybe sudo make install ?? cheers mel On 20150531 16:29 , Cyd Haselton wrote: I've finally managed to get mono to build from sources, but make install invoked from the top build directory fails at the following point: make[6]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System' make install-local WARNING: generic atexit() called from legacy shared library make[7]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System' MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/System.dll /f /root /usr/mono/lib /package 4.5 make[7]: *** [install-local] Error 1 make[7]: Leaving directory `/bld/mono/mono-4.0.0/mcs/class/System' make[6]: *** [do-install] Error 2 Error 1 is the only error thrown. I can run this command without errors MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/System.dll /f /root /usr/mono/lib /package 4.5 And I can run the final command in mono-wrapper without errors /bld/mono/mono-4.0.0 $ /bld/mono/mono-4.0.0/libtool --verbose --mode=execute mono/mini/mono --config /bld/mono/mono-4.0.0/runtime/etc/mono/config mcs/class/lib/build/gacutil.exe /i mcs/class/lib/net_4_5/System.dll /f /root /usr/mono/lib /package 4.5 But running 'make install' fails. Any ideas? ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Profiling / Memory Management tools
On 31 May 2015 at 17:35, Greg Young gregoryyou...@gmail.com wrote: What tools are people using with mono? I have tried as an example using valgrind to verify the stuff I am working on is reasonable but the listings of problems that come out are massive. Checking the memory usage via valgrind will be pretty useless to you unless you know the mono internals. If you do want to continue down that route look at [1]. You're more likely to be interested in memory use at the level of your C#/F# code. To do this I've used mono's built-in memory profiling [2], e.g. $ mono --profile=log:heapshot my_program.exe You can specify how frequently shots of the heap are taken. You can view the result using mprof or heapshot [3]. [1] http://www.mono-project.com/docs/debug+profile/debug/#using-valgrind-on-mono [2] http://www.mono-project.com/docs/debug+profile/profile/profiler/#profiler-option-documentation [3] https://github.com/mono/heap-shot ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] mono make install fails with Error 1
I've finally managed to get mono to build from sources, but make install invoked from the top build directory fails at the following point: make[6]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System' make install-local WARNING: generic atexit() called from legacy shared library make[7]: Entering directory `/bld/mono/mono-4.0.0/mcs/class/System' MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/System.dll /f /root /usr/mono/lib /package 4.5 make[7]: *** [install-local] Error 1 make[7]: Leaving directory `/bld/mono/mono-4.0.0/mcs/class/System' make[6]: *** [do-install] Error 2 Error 1 is the only error thrown. I can run this command without errors MONO_PATH=./../../class/lib/build:$MONO_PATH /bld/mono/mono-4.0.0/runtime/mono-wrapper ./../../class/lib/build/gacutil.exe /i ./../../class/lib/net_4_5/System.dll /f /root /usr/mono/lib /package 4.5 And I can run the final command in mono-wrapper without errors /bld/mono/mono-4.0.0 $ /bld/mono/mono-4.0.0/libtool --verbose --mode=execute mono/mini/mono --config /bld/mono/mono-4.0.0/runtime/etc/mono/config mcs/class/lib/build/gacutil.exe /i mcs/class/lib/net_4_5/System.dll /f /root /usr/mono/lib /package 4.5 But running 'make install' fails. Any ideas?___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list