From mboxrd@z Thu Jan 1 00:00:00 1970 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard In-reply-to: Your message of "Tue, 30 Oct 2007 16:50:19 PDT." <3e1162e60710301650r35bd83ectbc2d8fbf8e708ba1@mail.gmail.com> From: Bakul Shah Date: Tue, 30 Oct 2007 16:59:35 -0700 Message-Id: <20071030235935.8F4445B30@mail.bitblocks.com> Topicbox-Message-UUID: e101907a-ead2-11e9-9d60-3106f5b1d025 > Oddly enough it only happens when linking hget... Try 9 mk -k all |& grep -B 1 ^ld: From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3e1162e60710310810h3bd11839odebd02dd2457caa4@mail.gmail.com> Date: Wed, 31 Oct 2007 08:10:17 -0700 From: "David Leimbach" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard In-Reply-To: <20071030235935.8F4445B30@mail.bitblocks.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1905_23788368.1193843417970" References: <3e1162e60710301650r35bd83ectbc2d8fbf8e708ba1@mail.gmail.com> <20071030235935.8F4445B30@mail.bitblocks.com> Topicbox-Message-UUID: e13c6344-ead2-11e9-9d60-3106f5b1d025 ------=_Part_1905_23788368.1193843417970 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 10/30/07, Bakul Shah 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. ------=_Part_1905_23788368.1193843417970 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

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.
------=_Part_1905_23788368.1193843417970-- From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <14ec7b180710310924p1022cc47w8f4fec460b05061@mail.gmail.com> Date: Wed, 31 Oct 2007 10:24:51 -0600 From: "andrey mirtchovski" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard In-Reply-To: <3e1162e60710310810h3bd11839odebd02dd2457caa4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3e1162e60710301650r35bd83ectbc2d8fbf8e708ba1@mail.gmail.com> <20071030235935.8F4445B30@mail.bitblocks.com> <3e1162e60710310810h3bd11839odebd02dd2457caa4@mail.gmail.com> Topicbox-Message-UUID: e140bd68-ead2-11e9-9d60-3106f5b1d025 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. From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3e1162e60710310942r2055b518ga0cd07b4e4c30d82@mail.gmail.com> Date: Wed, 31 Oct 2007 09:42:32 -0700 From: "David Leimbach" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard In-Reply-To: <14ec7b180710310924p1022cc47w8f4fec460b05061@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2244_4670725.1193848952300" References: <3e1162e60710301650r35bd83ectbc2d8fbf8e708ba1@mail.gmail.com> <20071030235935.8F4445B30@mail.bitblocks.com> <3e1162e60710310810h3bd11839odebd02dd2457caa4@mail.gmail.com> <14ec7b180710310924p1022cc47w8f4fec460b05061@mail.gmail.com> Topicbox-Message-UUID: e1449a5a-ead2-11e9-9d60-3106f5b1d025 ------=_Part_2244_4670725.1193848952300 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 10/31/07, andrey mirtchovski 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 ------=_Part_2244_4670725.1193848952300 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

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

 

