Project

General

Profile

Bug #297

make error in matlab-genomix for matlab 2020b

Added by Max Kivits 13 days ago. Updated 10 days ago.

Status:
New
Priority:
Normal
Assignee:
-

Description

Martin Jacquet asked me to open this issue.

When running $ make update-<pkgset-name> in step 11 of the installation section in the ART documentation, using matlab 2020b, I get the following:

I have verified the path to the Matlab installation in the robotpkg.conf file is correct.

I have included the full configure.log file from therobotpkg/supervision/matlab-genomix/work.#/configure.log directory.

In the meantime I have got it to work on matlab 2020a, so this seems to be an issue related to the matlab version. Hopefully this information is useful and the bug can be squashed.


Files

error15FEB.png (481 KB) error15FEB.png Max Kivits, 2021-02-15 11:13
configure.log (7.18 KB) configure.log Max Kivits, 2021-02-15 11:16
config.log (31.9 KB) config.log Max Kivits, 2021-02-16 10:45
configure.log (7.12 KB) configure.log Max Kivits, 2021-02-17 14:08
config.log (27.2 KB) config.log Max Kivits, 2021-02-17 14:08
robotpkg.conf (9.95 KB) robotpkg.conf Max Kivits, 2021-02-17 14:09
#1

Updated by Anthony Mallet 12 days ago

I have included the full configure.log file from
the robotpkg/supervision/matlab-genomix/work.#/configure.log
directory.

It shows that there is a linking issue, but in order to know which
issue precisely, could you attach the "config.log" file found in the
build directory?

It should be found in the following directory:
robotpkg/supervision/matlab-genomix/work.#/matlab-genomix-1.8.4/config.log

In the meantime I have got it to work on matlab 2020a, so this seems
to be an issue related to the matlab version. Hopefully this
information is useful and the bug can be squashed.

OK, this looks a bit similar to an issue with matlab-2020b and gcc-7
on ubuntu-18.04. However, since you are running gcc-9 on ubuntu-20.04,
I need to see the config.log file to check what is the error exactly.

#2

Updated by Max Kivits 12 days ago

The config file was deleted and I am having trouble reproducing the error. Since I have got it working using matlab 2020a, it also installs when switching back to 2020b in the robotpkg.conf file. I have found that including simulation/mrsim-gazebo does cause issues and therefore produces this config.log file. I hope this can still be used!

#3

Updated by Anthony Mallet 11 days ago

Thanks.

However, this config.log file is useless here since it doesn't come
from the same package (and it has no error either, by the way).

If you have an issue with mrsim-gazebo, please open an issue there:
https://git.openrobots.org/projects/mrsim-gazebo/issues

#4

Updated by Max Kivits 10 days ago

Sorry for the confusion, I managed to reproduce the error by deinstalling matlab-genomix and attempting to reinstall using matlab 2020b in the robotpkg.conf file. I have included the relevant files, the error is listed below:

===> Configuring for matlab-genomix-1.8.4
=> Modifying GNU configure scripts to avoid --recheck
=> Disabling fatal errors with C++ preprocessor in GNU configure scripts
configure: error: please set MATLAB variable

An unexpected error occured.  The last 10 log lines are shown below.
| checking for /usr/bin/gcc option to accept ISO C89... (cached) none needed
| checking whether /usr/bin/gcc understands -c and -o together... (cached) yes
| checking dependency style of /usr/bin/gcc... (cached) gcc3
| checking for ranlib... (cached) ranlib
| checking for library containing getaddrinfo... none required
| checking mex.h usability... yes
| checking mex.h presence... yes
| checking for mex.h... yes
| checking for mxGetString in -lmx... no
| configure: error: please set MATLAB variable

Hopefully this can be used to identify the problem, and matlab-genomix can be used with matlab 2020b

#5

Updated by Anthony Mallet 10 days ago

OK, so the same issue arises with matlab-2020b:
  • with gcc-7 and gcc-8 on ubuntu-18.04
  • with gcc-9 on ubuntu-20.04

So far I have not found a precise explanation nor a workaround,
especially since I have access to matlab-2019b only. I initially
thought it was a version incompatibility but this would be weird that
matlab-2020b is incompatible with ubuntu-20.04.

I will still try to understand more precisely what is happening.

#6

Updated by Anthony Mallet 10 days ago

In order to understand better, could you please run this and report what it
says?

objdump -TC /home/max/matlab/2020b/sys/os/glnxa64/libstdc++.so.6 | grep thread_atexit

#7

Updated by Max Kivits 10 days ago

Here is the output:

$ objdump -TC /home/max/matlab/2020b/sys/os/glnxa64/libstdc++.so.6 | grep thread_atexit
0000000000000000      DF *UND*  0000000000000000  <corrupt>   __cxa_thread_atexit_impl
000000000008ff30 g    DF .text  0000000000000005  CXXABI_1.3.7 __cxa_thread_atexit

Also available in: Atom PDF