MacOS build problem

View: New views
4 Messages — Rating Filter:   Alert me  

MacOS build problem

by Linda Messerschmidt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

I was trying to dust off my Pike-related project today, but I've
gotten a new Macbook Pro since I last worked on it, and I haven't
rebuilt Pike yet.

Unfortunately, I'm getting a build error:

#### Making dynamic: modules/system
Compiling interpret.c
interpret.c: In function ‘eval_instruction’:
interpret.c:1468: error: PIC register ‘ebx’ clobbered in ‘asm’
WARNING: Compiler failure! Trying without optimization!
interpret.c: In function ‘eval_instruction’:
interpret.c:1468: error: PIC register ‘ebx’ clobbered in ‘asm’
Compilation command was:
/Users/lm/build/Pike-v7.8.352/src/smartlink gcc
-DPIKE_SRC_ROOT=/Users/lm/build/Pike-v7.8.352 -I.
-I/Users/lm/build/Pike-v7.8.352/src
-I/Users/lm/build/Pike-v7.8.352/src/bundles/include -g
-I/opt/local/include -L/opt/local/lib
-I/Users/lm/build/Pike-v7.8.352/src/bundles/include     -c interpret.c
-o interpret.o
make: *** [interpret.o] Error 1

I seem to recall getting this error before, when I was trying
desperately to rebuild Pike with more modules supported, and I think
maybe not being able to figure it out was what got this shoved on the
back burner.

Can anyone point me in the right direction?  I looked at the relevant
code and have no idea what's going on; the comments are all about
tricking the optimizer.

Thanks!


Re: MacOS build problem

by Bill Welliver :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Linda,

I recall having this problem as well on my Macbook Pro while running  
10.5. I forget exactly how I got past the problem, but will think  
about it and report back if I can remember (I vaguely recall it being  
a compiler bug). I will mention that the latest stable compiled  
perfectly the first time on 10.6 (which almost never happens). I can  
provide an installation package for that.

Best,

Bill

On Oct 10, 2009, at 9:17 PM, Linda Messerschmidt wrote:

> Hi All,
>
> I was trying to dust off my Pike-related project today, but I've
> gotten a new Macbook Pro since I last worked on it, and I haven't
> rebuilt Pike yet.
>
> Unfortunately, I'm getting a build error:
>
> #### Making dynamic: modules/system
> Compiling interpret.c
> interpret.c: In function ‘eval_instruction’:
> interpret.c:1468: error: PIC register ‘ebx’ clobbered in ‘asm’
> WARNING: Compiler failure! Trying without optimization!



smime.p7s (5K) Download Attachment

Re: MacOS build problem

by Linda Messerschmidt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Oct 11, 2009 at 11:28 AM, H. William Welliver III
<hww3@...> wrote:
> I recall having this problem as well on my Macbook Pro while running 10.5. I
> forget exactly how I got past the problem, but will think about it and
> report back if I can remember (I vaguely recall it being a compiler bug). I
> will mention that the latest stable compiled perfectly the first time on
> 10.6 (which almost never happens). I can provide an installation package for
> that.

You are right, I am still using 10.5.  I will go ahead and request to
order Snow Leopard (I've been putting it off) if that's the best/only
way to solve the issue.

The system compiler on my system is GCC 4.0.1, if it's a compiler bug
and there's a workaround, that would also be great!

Thanks!


Re: MacOS build problem

by Linda Messerschmidt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Somebody emailed me directly to say that the correct way to build it
was to do "make install_interactive" from the top-level rather than
"make" from the src directory.  I really don't understand why, but
that appears to have worked!

Thanks!