cy99 / shedskin

Automatically exported from code.google.com/p/shedskin
0 stars 0 forks source link

Compilation on Mac OS X...possible solution #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I only tested the solution on the test.py, but that works.

What steps will reproduce the problem?
1. Install shedskin, local directory
2. ./shedskin test.py
3. make
4. ./test

What is the expected output? What do you see instead?

Python->C++ works:

glop-/Users/bblais/Desktop/shedskin-0.0.26-> ./shedskin test.py
*** SHED SKIN Python-to-C++ Compiler 0.0.26 ***
Copyright 2005-2008 Mark Dufour; License GNU GPL version 3 (See LICENSE)
(Please send bug reports here: mark.dufour@gmail.com)

[iterative type analysis..]
**
iterations: 2 templates: 25
[generating c++ code..]
==========

compilation works:

glop-/Users/bblais/Desktop/shedskin-0.0.26-> make
g++  -O3 -s -pipe -fomit-frame-pointer  
-I/Users/bblais/Desktop/shedskin-0.0.26/lib 
/Users/bblais/Desktop/shedskin-0.0.26/lib/builtin.cpp test.cpp -lgc  -o test

===========
Running doesn't:

glop-/Users/bblais/Desktop/shedskin-0.0.26-> ./test
dyld: lazy symbol binding failed: lazy pointer not found
dyld: lazy pointer not found
zsh: trace trap  ./test

What version of the product are you using? On what operating system?

OS X 10.4 (Tiger)

Please provide any additional information below.

 Solution, for at least this file, is to remove the -s option and run strip manually, in Makefile:

CCFLAGS=-O3 -pipe -fomit-frame-pointer $(CPPFLAGS) 
-I/Users/bblais/Desktop/shedskin-
0.0.26/lib

test:   $(CPPFILES) $(HPPFILES)
    $(CC) $(CCFLAGS) $(CPPFILES) $(LFLAGS) -o test
    strip test

Original issue reported on code.google.com by bbl...@gmail.com on 16 Jan 2008 at 2:29

GoogleCodeExporter commented 8 years ago
thanks for investigating. so I guess I can just drop -s on osx? strip is not
necessary, right? 

the thing that turned me off on osx (besides the interface :P) was that I 
couldn't
figure out how to build an extension module. if you have any ideas.. (I should
probably use distutils at some point)

Original comment by mark.duf...@gmail.com on 17 Jan 2008 at 2:25

GoogleCodeExporter commented 8 years ago
we fixed this and other problems over mail. now shed skin runs better than ever 
on
osx, and it can even build extension modules. thanks brian!

Original comment by mark.duf...@gmail.com on 22 Jan 2008 at 8:01