Skip to content

No such file or directory: './configure' #9

@AJamesPhillips

Description

@AJamesPhillips

Thank you so much for this library. I'm running:

With the FMU from 1.18.0 uploaded to http://localhost:8080/compiler/ it gave me this error about No such file or directory: './configure':

=== Processing file /home/vagrant/Bodylight.js-FMU-Compiler/input/LorenzAttractor.fmu ===
Compiling OpenModelica FMU, log: /home/vagrant/Bodylight.js-FMU-Compiler/output/LorenzAttractor.log
script version 2
configure: ./configure "CFLAGS=-Wno-unused-value -Wno-logical-op-parentheses" "CPPFLAGS=-DOMC_MINIMAL_METADATA=1 -I/home/vagrant/Bodylight.js-FMU-Compiler/compiler/sources/fmi -I/usr/local/include"
emconfigure: error: './configure "CFLAGS=-Wno-unused-value -Wno-logical-op-parentheses" "CPPFLAGS=-DOMC_MINIMAL_METADATA=1 -I/home/vagrant/Bodylight.js-FMU-Compiler/compiler/sources/fmi -I/usr/local/include"' failed: [Errno 2] No such file or directory: './configure'
make: make -Wno-unused-value
clang -Os -Wno-parentheses-equality -falign-functions -mstackrealign -msse2 -mfpmath=sse  -I"C:/Program Files/OpenModelica1.18.0-64bit/include/omc/c/fmi" -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1   -c -o LorenzAttractor.o LorenzAttractor.c
/bin/sh: clang: command not found
make: *** [LorenzAttractor.o] Error 127
emmake: error: 'make -Wno-unused-value' failed (2)
openmodelica.sh: line 41: ../output/flags: No such file or directory
emcc: error: /home/vagrant/Bodylight.js-FMU-Compiler/compiler/build/fmu/binaries/linux64/LorenzAttractor.so: No such file or directory ("/home/vagrant/Bodylight.js-FMU-Compiler/compiler/build/fmu/binaries/linux64/LorenzAttractor.so" was expected to be an input file, based on the commandline arguments provided)
rm: cannot remove ‘/home/vagrant/Bodylight.js-FMU-Compiler/compiler/build/fmu/LorenzAttractor.js’: No such file or directory
ERROR: compilation unsuccessful, check log for details.

I downgraded OMEdit to 1.14.1, rebuilt the FMU and tried http://localhost:8080/compiler again and it gave me a similar error:

