Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify build with Homebrew cairo and XQuartz #1

Open
requeijaum opened this issue Feb 2, 2018 · 5 comments
Open

Verify build with Homebrew cairo and XQuartz #1

requeijaum opened this issue Feb 2, 2018 · 5 comments

Comments

@requeijaum
Copy link

requeijaum commented Feb 2, 2018

Machine: OS X El Capitan - last updates installed.

Copied tiemu source from this repo and run
$ ./configure && make.

I needed to pass some LDFLAGS and CPPFLAGS for the X11 libs and headers.
I managed my way through the error messages but my build isn't finished because of this error - related to m68k ( CPU emulation core? ):

configure: creating ./config.status
config.status: creating Makefile
configure: configuring in m68k
configure: running /bin/sh '../.././sim/m68k/configure' --prefix=/usr/local '--cache-file=./config.cache' '--build=' '--host=' '--disable-option-checking' '--prefix=/usr/local' 'CPPFLAGS=-I/opt/X11/include' 'PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig' '--target=m68k-coff' '--disable-tui' '--disable-werror' '--cache-file=/dev/null' '--srcdir=.' '--program-transform-name=s&^&m68k-coff-&' '--srcdir=.././sim' --cache-file=/dev/null --srcdir=../.././sim/m68k
configure: warning: CPPFLAGS=-I/opt/X11/include: invalid host type
configure: warning: PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig: invalid host type
configure: error: can only configure for one host and one target at a time
configure: error: /bin/sh '../.././sim/m68k/configure' failed for m68k
make[4]: *** [configure-sim] Error 1
make[3]: *** [all] Error 2
make[2]: *** [gdbtk] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

@requeijaum
Copy link
Author

clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[6]: *** [wish] Error 1
make[5]: *** [all] Error 2
make[4]: *** [all-tk] Error 2
make[3]: *** [all] Error 2
make[2]: *** [gdbtk] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


iHack-de-Rafael:trunk requeijaum$ cd src/gdb/tk
iHack-de-Rafael:tk requeijaum$ ls
ChangeLog bitmaps configure library testsuite
Makefile changes configure.in license.terms unix
Makefile.in compat cygtcl.m4 mac win
README config.log doc macosx xlib
ToDo config.status generic tests
iHack-de-Rafael:tk requeijaum$ make LDFLAGS+="-L/opt/X11/lib -lX11 -lpthread"
gcc -pipe -L/opt/X11/lib -lX11 -lpthread tkAppInit.o
-L/Users/requeijaum/tiemu/tiemu/trunk/src/gdb/tk/unix -ltk8.4
-L/Users/requeijaum/tiemu/tiemu/trunk/src/gdb/tcl/unix -ltcl8.4 -framework CoreFoundation -lX11 -o wish
iHack-de-Rafael:tk requeijaum$


@requeijaum
Copy link
Author

Hoping that it works...

$ cd tiemu/tiemu/trunk
$ make


configure: creating ./config.status
config.status: creating Makefile
configure: configuring in m68k
configure: running /bin/sh '../.././sim/m68k/configure' --prefix=/usr/local '--cache-file=./config.cache' '--build=' '--host=' '--disable-option-checking' '--prefix=/usr/local' 'CPPFLAGS=-I/opt/X11/include' 'PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig' '--target=m68k-coff' '--disable-tui' '--disable-werror' '--cache-file=/dev/null' '--srcdir=.' '--program-transform-name=s&^&m68k-coff-&' '--srcdir=.././sim' --cache-file=/dev/null --srcdir=../.././sim/m68k
configure: warning: CPPFLAGS=-I/opt/X11/include: invalid host type
configure: warning: PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig: invalid host type
configure: error: can only configure for one host and one target at a time
configure: error: /bin/sh '../.././sim/m68k/configure' failed for m68k
make[4]: *** [configure-sim] Error 1
make[3]: *** [all] Error 2
make[2]: *** [gdbtk] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
iHack-de-Rafael:trunk requeijaum$


Meh.

@requeijaum
Copy link
Author

requeijaum commented Feb 2, 2018

$ cd src/gdb/sim
$ ./configure
$ make

No errors...

$ cd tiemu/tiemu/trunk
$ make


ar: creating archive libgdb.a
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libgdb.a(cli-utils.o) has no symbols
ranlib libgdb.a
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libgdb.a(cli-utils.o) has no symbols
echo "../sim/m68k/libsim.a ../readline/libreadline.a ../opcodes/libopcodes.a ../bfd/libbfd.a -L/usr/local/lib -lintl ../libiberty/libiberty.a ../libgui/src/libgui.a -L/Users/requeijaum/tiemu/tiemu/trunk/src/gdb/itcl/itcl -litcl3.2 -L/Users/requeijaum/tiemu/tiemu/trunk/src/gdb/itcl/itk -litk3.2 -L/Users/requeijaum/tiemu/tiemu/trunk/src/gdb/tk/unix -ltk8.4 -L/Users/requeijaum/tiemu/tiemu/trunk/src/gdb/tcl/unix -ltcl8.4 -lX11 -framework CoreFoundation -lncurses -lm -liconv -lexpat ../libiberty/libiberty.a " >libgdb.ldflags
make[5]: *** No rule to make target ../sim/m68k/libsim.a', needed by all'. Stop.
make[4]: *** [all-gdb] Error 2
make[3]: *** [all] Error 2
make[2]: *** [gdbtk] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
iHack-de-Rafael:trunk


I give up.

@requeijaum
Copy link
Author

$ ./configure --disable-debugger --disable-gdb
$ make


Making all in man
groff -Tascii -man tiemu.1 > Manpage
C_INCLUDE_PATH="" LIBRARY_PATH="" gcc cleaner.c -o cleaner
./cleaner Manpage
Processing file :
Pass 1... Done.
rm Manpage cleaner
make[2]: Nothing to be done for `all-am'.


$ sudo make install
$ tiemu

TiEmu 3 - Version 3.04
(C) Romain Lievin & Thomas Corvazier 2000-2001
(C) Romain Lievin 2001-2003
(C) Julien Blache 2003
(C) Romain Lievin 2004-2005
(C) Romain Lievin & Kevin Kofler 2005-2007
(C) Peter Fernandes 2007
THIS PROGRAM COMES WITH ABSOLUTELY NO WARRANTY
PLEASE READ THE DOCUMENTATION FOR DETAILS


Just werks!

@requeijaum
Copy link
Author

captura de tela 2018-02-02 as 16 57 57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant