[Mono-dev] mono make install fails with Error 1

Cyd Haselton chaselton at gmail.com
Sun May 31 16:43:07 UTC 2015


*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 <sushihangover at 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: chaselton at gmail.com 
>> Date: Sun, 31 May 2015 11:15:00 -0500 
>> To: mono-devel-list at lists.ximian.com 
>> CC: sushihangover at 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 <sushihangover at 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: chaselton at gmail.com 
>> Date: Sun, 31 May 2015 09:29:20 -0500 
>> To: mono-devel-list at 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 at 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.


More information about the Mono-devel-list mailing list