Giter Club home page Giter Club logo

Comments (6)

pellizzetti avatar pellizzetti commented on July 21, 2024 2

Setting GCC environment variables as such solved it for me:

export CPPFLAGS="-U_FORTIFY_SOURCE"
export CFLAGS=" -fcommon"

from i3.

deionizedoatmeal avatar deionizedoatmeal commented on July 21, 2024

I've been struggling with this issue on my arch system. My workaround was to use Clang as the compiler instead of GCC and then everything built and installed fine.

I don't really know much C so I really have no idea why this would be the case. Maybe it has something to do with GCC not fully supporting the C99 standard, but don't quote me on that.

Anyways the way I did this just to install clang, then change my environment variables:

export CC=/usr/bin/clang
export CXX=/usr/bin/clang++

and then build from source as you would normally with i3.

Hope this helps.

from i3.

dunestorm333 avatar dunestorm333 commented on July 21, 2024

Same problem, can't build.

@deionizedoatmeal Unfortunately your suggestion doesn't work as I get:

configure: error: C compiler cannot create executables

from i3.

Syycorax avatar Syycorax commented on July 21, 2024

Same problem :/
As @dunestorm333 The workaround don't work for me, get this
export CXX=/usr/bin/clang++

from i3.

Nycz-lab avatar Nycz-lab commented on July 21, 2024

same problem however when i use clang i get "linker command failed with exit code 1" if anyone has a solution pls msg me

from i3.

misss13 avatar misss13 commented on July 21, 2024

Setting GCC environment variables as such solved it for me:

export CPPFLAGS="-U_FORTIFY_SOURCE"
export CFLAGS=" -fcommon"

Works for me ^^

from i3.

Related Issues (16)

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.