GithubHelp home page GithubHelp logo

1.5: build fsails about procdump-for-linux HOT 11 CLOSED

kloczek avatar kloczek commented on June 17, 2024
1.5: build fsails

from procdump-for-linux.

Comments (11)

MarioHewardt avatar MarioHewardt commented on June 17, 2024 1

It depends on what the issue is, could be a false positive in the static analysis when LTO is enabled. I'll look into it.

from procdump-for-linux.

MarioHewardt avatar MarioHewardt commented on June 17, 2024

Hi, thanks for reporting this? Which version of gcc are you using (gcc --version)? We use gcc 10 as the base line which builds just fine. With the recent security hardening changes, if you're running a version greater than 10, it's possible that we have new analysis warnings pop up which of course should be fixed. If you are interested in taking a look at fix let me know otherwise, I can pick this up.

from procdump-for-linux.

MarioHewardt avatar MarioHewardt commented on June 17, 2024

Also, if you can let me know which distro/version you are using?

from procdump-for-linux.

kloczek avatar kloczek commented on June 17, 2024

I'm using gcc 13.1.1.
I'm using my own distro however that version of gcc you can find in Fedora rawhide.

from procdump-for-linux.

MarioHewardt avatar MarioHewardt commented on June 17, 2024

I just tried this on my Fedora Rawhide (Linux version 6.3.0-0.rc6.20230414git44149752e998.53.fc39.x86_64 (mockbuild@a8b1e6fc26e547649f489eb3d5d335f7) and it compiled fine. Granted, it's not the latest but the gcc version is the same as yours:

gcc (GCC) 13.1.1 20230511 (Red Hat 13.1.1-2)
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

from procdump-for-linux.

MarioHewardt avatar MarioHewardt commented on June 17, 2024

Did you change anything in the Makefile? I can see some build errors (different than yours) if I change the optimization level but that should always be set to -O2.

from procdump-for-linux.

kloczek avatar kloczek commented on June 17, 2024

Nope.
As source I;m using tar autogenerated from git tag.
[-Werror=analyzer-fd-leak] error has nothing to do with optimisation options.

from procdump-for-linux.

MarioHewardt avatar MarioHewardt commented on June 17, 2024

It appears that your environment enables link time optimizations (-flto=auto) which causes the above. As a test, try removing that flag.

Now that I have a repro I can investigate and see what the issue is when -flto=auto is set.

from procdump-for-linux.

kloczek avatar kloczek commented on June 17, 2024

So ProcDump is not LTO rerady? 🤔

from procdump-for-linux.

kloczek avatar kloczek commented on June 17, 2024

Hmm so on generate prod binaries is used some static analyse? 🤔

from procdump-for-linux.

MarioHewardt avatar MarioHewardt commented on June 17, 2024

By default, static analysis is always turned on. You are free to remove it if you so choose (just remove the -fanalyzer from the Makefile). Static analysis doesn't have any effect on the built binaries.

from procdump-for-linux.

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.