Project

General

Profile

Actions

Bug #297

open

make error in matlab-genomix for matlab 2020b

Added by Max Kivits 3 months ago. Updated 17 days ago.

Status:
New
Priority:
Normal

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
DB-config.log (27 KB) DB-config.log Davide Bicego, 2021-04-21 12:22
Actions #1

Updated by Anthony Mallet 3 months 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.

Actions #2

Updated by Max Kivits 3 months 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!

Actions #3

Updated by Anthony Mallet 3 months 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

Actions #4

Updated by Max Kivits 3 months 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

Actions #5

Updated by Anthony Mallet 3 months 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.

Actions #6

Updated by Anthony Mallet 3 months 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

Actions #7

Updated by Max Kivits 3 months 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
Actions #8

Updated by Davide Bicego 22 days ago

Dear Anthony,

I am experiencing the very same issue, running Matlab R2020b on Ubuntu 18.04.
Do you have any news regarding this?
I am attaching my "config.log" file ("DB-" as prefix) found in the build directory and copying the output of the objdump command in the following

dbicego@prometheus:/usr/local/MATLAB/R2020b/sys/os/glnxa64$ objdump -TC libstdc++.so.6 | grep thread_atexit
0000000000000000      DF *UND*    0000000000000000              __cxa_thread_atexit_impl
000000000008ff30 g    DF .text    0000000000000005  CXXABI_1.3.7 __cxa_thread_atexit

Actions #9

Updated by Anthony Mallet 17 days ago

The problem is that the libstdc++ that comes with matlab-2020b seems a
bit weird and/or incompatible, as indicated by the "<corrupt>" tag
that is seen in the objdump output.

I have no workaround so far, and I don't have any matlab-2020b
installation to test either.

Actions

Also available in: Atom PDF