Groups | Search | Server Info | Login | Register


Groups > comp.os.cpm > #2618

Re: much enhanced z-80 assembler now available

Newsgroups comp.os.cpm
Date 2013-09-08 07:46 -0700
References (5 earlier) <1f077254-e679-47b0-ab6e-8d40006ade2e@googlegroups.com> <l0hhe9$hfq$1@dont-email.me> <l0hjlr$rqp$1@dont-email.me> <0fa27cfa-8d62-4b58-b09c-ed67dd791c81@googlegroups.com> <l0i15q$vlq$1@dont-email.me>
Message-ID <c678e9ff-91eb-4222-b8c0-3d2072185cbf@googlegroups.com> (permalink)
Subject Re: much enhanced z-80 assembler now available
From tburnxxx@gmail.com

Show all headers | View raw


On Sunday, September 8, 2013 7:21:46 AM UTC-7, Torfinn Ingolfsen wrote:
> On 09/08/2013 12:57, tburnxxx@gmail.com wrote:
> 
> > On Sunday, September 8, 2013 3:31:23 AM UTC-7, Torfinn Ingolfsen wrote:
> 
> >> On 09/08/2013 11:53, Torfinn Ingolfsen wrote:
> 
> >>
> 
> >>>
> 
> >>
> 
> >>> with the Makefile you provided:
> 
> >>
> 
> >>> tingo@kg-core1$ make
> 
> >>
> 
> >>> gcc -DMK_DOC -o doc doc.c
> 
> >>
> 
> >>> ./doc >/dev/null
> 
> >>
> 
> >>> yacc -d zmac.y
> 
> >>
> 
> >>> gcc -O2 -pipe  -c y.tab.c -o zmac.o
> 
> >>
> 
> >>> rm -f y.tab.c
> 
> >>
> 
> >>> ${CTFCONVERT_CMD} expands to empty string
> 
> >>
> 
> >>> gcc -O2 -pipe  -c mio.c
> 
> >>
> 
> >>> ${CTFCONVERT_CMD} expands to empty string
> 
> >>
> 
> >>> gcc -O2 -pipe  -c doc.c
> 
> >>
> 
> >>> ${CTFCONVERT_CMD} expands to empty string
> 
> >>
> 
> >>> g++ -O2 -pipe -c ../../../../lib/zi80/zi80dis.cpp
> 
> >>
> 
> >>> gcc -o zmac zmac.o mio.o doc.o ../../../../lib/zi80/zi80dis.o
> 
> >>
> 
> >>> gcc: ../../../../lib/zi80/zi80dis.o: No such file or directory
> 
> >>
> 
> >>> *** Error code 1
> 
> >>
> 
> >>>
> 
> >>
> 
> >>> Stop in /zs/tingo/work/zmac/trs80/sdk/src/zmac.
> 
> >>
> 
> >>>
> 
> >>
> 
> >>> For some reason all object files are in current directory:
> 
> >>
> 
> >>>
> 
> >>
> 
> >>> tingo@kg-core1$ ls *.o
> 
> >>
> 
> >>> doc.o        mio.o        zi80dis.o    zmac.o
> 
> >>
> 
> >>>
> 
> >>
> 
> >>> Manually doing
> 
> >>
> 
> >>> tingo@kg-core1$ gcc -o zmac zmac.o mio.o doc.o zi80dis.o
> 
> >>
> 
> >>> zi80dis.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
> 
> >>
> 
> >>>
> 
> >>
> 
> >>> and I'm back to the error that made me add the '-x c' in the first place.
> 
> >>
> 
> >>
> 
> >>
> 
> >> However, if I manually do
> 
> >>
> 
> >>
> 
> >>
> 
> >> tingo@kg-core1$ g++ -o zmac zmac.o mio.o doc.o zi80dis.o
> 
> >>
> 
> >>
> 
> >>
> 
> >> I get a zmac which appears to work:
> 
> >>
> 
> >> tingo@kg-core1$ ./zmac
> 
> >>
> 
> >> No source file
> 
> >>
> 
> >> zmac version 10aug2013
> 
> >>
> 
> >> usage: zmac [-8bcefghijJlLmnopstz] [-I dir] file[.z]
> 
> >>
> 
> >> other opts: --rel --mras --zmac --dep --help --doc --version
> 
> >>
> 
> >>     zmac -h for more detail about options.
> 
> >>
> 
> >>
> 
> >>
> 
> >> Nice.
> 
> >>
> 
> >> --
> 
> >>
> 
> >> Torfinn Ingolfsen,
> 
> >>
> 
> >> Norway
> 
> >
> 
> > You got it.  Googling the original missing symbol, it seems to be a fairly common problem when mixing C and C++ including when suffix issues (upper vs. lower case '.c') exist.  The missing symbol is caused by the routine being in the library libc++ and needs gxx to find it automatically.  As an alternative, it's suggested that using gcc with -llibc++ at the end of the command line might also work.  That symbol refers to a function in libc++ used for exception handling.
> 
> >
> 
> > I'm curious if that works, but I'll have to install FreeBSD under Vmware to test it.
> 
> 
> 
> libc++ isn't installed as standard on FreeBSD, so this errors out:
> 
> tingo@kg-core1$ gcc -o zmac zmac.o mio.o doc.o zi80dis.o -llibc++
> 
> /usr/bin/ld: cannot find -llibc++
> 
> 
> 
> It is available as a port for llvm (not sure if it will work with gcc):
> 
> tingo@kg-core1$ pinfo libc++
> 
> Port:	libc++-185324
> 
> Path:	/usr/ports/devel/libc++
> 
> Info:	Llvm's C++ standard library with c++11 support
> 
> Maint:	kwm@FreeBSD.org
> 
> B-deps:	clang-3.3_1 cmake-2.8.11.2 cmake-modules-2.8.11.2 
> 
> libexecinfo-1.1_3 llvm-3.3_2 perl-5.14.4
> 
> R-deps:	
> 
> WWW:	http://libcxx.llvm.org/
> 
> 
> 
> HTH
> 
> -- 
> 
> Torfinn Ingolfsen,
> 
> Norway

It does.  Thanks for the info.  There is always something new to be learned.

Tom

Back to comp.os.cpm | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

much enhanced z-80 assembler now available tburnxxx@gmail.com - 2013-09-03 08:49 -0700
  Re: much enhanced z-80 assembler now available rzh_nocal@yahoo.com - 2013-09-03 12:02 -0700
    Re: much enhanced z-80 assembler now available tburnxxx@gmail.com - 2013-09-03 12:17 -0700
      Re: much enhanced z-80 assembler now available tburnxxx@gmail.com - 2013-09-03 17:20 -0700
        Re: much enhanced z-80 assembler now available "dott.Piergiorgio" <chiedetelo@ask.me> - 2013-09-04 06:11 +0200
    Re: much enhanced z-80 assembler now available tburnxxx@gmail.com - 2013-09-03 19:01 -0700
      Re: much enhanced z-80 assembler now available Steve Nickolas <usotsuki@buric.co> - 2013-09-04 09:28 +0000
  Re: much enhanced z-80 assembler now available Steven Hirsch <snhirsch@gmail.com> - 2013-09-03 21:27 -0400
    Re: much enhanced z-80 assembler now available tburnxxx@gmail.com - 2013-09-03 18:50 -0700
      Re: much enhanced z-80 assembler now available Steve Nickolas <usotsuki@buric.co> - 2013-09-04 09:22 +0000
        Re: much enhanced z-80 assembler now available Peter Dassow <z80eu@arcor.de> - 2013-09-04 11:29 +0200
      Re: much enhanced z-80 assembler now available Steven Hirsch <snhirsch@gmail.com> - 2013-09-04 09:05 -0400
        Re: much enhanced z-80 assembler now available tburnxxx@gmail.com - 2013-09-04 08:01 -0700
          Re: much enhanced z-80 assembler now available Steven Hirsch <snhirsch@gmail.com> - 2013-09-04 20:51 -0400
            Re: much enhanced z-80 assembler now available tburnxxx@gmail.com - 2013-09-05 05:14 -0700
              Re: much enhanced z-80 assembler now available Steve Nickolas <usotsuki@buric.co> - 2013-09-05 16:55 +0000
              Re: much enhanced z-80 assembler now available Steven Hirsch <snhirsch@gmail.com> - 2013-09-05 18:12 -0400
                Re: much enhanced z-80 assembler now available bill@server3.cs.uofs.edu (Bill Gunshannon) - 2013-09-06 10:32 +0000
                Re: much enhanced z-80 assembler now available Steven Hirsch <snhirsch@gmail.com> - 2013-09-06 07:50 -0400
                Re: much enhanced z-80 assembler now available bill@server3.cs.uofs.edu (Bill Gunshannon) - 2013-09-06 12:21 +0000
                Re: much enhanced z-80 assembler now available "dott.Piergiorgio" <chiedetelo@ask.me> - 2013-09-06 18:18 +0200
                Re: much enhanced z-80 assembler now available Steven Hirsch <snhirsch@gmail.com> - 2013-09-06 18:10 -0400
      Re: much enhanced z-80 assembler now available Tesseract <guard.squeeze.8421@gmail.com> - 2013-09-04 19:28 -0700
        Re: much enhanced z-80 assembler now available gp2k00@gmail.com - 2013-09-04 21:56 -0700
  Re: much enhanced z-80 assembler now available rzh_nocal@yahoo.com - 2013-09-03 21:05 -0700
  Re: much enhanced z-80 assembler now available Tesseract <guard.squeeze.8421@gmail.com> - 2013-09-04 02:10 -0700
    Re: much enhanced z-80 assembler now available drb@ihatespam.msu.edu (Dennis Boone) - 2013-09-04 11:53 -0500
      Re: much enhanced z-80 assembler now available tburnxxx@gmail.com - 2013-09-04 13:09 -0700
        Re: much enhanced z-80 assembler now available Torfinn Ingolfsen <tingo@home.no> - 2013-09-07 22:43 +0200
          Re: much enhanced z-80 assembler now available gp2k00@gmail.com - 2013-09-07 21:15 -0700
            Re: much enhanced z-80 assembler now available Torfinn Ingolfsen <tingo@home.no> - 2013-09-08 11:53 +0200
              Re: much enhanced z-80 assembler now available Torfinn Ingolfsen <tingo@home.no> - 2013-09-08 12:31 +0200
                Re: much enhanced z-80 assembler now available tburnxxx@gmail.com - 2013-09-08 03:57 -0700
                Re: much enhanced z-80 assembler now available Torfinn Ingolfsen <tingo@home.no> - 2013-09-08 16:21 +0200
                Re: much enhanced z-80 assembler now available tburnxxx@gmail.com - 2013-09-08 07:46 -0700
                Re: much enhanced z-80 assembler now available gp2k00@gmail.com - 2013-09-18 09:59 -0700

csiph-web