<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Here is someone in a very similar situation and using a very similar fix:<br><br> http://gcc.gnu.org/ml/gcc-help/2008-01/msg00041.html<br><br>He renames away the .so files during the build, where I copy the .a files to a new directory.<br><br><div>> /usr/local/lib/libmpfr.1.dylib (compatibility version 3.0.0, current version 3.0.0)</div><br>What happens when we redistribute this cm3cg?<br>People have to get and build libmpfr?<br>Maybe. But I'm avoiding that.<br><br>When I just tell configure --with-mpfr=/usr/local --with-gmp=/usr/local, it builds ok, but then cm3cg fails, unable to find libmpfr.so and possibly libgmp.so.<br>You can see this in the Tinderbox build I believe, from around last night.<br>It is fixed now with static linking. I realize this might not be ideal, but there is a problem and this is a fix or at least workaround.<br><br> - Jay<br><br><blockquote><hr>CC: m3commit@elegosoft.com<br>From: hosking@cs.purdue.edu<br>To: jayk123@hotmail.com<br>Subject: Re: [M3commit] CVS Update: cm3<br>Date: Fri, 18 Apr 2008 00:08:12 -0400<br><br><div>I don't understand. If gmp and mpfr are installed (in the usual places like /usr/local) then gcc will happily find them. If not, then you may need to tell configure where they are with an option. I would be surprised if gcc's configure does not add the necessary ld library paths to the build of m3cgc1. For me on Mac OS X "otool -L" (equivalent of ldd) shows:</div><div><br></div><div><div>hosking$ otool -L /usr/local/cm3/bin/cm3cg</div><div>/usr/local/cm3/bin/cm3cg:</div><div> /usr/local/lib/libintl.3.dylib (compatibility version 8.0.0, current version 8.3.0)</div><div> /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)</div><div> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.0.0)</div><div> /usr/local/lib/libmpfr.1.dylib (compatibility version 3.0.0, current version 3.0.0)</div><div> /usr/local/gcc-4.3.0/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)</div><div><br></div><div>This cm3cg runs with both -m32 and -m64 switches to build both I386_DARWIN and AMD64_DARWIN on the same machine.</div></div><div><span class="EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style=""><span class="EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span class="EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span class="EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span class="EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span class="EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span class="EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span class="EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span class="EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div><br></div></span></span></span></span></span></span></span></span></div></span></div><div>On Apr 17, 2008, at 11:51 PM, Jay wrote:<br class="EC_Apple-interchange-newline"><blockquote><span class="EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div class="EC_hmmessage" style="font-size: 10pt; font-family: Tahoma;">Just take the dependency on libgmp.so and libmpfr.so?<br>The dependency on libmpfr.so broke Tinderbox, in a larger changable context. Just change LD_LIBRARY_PATH, or figure out -rpath, or install to /usr instead of /usr/local or /usr/contrib??<br><br> - Jay<br><br><br>> CC:<span class="EC_Apple-converted-space"> </span><a href="mailto:m3commit@elegosoft.com">m3commit@elegosoft.com</a><br>> From:<span class="EC_Apple-converted-space"> </span><a href="mailto:hosking@cs.purdue.edu">hosking@cs.purdue.edu</a><br>> To:<span class="EC_Apple-converted-space"> </span><a href="mailto:jayk123@hotmail.com">jayk123@hotmail.com</a><br>> Subject: Re: [M3commit] CVS Update: cm3<br>> Date: Thu, 17 Apr 2008 22:03:29 -0400<br>><span class="EC_Apple-converted-space"> </span><br>> I don't think you should need this.<br>><span class="EC_Apple-converted-space"> </span><br>> On Apr 17, 2008, at 9:24 PM, Jay wrote:<br>><span class="EC_Apple-converted-space"> </span><br>> ><br>> > Previous cm3cg (on birch) is/was only dependent on:<br>> ><br>> > % ldd /usr/local/cm3/bin/cm3cg<br>> > linux-gate.so.1 => (0xffffe000)<br>> > libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e83000)<br>> > /lib/ld-linux.so.2 (0xb7fc3000)<br>> ><br>> > we shouldn't add libgmp.so and libmpfr.so to this, right?<br>> > At least not libmpfr.so. That dependency at least was causing<span class="EC_Apple-converted-space"> </span><br>> > Tinderbox breaks.<br>> > Perhaps just add /usr/local/lib to LD_LIBRARY_PATH or something with<span class="EC_Apple-converted-space"> </span><br>> > -rpath?<br>> > I poked around a little with -rpath. I'd'thunk it'd be more automatic.<br>> ><br>> > Ok for building m3cc to have extra dependencies, but the result less<span class="EC_Apple-converted-space"> </span><br>> > so, right?<br>> ><br>> > Granted, a) the source could be imported, small compared to gcc b)<span class="EC_Apple-converted-space"> </span><br>> > could provide a .deb or such with a declared dependency and have apt-<span class="EC_Apple-converted-space"> </span><br>> > get get the dependencies if they are missing. Should probably be<span class="EC_Apple-converted-space"> </span><br>> > building .deb files anyway. Yeah, I know I'm late to this party.<br>> > If everyone statically linked, everything would explode in size.<br>> ><br>> > - Jay<br>> ><br>> >> From:<span class="EC_Apple-converted-space"> </span><a href="mailto:hosking@cs.purdue.edu">hosking@cs.purdue.edu</a><br>> >> To:<span class="EC_Apple-converted-space"> </span><a href="mailto:jkrell@elego.de">jkrell@elego.de</a><br>> >> Date: Thu, 17 Apr 2008 13:09:47 -0400<br>> >> CC:<span class="EC_Apple-converted-space"> </span><a href="mailto:m3commit@elegosoft.com">m3commit@elegosoft.com</a><br>> >> Subject: Re: [M3commit] CVS Update: cm3<br>> >><br>> >> It should just build. Not sure what you are trying to achieve by<br>> >> static linking.<br>> >><br>> >> On Apr 17, 2008, at 7:31 AM, Jay Krell wrote:<br>> >><br>> >>> CVSROOT: /usr/cvs<br>> >>> Changes by: jkrell@birch. 08/04/17 07:31:36<br>> >>><br>> >>> Modified files:<br>> >>> cm3/m3-sys/m3cc/src/: m3makefile<br>> >>><br>> >>> Log message:<br>> >>> statically link libmpfr.a by hook and by crook, see if I can get<br>> >>> this to work on birch..<br>> >><br>><span class="EC_Apple-converted-space"> </span><br></div></span></blockquote></div><br></blockquote></body>
</html>