Giter Site home page Giter Site logo

Build fails with LTO about libdap4 HOT 2 OPEN

eli-schwartz avatar eli-schwartz commented on July 30, 2024
Build fails with LTO

from libdap4.

Comments (2)

eli-schwartz avatar eli-schwartz commented on July 30, 2024

It also fails with strict-aliasing violations, specifically in the testsuite.

x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..  -I../GNU -I.. -I../tests  -I/usr/include/libxml2 -I/usr/include/tirpc   --std=c++14   -g -O2  -march=native -fstack-protector-all -O2 -pipe -fdiagnostics-color=always -frecord-gcc-switches -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-clash-protection -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -Wformat -Werror=format-security -std=c++14 -c -o ddsT.o ddsT.cc
ddsT.cc: In member function ‘void ddsT::ddsT_test()’:
ddsT.cc:239:44: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
  239 |                 vs_iter &vsi = (vs_iter &) vsc;
      |                                            ^~~
ddsT.cc:274:44: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
  274 |                 vs_iter &vsi = (vs_iter &) vsc;
      |                                            ^~~
ddsT.cc:302:44: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
  302 |                 vs_iter &vsi = (vs_iter &) vsc;
      |                                            ^~~
ddsT.cc:303:45: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
  303 |                 vs_iter &vsi2 = (vs_iter &) vsc2;
      |                                             ^~~~
cc1plus: some warnings being treated as errors

Originally reported downstream: https://bugs.gentoo.org/878895

from libdap4.

jgallagher59701 avatar jgallagher59701 commented on July 30, 2024

OK, I'll look into this. Thanks.

from libdap4.

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.