=== Processing file /home/vagrant/Bodylight.js-FMU-Compiler/input/LorenzAttractor.fmu ===
Compiling OpenModelica FMU, log: /home/vagrant/Bodylight.js-FMU-Compiler/output/LorenzAttractor.log
script version 2
configure: ./configure "CFLAGS=-Wno-unused-value -Wno-logical-op-parentheses" "CPPFLAGS=-DOMC_MINIMAL_METADATA=1 -I/home/vagrant/Bodylight.js-FMU-Compiler/compiler/sources/fmi -I/usr/local/include"
emconfigure: error: './configure "CFLAGS=-Wno-unused-value -Wno-logical-op-parentheses" "CPPFLAGS=-DOMC_MINIMAL_METADATA=1 -I/home/vagrant/Bodylight.js-FMU-Compiler/compiler/sources/fmi -I/usr/local/include"' failed: [Errno 2] No such file or directory: './configure'
make: make -Wno-unused-value
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse  -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I"C:/Program Files/OpenModelica1.14.1-64bit//include/omc/c/fmi"   -c -o LorenzAttractor.o LorenzAttractor.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse  -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I"C:/Program Files/OpenModelica1.14.1-64bit//include/omc/c/fmi"   -c -o LorenzAttractor_functions.o LorenzAttractor_functions.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse  -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I"C:/Program Files/OpenModelica1.14.1-64bit//include/omc/c/fmi"   -c -o LorenzAttractor_records.o LorenzAttractor_records.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse  -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I"C:/Program Files/OpenModelica1.14.1-64bit//include/omc/c/fmi"   -c -o LorenzAttractor_01exo.o LorenzAttractor_01exo.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse  -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I"C:/Program Files/OpenModelica1.14.1-64bit//include/omc/c/fmi"   -c -o LorenzAttractor_02nls.o LorenzAttractor_02nls.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse  -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I"C:/Program Files/OpenModelica1.14.1-64bit//include/omc/c/fmi"   -c -o LorenzAttractor_03lsy.o LorenzAttractor_03lsy.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse  -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I"C:/Program Files/OpenModelica1.14.1-64bit//include/omc/c/fmi"   -c -o LorenzAttractor_04set.o LorenzAttractor_04set.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse  -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I"C:/Program Files/OpenModelica1.14.1-64bit//include/omc/c/fmi"   -c -o LorenzAttractor_05evt.o LorenzAttractor_05evt.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse  -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I"C:/Program Files/OpenModelica1.14.1-64bit//include/omc/c/fmi"   -c -o LorenzAttractor_06inz.o LorenzAttractor_06inz.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse  -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I"C:/Program Files/OpenModelica1.14.1-64bit//include/omc/c/fmi"   -c -o LorenzAttractor_07dly.o LorenzAttractor_07dly.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse  -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I"C:/Program Files/OpenModelica1.14.1-64bit//include/omc/c/fmi"   -c -o LorenzAttractor_08bnd.o LorenzAttractor_08bnd.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse  -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I"C:/Program Files/OpenModelica1.14.1-64bit//include/omc/c/fmi"   -c -o LorenzAttractor_09alg.o LorenzAttractor_09alg.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse  -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I"C:/Program Files/OpenModelica1.14.1-64bit//include/omc/c/fmi"   -c -o LorenzAttractor_10asr.o LorenzAttractor_10asr.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse  -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I"C:/Program Files/OpenModelica1.14.1-64bit//include/omc/c/fmi"   -c -o LorenzAttractor_11mix.o LorenzAttractor_11mix.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse  -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I"C:/Program Files/OpenModelica1.14.1-64bit//include/omc/c/fmi"   -c -o LorenzAttractor_12jac.o LorenzAttractor_12jac.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse  -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I"C:/Program Files/OpenModelica1.14.1-64bit//include/omc/c/fmi"   -c -o LorenzAttractor_13opt.o LorenzAttractor_13opt.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse  -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I"C:/Program Files/OpenModelica1.14.1-64bit//include/omc/c/fmi"   -c -o LorenzAttractor_14lnz.o LorenzAttractor_14lnz.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse  -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I"C:/Program Files/OpenModelica1.14.1-64bit//include/omc/c/fmi"   -c -o LorenzAttractor_15syn.o LorenzAttractor_15syn.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse  -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I"C:/Program Files/OpenModelica1.14.1-64bit//include/omc/c/fmi"   -c -o LorenzAttractor_16dae.o LorenzAttractor_16dae.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse  -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I"C:/Program Files/OpenModelica1.14.1-64bit//include/omc/c/fmi"   -c -o LorenzAttractor_17inl.o LorenzAttractor_17inl.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse  -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I"C:/Program Files/OpenModelica1.14.1-64bit//include/omc/c/fmi"   -c -o LorenzAttractor_init_fmu.o LorenzAttractor_init_fmu.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse  -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I"C:/Program Files/OpenModelica1.14.1-64bit//include/omc/c/fmi"   -c -o LorenzAttractor_FMU.o LorenzAttractor_FMU.c
In file included from LorenzAttractor_FMU.c:16:0:
fmi-export/fmu2_model_interface.h:34:27: fatal error: fmi2Functions.h: No such file or directory
 #include "fmi2Functions.h"
                           ^
compilation terminated.
make: *** [LorenzAttractor_FMU.o] Error 1
emmake: error: 'make -Wno-unused-value' failed (2)
openmodelica.sh: line 41: ../output/flags: No such file or directory
emcc: error: /home/vagrant/Bodylight.js-FMU-Compiler/compiler/build/fmu/binaries/linux64/LorenzAttractor.so: No such file or directory ("/home/vagrant/Bodylight.js-FMU-Compiler/compiler/build/fmu/binaries/linux64/LorenzAttractor.so" was expected to be an input file, based on the commandline arguments provided)
rm: cannot remove ‘/home/vagrant/Bodylight.js-FMU-Compiler/compiler/build/fmu/LorenzAttractor.js’: No such file or directory
ERROR: compilation unsuccessful, check log for details.

Thanks in advance for any thoughts or advice.

p.s. also if it helps others, the Tools > Options > FMI menu to set the solver for co-simulation is only available from OMEdit 1.18.1, it is not present in 1.18.0.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions