Git Product home page Git Product logo

gprconfig_kb's People

Contributors

anisimkov avatar arnaudcharlet avatar asarhaddon avatar briot avatar brobecke avatar burratoo avatar cedriclandet avatar cementitious avatar cyrillecomar avatar enzbang avatar fabien-chouteau avatar fedor-rybin avatar fredkonrad avatar gingold-adacore avatar glacambre avatar hainque avatar irvise avatar jeromeguittonadacore avatar joseruizadacore avatar kirtchev-adacore avatar lambourg avatar nikokrock avatar pat-rogers avatar peniblec avatar pmderodat avatar quentinochem avatar sebastianpoeplau avatar t-14 avatar turbogit avatar vcelier avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gprconfig_kb's Issues

can't find a native toolchain โ€“ problem with gcc -v

Hi, while bootstrapping gprbuild on arch linux I ran into "can't find a native toolchain for language 'ada'". Others have stumbled upon the same error: https://aur.archlinux.org/packages/xmlada/. The problem seems to be that the gcc version can not be found:

In /usr/share/cprconfig/compilers.xml, gcc -v is called and then grepped with "^gcc \S+ (\S+)".

Output of gcc -v (among other lines): gcc-Version 11.1.0 (GCC)

Output of gcc --version (first line): gcc (GCC) 11.1.0

When replacing gcc -v with gcc --version, the toolchain works just fine. I don't know if this is a problem with recent gcc versions or just arch linux or what the best solution would be without breaking support on other systems.

Issue with clang build

This issue is a follow-up of the ticket raised here: AdaCore/gprbuild#60

I experience issues with the clang support, which (randomly) replaces gcc if both are installed in /usr/bin.
To reporoduce the problem, I removed gcc and gnatgcc from /usr/bin in order to make sure that clang is triggered.

Create a simple project file:

 $ cat foo.gpr 
 project Foo is
    for Source_Dirs use  (".", "include");
    for Languages use ("C");
    for Main use ("main.c");
  end foo;

Add an include folder and add a dummy "hello.h" file (it can be empty).
Create main.c:

 $ cat main.c
  #include "hello.h"
  int main(void) { }

And run gprbuild to get the error:

$ gprbuild -v -P foo.gpr 
Changing to object directory of "Foo": "/root/tmp/"
/usr/bin/clang -c -x c -specs=/tmp/GNAT-TEMP-000004.TMP /root/tmp/main.c
clang: warning: argument unused during compilation: '-specs=/tmp/GNAT-TEMP-000004.TMP' [-Wunused-command-line-argument]
/root/tmp/main.c:1:10: fatal error: 'hello.h' file not found
#include "hello.h"
         ^~~~~~~~~

If you put gcc or gnatgcc back, the build works.

The problem arises with gprbuild from debian buster:

$ gprbuild --version
GPRBUILD Community 2018 (20180524) (x86_64-pc-linux-gnu)
Copyright (C) 2004-2018, AdaCore
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

gprbuild does not search lib64

The compilers.xml file searches in ../lib/ for adalib, however, many distros, on 64bit, it is in ../lib64. I am assuming that there are other options, but can it not search for ../lib* so that they can all be searched for properly.

This comes off the back of gcc-mirror/gcc@9467e73 which fixed a bug where TARGET defined in s-oscons.ads had '-gnu' appended to it compared to 'gcc -dumpmachine '. This caused gprbuild to fail in is search for an Ada runtime.

If the '(.+)?' fix can be made, then we can at last build software on 64bit system without going through hoops.

Cross Compilers Targeting i686 Linux Not Detected

To reproduce on Ubuntu 20.04:

  1. sudo apt-get install gnat-10-i686-linux-gnu gprbuild
  2. Run gprconfig
  3. Cross-compiler target is not detected despite i686-linux-gnu-gnatls being in my path

I think aarch64-linux-gnu- could be changed to .*-linux-gnu- in compilers.xml and cross.xml to fix most of the issue?

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.