From owner-freebsd-questions@FreeBSD.ORG Mon Oct 18 16:52:33 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9FB3B16A4CE for ; Mon, 18 Oct 2004 16:52:33 +0000 (GMT) Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id AA1D443D53 for ; Mon, 18 Oct 2004 16:52:32 +0000 (GMT) (envelope-from krylon@gmx.net) Received: (qmail 14576 invoked by uid 65534); 18 Oct 2004 16:52:29 -0000 Received: from i53875A02.versanet.de (EHLO [192.168.0.13]) (83.135.90.2) by mail.gmx.net (mp002) with SMTP; 18 Oct 2004 18:52:29 +0200 X-Authenticated: #685629 Message-ID: <4173F4CB.5080105@gmx.net> Date: Mon, 18 Oct 2004 18:52:27 +0200 From: Benjamin Walkenhorst User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040926) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tom McLaughlin References: <417129D4.7090409@gmx.net> <1097958230.96474.10.camel@compass.straycat.dhs.org> In-Reply-To: <1097958230.96474.10.camel@compass.straycat.dhs.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: gtk-sharp build hangs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2004 16:52:33 -0000 Hello, Thanks for your answers (that goes to everyone who answered)! Tom McLaughlin wrote: >On Sat, 2004-10-16 at 16:01 +0200, Benjamin Walkenhorst wrote: > > >>Hello everyone, >> >>I am just trying to install gtk-sharp from ports. mono installed just >>fine, but the gtk-sharp build seems to hang at some point: >> >> >> >>At this point mono will start eating huge amount of cpu-cycles. I don't >>know if this is to be expected, but after mono had gathered about an >>hour of cpu-time, I aborted. >>I'm going to give it another try tonight, but I wanted to ask, if it is >>normal for a gtk-sharp build to take so long. >>The machine is a dual AthlonMP 2400+ (only one cpu used for building) >>with 512MB RAM, the system is 5.3-BETA7. >>mono is version 1.0_1 and gtk-sharp - as you can see above - is version >>1.0_2 >> >>Thank you very much, >>Benjamin >> >> > >Simple solution: >cd /usr/ports/x11-toolkits/gtk-sharp/ && make clean && make install >(repeat as necessary) > > That is what I did in the first place. To make sure it didn't just take a long time to build, I let it run all night. When I came back to my machine the next morning, mono had been consuming some 11 hours of CPU-time, with no further output on the terminal... >Long solution: >Someone needs to look at the threading issues with Mono and FreeBSD. If >anyone is interested I can gladly point them to a number of reproducible >crashes. > While I am not really a programmer (I do know a little C... but not *that* much), I think I do agree... I tried to compile a simple Hello-World that used the Console only - half of the time, mcs would spit out an error message, half of the time it would hang, again eating up an entire CPU (sometimes I *am* glad to own an SMP-machine, hehe). To me it looks like mcs and mono enter infinite loops from time to time... But this is not really reproducible, sometimes it hangs and sometimes it does not, for no apparent reason. To make sure I wasn't wasting my - and your - time, I looked into the issue with libm.so.[23]. After upgrading to 5.3-BETA7 and switching to X.org, I found that most of my X-apps did not work any more, so I had to rebuild nearly all of my ports. Well, and the base system, of course (having upgraded from sources). I decided to create /etc/libmap.conf and enter libm.so.2 libm.so.3 like /usr/ports/UPDATING suggested. Afterwards, I rebuilt mono - it took me three tries before I had it installed without mono_lt hanging. Then I retried to build Hello-World: ######################################## === 18:14:55 krylon@neuromancer:~/Media/devel/mono:: mcs Hallo.cs error CS0016: Could not write to file `Hallo.exe', cause: Win32 IO returned ERROR_LOCK_VIOLATION. Path: ./Hallo.exe Compilation failed: 1 error(s), 0 warnings ^C === 18:15:13 krylon@neuromancer:~/Media/devel/mono:: mcs Hallo.cs error CS0016: Could not write to file `Hallo.exe', cause: Win32 IO returned ERROR_LOCK_VIOLATION. Path: ./Hallo.exe Compilation failed: 1 error(s), 0 warnings ######################################## The first build - the one I aborted - had resulted in mono hanging. > I keep the mono ports up to date myself while the regular >maintainer is away plus I've added some new ports. My project site is >in my sig and you can download mono-merge.tar.gz from there to work with >the latest versions of Mono. > > To be honest, I'm short of giving up - I am not really a fan of .Net, I was just going to learn it for a friend's sake who is just discovering .Net. Personally, I am more into Perl and Python. From what I've seen so far, I think C# is too much like Java - static typing, Arrays of fixed size... I mean, I am not saying C# or .Net sucks - I just don't like it so far. OTOH, I was strongly prejudiced against both Perl and Python before I actually toyed around with them a little, and then I came to like both *very much*. So, who knows... And finally, I just don't trust Microsoft not to come back in a few years and rip everybody's head off for patent-issues or something like that. (I mean, if Microsoft says 'platform-independent', it means 'runs on several versions of windows') Anyway, I'd like to be able to at least get this to work, so I'll try the tarballs from the project site. BTW, has anyone managed to get DotGnu or Rotor to work? I haven't found them in the ports tree (I looked under ports/devel and ports/lang). Thank you very much, Benjamin