Compile error

Get help for specific problems
Posts: 11
Joined: 29 May 2010

hmury

At compilation I receive an error


/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `./.libs/libuuid.a(uuid_str.o)' is incompatible with i386:x86-64 output
./.libs/libuuid.a(uuid_str.o): In function `fmtint':
uuid_str.c:(.text+0xc9): undefined reference to `__umoddi3'
uuid_str.c:(.text+0xf4): undefined reference to `__udivdi3'
collect2: ld returned 1 exit status
make[1]: *** [uuid] Error 1
make[1]: Leaving directory `/Data/Soft/FreeFileSync/Sourcecode_v3.7/shared/ossp_uuid'
make: *** [osspUUID] Error 2


My system Linux Gentoo.
wxWidgets 2.8.11
*************************
Forgive for my English :)
User avatar
Site Admin
Posts: 7051
Joined: 9 Dec 2007

Zenju

OSSP_UUID has been replaced with v3.8. So it isn't worth the trouble anymore
as I'm using boost/UUID instead.

1. Replace file guid.cpp by [404, Invalid URL: http://www.file-upload.net/download-2593065/guid.cpp.html]
2. download boost package (www.boost.org) and place it into "shared/boost_1_x" folder. Actually the files required by UUID are sufficient.
User avatar
Site Admin
Posts: 7051
Joined: 9 Dec 2007

Zenju

BTW: The error above is becaus it is using object files compiled for 32-bit. A
"make clean, make" for OSSP_UUID might help as well.
Posts: 11
Joined: 29 May 2010

hmury

Now I try to compile version 3.8.
Result:
http://paste.org.ru/?xh6v9j
Thus wxGTK-2.8.11.0 it is installed.
Posts: 11
Joined: 29 May 2010

hmury

I am sorry, it I was inattentive...
In these logs - eselect wxwidgets - all solves.
The problem is solved, all is started and works!
Thanks for a fine product!
Posts: 11
Joined: 29 May 2010

hmury

New problem - after the launch of "Compare", a comparison of folders occurs,
but at the end of the program crashes with the message (in console):
"Terminate called after throwing an instance of 'Gtk:: IconThemeError'"
User avatar
Site Admin
Posts: 7051
Joined: 9 Dec 2007

Zenju

With v3.8 there are icons shown for each file using GTKMM. I can't say what
the problem is in this case. For a workaround, setting "ShowFileIcons="false""
for both sides within GlobalSettings.xml should help.
User avatar
Site Admin
Posts: 7051
Joined: 9 Dec 2007

Zenju

The crash is probably due to an uncaught exception "Gtk:: IconThemeError".
I've patched the icon buffer so that it should continue to run properly:

[404, Invalid URL: http://www.file-upload.net/download-2629200/iconBuffer.cpp.html]

Just replace this file and comile again.
Posts: 11
Joined: 29 May 2010

hmury

Yes, thanks, now all work fine
Posts: 11
Joined: 29 May 2010

hmury

Continuing the theme. Version 3.9:
http://paste.org.ru/?srly0g
User avatar
Site Admin
Posts: 7051
Joined: 9 Dec 2007

Zenju

The compilation procedure has changed with v3.9, see the updated Compile.txt.
Posts: 11
Joined: 29 May 2010

hmury

Unfortunately, with established boost v1.41.0 - the same error...
http://paste.org.ru/?hfl2f9
User avatar
Site Admin
Posts: 7051
Joined: 9 Dec 2007

Zenju

Boost::uuid is available not before boost version 1.42. But with regards to
bugfixes to the threading api I highly suggest compiling with the newest
version 1.44.
Posts: 11
Joined: 29 May 2010

hmury

Thanks, really, now all is compiled, but at start attempt:
"A segmentation error"...
User avatar
Site Admin
Posts: 7051
Joined: 9 Dec 2007

Zenju

I had the same issue. Please do a clean-up of boost before installing it:

./bootstrap.sh --prefix=/usr/local/ --with-libraries=thread
sudo ./bjam --clean install
sudo ./bjam install
Posts: 11
Joined: 29 May 2010

hmury

It would not be desirable to litter system with manual installation instead of
use of the manager of packages... While I will use 3.8, something is possible
in following versions will dare...
User avatar
Site Admin
Posts: 7051
Joined: 9 Dec 2007

Zenju

> litter system
You can use any other directory you like by specifying a different prefix.

> instead of use of the manager of packages
Problem is that the boost package is quite outdated on Ubuntu
Posts: 11
Joined: 29 May 2010

hmury

C the new version I again update this theme :)
Now so:
http://paste.org.ru/?ei58r5
boost-1.44.0, wxGTK-2.8.11
With what the present error can be connected?
User avatar
Site Admin
Posts: 7051
Joined: 9 Dec 2007

Zenju

> Warning: No config found to match:
This flag is causing the problem: " --static=yes"

Removing it from makefile should fix the problem which is that you try to
compile against a flavor of wxWidgets you have not built.

My bad, Compile.txt and Makefile do not correspond, I'll update Compile.txt
accordingly.
Posts: 11
Joined: 29 May 2010

hmury

Thanks for the help and for the best program!
All has turned out.
*************
Still wanted to ask about one moment. If the program is started not from SUDO
sometimes it takes off for time of process of synchronization and even more
often - at the moment of its termination. In the console thus:
Gtk:ERROR:gtkfilesystemmodel.c:746:gtk_file_system_model_sort: assertion
failed: (r == n_visible_rows)
User avatar
Site Admin
Posts: 7051
Joined: 9 Dec 2007

Zenju

>Gtk:ERROR:gtkfilesystemmodel.c
A quick google search revealed that quite a number of other applications
suffer from this issue. But I couldn't find any explanation how this can be
triggered or reproduced. So it seems to be a bug within GTK. GTK itself is
used by wxWidgets. So I fear there is not much I can do in my application
code. But to be sure I'd need a testcase describing how this behavior can be
reproduced. On my Ubuntu 32 bit machine this assert was not triggered (be it
with or without admin rights).

Anonymous

I had the same problem.... Could you please update the make file, so people
newbie like me would not have the same problems.