Skip to content

webkit-gtk x86_64-pc-linux-gnu-g++: error: unrecognized command-line option ‘-stdlib=libstdc++’ #808

Description

@Jacekalex

My OS:
Linux version 5.10.83-g1 (root@localhost) (gcc (Gentoo Hardened 11.2.0 p1) 11.2.0, GNU ld (Gentoo 2.37_p1 p0) 2.37) #1 SMP PREEMPT Wed Dec 1 23:08:57 CET 2021

clang.conf options:
* /etc/portage/package.cflags/clang.conf -> net-libs/webkit-gtk: CXXFLAGS+=-stdlib=libstdc++ # error: use of undeclared identifier 'LC_ALL'

is incompatible with GCC-11.2.0.

Error:

    Change Dir: /var/tmp/portage/net-libs/webkit-gtk-2.32.4/work/webkit-gtk-2.32.4_build/CMakeFiles/CMakeTmp
    
    Run Build Command(s):/usr/bin/ninja cmTC_b0d8e && [1/2] Building CXX object CMakeFiles/cmTC_b0d8e.dir/testCXXCompiler.cxx.o
    FAILED: CMakeFiles/cmTC_b0d8e.dir/testCXXCompiler.cxx.o 
    /usr/bin/x86_64-pc-linux-gnu-g++   -march=native -O2 -pipe -DNDEBUG -march=native -O2 -pipe -stdlib=libstdc++ -Wl,-O1 -Wl,--as-needed -o CMakeFiles/cmTC_b0d8e.dir/testCXXCompiler.cxx.o -c testCXXCompiler.cxx
    x86_64-pc-linux-gnu-g++: error: unrecognized command-line option ‘-stdlib=libstdc++’
    ninja: build stopped: subcommand failed.

Cheers

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions