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

executing makefile twice in succession outputs 8xp even if linking fails #7

Closed
elfprince13 opened this issue Feb 4, 2016 · 4 comments
Labels

Comments

@elfprince13
Copy link
Contributor

The resulting 8xp is however still missing the symbols from the first attempt.
See, for example:

C:\Scanline-Rendering\ScanLineRender\ScanLineRender>..\toolchain\CEdev\bin\make.exe
ael.c
DEBUGCONFIG.H   (12,8) :        WARNING (3) Illegal redefinition of macro "NDEBUG"
ael.src
edge.c
DEBUGCONFIG.H   (12,8) :        WARNING (3) Illegal redefinition of macro "NDEBUG"
edge.src
point.c
point.src
primitive.c
DEBUGCONFIG.H   (12,8) :        WARNING (3) Illegal redefinition of macro "NDEBUG"
primitive.src
scanlinerenderer.c
DEBUGCONFIG.H   (12,8) :        WARNING (3) Illegal redefinition of macro "NDEBUG"
scanlinerenderer.src
transformation.c
transformation.src
main.c
DEBUGCONFIG.H   (12,8) :        WARNING (3) Illegal redefinition of macro "NDEBUG"
main.src
Linking...
WARNING (724) --> Symbol _RBMapPut (ScanlineRenderer.obj) is not defined.
WARNING (724) --> Symbol _RBDelete (ScanlineRenderer.obj) is not defined.
WARNING (724) --> Symbol _RBMapRemove (ScanlineRenderer.obj) is not defined.
WARNING (724) --> Symbol _RBTreeDestroy (ScanlineRenderer.obj) is not defined.
WARNING (724) --> Symbol _RBMapNodeAlloc (ScanlineRenderer.obj) is not defined.
WARNING (724) --> Symbol _mergeSort (AEL.obj) is not defined.
WARNING (724) --> Symbol _RBSetContains (ScanlineRenderer.obj) is not defined.
WARNING (724) --> Symbol _RBTreeInsert (ScanlineRenderer.obj) is not defined.
WARNING (724) --> Symbol _RBNodeAlloc (ScanlineRenderer.obj) is not defined.
WARNING (724) --> Symbol _SafeMalloc (AEL.obj) is not defined.
WARNING (724) --> Symbol _RBSetAdd (ScanlineRenderer.obj) is not defined.
WARNING (724) --> Symbol _RBTreeMapInit (ScanlineRenderer.obj) is not defined.
WARNING (724) --> Symbol _RBExactQuery (ScanlineRenderer.obj) is not defined.
WARNING (724) --> Symbol _freeLink (AEL.obj) is not defined.
WARNING (724) --> Symbol _removeLink (AEL.obj) is not defined.
WARNING (724) --> Symbol _linkFront (AEL.obj) is not defined.
WARNING (724) --> Symbol _RBTreeInit (ScanlineRenderer.obj) is not defined.
WARNING (724) --> Symbol _RBTreeClear (ScanlineRenderer.obj) is not defined.
WARNING (724) --> Symbol _TreeSuccessor (AEL.obj) is not defined.

SPACE ALLOCATION:
=================

Group: group->name                          Base         Top      Size      Used    Unused
------------------------------------ ----------- ----------- --------- --------- ---------
Space: RAM                              00D031F6    00D1DCF9    65801H     352FH    622D2H
                                                            (   415745     13615    402130)

Space                     Base         Top      Size      Used    Unused
------------------ ----------- ----------- --------- --------- ---------
RAM                   D:D031F6    D:D1DCF9    65801H     352FH    622D2H
                                          (   415745     13615    402130)

ERROR: Object file(s) deleted because of option unresolved=fatal.
Consult scanln.map for more information.
make: *** [scanln.hex] Error -1

C:\Scanline-Rendering\ScanLineRender\ScanLineRender>..\toolchain\CEdev\bin\make.exe

Input File: scanln.hex
Output File: scanln.8xp
Output Calculator Name: SCANLN
Mark archived: No
Success!

Program Size: 13450 bytes
@mateoconlechuga
Copy link
Member

Hm, the .hex file should be deleted if the linker fails

@elfprince13
Copy link
Contributor Author

Can we use || in Windows make to do a failure condition? I assume so since
using && worked for the cd in the .o targets.

On Thursday, February 4, 2016, Matt Waltz notifications@github.com wrote:

Hm, the .hex file should be deleted if the linker fails


Reply to this email directly or view it on GitHub
#7 (comment)
.

~Thomas

@mateoconlechuga
Copy link
Member

Yeah, that should be a possibility

@adriweb adriweb added the bug label Feb 6, 2016
@mateoconlechuga
Copy link
Member

Many thanks to jacobly, fixed with commit 2c76fa4

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

No branches or pull requests

3 participants