You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm extracting a batch of FMUs on Ubuntu 20.04 it seems to work fine. Nevertheless while extracting it shows a warning that I would like to know if I can fix it or why it is happening. the warning is the following one
In file included from /usr/include/string.h:495,
from /media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c:30:
In function ‘strncpy’,
inlined from ‘findNameFile’ at /media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c:206:4:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c: In function ‘findNameFile’:
/media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c:206:4: note: length computed here
206 | strncpy(in_file, name, strlen(name));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/string.h:495,
from /media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c:30:
In function ‘strncpy’,
inlined from ‘getResourceLocation’ at /media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c:684:3:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c: In function ‘getResourceLocation’:
/media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c:684:50: note: length computed here
684 | strncpy(_c->fmuUnzipLocation, fmuLocation + 8, strlen(fmuLocation + 8)-10);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/string.h:495,
from /media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c:30:
In function ‘strncpy’,
inlined from ‘getResourceLocation’ at /media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c:673:3:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c: In function ‘getResourceLocation’:
/media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c:673:50: note: length computed here
673 | strncpy(_c->fmuUnzipLocation, fmuLocation + 6, strlen(fmuLocation + 6)-10);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/string.h:495,
from /media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c:30:
In function ‘strncpy’,
inlined from ‘getResourceLocation’ at /media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c:615:3:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c: In function ‘getResourceLocation’:
/media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c:615:50: note: length computed here
615 | strncpy(_c->fmuUnzipLocation, fmuLocation + 5, strlen(fmuLocation + 5)-10);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/string.h:495,
from /media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c:30:
In function ‘strncpy’,
inlined from ‘getResourceLocation’ at /media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c:627:4:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c: In function ‘getResourceLocation’:
/media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c:627:51: note: length computed here
627 | strncpy(_c->fmuUnzipLocation, fmuLocation + 6, strlen(fmuLocation + 6)-10);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/string.h:495,
from /media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c:30:
In function ‘strncpy’,
inlined from ‘getResourceLocation’ at /media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c:639:5:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c: In function ‘getResourceLocation’:
/media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c:639:52: note: length computed here
639 | strncpy(_c->fmuUnzipLocation, fmuLocation + 7, strlen(fmuLocation + 7)-10);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/string.h:495,
from /media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c:30:
In function ‘strncpy’,
inlined from ‘getResourceLocation’ at /media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c:652:6:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c: In function ‘getResourceLocation’:
/media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/SourceCode/v20/EnergyPlus/temp-SF_high_38.c:652:53: note: length computed here
652 | strncpy(_c->fmuUnzipLocation, fmuLocation + 8, strlen(fmuLocation + 8)-10);
In addition, there is also an important Note that worries me
IMPORTANT NOTE: The FMU generated will run in the fmuChecker 2.0.4 only if libxml2.so.2 is symbollicaly link to {/media/space/rando/bin/EnergyPlus-23.2.0-7636e6b3e9-Linux-Ubuntu20.04-x86_64/Scripts/../SourceCode/v20/fmusdk-shared/parser/linux64/libxml2.so.2}.
This version of libxml2.so.2 has been compiled excluding zlib. The official released version of libxml2.so.2 (version 2.9) which includes zlib causes the FMU to fail in the fmuChecker.
However, the FMU will work fine with master algorithms such as PyFMI even if the FMU links to the official version of libxml2.
Thanks a lot for any support
The text was updated successfully, but these errors were encountered:
I'm extracting a batch of FMUs on Ubuntu 20.04 it seems to work fine. Nevertheless while extracting it shows a warning that I would like to know if I can fix it or why it is happening. the warning is the following one
In addition, there is also an important Note that worries me
Thanks a lot for any support
The text was updated successfully, but these errors were encountered: