Issues Installing libsmd

Talk about development tools here

Moderator: BigEvilCorporation

Post Reply
Jae686
Newbie
Posts: 9
Joined: Sun Jan 02, 2011 10:37 am
Location: Braga, Portugal
Contact:

Issues Installing libsmd

Post by Jae686 » Sun Jan 02, 2011 4:52 pm

Good afternoon.

I'm currently on Ubuntu 11.04, and after installing the cross compilers ( got information on it from https://bugs.launchpad.net/ubuntu/+sour ... bug/514579 ) and installing asmx, i get the following error while running the makefile on the libsmd dir

Code: Select all


jaerder@jaerder-G50V:~/development/MD/libsmd_install/libsmd$ make
m68k-linux-gnu-gcc -m68000 -Wall -Werror -O3 -fomit-frame-pointer -fno-builtin --no-standard-include -ffreestanding -c vdp.s -o vdp.o
vdp.s: Assembler messages:
vdp.s:274: Error: value of -630 too large for field of 1 bytes at 629
make: *** [vdp.o] Error 1
jaerder@jaerder-G50V:~/development/MD/libsmd_install/libsmd$ 


As before you ask, yes, the Makefile was edited to reflect the the correct name of the gcc tools installed on my system.

Best Regards

ElBarto
Very interested
Posts: 160
Joined: Wed Dec 13, 2006 10:29 am
Contact:

Post by ElBarto » Sun Jan 02, 2011 8:10 pm

Which libsmd are you talking about ? Is it mine (ie downloaded from megadrive.org) ?

Jae686
Newbie
Posts: 9
Joined: Sun Jan 02, 2011 10:37 am
Location: Braga, Portugal
Contact:

Post by Jae686 » Sun Jan 02, 2011 8:50 pm

ElBarto wrote:Which libsmd are you talking about ? Is it mine (ie downloaded from megadrive.org) ?
Yup, that's the one :)

ElBarto
Very interested
Posts: 160
Joined: Wed Dec 13, 2006 10:29 am
Contact:

Post by ElBarto » Sun Jan 02, 2011 8:53 pm

