Welcome, Guest. Please login or register.

Author Topic: funcdef macro in phxass?  (Read 3908 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline cycloidTopic starter

  • Full Member
  • ***
  • Join Date: Jun 2002
  • Posts: 155
    • Show only replies by cycloid
Re: funcdef macro in phxass?
« Reply #14 from previous page: November 27, 2003, 03:16:59 AM »
from comp.sys.amiga.programmer

>         INCLUDE "exec/types.i"
>         INCLUDE "exec/libraries.i"
>
> lvocnt  SET     LIB_USERDEF
>
>         MACRO   FUNCDEF
> _LVO\1  EQU     lvocnt
> lvocnt  SET     lvocnt-LIB_VECTSIZE
>         ENDM
>
>         INCLUDE "exec/exec_lib.i"

this one appears to work , the files all compile, now i've *just* got to figure out how hunk2gcc works!


edit: right i've think i've got hunk2gcc working (there's hunk2aout too, but it spams out a load of text and bungs out files with random names.

so i've finally got all my .o files in one place and....

it thinks about linking them and then exits with the same error a million times in a row it says something about "aoutx.h" basically.


 

Offline xeron

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 2533
    • Show only replies by xeron
    • http://www.petergordon.org.uk
Re: funcdef macro in phxass?
« Reply #15 on: November 27, 2003, 09:55:06 AM »
Make sure you have the latest PhxAss, since I use that macro in loads of my old programs and it works 100% fine.

Edit: Oh wait, you found a solution anyway.
Playstation Network ID: xeron6
 

Offline cycloidTopic starter

  • Full Member
  • ***
  • Join Date: Jun 2002
  • Posts: 155
    • Show only replies by cycloid
Re: funcdef macro in phxass?
« Reply #16 on: November 27, 2003, 09:54:43 PM »
right i've got the entire think to link, at least i think there are no undefined/missing symbols etc. but it wont link because i get a billion "ld: bfd assertion fail" errors? is it a buggy version of ld (gg330) or should i be using a different linker?
 

Offline Dietmar

  • Full Member
  • ***
  • Join Date: Nov 2002
  • Posts: 220
    • Show only replies by Dietmar
    • http://devplex.awardspace.biz
Re: funcdef macro in phxass?
« Reply #17 on: November 27, 2003, 10:21:19 PM »
>is it a buggy version of ld (gg330) or should i be using a different linker?

Are you using g++ from the GoldED trial? There is a known issue with the last trial version (6/11), gcc 3.3, c++ and the location of certain libraries. To make sure that you are not affected, compile with gcc 2.95.3 which is incuded, too.
 

Offline cycloidTopic starter

  • Full Member
  • ***
  • Join Date: Jun 2002
  • Posts: 155
    • Show only replies by cycloid
Re: funcdef macro in phxass?
« Reply #18 on: November 27, 2003, 10:37:57 PM »
nope, 295 yields the exact same error
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16867
  • Country: gb
  • Thanked: 4 times
    • Show only replies by Karlos
Re: funcdef macro in phxass?
« Reply #19 on: November 28, 2003, 06:21:34 AM »
Blimey dude, this thing really is doing it's level best to get on yer tits by the sound of it :-(
int p; // A
 

Offline Dietmar

  • Full Member
  • ***
  • Join Date: Nov 2002
  • Posts: 220
    • Show only replies by Dietmar
    • http://devplex.awardspace.biz
Re: funcdef macro in phxass?
« Reply #20 on: November 28, 2003, 11:00:30 PM »
>nope, 295 yields the exact same error

Then I can't help you with that specific problem. But I'd recommend to fix the g++ 3.3 installation anyway or you might see other linker errors with C++ (if you are still using the gcc devkits installation, that is) .  Download fix here.
 

Offline cycloidTopic starter

  • Full Member
  • ***
  • Join Date: Jun 2002
  • Posts: 155
    • Show only replies by cycloid
Re: funcdef macro in phxass?
« Reply #21 on: November 29, 2003, 12:44:40 AM »
what? eh? it wants golded. i already deleted it, do i have to reinstall the golded thing to get the gcc things., what are the files? cant you just la up the different ones, i assume they're bins


 

Offline cycloidTopic starter

  • Full Member
  • ***
  • Join Date: Jun 2002
  • Posts: 155
    • Show only replies by cycloid
Re: funcdef macro in phxass?
« Reply #22 on: November 29, 2003, 01:13:38 AM »
i'm wandering now if it's a problem with the files hunk2aout is generating as the actual "error" that ld puts out is "unsupported reloc: -1"after all the "bfd assertion fail" reports, and the number of those looks like it might correspond to the number of relocs that hunk2aout reports.

edit: i tried a hunk2aout from 1998 and that does the same as the one i was using before (1999)

edit 2: this
http://www.freelists.org/archives/yamos-dev/11-2002/msg00016.html
is the only thing on the whole internet that i've found that mirrors my problem. yet i'm not debugging as that link suggests.
 

Offline Dietmar

  • Full Member
  • ***
  • Join Date: Nov 2002
  • Posts: 220
    • Show only replies by Dietmar
    • http://devplex.awardspace.biz
Re: funcdef macro in phxass?
« Reply #23 on: November 29, 2003, 02:30:41 AM »
>what? eh? it wants golded. i already deleted it, do i have to reinstall the golded thing to get the gcc things, what are the files?

The golded thing is called an editor. You can fix the problem manually by installing the gcc thing (libstdc++.a) from the service pack but you will have to look up how and where yourself in the install thing. That's the price for deleting golded :)
 

Offline cycloidTopic starter

  • Full Member
  • ***
  • Join Date: Jun 2002
  • Posts: 155
    • Show only replies by cycloid
Re: funcdef macro in phxass?
« Reply #24 on: November 29, 2003, 03:08:12 AM »
yeah golded shmolded. i found the offending lib file anyway so it's ok. doesnt help me out though :-(
 

Offline NovaCoder

Re: funcdef macro in phxass?
« Reply #25 on: December 23, 2010, 03:34:56 AM »
funcdef.i

Code: [Select]

FUNCDEF     MACRO    *function
_LVO\1      EQU      FUNC_CNT
FUNC_CNT    SET      FUNC_CNT-6
            ENDM
FUNC_CNT    SET      5*-6
Life begins at 100 MIPS!


Nice Ports on AmiNet!