9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] OSX lion + libthread
@ 2011-10-12  6:06 marius a. eriksen
  2011-10-12  7:05 ` Skip Tavakkolian
  0 siblings, 1 reply; 4+ messages in thread
From: marius a. eriksen @ 2011-10-12  6:06 UTC (permalink / raw)


i never could get libthreaded applications to run properly in OSX Lion.

i've tried with both XCode 4.1 and 4.2.

however, disabling -O2 seems to do the trick. go figure. haven't tried that on XCode 4.1-- but would be curious to hear results.

marius.

?

diff -r 8735d7708a1b bin/9c
--- a/bin/9c	Tue Oct 11 09:34:25 2011 -0400
+++ b/bin/9c	Tue Oct 11 23:04:58 2011 -0700
@@ -5,7 +5,6 @@
 {
 	cc=${CC9:-gcc}
 	ngflags=" \
-		-O2 \
 		-c \
 		-Wall \
 		-Wno-parentheses \






^ permalink raw reply	[flat|nested] 4+ messages in thread

* [9fans] OSX lion + libthread
  2011-10-12  6:06 [9fans] OSX lion + libthread marius a. eriksen
@ 2011-10-12  7:05 ` Skip Tavakkolian
  2011-10-12 14:54   ` andrey mirtchovski
  2011-10-12 18:16   ` Skip Tavakkolian
  0 siblings, 2 replies; 4+ messages in thread
From: Skip Tavakkolian @ 2011-10-12  7:05 UTC (permalink / raw)


that seems to do the trick; i've tried 9term, acme, sam and all seem
to work.  disabling the -O2 and following Andrey's instructions from
Sept. 6th results in a successful build.

anyone has an educated guess which of the optimizations under -O2
(below) is the culprit?

http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#Optimize-Options

-Skip

On Tue, Oct 11, 2011 at 11:06 PM, marius a. eriksen <marius at monkey.org> wrote:
> i never could get libthreaded applications to run properly in OSX Lion.
>
> i've tried with both XCode 4.1 and 4.2.
>
> however, disabling -O2 seems to do the trick. go figure. haven't tried that on XCode 4.1-- but would be curious to hear results.
>
> marius.
>
> ?
>
> diff -r 8735d7708a1b bin/9c
> --- a/bin/9c ? ?Tue Oct 11 09:34:25 2011 -0400
> +++ b/bin/9c ? ?Tue Oct 11 23:04:58 2011 -0700
> @@ -5,7 +5,6 @@
> ?{
> ? ? ? ?cc=${CC9:-gcc}
> ? ? ? ?ngflags=" \
> - ? ? ? ? ? ? ? -O2 \
> ? ? ? ? ? ? ? ?-c \
> ? ? ? ? ? ? ? ?-Wall \
> ? ? ? ? ? ? ? ?-Wno-parentheses \
>
>
>
>
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [9fans] OSX lion + libthread
  2011-10-12  7:05 ` Skip Tavakkolian
@ 2011-10-12 14:54   ` andrey mirtchovski
  2011-10-12 18:16   ` Skip Tavakkolian
  1 sibling, 0 replies; 4+ messages in thread
From: andrey mirtchovski @ 2011-10-12 14:54 UTC (permalink / raw)


I tried recompiling just libthread, acme but still got crashes. full
./INSTALL resulted in a working acme. this is on 4.2.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [9fans] OSX lion + libthread
  2011-10-12  7:05 ` Skip Tavakkolian
  2011-10-12 14:54   ` andrey mirtchovski
@ 2011-10-12 18:16   ` Skip Tavakkolian
  1 sibling, 0 replies; 4+ messages in thread
From: Skip Tavakkolian @ 2011-10-12 18:16 UTC (permalink / raw)


also, i used xcode 4.1

On Wed, Oct 12, 2011 at 12:05 AM, Skip Tavakkolian
<skip.tavakkolian at gmail.com> wrote:
> that seems to do the trick; i've tried 9term, acme, sam and all seem
> to work. ?disabling the -O2 and following Andrey's instructions from
> Sept. 6th results in a successful build.
>
> anyone has an educated guess which of the optimizations under -O2
> (below) is the culprit?
>
> http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#Optimize-Options
>
> -Skip
>
> On Tue, Oct 11, 2011 at 11:06 PM, marius a. eriksen <marius at monkey.org> wrote:
>> i never could get libthreaded applications to run properly in OSX Lion.
>>
>> i've tried with both XCode 4.1 and 4.2.
>>
>> however, disabling -O2 seems to do the trick. go figure. haven't tried that on XCode 4.1-- but would be curious to hear results.
>>
>> marius.
>>
>> ?
>>
>> diff -r 8735d7708a1b bin/9c
>> --- a/bin/9c ? ?Tue Oct 11 09:34:25 2011 -0400
>> +++ b/bin/9c ? ?Tue Oct 11 23:04:58 2011 -0700
>> @@ -5,7 +5,6 @@
>> ?{
>> ? ? ? ?cc=${CC9:-gcc}
>> ? ? ? ?ngflags=" \
>> - ? ? ? ? ? ? ? -O2 \
>> ? ? ? ? ? ? ? ?-c \
>> ? ? ? ? ? ? ? ?-Wall \
>> ? ? ? ? ? ? ? ?-Wno-parentheses \
>>
>>
>>
>>
>>
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-10-12 18:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-12  6:06 [9fans] OSX lion + libthread marius a. eriksen
2011-10-12  7:05 ` Skip Tavakkolian
2011-10-12 14:54   ` andrey mirtchovski
2011-10-12 18:16   ` Skip Tavakkolian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).