Hello,

A new question has been asked in "Compiling MariaDB From Source" by 
openiduser33:
--------------------------------
I'm trying to compile MariaDB on Ubuntu 13.10. I've followed all the directions 
here on the KB in regards to compiling. I meet all the package requirements 
listed.

This is the output where make fails:

Linking CXX executable tdb-recover
    cd 
/home/chris/web/servers/mariadb/src/mariadb-5.5.34/storage/tokudb/ft-index/ft 
&& /usr/bin/cmake -E cmake_link_script CMakeFiles/tdb-recover.dir/link.txt 
--verbose=1
    /usr/bin/c++   -std=c++11 -Wall -Werror -Wcast-align -Wshadow 
-Wmissing-format-attribute -Wpointer-arith -Wmissing-declarations 
-Wno-missing-noreturn -Wextra -Wno-error=strict-overflow -Wpacked 
-fno-exceptions -fno-rtti -Wno-error=missing-format-attribute 
-Wmissing-format-attribute -Wlogical-op -Wtrampolines -Wswitch -Winit-self 
-Wstrict-null-sentinel -Wno-missing-field-initializers -Wall  
-Wno-unused-parameter -fno-implicit-templates -fno-exceptions -fno-rtti 
-fimplicit-templates -flto -fuse-linker-plugin -O2 -g -DNDEBUG -DDBUG_OFF -g 
-O3 -UNDEBUG  -g -fuse-linker-plugin -Wno-error=strict-overflow   
CMakeFiles/tdb-recover.dir/tdb-recover.cc.o  -o tdb-recover  -lpthread 
libft_static.a ../util/libutil_static.a ../../../../zlib/libzlib.a 
.././xz/lib/liblzma.a ../portability/libtokuportability_static.a -lpthread -ldl 
-lrt 
    
/home/chris/web/servers/mariadb/src/mariadb-5.5.34/storage/tokudb/ft-index/ft/ft-ops.cc:
 In function ‘ft_leaf_run_gc’:
    
/home/chris/web/servers/mariadb/src/mariadb-5.5.34/storage/tokudb/ft-index/ft/ft-ops.cc:2261:26:
 error: ‘leaf_entry’ may be used uninitialized in this function 
[-Werror=maybe-uninitialized]
         if (leaf_entry->type != LE_MVCC) {
                          ^
    lto1: all warnings being treated as errors
    lto-wrapper: /usr/bin/g++-4.8.real returned 1 exit status
    /usr/bin/ld.bfd.real: lto-wrapper failed
    collect2: error: ld returned 1 exit status

Pastebin for easier reading: http://pastebin.com/wGzHpD2p

I'm using the default compile option list posted here: 
https://mariadb.com/kb/en/generic-build-instructions/
The only thing I've changed is the prefix.
--------------------------------

To view or answer this question please visit: 
http://mariadb.com/kb/en/build-fails-at-linking-cxx-executable-tdb-recover/

_______________________________________________
Mailing list: https://launchpad.net/~maria-discuss
Post to     : maria-discuss@lists.launchpad.net
Unsubscribe : https://launchpad.net/~maria-discuss
More help   : https://help.launchpad.net/ListHelp

Reply via email to