This week I had to face one but very weird problem. Each and every time I tried to compile and build MySQL server on Ubuntu 7.10 from source files the process ended up with errors. Most commonly it was Segmentation fault error but sometimes the OS just stopped responding (something like BSOD on Windows).
I followed the instructions on MySQL Installation Using a Source Distribution. The tools I use are newer than suggested there so I doubt they cause such an error. Also i tried to ./configure with different keys as suggested but with no luck. Now below you will see that the error occurs while compiling different sources. My concern is that the issue is with OS or my hardware. I was running memtest86 for a couple of hours and it says the RAM is ok. So after dozen of times doing cleaning and building I'm really close to give up and to reinstall the OS, but I hope there exist some more elegant workaround.
Actually I was able to get the header files I need and install MySQL server from binary but they are of version 6.0.4 and my intention was to use the most recent source files from development tree.
And here go the logs just before the error occured for MySQL 6.0.4 alpha (which actually should compile & build with no problems) and MySQL 6.0.6.
g++ -DHAVE_CONFIG_H -D_REENTRANT -D_PTHREADS -DENGINE -DSTORAGE_ENGINE -DNAMESPACE=Nfs -I. -I. -I../../include -I../../include -I../../include -I../../regex -I../../sql -I. -I./TransformLib -DMYSQL_DYNAMIC_PLUGIN -O3 -fno-implicit-templates -fno-exceptions -fno-rtti -fimplicit-templates -Wno-invalid-offsetof -fexceptions -MT ha_falcon_la-ha_falcon.lo -MD -MP -MF .deps/ha_falcon_la-ha_falcon.Tpo -c ha_falcon.cpp -fPIC -DPIC -o .libs/ha_falcon_la-ha_falcon.oha_falcon.cpp: In destructor 'StorageInterface::~StorageInterface()':ha_falcon.cpp:395: internal compiler error: Segmentation faultPlease submit a full bug report,with preprocessed source if appropriate.See <http://gcc.gnu.org/bugs.html> for instructions.For Debian GNU/Linux specific bug reporting instructions,see <file:///usr/share/doc/gcc-4.1/README.Bugs>.The bug is not reproducible, so it is likely a hardware or OS problem.make[3]: *** [ha_falcon_la-ha_falcon.lo] Error 1make[3]: Leaving directory `/home/muslim/Desktop/mysql-6.0.4-alpha/storage/falcon'make[2]: *** [all-recursive] Error 1make[2]: Leaving directory `/home/muslim/Desktop/mysql-6.0.4-alpha/storage/falcon'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/home/muslim/Desktop/mysql-6.0.4-alpha/storage'make: *** [all-recursive] Error 1
The same happens if I try to compile the source files from development tree for MySQL 6.0.6.
gcc -DDEFAULT_CHARSET_HOME=\"/usr/local\" -DDATADIR=\"/usr/local/var\" -DDEFAULT_HOME_ENV=MYSQL_HOME -DDEFAULT_GROUP_SUFFIX_ENV=MYSQL_GROUP_SUFFIX -DDEFAULT_SYSCONFDIR=\"/usr/local/etc\" -DSHAREDIR=\"/usr/local/share/mysql\" -DUNDEF_THREADS_HACK -DDONT_USE_RAID -I. -I../include -I../include -I../include -O3 -DUNIV_LINUX -MT ctype-utf8.lo -MD -MP -MF .deps/ctype-utf8.Tpo -c ctype-utf8.c -fPIC -DPIC -o .libs/ctype-utf8.o
ctype-utf8.c: In function 'my_casedn_str_utf8mb3':
ctype-utf8.c:3217: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see .
The bug is not reproducible, so it is likely a hardware or OS problem.
make[2]: *** [ctype-utf8.lo] Error 1
make[2]: Leaving directory `/home/muslim/Desktop/bk-client2.0/mysql6a/libmysql'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/muslim/Desktop/bk-client2.0/mysql6a/libmysql'
make: *** [all-recursive] Error 1
Report [2008-05-26 - 2008-05-02):
KEY ACCOMPLISHMENTS LAST WEEK
-- I spent most of the time setting up the operating system (Ubuntu 7.10), getting packages and tools that i need. After that I was trying to compile and build MySQL from source files and had some issues there. Anyway I was able to biuld and install my first plugin yay and it worked. But it was done a really weird way so I need to find another workaround. -- I have set up the blog and started posting there. And today that would be my third post. Not too much but it's only the beginning.
KEY TASKS THAT STALLED LAST WEEK
If you look at my tasks from the last week you see that I was hoping to move a little further than I am right now and end up this week with simple plugin loader. But unfortunately setting things up took more time than I expected. This only means that I have to work harder and spend more time on my project.
KEY CONCERNS
Now my concern (I'll be posting that to internals list) is about MySQL server building. After trying to build different versions I'm almost sure the problem is not with MySQL sources but with OS or my hardware (hope it's not the hardware). Everytime I try to compile and build it I get the weird segmentation fault error or the OS just stops responding.
TASKS IN THE UPCOMING WEEK
-- The most important is to make everything building without any unnecessary overhead. I hope I get a response from the community on that.-- Set up bazaar repository and get it working.-- Blogging and hopefully get the community feedback.-- Build the plugin loader.-- Post my issue with compilation to internals mailing list.-- Try out sandbox.
Комментариев нет:
Отправить комментарий