Git Product home page Git Product logo

Comments (12)

lcoombe avatar lcoombe commented on June 14, 2024

@parham-k / @jwcodee - Could one of you please take a look at this?

from abyss.

lcoombe avatar lcoombe commented on June 14, 2024

Pinging @parham-k / @jwcodee

from abyss.

jwcodee avatar jwcodee commented on June 14, 2024

Thanks for flagging this issue. We will be looking to implement a fix to address this issue.

from abyss.

jwcodee avatar jwcodee commented on June 14, 2024

@eli-schwartz can you see if https://github.com/bcgsc/abyss/tree/tlo addresses your issue?

from abyss.

eli-schwartz avatar eli-schwartz commented on June 14, 2024

There are 3 definitions:

  • dialign/museq.c: extern int simple_aligner
  • dialign/assemble.c: char simple_aligner
  • Align/dialign.h: char simple_aligner

It looks like your tree changes the second one from char to int, which means now the third is the odd one out.

from abyss.

jwcodee avatar jwcodee commented on June 14, 2024

I noticed that too, but I didn't see assemble.c including the dialign.h header so I didn't change the char there.

What parts of the build script did you add the following flags: -flto=4 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing?

from abyss.

eli-schwartz avatar eli-schwartz commented on June 14, 2024

I noticed that too, but I didn't see assemble.c including the dialign.h header so I didn't change the char there.

I don't think it has to? assemble.c has the (only) function implementation and that appears early on in the file before any actual uses.

What parts of the build script did you add the following flags: -flto=4 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing?

It was exported before running configure, so it applies to all sources.

from abyss.

eli-schwartz avatar eli-schwartz commented on June 14, 2024

Keep in mind that what LTO is doing here is simply being a massively global optimization pass that is able to keep track of the entire linked program, including full type info, all at the same time. This means that it can double check that the symbol from assemble.c is compatible with the prototype in dialign.h and the additional prototype in museq.c

Since they are all referring to the same outputted machine code symbol anyway, they have to be compatible or the compiler might generate faulty code. Often, this passes silently if prototypes are incorrect. Due to the greatly expanded tracking capabilities afforded by the LTO optimizer, it is simply able to provide better diagnostics and uncover otherwise very hard to find issues.

from abyss.

github-actions avatar github-actions commented on June 14, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your interest in ABySS!

from abyss.

lcoombe avatar lcoombe commented on June 14, 2024

Any updates on this, @jwcodee ?

from abyss.

github-actions avatar github-actions commented on June 14, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your interest in ABySS!

from abyss.

lcoombe avatar lcoombe commented on June 14, 2024

Any updates on this, @jwcodee?

from abyss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.