Make error when building FileZilla_3.34.0-rc1

Need help with FileZilla Client? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
cheekybuddha
503 Bad sequence of commands
Posts: 19
Joined: 2008-04-10 15:17
First name: d
Last name: m

Make error when building FileZilla_3.34.0-rc1

#1 Post by cheekybuddha » 2018-06-09 08:50

Hi,

I'm trying to build FileZilla_3.34.0-rc1_src.
Ubuntu 16.04

configure passed OK
During make I get the following errors:

Code: Select all

# ...
server.cpp: In function ‘std::tuple<std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > > GetDefaultHost(ServerProtocol)’:
server.cpp:819:40: error: converting to ‘std::tuple<std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >’ from initializer list would use explicit constructor ‘constexpr std::tuple<_T1, _T2>::tuple(_U1&&, _U2&&) [with _U1 = const wchar_t (&)[22]; _U2 = const wchar_t (&)[1]; <template-parameter-2-3> = void; _T1 = std::__cxx11::basic_string<wchar_t>; _T2 = std::__cxx11::basic_string<wchar_t>]’
   return {L"file.core.windows.net", L""};
                                        ^
server.cpp:821:40: error: converting to ‘std::tuple<std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >’ from initializer list would use explicit constructor ‘constexpr std::tuple<_T1, _T2>::tuple(_U1&&, _U2&&) [with _U1 = const wchar_t (&)[22]; _U2 = const wchar_t (&)[1]; <template-parameter-2-3> = void; _T1 = std::__cxx11::basic_string<wchar_t>; _T2 = std::__cxx11::basic_string<wchar_t>]’
   return {L"blob.core.windows.net", L""};
                                        ^
server.cpp:823:41: error: converting to ‘std::tuple<std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >’ from initializer list would use explicit constructor ‘constexpr std::tuple<_T1, _T2>::tuple(_U1&&, _U2&&) [with _U1 = const wchar_t (&)[23]; _U2 = const wchar_t (&)[1]; <template-parameter-2-3> = void; _T1 = std::__cxx11::basic_string<wchar_t>; _T2 = std::__cxx11::basic_string<wchar_t>]’
   return {L"storage.googleapis.com", L""};
                                         ^
server.cpp:825:35: error: converting to ‘std::tuple<std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >’ from initializer list would use explicit constructor ‘constexpr std::tuple<_T1, _T2>::tuple(_U1&&, _U2&&) [with _U1 = const wchar_t (&)[17]; _U2 = const wchar_t (&)[1]; <template-parameter-2-3> = void; _T1 = std::__cxx11::basic_string<wchar_t>; _T2 = std::__cxx11::basic_string<wchar_t>]’
   return {L"s3.amazonaws.com", L""};
                                   ^
make[3]: *** [libengine_a-server.o] Error 1
Makefile:1317: recipe for target 'libengine_a-server.o' failed
make[3]: Leaving directory '/home/dm/install/FileZilla3/src/engine'
make[2]: *** [all] Error 2
Makefile:541: recipe for target 'all' failed
make[2]: Leaving directory '/home/dm/install/FileZilla3/src/engine'
make[1]: *** [all-recursive] Error 1
Makefile:436: recipe for target 'all-recursive' failed
make[1]: Leaving directory '/home/dm/install/FileZilla3/src'
make: *** [all-recursive] Error 1
Makefile:619: recipe for target 'all-recursive' failed
2018-06-09 09:42: make error
Any pointers on how I can rectify this?

TIA,

d

User avatar
botg
Site Admin
Posts: 35558
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Make error when building FileZilla_3.34.0-rc1

#2 Post by botg » 2018-06-09 12:44

Which compiler (product and version) are you using?

cheekybuddha
503 Bad sequence of commands
Posts: 19
Joined: 2008-04-10 15:17
First name: d
Last name: m

Re: Make error when building FileZilla_3.34.0-rc1

#3 Post by cheekybuddha » 2018-06-09 14:11

Code: Select all

~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.1-11ubuntu2~16.04' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.4.1 20170519 (Ubuntu 5.4.1-11ubuntu2~16.04)

cheekybuddha
503 Bad sequence of commands
Posts: 19
Joined: 2008-04-10 15:17
First name: d
Last name: m

Re: Make error when building FileZilla_3.34.0-rc1

#4 Post by cheekybuddha » 2018-06-11 09:48

Hi,

Any thoughts?

Do you need any more information from me?

TIA,

d

User avatar
botg
Site Admin
Posts: 35558
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Make error when building FileZilla_3.34.0-rc1

#5 Post by botg » 2018-06-11 13:58

I've committed a possible fix.

Note that your compiler is extremely old, it the near future you will need to use a C++17 capable compiler to build FileZilla. Consider upgrading to a more modern compiler.

cheekybuddha
503 Bad sequence of commands
Posts: 19
Joined: 2008-04-10 15:17
First name: d
Last name: m

Re: Make error when building FileZilla_3.34.0-rc1

#6 Post by cheekybuddha » 2018-06-11 15:56

Hi,

Thanks for the response.

I downloaded 2018-06-11 source snapshot from here. Is that the right one?

With that one, same errors as before on build :(

I'll look into upgrading my compiler.

Thanks again,

d

cheekybuddha
503 Bad sequence of commands
Posts: 19
Joined: 2008-04-10 15:17
First name: d
Last name: m

Re: Make error when building FileZilla_3.34.0-rc1

#7 Post by cheekybuddha » 2018-06-11 17:10

So, I upgraded gcc/g++ to version 8

Code: Select all

~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 8.1.0-5ubuntu1~16.04' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 8.1.0 (Ubuntu 8.1.0-5ubuntu1~16.04) 

~$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 8.1.0-5ubuntu1~16.04' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 8.1.0 (Ubuntu 8.1.0-5ubuntu1~16.04)
It built FileZilla_3.34.0-rc1 fine. There were some warnings

However, when I try to run:

Code: Select all

~$ filezilla
Reading locale option from /home/me/.config/filezilla/filezilla.xml
Fatal Error: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1009,wx containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1011,wx containers,compatible with 2.8).
Aborted (core dumped)
So, I tried gcc/g++ 7

Code: Select all

~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.3.0-21ubuntu1~16.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.3.0 (Ubuntu 7.3.0-21ubuntu1~16.04) 

~$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.3.0-21ubuntu1~16.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.3.0 (Ubuntu 7.3.0-21ubuntu1~16.04)
Same result :(

I have wx widgets 3 installed:

Code: Select all

wx-common:
  Installed: 3.0.4-1.xenial
wx3.0-headers:
  Installed: 3.0.4-1.xenial
wx3.0-i18n:
  Installed: 3.0.4-1.xenial
However, this is what I used to build FileZilla with the old compiler. :hammer:

Let me know if build logs would be helpful.

Also, I rebuilt libfilezilla-0.12.3 each time with the respective compilers

User avatar
botg
Site Admin
Posts: 35558
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Make error when building FileZilla_3.34.0-rc1

#8 Post by botg » 2018-06-11 23:05

You also need to rebuild wxWidgets if you change your compiler.

Post Reply