Skip to content

Console Output

+ export CC=gcc-8
+ cd .CI/Test
+ ./test.sh
+ export LIBRARIES=/var/lib/jenkins3/ws/_ModelicaStandardLibrary_PR-3686/.CI/Test/../../Modelica/Resources/Library/linux32/
+ test ! -z gcc-8
+ test !  = nostatic
+ gcc-8 -L /var/lib/jenkins3/ws/_ModelicaStandardLibrary_PR-3686/.CI/Test/../../Modelica/Resources/Library/linux32/ FileSystem.c -Wl,-Bstatic -lModelicaExternalC -Wl,-Bdynamic
In file included from FileSystem.c:2:
Common.c: In function ‘ModelicaDuplicateString’:
Common.c:18:32: error: ‘len’ undeclared (first use in this function); did you mean ‘mblen’?
     void *data = malloc(strlen(len) + 1); /* Never free'd in the test programs */
                                ^~~
                                mblen
Common.c:18:32: note: each undeclared identifier is reported only once for each function it appears in
Common.c: In function ‘ModelicaDuplicateStringWithErrorReturn’:
Common.c:27:32: error: ‘len’ undeclared (first use in this function); did you mean ‘mblen’?
     void *data = malloc(strlen(len) + 1); /* Never free'd in the test programs */
                                ^~~
                                mblen
+ exit 1