Re: [Mono-dev] Terminal config for mono csharp shell?
stty sane make sense in terms of a TERM=linux and either a messed up/missing termcap and/or missing capabilities during autogen/configure and shell that is not quite right... The fact that the console.unix.c works across all the std linux flavors and os-x would suggest that something in your environment is different. Not sure what your 'droid dev environment is like, but if you can build/debug mono, you can look at how it is init & exiting in the app-domain.c/console-io.c/console-unix.c routines. It should 'just work', but that requires a very clean environment as Mono does an very generic (iffy IMHO) job of tty exiting (also init'ing). If you look at the ConsoleDriver the extent of the tty exit/teardown is 'string' that is sent is a hardcoded DC1 signal (0x11) which is Ctrl-Q (XON). You can browse the native driver function in console-unix.c, it is running on a gc'd thread, the std c lib function atexit is called with the tty teardown function and it does a very generic teardown (flushing the pipes and setting the ECHO env to true). Is this right or wrong? Depends upon who you ask ;-) Programs written in python have this this issue all the time with using no echo tty mode and properly exiting, it is usually a threading issue, but hard to prevent. A lot of P-coders just place an os.system('stty sane') in their exit code, perl coders place system("stty sane"); curses users should always use endwin(); reset(); to clean things up, etc... The fact that the console.unix.c works across all the std linux flavors and os-x would suggest that something in your environment is different. Not sure what your 'droid dev environment is like, but if you can build/debug mono, you can look at how it is init & exiting in the app-domain.c/console-io.c/console-unix.c routines. From: chasel...@gmail.com Date: Sat, 6 Jun 2015 19:39:16 -0500 To: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] Terminal config for mono csharp shell? Additionally, running 'stty sane' after exiting the REPL solves the problem. Maybe there is a way to set the REPL to run a command on quitting? On June 6, 2015 8:04:47 AM CDT, Cyd Haselton wrote: Are there any special terminal and/or shell settings I should set for the csharp shell? csharp works okay...minus some cursor jumping...but after quitting the console shell behaves oddly until I exit it and re-enter. Example: /home/kbox $ csharp Mono C# Shell, type "help;" for help Enter statements below. csharp> DateTime.Now 06/06/2015 13:00:31 csharp> help "Static methods: Describe (object); - Describes the object's type LoadPackage (package); - Loads the given Package (like -pkg:FILE) LoadAssembly (assembly); - Loads the given assembly (like -r:ASSEMBLY) ShowVars (); - Shows defined local variables. ShowUsing ();- Show active using declarations. Prompt - The prompt used by the C# shell ContinuationPrompt - The prompt for partial input Time (() => { });- Times the specified code print (obj); - Shorthand for Console.WriteLine quit;- You'll never believe it - this quits the repl! help;- This help text TabAtStartCompletes - Whether tab will complete even on empty lines " csharp> quit Environment shell after quitting: /home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $ > /data/data/jackpal.androidterm/kbox2/bin/bash: \: not found /home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $ After exiting environment shell...you can't see the 'exit' command I typed: /home/kbox $ 127|u0_a186@altev:/ $ 127|u0_a186@altev:/ $ 127|u0_a186@altev:/ $ 127|u0_a186@altev:/ $ 127|u0_a186@altev:/ $ Re-entering the environment shell: 127|u0_a186@altev:/ $ /data/data/jackpal.androidterm/kbox2/bin/kbox_shell /home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $ -- 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 ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] mono 4.0.0 xbuild won't build project
I realized that my other mail was hosed, outlook in a browser does blow at times... So I was wondering if you were able to run xbuild using the mono option -v, since xbuild /verbosity:diagnostic never spills even the first line of the diag text: Loading default tasks for ToolsVersion Using mono_options -v 'should' dump about 6500 lines before even getting to the version/copyright notice... assuming something in there is causing a silent fault(?) and exit. Win81Pro:Pash administrator$ MONO_OPTIONS="-v" xbuild Pash.proj |more converting method System.OutOfMemoryException:.ctor (string) Method System.OutOfMemoryException:.ctor (string) emitted at 0x4f7d20 to 0x4f7d44 (code length 36) [xbuild.exe] converting method (wrapper runtime-invoke) :runtime_invoke_void__this___object (object,intptr,intptr,intptr) Method (wrapper runtime-invoke) :runtime_invoke_void__this___object (object,intptr,intptr,intptr) emitted at 0x4f7d60 to 0x4f7e38 (code length 216) [xbuild.exe] converting method System.SystemException:.ctor (string) Method System.SystemException:.ctor (string) emitted at 0x4f7e38 to 0x4f7e5c (code length 36) [xbuild.exe] converting method System.Exception:.ctor (string) Method System.Exception:.ctor (string) emitted at 0x4f7e68 to 0x4f7ea1 (code length 57) [xbuild.exe] converting method System.NullReferenceException:.ctor (string) Method System.NullReferenceException:.ctor (string) emitted at 0x4f7ea8 to 0x4f7ecc (code length 36) [xbuild.exe] converting method System.StackOverflowException:.ctor (string) Method System.StackOverflowException:.ctor (string) emitted at 0x4f7ed0 to 0x4f7eea (code length 26) [xbuild.exe] converting method Mono.XBuild.CommandLine.MainClass:Main (string[]) Method Mono.XBuild.CommandLine.MainClass:Main (string[]) emitted at 0x4f7ef0 to 0x4f7f52 (code length 98) [xbuild.exe] converting method (wrapper runtime-invoke) :runtime_invoke_void_object (object,intptr,intptr,intptr) Method (wrapper runtime-invoke) :runtime_invoke_void_object (object,intptr,intptr,intptr) emitted at 0x4f7f78 to 0x4f8044 (code length 204) [xbuild.exe] converting method (wrapper alloc) object:AllocSmall (intptr,intptr) Method (wrapper alloc) object:AllocSmall (intptr,intptr) emitted at 0x4f8050 to 0x4f80b6 (code length 102) [xbuild.exe] converting method Mono.XBuild.CommandLine.MainClass:.ctor () Method Mono.XBuild.CommandLine.MainClass:.ctor () emitted at 0x4f80b8 to 0x4f8152 (code length 154) [xbuild.exe] converting method Microsoft.Build.Utilities.ToolLocationHelper:GetPathToDotNetFramework (Microsoft.Build.Utilities.TargetDotNetFrameworkVersion) Method Microsoft.Build.Utilities.ToolLocationHelper:GetPathToDotNetFramework (Microsoft.Build.Utilities.TargetDotNetFrameworkVersion) emitted at 0x4f8178 to 0x4f81aa (code length 50) [xbuild.exe] From: chasel...@gmail.com Date: Thu, 4 Jun 2015 17:00:01 -0500 To: atsushi...@veritas-vos-liberabit.com; alan.mcgov...@gmail.com CC: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] mono 4.0.0 xbuild won't build project Here you go... /bld/pash/Pash-Project-Pash-bc07215 $ xbuild /verbosity:diagnostic hello.proj XBuild Engine Version 12.0 Mono, Version 4.0.0.0 Copyright (C) 2005-2013 Various Mono authors /bld/pash/Pash-Project-Pash-bc07215 $ On June 4, 2015 1:14:33 PM CDT, Atsushi Eno wrote: I tried xbuild from mono master as well as mono 3.2.8, and it *did* complain about the syntax error you made. The output from master is: - atsushi:~/Desktop$ xbuild x.proj XBuild Engine Version 12.0 Mono, Version 4.3.0.0 Copyright (C) 2005-2013 Various Mono authors Build started 6/5/2015 2:08:48 AM. x.proj: error : /home/atsushi/Desktop/x.proj: Name cannot begin with the ' ' character, hexadecimal value 0x20. Line 1, position 2. Build FAILED. Errors: x.proj: error : /home/atsushi/Desktop/x.proj: Name cannot begin with the ' ' character, hexadecimal value 0x20. Line 1, position 2. 0 Warning(s) 1 Error(s) Time Elapsed 00:00:00.0105090 - Once I fixed the extraneous space between '<' and "Project", it printed Hello world as expected: atsushi:~/Desktop$ /usr/bin/xbuild x.proj XBuild Engine Version 12.0 Mono, Version 3.2.8.0 Copyright (C) 2005-2013 Various Mono authors Build started 6/5/2015 2:11:17 AM. Project "/home/atsushi/Desktop/x.proj" (default target(s)): Target Build: Hello, World! Done building project "/home/atsushi/Desktop/x.proj". Build succeeded. 0 Warning(s) 0 Error(s) Time Elapsed 00:00:00.0708910 A precise repro steps would help inspecting possible bugs. Atsushi Eno On 2015年06月03日 19:31, Cyd Haselton wrote: Thing is xbuild doesn't even complain about the syntax errors in that project. It doesn't do anything except for output version info then exit. I'll pastebin the file ifthe rebuild I;m working on doesn;t resolve the issue. Thanks! On June 3, 2015 6:18:11 AM CDT, Alan wrote: Can you use a pastebin to attach the actual file you'
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 2>&1 | 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.0<http://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 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<http://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 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 /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 40
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 /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 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 /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
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 /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] threads.o : fatal error: error in backend: unsupported symbol modifier in relocation
I tried to compile from the tarball (mono-3.2.0.tar.bz2) and got the same results on OS-X. Is this a tool dependency related error? Is there at list of tool versions that are required to build 3.2.x on OS-X? The OS-X Compile page lists autoconf/automake/libtool/m4 with versions. Are there different tool dep list for each mono version? What about clang/llvm version issues? Thanks for any help on this. > From: sushihango...@outlook.com > To: mono-devel-list@lists.ximian.com > Date: Wed, 27 May 2015 13:22:31 -0700 > Subject: [Mono-dev] threads.o : fatal error: error in backend: unsupported > symbol modifier in relocation > > I am trying to compile version 3.2.0 of mono for a compliance review on OS-X > (git checkout mono-3.2.0) and I'm receiving a fatal error on threads.o and > domain.o during the 'make' run. Diving into libmonoruntime_la-threads.lo > and/or libmonoruntime_la-domain.lo, I am getting a clang/llvm fatal error of > "error in backend: unsupported symbol modifier in relocation". I've also > tried checking out git tags 3.2.1, 3.2.3, etc.. and the same error occurs, > Also tried x32 vs x64 builds, same error. FYI: building the latest 4.x > branches/tags work fine. > > Anyone help point me in the right direction on this as I need to reproduce > 3.2 builds before migrating this project code base to the 4.x line. > > Thanks in advance. > > > git checkout mono-3.2.0 > ./autogen.sh --prefix=/Users/administrator/mono32-install --disable-nls > make (make -k) > ... > CC libmonoruntime_la-threads.lo > make: *** [libmonoruntime_la-threads.lo] Error 1 > ... > CC libmonoruntime_la-domain.lo > make: *** [libmonoruntime_la-domain.lo] Error 1 > ... > > > make threads.o > CC threads.o > fatal error: error in backend: unsupported symbol modifier in relocation > make: *** [threads.o] Error 1 > > make domain.o > CC domain.o > fatal error: error in backend: unsupported symbol modifier in relocation > make: *** [domain.o] Error 1 > > > cd mono/metadata/ > make -n threads.o > echo " CC " threads.o;gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono > -I../../libgc/include -I../../eglib/src -I../../eglib/src > -DMONO_BINDIR=\"/Users/administrator/mono32-install/bin/\" > -DMONO_ASSEMBLIES=\"/Users/administrator/mono32-install/lib\" > -DMONO_CFG_DIR=\"/Users/administrator/mono32-install/etc\" -no-cpp-precomp > -D_THREAD_SAFE -DGC_MACOSX_THREADS -DPLATFORM_MACOSX -DUSE_MMAP -DUSE_MUNMAP > -DGetCurrentProcess=MonoGetCurrentProcess > -DGetCurrentThread=MonoGetCurrentThread -DCreateEvent=MonoCreateEvent > -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement > -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations > -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith > -Wno-cast-qual -Wwrite-strings -Wno-switch -Wno-switch-enum -Wno-unused-value > -Qunused-arguments -Wno-unused-function -Wno-tautological-compare > -Werror-implicit-function-declaration -MT threads.o -MD -MP -MF > .deps/threads.Tpo -c -o threads.o threads.c > mv -f .deps/threads.Tpo .deps/threads.Po > > > gcc --version > Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr > --with-gxx-include-dir=/usr/include/c++/4.2.1 > Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn) > Target: x86_64-apple-darwin14.3.0 > Thread model: posix > > > > ___ > 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
[Mono-dev] threads.o : fatal error: error in backend: unsupported symbol modifier in relocation
I am trying to compile version 3.2.0 of mono for a compliance review on OS-X (git checkout mono-3.2.0) and I'm receiving a fatal error on threads.o and domain.o during the 'make' run. Diving into libmonoruntime_la-threads.lo and/or libmonoruntime_la-domain.lo, I am getting a clang/llvm fatal error of "error in backend: unsupported symbol modifier in relocation". I've also tried checking out git tags 3.2.1, 3.2.3, etc.. and the same error occurs, Also tried x32 vs x64 builds, same error. FYI: building the latest 4.x branches/tags work fine. Anyone help point me in the right direction on this as I need to reproduce 3.2 builds before migrating this project code base to the 4.x line. Thanks in advance. git checkout mono-3.2.0 ./autogen.sh --prefix=/Users/administrator/mono32-install --disable-nls make (make -k) ... CC libmonoruntime_la-threads.lo make: *** [libmonoruntime_la-threads.lo] Error 1 ... CC libmonoruntime_la-domain.lo make: *** [libmonoruntime_la-domain.lo] Error 1 ... make threads.o CC threads.o fatal error: error in backend: unsupported symbol modifier in relocation make: *** [threads.o] Error 1 make domain.o CC domain.o fatal error: error in backend: unsupported symbol modifier in relocation make: *** [domain.o] Error 1 cd mono/metadata/ make -n threads.o echo " CC " threads.o;gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -I../../eglib/src -I../../eglib/src -DMONO_BINDIR=\"/Users/administrator/mono32-install/bin/\" -DMONO_ASSEMBLIES=\"/Users/administrator/mono32-install/lib\" -DMONO_CFG_DIR=\"/Users/administrator/mono32-install/etc\" -no-cpp-precomp -D_THREAD_SAFE -DGC_MACOSX_THREADS -DPLATFORM_MACOSX -DUSE_MMAP -DUSE_MUNMAP -DGetCurrentProcess=MonoGetCurrentProcess -DGetCurrentThread=MonoGetCurrentThread -DCreateEvent=MonoCreateEvent -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wwrite-strings -Wno-switch -Wno-switch-enum -Wno-unused-value -Qunused-arguments -Wno-unused-function -Wno-tautological-compare -Werror-implicit-function-declaration -MT threads.o -MD -MP -MF .deps/threads.Tpo -c -o threads.o threads.c mv -f .deps/threads.Tpo .deps/threads.Po gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn) Target: x86_64-apple-darwin14.3.0 Thread model: posix ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list