← Back to team overview

maria-developers team mailing list archive

Re: GSoC 2015: Indexes on Virtual Columns and Array Based UDFs


Hi, Richa!

On Mar 15, Richa Sehgal wrote:
> Dear Sergei and Maria community,
> Finally I have settled on one project: Indexing over virtual columns.
> I spent the entire day today trying to compile MariaDB in Ubuntu and
> reading the code. On reading code side, I spent some time in the
> /storage/myiasm/ : read fiels like mi_key.cc, mi_create.cc, ha_myisam and
> so on. Took a brief overview arounf _mi_make_key function. I also looked
> around update_virtual_fields() function.
> The code path is still not very clear to me - especially the transition
> point between sql folders to /storage folders. I chatted on #maria IRC and
> they gave an idea to run Maria in gdb mode. I tried compiling the code  it
> was almost successful! At the very final step, I got the following error:
> [ 98%] Built target thr_lock
> Linking CXX shared library libmysqlclient.so
> /usr/bin/ld: error:
> /home/shikhar/mariadb/maria/trunk/libmysql/libmysql_versions.ld:155:9:
> invalid use of VERSION in input file
> collect2: ld returned 1 exit status
> make[2]: *** [libmysql/libmysqlclient.so.18.0.0] Error 1
> make[1]: *** [libmysql/CMakeFiles/libmysql.dir/all] Error 2
> make: *** [all] Error 2
> I am not able to proceed now. I tred googling around, but could not find
> the fix. Can you please guide me in my next steps?

I've just tried to google for "mariadb invalid use of VERSION in input
file" and the very first match was the one that explains everything.

This is a bug in gold linker, see
https://sourceware.org/bugzilla/show_bug.cgi?id=16895 and

Use ld as a workaround.