[bug] Build failure on Mac OS X 10.6.1

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

[bug] Build failure on Mac OS X 10.6.1

by Damien Pollet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Issue status update for
http://smalltalk.gnu.org/node/410
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/410

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Build
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  dpollet
 Updated by:   dpollet
 Status:       active

I get
./genbc ./byte.def ./byte.c ./opt.c ./xlat.c > match.h
/bin/sh: line 1: 60172 Segmentation fault      ./genbc ./byte.def
./byte.c ./opt.c ./xlat.c > _match.h
make[2]: *** [match.stamp] Error 139


gdb says
(gdb) run byte.def byte.c opt.c xlat.c
Starting program:
/opt/local/var/macports/build/_Users_damien_var_macports_lang_gst-dev/work/gst-dev-1.0/libgst/genbc
byte.def byte.c opt.c xlat.c
Reading symbols for shared libraries +. done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x000000000000007e
0x000000010000b2c7 in avl_rebalance ()





_______________________________________________
help-smalltalk mailing list
help-smalltalk@...
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Re: [bug] Build failure on Mac OS X 10.6.1

by Paolo Bonzini-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Issue status update for
http://smalltalk.gnu.org/project/issue/410
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/410

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Build
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  dpollet
 Updated by:   bonzinip
 Status:       active

Just to rule out the obvious can you try a build with CFLAGS=-g ?

Thanks.




_______________________________________________
help-smalltalk mailing list
help-smalltalk@...
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Re: [bug] Build failure on Mac OS X 10.6.1

by Damien Pollet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Issue status update for
http://smalltalk.gnu.org/project/issue/410
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/410

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Build
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  dpollet
 Updated by:   dpollet
 Status:       active

I get the same results.




_______________________________________________
help-smalltalk mailing list
help-smalltalk@...
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Re: [bug] Build failure on Mac OS X 10.6.1

by Eli Green-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Issue status update for
http://smalltalk.gnu.org/project/issue/410
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/410

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Build
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  dpollet
 Updated by:   eligreen
 Status:       active

By default, Mac OS 10.6's compilers will try to produce 64-bit
executables and genbc doesn't work. You can successfully build if
you're willing to generate 32-bit executables as per the instructions
on the wiki: http://smalltalk.gnu.org/node/223

If you're not interested in any of the Gtk stuff, you can simply
configure it with this command:
MAKE=gnumake CFLAGS='-m32' LDFLAGS='-arch i386' ./configure

I recommend building with gnumake, not make. If you want Gtk stuff,
check the wiki.




_______________________________________________
help-smalltalk mailing list
help-smalltalk@...
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Re: [bug] Build failure on Mac OS X 10.6.1

by Paolo Bonzini-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Issue status update for
http://smalltalk.gnu.org/project/issue/410
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/410

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Build
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  dpollet
 Updated by:   bonzinip
 Status:       active

So genbc is not 64-bit clean? /me scratches head :-)




_______________________________________________
help-smalltalk mailing list
help-smalltalk@...
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Re: [bug] Build failure on Mac OS X 10.6.1

by Alexey Zakhlestin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Issue status update for
http://smalltalk.gnu.org/project/issue/410
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/410

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Build
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  dpollet
 Updated by:   indeyets
 Status:       active

Looks like it's a fault of libsigsegv, actually.

building it works just fine, but "make check" reports failure of all
tests in 64-bit mote




_______________________________________________
help-smalltalk mailing list
help-smalltalk@...
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Re: [bug] Build failure on Mac OS X 10.6.1

by Eli Green-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Issue status update for
http://smalltalk.gnu.org/project/issue/410
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/410

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Build
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  dpollet
 Updated by:   eligreen
 Status:       active

Are you certain? genbc never worked for me when compiled as 64-bit.
However, if match.h had already been generated from a previous build,
it could have skipped the genbc step. Maybe there's a difference in
bytecodes between 32 and 64-bit VMs And your match.h has been generated
with the 32-bit versions?

Paolo; the errors that I had found with genbc were in the avltrees code
but I didn't get a chance to hunt them down.




_______________________________________________
help-smalltalk mailing list
help-smalltalk@...
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Re: [bug] Build failure on Mac OS X 10.6.1

by Damien Pollet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Issue status update for
http://smalltalk.gnu.org/project/issue/410
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/410

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Build
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  dpollet
 Updated by:   dpollet
 Status:       active

OK, I think I'll give up with the macports package…
I tried the "From source" method with GTK+ OSX. I get a  working gst,
but the Cairo package does not get built (I don't have Cairo.star).

From config.log, pkg-config and gawk gnumake are found/used, all paths
to add to PKG_CONFIG_PATH seem ok, but libcairo is not found.
I tried adding -L/Library/Frameworks/Cairo.framework/Libraries to
LDFLAGS, but I suspect that's redundant with pkginfo…




_______________________________________________
help-smalltalk mailing list
help-smalltalk@...
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Re: [bug] Build failure on Mac OS X 10.6.1

by Paolo Bonzini-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Issue status update for
http://smalltalk.gnu.org/project/issue/410
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/410

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Build
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  dpollet
 Updated by:   bonzinip
 Status:       active

Cairo is now sought with pkg-config.  I'm not sure it will work to use
the Cairo bindings directly, because those just do dlopen("libcairo"),
but it should be enough when the GTK package is also loaded.




_______________________________________________
help-smalltalk mailing list
help-smalltalk@...
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Re: Re: [bug] Build failure on Mac OS X 10.6.1

by Damien Pollet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Woohoo, I got a look at the VisualGST browser! :)


On Wed, Nov 4, 2009 at 22:57, Paolo Bonzini <paolo.bonzini@...> wrote:

> Issue status update for http://smalltalk.gnu.org/project/issue/410
> Post a follow up: http://smalltalk.gnu.org/project/comments/add/410
>
> Project:      GNU Smalltalk
> Version:      <none>
> Component:    Build
> Category:     bug reports
> Priority:     normal
> Assigned to:  Unassigned
> Reported by:  dpollet
> Updated by:   bonzinip
> Status:       active
>
> Cairo is now sought with pkg-config.  I'm not sure it will work to use
> the Cairo bindings directly, because those just do dlopen("libcairo"),
> but it should be enough when the GTK package is also loaded.
>
>
>
>
> _______________________________________________
> help-smalltalk mailing list
> help-smalltalk@...
> http://lists.gnu.org/mailman/listinfo/help-smalltalk
>



--
Damien Pollet
type less, do more [ | ] http://people.untyped.org/damien.pollet


_______________________________________________
help-smalltalk mailing list
help-smalltalk@...
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Re: [feature] extend DLD to support loading Mac OS X frameworks

by Paolo Bonzini-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Issue status update for
http://smalltalk.gnu.org/project/issue/410
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/410

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Build
-Category:     bug reports
+Category:     feature requests
-Priority:     normal
+Priority:     minor
 Assigned to:  Unassigned
 Reported by:  dpollet
 Updated by:   bonzinip
-Status:       need info
+Status:       active

To get the cairo bindings to work without loading GTK, lt_dlopen would
need to support loading Mac OS X frameworks.

However, it's cool that you got everything to work!




_______________________________________________
help-smalltalk mailing list
help-smalltalk@...
http://lists.gnu.org/mailman/listinfo/help-smalltalk