Giter Site home page Giter Site logo

: c cpp_installation.md about content HOT 5 CLOSED

tege17 avatar tege17 commented on June 22, 2024
: c cpp_installation.md

from content.

Comments (5)

jackorp avatar jackorp commented on June 22, 2024

This does not seem to be a problem of Fedora but rather something you did judging by the provided information.

On a fresh F38 image I am able to install gcc-c++ as described and then compile and run the following program like so:

$ sudo dnf install -y gcc-c++
$ cat hello.c
#include <iostream>

int main() {
  std::cout << "Hello" << std::endl;
  return 0;
}
$ g++ -std=c++14 ./hello.c
$ echo $?
0
$  ./a.out
Hello

I am noticing that the package that provides the gnu/stubs-64.h header is actually available after I install the gcc-c++ as described in the guide. From my POV the instructions are still right at least for a minimal environment.

I am curious how did your install of the compiler miss out on the glibc-devel package.
What version of Fedora Linux are you using? Perhaps it is not reproducible on rawhide but rather the lower Fedora versions.

I agree with you that probably adding the "magical" sudo dnf group install "C Development Tools and Libraries" could be appropriate for the C and C++ sections.

from content.

tege17 avatar tege17 commented on June 22, 2024

from content.

jackorp avatar jackorp commented on June 22, 2024

This is surely unrelated, but indicates that the compiler/library deps are
not done right.

That is matter of opinion IMHO. The x86_64 and i686 (64bit and 32bit respectively) are 2 "different" sets of architectures in Fedora and I'd say 32bit is rarely needed these days for most use cases, so the default install is x86_64. For 32bit packages you can always append .i686 to receive the correct deps. In our example here you can run: $ sudo dnf install gcc-c++.i686 and you'll receive the 32bit capable compiler. In any case, glibc-devel should've been installed, and is pulled in as a dependency of gcc-c++ in a fresh F37 container.

from content.

tege17 avatar tege17 commented on June 22, 2024

from content.

jackorp avatar jackorp commented on June 22, 2024

Thanks for collaborating. We cannot solve it from the side of Fedora Developer Portal.

Consider asking the community here: https://ask.fedoraproject.org/ , people there might know much better what is going on or maybe see about better way of providing the dependencies for automated testing.

from content.

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.