Menu

#3493 pic16 library build failure

closed-fixed
None
Build
5
2023-12-14
2022-09-21
No

The 64-bit Linux snapshot is having a failure building the pic16 libraries in at least [r13714] and probably many revisions prior:

Making all in libsdcc
gptrget1.asm:41:Error[1102]   Parser error: syntax error
gmake[10]: *** [Makefile:1310: gptrget1.o] Error 1
gptrget2.asm:41:Error[1102]   Parser error: syntax error
gmake[10]: *** [Makefile:1324: gptrget2.o] Error 1
gptrget3.asm:42:Error[1102]   Parser error: syntax error
gmake[10]: *** [Makefile:1338: gptrget3.o] Error 1
gptrget4.asm:42:Error[1102]   Parser error: syntax error
gmake[10]: *** [Makefile:1352: gptrget4.o] Error 1
gptrput1.asm:36:Error[1102]   Parser error: syntax error
gmake[10]: *** [Makefile:1366: gptrput1.o] Error 1
gptrput2.asm:37:Error[1102]   Parser error: syntax error
gmake[10]: *** [Makefile:1380: gptrput2.o] Error 1
gptrput3.asm:38:Error[1102]   Parser error: syntax error
gmake[10]: *** [Makefile:1394: gptrput3.o] Error 1
gptrput4.asm:39:Error[1102]   Parser error: syntax error
gmake[10]: *** [Makefile:1408: gptrput4.o] Error 1
gmake[10]: Target 'all' not remade because of errors.
Making all in startup
gmake[9]: *** [Makefile:382: all-recursive] Error 1
gmake[8]: *** [Makefile:322: all] Error 2

The Windows snapshots rely on the Linux snapshot to generate the runtime libraries, so this also prevents the Windows snapshots from being generated.

Related

Commit: [r13714]
Support Requests: #179

Discussion

  • Benedikt Freisen

    And these are the offending lines for gptrget?.asm:

        btfss   _WREG, 7, 0
    

    And for gptrput?.asm:

        btfss   _WREG, 7
    

    Maybe somebody with PIC experience can make sense of this.

    EDIT: These appear to be the only occurrences of the btfss instruction.

     

    Last edit: Benedikt Freisen 2022-09-21
  • Erik Petrich

    Erik Petrich - 2022-11-23

    Actually, the problem seems to be that the preprocessor is emitting #line directives inside inline assembly blocks, which are then blithely passed on to gpasm. Starting with [r13750] the lexer should exclude these from the inline assembly. I'll close this ticket in a day or so after I confirm this problem has been fixed in the snapshot generation.

     

    Related

    Commit: [r13750]

  • Erik Petrich

    Erik Petrich - 2022-11-23
    • assigned_to: Erik Petrich
     
  • Benedikt Freisen

    • status: open --> closed-fixed
     
  • Benedikt Freisen

    Since considerably more than "a day or so" has passed since [r13750] and we apparently have Windows snapshots, again, I'll take the liberty to call this one fixed.

     

    Related

    Commit: [r13750]


Log in to post a comment.