by doragasu1 » Wed Jan 28, 2015 11:01 am
I gave it another try, but I'm out of luck. This is the strategy I followed:
1. Create a clean chroot: sudo makearchroot chroot/root base base-devel sudo
2. Download Debian jessie packages for gcc, gnat, gnat-base, libgnat, libgnatprj, libgnatvsn. Uncompress the files.
3. Symlink gcc-4.9, gcc-ranlib-4.9, etc. removing the "-4.9" and copy the files into the chroot.
4. Edit the abs PKGBUILD, commenting out the makedepends and doxygen lines.
5. From the PKGBUILD directory: sudo makechrootpkg -cr ../chroot
At the first try, building failed because cc1 was not found. Then I tried symlinking /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/cc1 to /usr/bin/cc1.
The second try complained about missing liblto_plugin.so library, so again I symlinked /usr/lib/x86_64-unknown-linux-gnu/4.9.2/liblto_plugin.so to /usr/lib/gcc/x86_64-linux-gnu/4.9/liblto_plugin.so.
The third try trown this error: "/usr/bin/ld: this linker was not configured to use sysroots".
And this is where I don't know what else to do... I suspect the problem may be caused because I'm mixing two different versions of gcc (4.9.2 and 4.9.1) using different directory structures, but I don't know how to continue...
EDIT: As any awake reader may have noticed, I'm trying to build it on x86_64 architecture. Once it builds, It should be easy moving to arm, as Debian packages are also available for armhf.