9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard
       [not found] <3e1162e60710301650r35bd83ectbc2d8fbf8e708ba1@mail.gmail.com>
@ 2007-10-30 23:59 ` Bakul Shah
  2007-10-31 15:10   ` David Leimbach
  0 siblings, 1 reply; 13+ messages in thread
From: Bakul Shah @ 2007-10-30 23:59 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> Oddly enough it only happens when linking hget...

Try

9 mk -k all |& grep -B 1 ^ld:


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

* Re: [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard
  2007-10-30 23:59 ` [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard Bakul Shah
@ 2007-10-31 15:10   ` David Leimbach
  2007-10-31 16:24     ` andrey mirtchovski
  0 siblings, 1 reply; 13+ messages in thread
From: David Leimbach @ 2007-10-31 15:10 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 342 bytes --]

On 10/30/07, Bakul Shah <bakul+plan9@bitblocks.com> wrote:
>
> > Oddly enough it only happens when linking hget...
>
> Try
>
> 9 mk -k all |& grep -B 1 ^ld:
>


Yeah there's more than one failing here... Still haven't figured out what's
missing yet.

I'll check with some other apple developers who've had more time on Leopard.

[-- Attachment #2: Type: text/html, Size: 741 bytes --]

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

* Re: [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard
  2007-10-31 15:10   ` David Leimbach
@ 2007-10-31 16:24     ` andrey mirtchovski
  2007-10-31 16:42       ` David Leimbach
  0 siblings, 1 reply; 13+ messages in thread
From: andrey mirtchovski @ 2007-10-31 16:24 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

I haven't gotten to the point where David is, but i'm trying (leopard
isn't "approved for use" in our organization yet, they expect it to be
in a few months, but i can still use it at home :).

something to add to the knowledge base (although pretty obvious, it
stunned me this morning): if you are upgrading a Tiger machine that
had xcode installed on it you must upgrade the xcode tools too, or you
won't be able to link any binary from p9p.

xcode is available on developer.apple.com or on the upgrade dvd that
has leopard.


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

* Re: [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard
  2007-10-31 16:24     ` andrey mirtchovski
@ 2007-10-31 16:42       ` David Leimbach
  2007-10-31 19:05         ` andrey mirtchovski
  2007-10-31 20:53         ` Michaelian Ennis
  0 siblings, 2 replies; 13+ messages in thread
From: David Leimbach @ 2007-10-31 16:42 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 873 bytes --]

On 10/31/07, andrey mirtchovski <mirtchovski@gmail.com> wrote:
>
> I haven't gotten to the point where David is, but i'm trying (leopard
> isn't "approved for use" in our organization yet, they expect it to be
> in a few months, but i can still use it at home :).
>
> something to add to the knowledge base (although pretty obvious, it
> stunned me this morning): if you are upgrading a Tiger machine that
> had xcode installed on it you must upgrade the xcode tools too, or you
> won't be able to link any binary from p9p.
>
> xcode is available on developer.apple.com or on the upgrade dvd that
> has leopard.



I'm not sure I'd trust Apple's upgrading at all :-).

I just backup to another disk, then clean/install.


Then I may have some programs to fetch, and my preferences might be a little
out of whack, but I find less "surprises".

Dave

[-- Attachment #2: Type: text/html, Size: 1479 bytes --]

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

* Re: [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard
  2007-10-31 16:42       ` David Leimbach
@ 2007-10-31 19:05         ` andrey mirtchovski
  2007-10-31 20:18           ` Russ Cox
  2007-10-31 20:32           ` David Leimbach
  2007-10-31 20:53         ` Michaelian Ennis
  1 sibling, 2 replies; 13+ messages in thread
From: andrey mirtchovski @ 2007-10-31 19:05 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

the problem comes from libmp: the machine-dependent files written in
assembly (/src/libmp/386/*-Darwin.s) are causing it (and they are all
broken, not just the one reported). it's beyond me to figure out why
at the moment. i tried a couple of things at random, but that's not a
way to fix a problem.

all the functions defined therein have a replacement written in C in
the port/ directory of libmp. a workaround for now will be to fix the
mkfile in port/ to not look for the machine-dependent files (comment
out the test in the reduce script and let it just echo all file
names).

next bug is all the way to venti:

9l -o o.buildindex buildindex.o libvs.a /Users/andrey/plan9/lib/libventi.a
ld: in libvs.a, archive has no table of contents
collect2: ld returned 1 exit status


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

* Re: [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard
  2007-10-31 19:05         ` andrey mirtchovski
@ 2007-10-31 20:18           ` Russ Cox
  2007-10-31 20:33             ` David Leimbach
  2007-10-31 20:32           ` David Leimbach
  1 sibling, 1 reply; 13+ messages in thread
From: Russ Cox @ 2007-10-31 20:18 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> next bug is all the way to venti:
>
> 9l -o o.buildindex buildindex.o libvs.a /Users/andrey/plan9/lib/libventi.a
> ld: in libvs.a, archive has no table of contents
> collect2: ld returned 1 exit status

looks like you might have to update
$PLAN9/bin/9ar if uname is printing
something other than "Darwin" these days.

russ


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

* Re: [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard
  2007-10-31 19:05         ` andrey mirtchovski
  2007-10-31 20:18           ` Russ Cox
@ 2007-10-31 20:32           ` David Leimbach
  2007-11-03  7:35             ` underspecified
  1 sibling, 1 reply; 13+ messages in thread
From: David Leimbach @ 2007-10-31 20:32 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Oct 31, 2007 12:05 PM, andrey mirtchovski <mirtchovski@gmail.com> wrote:
> the problem comes from libmp: the machine-dependent files written in
> assembly (/src/libmp/386/*-Darwin.s) are causing it (and they are all
> broken, not just the one reported). it's beyond me to figure out why
> at the moment. i tried a couple of things at random, but that's not a
> way to fix a problem.
>
> all the functions defined therein have a replacement written in C in
> the port/ directory of libmp. a workaround for now will be to fix the
> mkfile in port/ to not look for the machine-dependent files (comment
> out the test in the reduce script and let it just echo all file
> names).
>
> next bug is all the way to venti:
>
> 9l -o o.buildindex buildindex.o libvs.a /Users/andrey/plan9/lib/libventi.a
> ld: in libvs.a, archive has no table of contents
> collect2: ld returned 1 exit status
>
ranlib to the rescue... Got it run it explicitly on Darwin.  I think
gcc lets you get away without it on linux.

Dave


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

* Re: [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard
  2007-10-31 20:18           ` Russ Cox
@ 2007-10-31 20:33             ` David Leimbach
  2007-10-31 20:56               ` Michaelian Ennis
  2007-11-03  6:02               ` Michaelian Ennis
  0 siblings, 2 replies; 13+ messages in thread
From: David Leimbach @ 2007-10-31 20:33 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Oct 31, 2007 1:18 PM, Russ Cox <rsc@swtch.com> wrote:
> > next bug is all the way to venti:
> >
> > 9l -o o.buildindex buildindex.o libvs.a /Users/andrey/plan9/lib/libventi.a
> > ld: in libvs.a, archive has no table of contents
> > collect2: ld returned 1 exit status
>
> looks like you might have to update
> $PLAN9/bin/9ar if uname is printing
> something other than "Darwin" these days.
>
> russ
>

uname still says "Darwin"


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

* Re: [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard
  2007-10-31 16:42       ` David Leimbach
  2007-10-31 19:05         ` andrey mirtchovski
@ 2007-10-31 20:53         ` Michaelian Ennis
  1 sibling, 0 replies; 13+ messages in thread
From: Michaelian Ennis @ 2007-10-31 20:53 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs


On Oct 31, 2007, at 12:42 PM, David Leimbach wrote:
>
> I'm not sure I'd trust Apple's upgrading at all :-).
>
> I just backup to another disk, then clean/install.
>

I've done the upgrade six hosts with varied configurations with no  
real side effects detected.  Two hosts have been in use constantly  
with a few rosetta apps (adobe) being used regularly since the night  
of the release. I still backed my stuff up first just in case.

Apple Mail needed to be configured not to store deleted messages and  
drafts on the plan 9 IMAP service though as the folders it used had  
spaces in the names.

Ian


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

* Re: [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard
  2007-10-31 20:33             ` David Leimbach
@ 2007-10-31 20:56               ` Michaelian Ennis
  2007-11-03  6:02               ` Michaelian Ennis
  1 sibling, 0 replies; 13+ messages in thread
From: Michaelian Ennis @ 2007-10-31 20:56 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

d
On Oct 31, 2007, at 4:33 PM, David Leimbach wrote:

> On Oct 31, 2007 1:18 PM, Russ Cox <rsc@swtch.com> wrote:
>>> next bug is all the way to venti:
>>>
>>> 9l -o o.buildindex buildindex.o libvs.a /Users/andrey/plan9/lib/ 
>>> libventi.a
>>> ld: in libvs.a, archive has no table of contents
>>> collect2: ld returned 1 exit status
>>
>> looks like you might have to update
>> $PLAN9/bin/9ar if uname is printing
>> something other than "Darwin" these days.
>>
>> russ
>>
>
> uname still says "Darwin"

specifically (before devtools were installed):
: india ; uname -a
Darwin india.coraid.com 9.0.0 Darwin Kernel Version 9.0.0: Tue Oct  9  
21:35:55 PDT 2007; root:xnu-1228~1/RELEASE_I386 i386
: india ; gcc -v
Using built-in specs.
Target: i686-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5367.obj~1/src/configure -- 
disable-checking -enable-werror --prefix=/usr --mandir=/share/man -- 
enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg] 
[^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with- 
slibdir=/usr/lib --build=powerpc-apple-darwin8 --with-arch=nocona -- 
with-tune=generic --program-prefix= --host=i686-apple-darwin8 -- 
target=i686-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5367)
: india ;


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

* Re: [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard
  2007-10-31 20:33             ` David Leimbach
  2007-10-31 20:56               ` Michaelian Ennis
@ 2007-11-03  6:02               ` Michaelian Ennis
  1 sibling, 0 replies; 13+ messages in thread
From: Michaelian Ennis @ 2007-11-03  6:02 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

After dev tools install it still breaks in the same place but the  
compiler has different default settings now.  Here they are.

: india ; gcc -v
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5465~16/src/configure --disable- 
checking -enable-werror --prefix=/usr --mandir=/share/man --enable- 
languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/ 
$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/ 
lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic -- 
host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5465)


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

* Re: [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard
  2007-10-31 20:32           ` David Leimbach
@ 2007-11-03  7:35             ` underspecified
  2007-11-03  9:22               ` underspecified
  0 siblings, 1 reply; 13+ messages in thread
From: underspecified @ 2007-11-03  7:35 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs; +Cc: inferno-list, acme-sac

[-- Attachment #1: Type: text/plain, Size: 1307 bytes --]

Greetings,
Could you tell me how exactly you called ranlib to fix this problem?
I'm getting the same errors when compiling Acme SAC under leopard.

--underspecified

On 11/1/07, David Leimbach <leimy2k@gmail.com> wrote:
>
> On Oct 31, 2007 12:05 PM, andrey mirtchovski <mirtchovski@gmail.com>
> wrote:
> > the problem comes from libmp: the machine-dependent files written in
> > assembly (/src/libmp/386/*-Darwin.s) are causing it (and they are all
> > broken, not just the one reported). it's beyond me to figure out why
> > at the moment. i tried a couple of things at random, but that's not a
> > way to fix a problem.
> >
> > all the functions defined therein have a replacement written in C in
> > the port/ directory of libmp. a workaround for now will be to fix the
> > mkfile in port/ to not look for the machine-dependent files (comment
> > out the test in the reduce script and let it just echo all file
> > names).
> >
> > next bug is all the way to venti:
> >
> > 9l -o o.buildindex buildindex.o libvs.a/Users/andrey/plan9/lib/libventi.a
> > ld: in libvs.a, archive has no table of contents
> > collect2: ld returned 1 exit status
> >
> ranlib to the rescue... Got it run it explicitly on Darwin.  I think
> gcc lets you get away without it on linux.
>
> Dave
>

[-- Attachment #2: Type: text/html, Size: 1819 bytes --]

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

* Re: [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard
  2007-11-03  7:35             ` underspecified
@ 2007-11-03  9:22               ` underspecified
  0 siblings, 0 replies; 13+ messages in thread
From: underspecified @ 2007-11-03  9:22 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs; +Cc: inferno-list, acme-sac

[-- Attachment #1: Type: text/plain, Size: 1629 bytes --]

Sorry to reply to myself, but I got it working by adding a call to 'ranlib
$lib' after every call to ar.
Hope this helps anyone with similar problems.

--underspecified

On 11/3/07, underspecified <underspecified@gmail.com> wrote:
>
> Greetings,
>
> Could you tell me how exactly you called ranlib to fix this problem?
> I'm getting the same errors when compiling Acme SAC under leopard.
>
>
> --underspecified
>
> On 11/1/07, David Leimbach <leimy2k@gmail.com > wrote:
> >
> > On Oct 31, 2007 12:05 PM, andrey mirtchovski <mirtchovski@gmail.com >
> > wrote:
> > > the problem comes from libmp: the machine-dependent files written in
> > > assembly (/src/libmp/386/*-Darwin.s) are causing it (and they are all
> > > broken, not just the one reported). it's beyond me to figure out why
> > > at the moment. i tried a couple of things at random, but that's not a
> > > way to fix a problem.
> > >
> > > all the functions defined therein have a replacement written in C in
> > > the port/ directory of libmp. a workaround for now will be to fix the
> > > mkfile in port/ to not look for the machine-dependent files (comment
> > > out the test in the reduce script and let it just echo all file
> > > names).
> > >
> > > next bug is all the way to venti:
> > >
> > > 9l -o o.buildindex buildindex.o libvs.a/Users/andrey/plan9/lib/libventi.a
> > > ld: in libvs.a, archive has no table of contents
> > > collect2: ld returned 1 exit status
> > >
> > ranlib to the rescue... Got it run it explicitly on Darwin.  I think
> > gcc lets you get away without it on linux.
> >
> > Dave
> >
>
>
>

[-- Attachment #2: Type: text/html, Size: 2598 bytes --]

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

end of thread, other threads:[~2007-11-03  9:22 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <3e1162e60710301650r35bd83ectbc2d8fbf8e708ba1@mail.gmail.com>
2007-10-30 23:59 ` [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard Bakul Shah
2007-10-31 15:10   ` David Leimbach
2007-10-31 16:24     ` andrey mirtchovski
2007-10-31 16:42       ` David Leimbach
2007-10-31 19:05         ` andrey mirtchovski
2007-10-31 20:18           ` Russ Cox
2007-10-31 20:33             ` David Leimbach
2007-10-31 20:56               ` Michaelian Ennis
2007-11-03  6:02               ` Michaelian Ennis
2007-10-31 20:32           ` David Leimbach
2007-11-03  7:35             ` underspecified
2007-11-03  9:22               ` underspecified
2007-10-31 20:53         ` Michaelian Ennis

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).