Ok, could you try with the last one (get it by cvs, it's explain on the site) ?

Jae686
Newbie
Posts: 9
Joined: Sun Jan 02, 2011 10:37 am
Location: Braga, Portugal
Contact:

Post by Jae686 » Sun Jan 02, 2011 9:00 pm

ElBarto wrote:Ok, could you try with the last one (get it by cvs, it's explain on the site) ?
I get this when trying to get it via CVS

Code: Select all

jaerder@jaerder-G50V:~/development/MD/libsmd_install/cvs$ cvs -d anoncvs@cvs.megadrive.org:/cvs checkout libsmd
Welcome on the MegaDrive.Org/ArcadeBSD.org cvs server

cvs server: cannot find module `libsmd' - ignored
cvs [checkout aborted]: cannot expand modules

ElBarto
Very interested
Posts: 160
Joined: Wed Dec 13, 2006 10:29 am
Contact:

Post by ElBarto » Sun Jan 02, 2011 10:47 pm

mhm sorry path have changed and I didn't update the website, the module is name libmd now.

Jae686
Newbie
Posts: 9
Joined: Sun Jan 02, 2011 10:37 am
Location: Braga, Portugal
Contact:

Post by Jae686 » Mon Jan 03, 2011 6:29 pm

I can get the libmd, and i've also edited my makefile to match my environment.

However, i get the following error :

Code: Select all

jaerder@jaerder-G50V:~/development/MD/libsmd_install/cvs/libmd$ make
Makefile:36: *** missing separator.  Stop.
jaerder@jaerder-G50V:~/development/MD/libsmd_install/cvs/libmd
This is my makefile

Code: Select all

#
# Copyright (c) 2009-2010 Emmanuel Vadot <elbarto@megadrive.org>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

# $Id: Makefile,v 1.11 2010/11/20 18:57:52 elbarto Exp $

PREFIX?=	/home/jaerder/development/MD/libmd/

CC=	m68k-linux-gnu-gcc
AS=	m68k-linux-gnuf-as
LD=	m68k-linux-gnu-ld
OBJC=	m68k-linux-gnu-objcopy
AR=	m68k-linux-gnu-ar -rcs
RM=	rm -f

SRC=	vdp.s \
	joy.s

OBJ=	${SRC:.s=.o}

NAME=	libmd.a

CFLAGS=		-m68000 -Wall -Werror -O3 -fomit-frame-pointer -fno-builtin --no-standard-include -ffreestanding -Wa,--register-prefix-optional

.if defined(WITH_DEBUG)
CFLAGS+= -D_DEBUG_
.endif

all:	${NAME} crt0.o md.ld md.mk

${NAME}:	${OBJ}
		${AR} $@ ${OBJ}
If I remove / comment out

Code: Select all


.if defined(WITH_DEBUG)
CFLAGS+= -D_DEBUG_
.endif
I get the following error

Code: Select all

jaerder@jaerder-G50V:~/development/MD/libsmd_install/cvs/libmd$ make
m68k-linux-gnu-gcc -m68000 -Wall -Werror -O3 -fomit-frame-pointer -fno-builtin --no-standard-include -ffreestanding -Wa,--register-prefix-optional -c vdp.s -o vdp.o
vdp.s: Assembler messages:
vdp.s:235: Error: value of -544 too large for field of 1 bytes at 543
vdp.s:259: Error: value of -618 too large for field of 1 bytes at 617
make: *** [vdp.o] Error 1
jaerder@jaerder-G50V:~/development/MD/libsmd_install/cvs/libmd$
Best Regards

ElBarto
Very interested
Posts: 160
Joined: Wed Dec 13, 2006 10:29 am
Contact:

Post by ElBarto » Mon Jan 03, 2011 6:33 pm

The Makefile error is normal, I use BSD Makefile so you have to use pmake (or bmake, depends on Linux distro).

Which gcc/binutils version are you using ?

ElBarto
Very interested
Posts: 160
Joined: Wed Dec 13, 2006 10:29 am
Contact:

Post by ElBarto » Mon Jan 03, 2011 6:46 pm

Ah 4.4, never test with this one I think.
Here here what I suggest you to do :

Code: Select all

$ sudo apt-get install pmake
$ cvs -d anoncvs@cvs.megadrive.org:/cvs co toolchain
$ cvs -d anoncvs@cvs.megadrive.org:/cvs co libmd
$ cd toolchain
$ pmake PREFIX=/path/to/dir megadrive
$ cd ../libmd
$ pmake PREFIX=/path/to/dir all install
And if you have any error, well post the logs here :)

P.S.: I've never test on linux with pmake but it shouldn't be a problem. If there is I will test my dev env on Ubuntu.

ElBarto
Very interested
Posts: 160
Joined: Wed Dec 13, 2006 10:29 am
Contact:

Post by ElBarto » Mon Jan 03, 2011 6:57 pm

Ok it doesn't work (I have a Ubuntu VM, lucky you :P)
Let me patch the toolchain Makefile and test the dev env.
I'll let you know when it'll work.

ElBarto
Very interested
Posts: 160
Joined: Wed Dec 13, 2006 10:29 am
Contact:

Post by ElBarto » Tue Jan 04, 2011 7:26 am

Fixed.

Code: Select all

$ sudo apt-get install pmake
$ sudo apt-get install texinfo
$ cvs -d anoncvs@cvs.megadrive.org:/cvs co toolchain
$ cvs -d anoncvs@cvs.megadrive.org:/cvs co libmd
$ cvs -d anoncvs@cvs.megadrive.org:/cvs co examples
$ cd toolchain
$ pmake PREFIX=/path/to/dir megadrive
$ cd ../libmd
$ export PATH=$PATH:/path/to/dir/bin
$ export HBDEV=/path/to/dir
$ pmake PREFIX=/path/to/dir all install

Post Reply