------=_Part_2244_4670725.1193848952300-- From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <14ec7b180710311205lfd0ee2dx234785df22ce43c9@mail.gmail.com> Date: Wed, 31 Oct 2007 13:05:19 -0600 From: "andrey mirtchovski" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard In-Reply-To: <3e1162e60710310942r2055b518ga0cd07b4e4c30d82@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3e1162e60710301650r35bd83ectbc2d8fbf8e708ba1@mail.gmail.com> <20071030235935.8F4445B30@mail.bitblocks.com> <3e1162e60710310810h3bd11839odebd02dd2457caa4@mail.gmail.com> <14ec7b180710310924p1022cc47w8f4fec460b05061@mail.gmail.com> <3e1162e60710310942r2055b518ga0cd07b4e4c30d82@mail.gmail.com> Topicbox-Message-UUID: e1cd6ede-ead2-11e9-9d60-3106f5b1d025 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Wed, 31 Oct 2007 16:18:35 -0400 From: "Russ Cox" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard In-Reply-To: <14ec7b180710311205lfd0ee2dx234785df22ce43c9@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3e1162e60710301650r35bd83ectbc2d8fbf8e708ba1@mail.gmail.com> <20071030235935.8F4445B30@mail.bitblocks.com> <3e1162e60710310810h3bd11839odebd02dd2457caa4@mail.gmail.com> <14ec7b180710310924p1022cc47w8f4fec460b05061@mail.gmail.com> <3e1162e60710310942r2055b518ga0cd07b4e4c30d82@mail.gmail.com> <14ec7b180710311205lfd0ee2dx234785df22ce43c9@mail.gmail.com> Topicbox-Message-UUID: e204df7c-ead2-11e9-9d60-3106f5b1d025 > 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3e1162e60710311332p60fb9416j2de2f29f6a50f937@mail.gmail.com> Date: Wed, 31 Oct 2007 13:32:16 -0700 From: "David Leimbach" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard In-Reply-To: <14ec7b180710311205lfd0ee2dx234785df22ce43c9@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3e1162e60710301650r35bd83ectbc2d8fbf8e708ba1@mail.gmail.com> <20071030235935.8F4445B30@mail.bitblocks.com> <3e1162e60710310810h3bd11839odebd02dd2457caa4@mail.gmail.com> <14ec7b180710310924p1022cc47w8f4fec460b05061@mail.gmail.com> <3e1162e60710310942r2055b518ga0cd07b4e4c30d82@mail.gmail.com> <14ec7b180710311205lfd0ee2dx234785df22ce43c9@mail.gmail.com> Topicbox-Message-UUID: e20d330c-ead2-11e9-9d60-3106f5b1d025 On Oct 31, 2007 12:05 PM, andrey mirtchovski 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3e1162e60710311333p21072f07t3d478ecdd4dea642@mail.gmail.com> Date: Wed, 31 Oct 2007 13:33:23 -0700 From: "David Leimbach" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3e1162e60710301650r35bd83ectbc2d8fbf8e708ba1@mail.gmail.com> <20071030235935.8F4445B30@mail.bitblocks.com> <3e1162e60710310810h3bd11839odebd02dd2457caa4@mail.gmail.com> <14ec7b180710310924p1022cc47w8f4fec460b05061@mail.gmail.com> <3e1162e60710310942r2055b518ga0cd07b4e4c30d82@mail.gmail.com> <14ec7b180710311205lfd0ee2dx234785df22ce43c9@mail.gmail.com> Topicbox-Message-UUID: e211cdfe-ead2-11e9-9d60-3106f5b1d025 On Oct 31, 2007 1:18 PM, Russ Cox 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" From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <740AF422-25CC-4694-B4BE-48E8E1A5ACA0@gmail.com> From: Michaelian Ennis To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> In-Reply-To: <3e1162e60710310942r2055b518ga0cd07b4e4c30d82@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v912) Subject: Re: [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard Date: Wed, 31 Oct 2007 16:53:39 -0400 References: <3e1162e60710301650r35bd83ectbc2d8fbf8e708ba1@mail.gmail.com> <20071030235935.8F4445B30@mail.bitblocks.com> <3e1162e60710310810h3bd11839odebd02dd2457caa4@mail.gmail.com> <14ec7b180710310924p1022cc47w8f4fec460b05061@mail.gmail.com> <3e1162e60710310942r2055b518ga0cd07b4e4c30d82@mail.gmail.com> Topicbox-Message-UUID: e229e60a-ead2-11e9-9d60-3106f5b1d025 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <36D3D686-08F8-4B54-90B7-D02AE5A756A2@gmail.com> From: Michaelian Ennis To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> In-Reply-To: <3e1162e60710311333p21072f07t3d478ecdd4dea642@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v912) Subject: Re: [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard Date: Wed, 31 Oct 2007 16:56:54 -0400 References: <3e1162e60710301650r35bd83ectbc2d8fbf8e708ba1@mail.gmail.com> <20071030235935.8F4445B30@mail.bitblocks.com> <3e1162e60710310810h3bd11839odebd02dd2457caa4@mail.gmail.com> <14ec7b180710310924p1022cc47w8f4fec460b05061@mail.gmail.com> <3e1162e60710310942r2055b518ga0cd07b4e4c30d82@mail.gmail.com> <14ec7b180710311205lfd0ee2dx234785df22ce43c9@mail.gmail.com> <3e1162e60710311333p21072f07t3d478ecdd4dea642@mail.gmail.com> Topicbox-Message-UUID: e22e3a98-ead2-11e9-9d60-3106f5b1d025 d On Oct 31, 2007, at 4:33 PM, David Leimbach wrote: > On Oct 31, 2007 1:18 PM, Russ Cox 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 ; From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: From: Michaelian Ennis To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> In-Reply-To: <3e1162e60710311333p21072f07t3d478ecdd4dea642@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v912) Subject: Re: [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard Date: Sat, 3 Nov 2007 02:02:07 -0400 References: <3e1162e60710301650r35bd83ectbc2d8fbf8e708ba1@mail.gmail.com> <20071030235935.8F4445B30@mail.bitblocks.com> <3e1162e60710310810h3bd11839odebd02dd2457caa4@mail.gmail.com> <14ec7b180710310924p1022cc47w8f4fec460b05061@mail.gmail.com> <3e1162e60710310942r2055b518ga0cd07b4e4c30d82@mail.gmail.com> <14ec7b180710311205lfd0ee2dx234785df22ce43c9@mail.gmail.com> <3e1162e60710311333p21072f07t3d478ecdd4dea642@mail.gmail.com> Topicbox-Message-UUID: e772771c-ead2-11e9-9d60-3106f5b1d025 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) From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Sat, 3 Nov 2007 16:35:32 +0900 From: underspecified To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard In-Reply-To: <3e1162e60710311332p60fb9416j2de2f29f6a50f937@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_13760_15459148.1194075332788" References: <3e1162e60710301650r35bd83ectbc2d8fbf8e708ba1@mail.gmail.com> <20071030235935.8F4445B30@mail.bitblocks.com> <3e1162e60710310810h3bd11839odebd02dd2457caa4@mail.gmail.com> <14ec7b180710310924p1022cc47w8f4fec460b05061@mail.gmail.com> <3e1162e60710310942r2055b518ga0cd07b4e4c30d82@mail.gmail.com> <14ec7b180710311205lfd0ee2dx234785df22ce43c9@mail.gmail.com> <3e1162e60710311332p60fb9416j2de2f29f6a50f937@mail.gmail.com> Cc: inferno-list@vitanuova.com, acme-sac@googlegroups.com Topicbox-Message-UUID: e77646f8-ead2-11e9-9d60-3106f5b1d025 ------=_Part_13760_15459148.1194075332788 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 wrote: > > On Oct 31, 2007 12:05 PM, andrey mirtchovski > 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 > ------=_Part_13760_15459148.1194075332788 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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

 
------=_Part_13760_15459148.1194075332788-- From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Sat, 3 Nov 2007 18:22:01 +0900 From: underspecified To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] Re: Plan 9 Port error in mpvecadd-Darwin.s on Leopard In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_13815_12409925.1194081721578" References: <3e1162e60710301650r35bd83ectbc2d8fbf8e708ba1@mail.gmail.com> <20071030235935.8F4445B30@mail.bitblocks.com> <3e1162e60710310810h3bd11839odebd02dd2457caa4@mail.gmail.com> <14ec7b180710310924p1022cc47w8f4fec460b05061@mail.gmail.com> <3e1162e60710310942r2055b518ga0cd07b4e4c30d82@mail.gmail.com> <14ec7b180710311205lfd0ee2dx234785df22ce43c9@mail.gmail.com> <3e1162e60710311332p60fb9416j2de2f29f6a50f937@mail.gmail.com> Cc: inferno-list@vitanuova.com, acme-sac@googlegroups.com Topicbox-Message-UUID: e77ec328-ead2-11e9-9d60-3106f5b1d025 ------=_Part_13815_12409925.1194081721578 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 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 wrote: > > > > On Oct 31, 2007 12:05 PM, andrey mirtchovski > > 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 > > > > > ------=_Part_13815_12409925.1194081721578 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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

 

 
------=_Part_13815_12409925.1194081721578--