[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Building lua wrapper for coolprop
- From: Christophe Jorssen <jorssen.leraincy@...>
- Date: Mon, 20 Jun 2016 23:20:19 +0200
Thanks Hisham
2016-06-20 20:48 GMT+02:00 Hisham <h@hisham.hm>:
>
> No idea, sorry. I helped out with packaging of the rockspec back in
> the day, but this may be a problem with the upstream module. One last
> idea: did you try the versioned rockspec? (5.0.7) Something might be
> broken between the rockspec and the latest coolprop repository; the
> versioned rockspec points to a revision that was known to work with
> the rockspec at some point.
>
No luck once again...
christophe@uranium:~/git/LuaCoolProp$ luarocks install
luacoolprop-5.0.7-1.rockspec
Clonage dans 'LuaCoolProp'...
remote: Counting objects: 13, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 13 (delta 0), reused 12 (delta 0), pack-reused 0
Réception d'objets: 100% (13/13), 3.19 MiB | 521.00 KiB/s, fait.
Vérification de la connectivité... fait.
Note: checking out 'e26c569a2e31cd959f5092599c25ba667ea1c36e'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
mkdir -p lua
git clone https://github.com/CoolProp/CoolProp --depth 1 --recursive -bv5.0.7
Clonage dans 'CoolProp'...
remote: Counting objects: 1155, done.
remote: Compressing objects: 100% (956/956), done.
remote: Total 1155 (delta 239), reused 776 (delta 146), pack-reused 0
Réception d'objets: 100% (1155/1155), 6.11 MiB | 304.00 KiB/s, fait.
Résolution des deltas: 100% (239/239), fait.
Vérification de la connectivité... fait.
Note: checking out '173bc5e06d2c6ffe5f7906349e7e92678f38d9e5'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
Sous-module 'externals/Catch' (https://github.com/philsquared/Catch)
enregistré pour le chemin 'externals/Catch'
Sous-module 'externals/Eigen' (https://github.com/RLovelett/eigen.git)
enregistré pour le chemin 'externals/Eigen'
Sous-module 'externals/FindMathematica'
(https://github.com/sakra/FindMathematica) enregistré pour le chemin
'externals/FindMathematica'
Sous-module 'externals/REFPROP-headers'
(https://github.com/CoolProp/REFPROP-headers.git) enregistré pour le
chemin 'externals/REFPROP-headers'
Clonage dans 'externals/Catch'...
remote: Counting objects: 11813, done.
remote: Total 11813 (delta 0), reused 0 (delta 0), pack-reused 11813
Réception d'objets: 100% (11813/11813), 5.38 MiB | 553.00 KiB/s, fait.
Résolution des deltas: 100% (6977/6977), fait.
Vérification de la connectivité... fait.
Chemin de sous-module 'externals/Catch' :
'694c4d7a593a49140841273fdf0b3f767679f46a' extrait
Clonage dans 'externals/Eigen'...
remote: Counting objects: 76482, done.
remote: Total 76482 (delta 0), reused 0 (delta 0), pack-reused 76482
Réception d'objets: 100% (76482/76482), 54.07 MiB | 540.00 KiB/s, fait.
Résolution des deltas: 100% (53764/53764), fait.
Vérification de la connectivité... fait.
Chemin de sous-module 'externals/Eigen' :
'58dc47ff34ae6ff7c8c85ce15769c9d58b1b55af' extrait
Clonage dans 'externals/FindMathematica'...
remote: Counting objects: 583, done.
remote: Total 583 (delta 0), reused 0 (delta 0), pack-reused 583
Réception d'objets: 100% (583/583), 399.04 KiB | 314.00 KiB/s, fait.
Résolution des deltas: 100% (317/317), fait.
Vérification de la connectivité... fait.
Chemin de sous-module 'externals/FindMathematica' :
'ad29798a095d24f1ae96fa09faea9019821bb760' extrait
Clonage dans 'externals/REFPROP-headers'...
remote: Counting objects: 98, done.
remote: Total 98 (delta 0), reused 0 (delta 0), pack-reused 98
Dépaquetage des objets: 100% (98/98), fait.
Vérification de la connectivité... fait.
Chemin de sous-module 'externals/REFPROP-headers' :
'b912fafd32884118fa6eb972a8faab061612076b' extrait
cp -a CoolProp/wrappers/Lua/coolprop.lua lua
mkdir -p lua/coolprop
cp -a CoolProp/wrappers/Lua/coolprop/ffi.lua lua/coolprop
cd CoolProp && git pull
Already up-to-date.
mkdir -p CoolProp/build
cd CoolProp/build && cmake .. -DCOOLPROP_STATIC_LIBRARY=ON
-DCOOLPROP_EXTERNC_STATIC_LIBRARY=ON
-- COOLPROP_INSTALL_PREFIX=/tmp/luarocks_luacoolprop-5.0.7-1-267x41/LuaCoolProp/CoolProp/install_root
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version
"2.7.9", minimum required is "2.7")
-- Found LibDL: /usr/lib/x86_64-linux-gnu/libdl.so
-- Configuring done
-- Generating done
-- Build files have been written to:
/tmp/luarocks_luacoolprop-5.0.7-1-267x41/LuaCoolProp/CoolProp/build
cd CoolProp/build && cmake --build . -- CFLAGS=-DCOOLPROP_LIB
make[1]: Entering directory
'/tmp/luarocks_luacoolprop-5.0.7-1-267x41/LuaCoolProp/CoolProp/build'
make[2]: Entering directory
'/tmp/luarocks_luacoolprop-5.0.7-1-267x41/LuaCoolProp/CoolProp/build'
make[3]: Entering directory
'/tmp/luarocks_luacoolprop-5.0.7-1-267x41/LuaCoolProp/CoolProp/build'
Scanning dependencies of target generate_headers
make[3]: Leaving directory
'/tmp/luarocks_luacoolprop-5.0.7-1-267x41/LuaCoolProp/CoolProp/build'
make[3]: Entering directory
'/tmp/luarocks_luacoolprop-5.0.7-1-267x41/LuaCoolProp/CoolProp/build'
version written to file:
/tmp/luarocks_luacoolprop-5.0.7-1-267x41/LuaCoolProp/CoolProp/include/cpversion.h
version written to hidden file:
/tmp/luarocks_luacoolprop-5.0.7-1-267x41/LuaCoolProp/CoolProp/.version
for use in builders that don't use git repo
git version 2.1.4
git is accessible at the command line
git revision is 173bc5e06d2c6ffe5f7906349e7e92678f38d9e5
*** Generating gitrevision.h ***
/tmp/luarocks_luacoolprop-5.0.7-1-267x41/LuaCoolProp/CoolProp/include/gitrevision.h
written to file
/tmp/luarocks_luacoolprop-5.0.7-1-267x41/LuaCoolProp/CoolProp/include/all_fluids_JSON.h
written to file
/tmp/luarocks_luacoolprop-5.0.7-1-267x41/LuaCoolProp/CoolProp/include/all_incompressibles_JSON.h
written to file
/tmp/luarocks_luacoolprop-5.0.7-1-267x41/LuaCoolProp/CoolProp/include/mixture_departure_functions_JSON.h
written to file
/tmp/luarocks_luacoolprop-5.0.7-1-267x41/LuaCoolProp/CoolProp/include/mixture_binary_pairs_JSON.h
written to file
/tmp/luarocks_luacoolprop-5.0.7-1-267x41/LuaCoolProp/CoolProp/include/predefined_mixtures_JSON.h
written to file
make[3]: Leaving directory
'/tmp/luarocks_luacoolprop-5.0.7-1-267x41/LuaCoolProp/CoolProp/build'
[ 0%] Built target generate_headers
make[3]: Entering directory
'/tmp/luarocks_luacoolprop-5.0.7-1-267x41/LuaCoolProp/CoolProp/build'
Scanning dependencies of target CoolProp
make[3]: Leaving directory
'/tmp/luarocks_luacoolprop-5.0.7-1-267x41/LuaCoolProp/CoolProp/build'
make[3]: Entering directory
'/tmp/luarocks_luacoolprop-5.0.7-1-267x41/LuaCoolProp/CoolProp/build'
[ 3%] Building CXX object CMakeFiles/CoolProp.dir/src/Configuration.cpp.o
[ 6%] Building CXX object CMakeFiles/CoolProp.dir/src/Helmholtz.cpp.o
[ 9%] Building CXX object CMakeFiles/CoolProp.dir/src/HumidAirProp.cpp.o
[ 12%] Building CXX object CMakeFiles/CoolProp.dir/src/PolyMath.cpp.o
[ 16%] Building CXX object CMakeFiles/CoolProp.dir/src/Tests/TestObjects.cpp.o
[ 19%] Building CXX object CMakeFiles/CoolProp.dir/src/CoolProp.cpp.o
[ 22%] Building CXX object CMakeFiles/CoolProp.dir/src/AbstractState.cpp.o
[ 25%] Building CXX object CMakeFiles/CoolProp.dir/src/SpeedTest.cpp.o
[ 29%] Building CXX object CMakeFiles/CoolProp.dir/src/MatrixMath.cpp.o
[ 32%] Building CXX object CMakeFiles/CoolProp.dir/src/Solvers.cpp.o
[ 35%] Building CXX object CMakeFiles/CoolProp.dir/src/Ice.cpp.o
[ 38%] Building CXX object
CMakeFiles/CoolProp.dir/src/Backends/Helmholtz/TransportRoutines.cpp.o
[ 41%] Building CXX object
CMakeFiles/CoolProp.dir/src/Backends/Helmholtz/Fluids/FluidLibrary.cpp.o
[ 45%] Building CXX object
CMakeFiles/CoolProp.dir/src/Backends/Helmholtz/Fluids/Ancillaries.cpp.o
[ 48%] Building CXX object
CMakeFiles/CoolProp.dir/src/Backends/Helmholtz/PhaseEnvelopeRoutines.cpp.o
[ 51%] Building CXX object
CMakeFiles/CoolProp.dir/src/Backends/Helmholtz/ReducingFunctions.cpp.o
[ 54%] Building CXX object
CMakeFiles/CoolProp.dir/src/Backends/Helmholtz/FlashRoutines.cpp.o
[ 58%] Building CXX object
CMakeFiles/CoolProp.dir/src/Backends/Helmholtz/HelmholtzEOSBackend.cpp.o
[ 61%] Building CXX object
CMakeFiles/CoolProp.dir/src/Backends/Helmholtz/MixtureParameters.cpp.o
[ 64%] Building CXX object
CMakeFiles/CoolProp.dir/src/Backends/Helmholtz/VLERoutines.cpp.o
[ 67%] Building CXX object
CMakeFiles/CoolProp.dir/src/Backends/Helmholtz/MixtureDerivatives.cpp.o
[ 70%] Building CXX object
CMakeFiles/CoolProp.dir/src/Backends/Helmholtz/HelmholtzEOSMixtureBackend.cpp.o
[ 74%] Building CXX object
CMakeFiles/CoolProp.dir/src/Backends/Incompressible/IncompressibleLibrary.cpp.o
[ 77%] Building CXX object
CMakeFiles/CoolProp.dir/src/Backends/Incompressible/IncompressibleBackend.cpp.o
[ 80%] Building CXX object
CMakeFiles/CoolProp.dir/src/Backends/Incompressible/IncompressibleFluid.cpp.o
[ 83%] Building CXX object
CMakeFiles/CoolProp.dir/src/Backends/Tabular/TabularBackends.cpp.o
[ 87%] Building CXX object
CMakeFiles/CoolProp.dir/src/Backends/REFPROP/REFPROPMixtureBackend.cpp.o
/tmp/luarocks_luacoolprop-5.0.7-1-267x41/LuaCoolProp/CoolProp/src/Backends/REFPROP/REFPROPMixtureBackend.cpp:
In member function ‘void
CoolProp::REFPROPMixtureBackend::set_REFPROP_fluids(const
std::vector<std::basic_string<char> >&)’:
/tmp/luarocks_luacoolprop-5.0.7-1-267x41/LuaCoolProp/CoolProp/src/Backends/REFPROP/REFPROPMixtureBackend.cpp:409:26:
warning: deprecated conversion from string constant to ‘char*’
[-Wwrite-strings]
255);
^
/tmp/luarocks_luacoolprop-5.0.7-1-267x41/LuaCoolProp/CoolProp/src/Backends/REFPROP/REFPROPMixtureBackend.cpp:409:26:
warning: deprecated conversion from string constant to ‘char*’
[-Wwrite-strings]
[ 90%] Building CXX object
CMakeFiles/CoolProp.dir/src/Backends/REFPROP/REFPROPBackend.cpp.o
[ 93%] Building CXX object CMakeFiles/CoolProp.dir/src/DataStructures.cpp.o
[ 96%] Building CXX object CMakeFiles/CoolProp.dir/src/CoolPropTools.cpp.o
[100%] Building CXX object CMakeFiles/CoolProp.dir/src/CoolPropLib.cpp.o
Linking CXX static library libCoolProp.a
make[3]: Leaving directory
'/tmp/luarocks_luacoolprop-5.0.7-1-267x41/LuaCoolProp/CoolProp/build'
[100%] Built target CoolProp
make[2]: Leaving directory
'/tmp/luarocks_luacoolprop-5.0.7-1-267x41/LuaCoolProp/CoolProp/build'
make[1]: Leaving directory
'/tmp/luarocks_luacoolprop-5.0.7-1-267x41/LuaCoolProp/CoolProp/build'
gcc -O2 -fPIC -shared -std=c99 -g -o lua/coolprop/capi.so
-I/usr/include/lua5.2 -ICoolProp/wrappers/Lua/coolprop/
CoolProp/wrappers/Lua/coolprop/capi.c -lstdc++
CoolProp/build/libCoolProp.a
/usr/bin/ld: CoolProp/build/libCoolProp.a(CoolPropLib.cpp.o):
réadressage de R_X86_64_32 en vertu de « .rodata » ne peut être
utilisé lors de la création d'un objet partagé; recompilez avec -fPIC
CoolProp/build/libCoolProp.a: error adding symbols: Mauvaise valeur
collect2: error: ld returned 1 exit status
Makefile:61: recipe for target 'lua/coolprop/capi.so' failed
make: *** [lua/coolprop/capi.so] Error 1
Error: Build error: Failed building.
--
Christophe