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

  • From: "Adrien Destugues" <pulkomandy@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 08 Mar 2018 08:41:02 +0000

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: