Building under OSX

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Building under OSX

Giuseppe
Hi,

I updated GST from git, and I can't build it. Some idea?

I get the following 'make all' output:
...
...
...
...

tfvc_la-format.o .libs/libgst.lax/libsnprintfvc.a/libsnprintfvc_la-mem.o .libs/libgst.lax/libsnprintfvc.a/libsnprintfvc_la-printf.o .libs/libgst.lax/libsnprintfvc.a/libsnprintfvc_la-stream.o
ranlib: file: .libs/libgst.a(xlat.o) has no symbols
ranlib: file: .libs/libgst.a(mpz.o) has no symbols
ranlib: file: .libs/libgst.a(socketx.o) has no symbols
ranlib: file: .libs/libgst.a(darwin.o) has no symbols
ranlib: file: .libs/libgst.a(ffi.o) has no symbols
libtool: link: ranlib .libs/libgst.a
ranlib: file: .libs/libgst.a(xlat.o) has no symbols
ranlib: file: .libs/libgst.a(mpz.o) has no symbols
ranlib: file: .libs/libgst.a(socketx.o) has no symbols
ranlib: file: .libs/libgst.a(darwin.o) has no symbols
ranlib: file: .libs/libgst.a(ffi.o) has no symbols
libtool: link: rm -fr .libs/libgst.lax
libtool: link: ( cd ".libs" && rm -f "libgst.la" && ln -s "../libgst.la" "libgst.la" )
Making all in .
gcc -DHAVE_CONFIG_H -I.  -I./libgst -I./lib-src -DCMD_XZIP="\"/usr/bin/zip\"" -DCMD_INSTALL="\"/usr/bin/install -c\"" -DCMD_LN_S="\"ln -s\"" -DKERNEL_PATH=\""/usr/local/share/smalltalk/kernel"\" -DIMAGE_PATH=\""/usr/local/var/lib/smalltalk"\" -DMODULE_PATH=\""/usr/local/lib/smalltalk"\" -DLIBEXEC_PATH=\""/usr/local/libexec/smalltalk"\" -DPREFIX=\""/usr/local"\" -DEXEC_PREFIX=\""/usr/local"\" -DDEFAULT_EXECUTABLE=\""/usr/local/bin/gst"\"    -g -O2 -Wall -Wno-strict-aliasing -Wno-switch -fno-gcse -fstrict-aliasing -Wdeclaration-after-statement -Wno-format -Wpointer-arith -Wno-pointer-sign -Wwrite-strings  -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include   -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
mv -f .deps/main.Tpo .deps/main.Po
/bin/sh ./libtool --tag=CC   --mode=link gcc  -g -O2 -Wall -Wno-strict-aliasing -Wno-switch -fno-gcse -fstrict-aliasing -Wdeclaration-after-statement -Wno-format -Wpointer-arith -Wno-pointer-sign -Wwrite-strings  -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include   -export-dynamic   -o gst main.o libgst/libgst.la lib-src/library.la   -lm  -L/opt/local/lib -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lintl -liconv  
libtool: link: gcc -g -O2 -Wall -Wno-strict-aliasing -Wno-switch -fno-gcse -fstrict-aliasing -Wdeclaration-after-statement -Wno-format -Wpointer-arith -Wno-pointer-sign -Wwrite-strings -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -o .libs/gst main.o  libgst/.libs/libgst.dylib -L/opt/local/lib /Users/glpunzi/git/gst/sigsegv/src/.libs/libsigsegv.dylib lib-src/.libs/library.a -ldl -lm /opt/local/lib/libgobject-2.0.dylib /opt/local/lib/libgthread-2.0.dylib /opt/local/lib/libglib-2.0.dylib -lresolv /opt/local/lib/libintl.dylib -lc /System/Library/Frameworks/System.framework/System /opt/local/lib/libiconv.dylib -framework Carbon
gcc -DHAVE_CONFIG_H -I.  -I./libgst -I./lib-src -DCMD_XZIP="\"/usr/bin/zip\"" -DCMD_INSTALL="\"/usr/bin/install -c\"" -DCMD_LN_S="\"ln -s\"" -DKERNEL_PATH=\""/usr/local/share/smalltalk/kernel"\" -DIMAGE_PATH=\""/usr/local/var/lib/smalltalk"\" -DMODULE_PATH=\""/usr/local/lib/smalltalk"\" -DLIBEXEC_PATH=\""/usr/local/libexec/smalltalk"\" -DPREFIX=\""/usr/local"\" -DEXEC_PREFIX=\""/usr/local"\" -DDEFAULT_EXECUTABLE=\""/usr/local/bin/gst"\"    -g -O2 -Wall -Wno-strict-aliasing -Wno-switch -fno-gcse -fstrict-aliasing -Wdeclaration-after-statement -Wno-format -Wpointer-arith -Wno-pointer-sign -Wwrite-strings  -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include   -MT gst-tool.o -MD -MP -MF .deps/gst-tool.Tpo -c -o gst-tool.o gst-tool.c
mv -f .deps/gst-tool.Tpo .deps/gst-tool.Po
/bin/sh ./libtool --tag=CC   --mode=link gcc  -g -O2 -Wall -Wno-strict-aliasing -Wno-switch -fno-gcse -fstrict-aliasing -Wdeclaration-after-statement -Wno-format -Wpointer-arith -Wno-pointer-sign -Wwrite-strings  -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include   -export-dynamic   -o gst-tool gst-tool.o libgst/libgst.la lib-src/library.la  -lm  -L/opt/local/lib -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lintl -liconv  
libtool: link: gcc -g -O2 -Wall -Wno-strict-aliasing -Wno-switch -fno-gcse -fstrict-aliasing -Wdeclaration-after-statement -Wno-format -Wpointer-arith -Wno-pointer-sign -Wwrite-strings -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -o .libs/gst-tool gst-tool.o  libgst/.libs/libgst.dylib -L/opt/local/lib /Users/glpunzi/git/gst/sigsegv/src/.libs/libsigsegv.dylib lib-src/.libs/library.a -ldl -lm /opt/local/lib/libgobject-2.0.dylib /opt/local/lib/libgthread-2.0.dylib /opt/local/lib/libglib-2.0.dylib -lresolv /opt/local/lib/libintl.dylib -lc /System/Library/Frameworks/System.framework/System /opt/local/lib/libiconv.dylib -framework Carbon
/usr/bin/sed -e "s,@\(bindir\)@,/usr/local/bin," ./gst-mode.el.in \
          > gst-mode.el
/usr/bin/sed -e "s,@\(lispdir\)@,/usr/local/share/emacs/site-lisp," \
          -e "s/@\(WITH_EMACS_COMINT_TRUE\)@//" \
          ./smalltalk-mode-init.el.in > smalltalk-mode-init.el
WARNING: Warnings can be ignored. :-)
if test "emacs" != no; then \
          set x; \
          list='smalltalk-mode.el gst-mode.el smalltalk-mode-init.el'; for p in $list; do \
            if test -f "$p"; then d=; else d="./"; fi; \
            set x "$@" "$d$p"; shift; \
          done; \
          shift; \
          EMACS="emacs" /bin/sh ./build-aux/elisp-comp "$@" || exit 1; \
        else : ; fi

In gst:
gst-mode.el:78:9:Warning: assignment to free variable `*smalltalk-process*'

In gst-filter:
gst-mode.el:151:18:Warning: assignment to free variable `mode-status'

In gst-mode:
gst-mode.el:210:9:Warning: assignment to free variable `mode-status'

In send-to-smalltalk:
gst-mode.el:367:22:Warning: assignment to free variable `mode-status'
gst-mode.el:381:12:Warning: reference to free variable `*smalltalk-process*'

In end of data:
gst-mode.el:390:1:Warning: the function `smalltalk-backward-whitespace' is not
    known to be defined.
Wrote /Users/glpunzi/git/gst/elc.10582/gst-mode.elc
Wrote /Users/glpunzi/git/gst/elc.10582/smalltalk-mode-init.elc

In end of data:
smalltalk-mode.el:1064:1:Warning: the following functions are not known to be
    defined: new-hit-point, smalltalk-update-hit-point
Wrote /Users/glpunzi/git/gst/elc.10582/smalltalk-mode.elc
./gst --no-user-files --kernel-dir "./kernel" --image gst.im -iQ /dev/null
make[2]: *** [gst.im] Bus error
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Building under OSX

Paolo Bonzini-2
On 10/03/2010 10:31 PM, Giuseppe Luigi Punzi wrote:
> Hi,
>
> I updated GST from git, and I can't build it. Some idea?

Let me guess, Snow Leopard? :)

You need to compile 32-bit or give me access to a box that lets me debug it.

Paolo

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: GTK under OSX was: Building under OSX

Giuseppe
In reply to this post by Giuseppe
On Lunes 04 Octubre 2010 11:58:04 Paolo Bonzini escribió:
> On 10/04/2010 11:43 AM, Giuseppe Luigi Punzi wrote:
> >> You need to compile 32-bit or give me access to a box that lets me debug
> >> it.
> >
> > How to compile in 32-bit :/
>
> ./configure ... CFLAGS="-O2 -arch i386" LDFLAGS="-arch i386"

Some hours ago, I tried with './configure CFLAGS="-O2 -arch i386" LDFLAGS="-
arch i386"' to build GST under Snow Leopard, and worked, but GTK package is
not found.

Looking to configure output, sais thath Glib > 2.0.0.0 is not found, but, I
have it installed, all GTK, from MacPorts, and /opt/local/lib is one of the
folders where configure looks for libraries.

> > I'm not at home right now, but, what do you need? a SSH user? something
> > else?
>
> Yes, SSH user and an IP add

I will try to create a user and search you at IRC this night, and you have all
the time you need to check all the things you want.

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: GTK under OSX was: Building under OSX

Paolo Bonzini-2
On 10/04/2010 06:26 PM, Giuseppe Luigi Punzi wrote:
> Some hours ago, I tried with './configure CFLAGS="-O2 -arch i386" LDFLAGS="-
> arch i386"' to build GST under Snow Leopard, and worked, but GTK package is
> not found.
>
> Looking to configure output, sais thath Glib>  2.0.0.0 is not found, but, I
> have it installed, all GTK, from MacPorts, and /opt/local/lib is one of the
> folders where configure looks for libraries.

No, you have the 64-bit version installed. :)

I'm not on IRC until tomorrow.

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk