Giter Club home page Giter Club logo

Comments (5)

 avatar commented on July 21, 2024

I was wondering if anybody had any thoughts about what the problem is. I'd be grateful for any suggestion of things to try.

I do find this puzzling, as I'm sure that the demos have all been tested before.

from ada_drivers_library.

lambourg avatar lambourg commented on July 21, 2024

Note that ubuntu is not part of the supported linux targets.

Now, what is the output of: ldd /libexec/gcc/arm-eabi/4.9.4/liblto_plugin.so ?

from ada_drivers_library.

 avatar commented on July 21, 2024

Thank you for letting me know - I thought that linux was supported, I'd not known Ubuntu wasn't.

gprbuild doesn't work on the Raspberry Pi, and it doesn't work on the Mac, so Ubuntu seemed the next best bet.

There isn't a libexec directory, but:

ldd ./Ada_Drivers_Library/examples/liblto_plugin.so
linux-gate.so.1 => (0xb7740000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb755b000)
/lib/ld-linux.so.2 (0x800a7000)

ldd /media/sf_Ada/Ada_Drivers_Library/examples/balls/liblto_plugin.so
linux-gate.so.1 => (0xb772d000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7548000)
/lib/ld-linux.so.2 (0x80061000)

This looks wrong to me - this should be an arm-eabi library, shouldn't it?

So there's a problem with the build. Is that correct?

Actually, looking at the install readme, I see ( in arm-elf-linux/adagpl-2016/gnatgpl )
"
GNAT GPL 2016 - GNAT compilation system

This version of GNAT GPL is officially supported on the
following hosts. Please see the "Special Notes" section
immediately following the targets section for special
instructions relevant to specific platforms.

PC/x86 and x86_64

  • Windows Vista Business, 7, 8, 8.1, and 10
  • Windows Server 2003, 2008, 2008R2 and 2012
  • Red Hat Enterprise Linux 5, 6 and 7
  • SuSE Linux Enterprise Server 11 and 12
  • Ubuntu 14.04 LTS, 16.04 LTS
  • Mac OS X Mavericks, Yosemite, El Capitan
    "

from ada_drivers_library.

lambourg avatar lambourg commented on July 21, 2024

Ah, fine, that's new indeed.

Concerning your issue, it has nothing to do with the Ada Drivers library, but has to do with your gnat installation: liblto_plugin.so is a gcc plugin, so is a host library.

I really don't know where your liblto_plugin file present in your example directory comes from, but after a proper gnat installation it should be present in (gnat install dir)/libexec/gcc/arm-eabi/4.9.4/liblto_plugin.so

from ada_drivers_library.

Fabien-Chouteau avatar Fabien-Chouteau commented on July 21, 2024

@Fustbariclation I can confirm that GNAT GPL 2016 is working on Ubuntu (version below), so this must be a installation/setup issue.

liblto_plugin.so is an x86 library used by the compiler, you should not try to put it in your ARM project files. There must be a reason why the compiler can't find it.

I will close this issue because it's outside the scope of this project.

chouteau@: ~/ -> lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04.5 LTS Release: 12.04 Codename: precise chouteau@: ~/ -> uname -a Linux [...] 3.5.0-43-generic #66~precise1-Ubuntu SMP Thu Oct 24 14:52:23 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux chouteau@ ~/

from ada_drivers_library.

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.