[haiku-development] Re: Help regarding GSoC idea : Tracker add-on for a version control system

  • From: Hrishi Hiraskar <hrishihiraskar@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 08 Mar 2018 10:22:43 +0000

Finally, compilation successsfull :D

I removed the boost/lexical_cast from the code. Now, I can compile MoleSVN
with gcc2.

But now I have a different problem.
I copied the executable to ~/config/non-packaged/add-ons/Tracker/
Now I get MoleSVN in Tracker Addons

But on selecting it, following error is shown:
        Error Symbol not found loading Add-On MoleSVN

Any idea on why is this error occuring???

On Thu, Mar 8, 2018 at 2:11 PM Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>
wrote:

8 mars 2018 07:25 "Hrishi Hiraskar" <hrishihiraskar@xxxxxxxxx> a écrit:

So how can I compile with gcc2 and boost? Is it even possible somehow?

Not with a current version of Boost. However, it seems the only piece used
is <boost/lexical_cast.hpp>
It may be possible to use just that .hpp file, maybe from an old Boost
version, to get this working.

It may be simpler as a first step to disable the affected code and try to
get the other parts building and running.
Maybe boost is easily removed from the project and replaced with something
else?

Or can we compile add on with modern gcc?

No, because the add-on will be loaded inside Tracker, and Tracker is built
with gcc2.
However, it seems MoleSVN has both an add-on and a separate executable, in
that case, it should be possible to build the executable with gcc5, and
just the add-on with gcc2.

Another option is to first get things to work with the 64-bit version of
Haiku, where everything is built with gcc5. But this may lead to other
compilation problems if the MoleSVN code isn't 64-bit safe.

I tried to compile it with gcc_x86 (version 5.4.0), but I got following
output:

/boot/system/develop/tools/x86/bin/../lib/gcc/i586-pc-haiku/5.4.0/../../../../i586-pc-haiku/bin/ld:
cannot find crti.o: No such file or directory

/boot/system/develop/tools/x86/bin/../lib/gcc/i586-pc-haiku/5.4.0/../../../../i586-pc-haiku/bin/ld:
cannot find start_dyn.o: No such file or directory

/boot/system/develop/tools/x86/bin/../lib/gcc/i586-pc-haiku/5.4.0/../../../../i586-pc-haiku/bin/ld:
cannot find init_term_dyn.o: No such file or directory

/boot/system/develop/tools/x86/bin/../lib/gcc/i586-pc-haiku/5.4.0/../../../../i586-pc-haiku/bin/ld:
cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status

I see that these files are in /boot/system/develop/lib/, but adding this
to library path didn't
help as well.
Any idea on how this can be fixed?

The files in /boot/system/develop/lib/ are for gcc2 only. The proper files
should be in /boot/system/develop/lib/x86 for gcc5.
Make sure you have the haiku_x86_devel package installed?

--
Adrien.


Other related posts: