Csound Csound-dev Csound-tekno Search About

[Cs-dev] Error compiling with buildLuaOpcodes=1

Date2013-03-03 13:44
Fromxharx
Subject[Cs-dev] Error compiling with buildLuaOpcodes=1
When I compile csound on arch linux I get this error:


g++ -o Opcodes/LuaCsound.os -c -Wno-format -Wall -W
-Wno-missing-field-initializers -Wno-unused-parameter -O3 -mtune=native
-ftree-vectorize -ffast-math -Wno-format -DGNU_GETTEXT
-I/usr/local/include/libcwiimote-0.4.0/libcwiimote -fomit-frame-pointer
-fPIC -DLINUX -DPIPES -fPIC -DHAVE_FLTK -DHAVE_SOCKETS
-DHAVE_PTHREAD_SPIN_LOCK -DHAVE_PTHREAD_BARRIER_INIT
-DHAVE_SYNC_LOCK_TEST_AND_SET -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H
-DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_TERMIOS_H -DHAVE_VALUES_H
-DHAVE_SOCKETS -DHAVE_DIRENT_H -I. -IH -I/usr/lib/jvm/java-1.5.0/include
-I/usr/lib/jvm/java-1.5.0/include/linux -I/usr/local/include -I/usr/include
-I/usr/include -I/usr/X11R6/include -I/usr/local/include/luajit-2.0
Opcodes/LuaCsound.cpp
Opcodes/LuaCsound.cpp:69:0: warning: ignoring #pragma omp critical
[-Wunknown-pragmas]
Opcodes/LuaCsound.cpp:98:0: warning: ignoring #pragma omp critical
[-Wunknown-pragmas]
Opcodes/LuaCsound.cpp: In function 'lua_State* manageLuaState(char)':
Opcodes/LuaCsound.cpp:107:30: error: 'lua_open' was not declared in this
scope
Opcodes/LuaCsound.cpp: In member function 'int cslua_exec::init(CSOUND*)':
Opcodes/LuaCsound.cpp:151:25: error: 'LUA_GLOBALSINDEX' was not declared in
this scope
Opcodes/LuaCsound.cpp: At global scope:
Opcodes/LuaCsound.cpp:653:5: warning: narrowing conversion of '98368ul' from
'long unsigned int' to 'uint16 {aka short unsigned int}' inside { } is
ill-formed in C++11 [-Wnarrowing]
Opcodes/LuaCsound.cpp:653:5: warning: large integer implicitly truncated to
unsigned type [-Woverflow]
Opcodes/LuaCsound.cpp:653:5: warning: narrowing conversion of '98368ul' from
'long unsigned int' to 'uint16 {aka short unsigned int}' inside { } is
ill-formed in C++11 [-Wnarrowing]
Opcodes/LuaCsound.cpp:653:5: warning: large integer implicitly truncated to
unsigned type [-Woverflow]
Opcodes/LuaCsound.cpp:653:5: warning: narrowing conversion of '98368ul' from
'long unsigned int' to 'uint16 {aka short unsigned int}' inside { } is
ill-formed in C++11 [-Wnarrowing]
Opcodes/LuaCsound.cpp:653:5: warning: large integer implicitly truncated to
unsigned type [-Woverflow]
Opcodes/LuaCsound.cpp:653:5: warning: narrowing conversion of '98368ul' from
'long unsigned int' to 'uint16 {aka short unsigned int}' inside { } is
ill-formed in C++11 [-Wnarrowing]
Opcodes/LuaCsound.cpp:653:5: warning: large integer implicitly truncated to
unsigned type [-Woverflow]
Opcodes/LuaCsound.cpp:653:5: warning: narrowing conversion of '98368ul' from
'long unsigned int' to 'uint16 {aka short unsigned int}' inside { } is
ill-formed in C++11 [-Wnarrowing]
Opcodes/LuaCsound.cpp:653:5: warning: large integer implicitly truncated to
unsigned type [-Woverflow]
Opcodes/LuaCsound.cpp:653:5: warning: narrowing conversion of '98368ul' from
'long unsigned int' to 'uint16 {aka short unsigned int}' inside { } is
ill-formed in C++11 [-Wnarrowing]
Opcodes/LuaCsound.cpp:653:5: warning: large integer implicitly truncated to
unsigned type [-Woverflow]
scons: *** [Opcodes/LuaCsound.os] Error 1
scons: building terminated because of errors.
==> ERROR: A failure occurred in build().
    Aborting...

How can I fix this?



--
View this message in context: http://csound.1045644.n5.nabble.com/Error-compiling-with-buildLuaOpcodes-1-tp5720684.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-03-03 15:04
FromMichael Gogins
SubjectRe: [Cs-dev] Error compiling with buildLuaOpcodes=1
AttachmentsNone  None  
lua_open is a macro for luaL_newstate(). Try using that instead. 

I am assuming you do have LuaJIT installed, and that the include and lib directories are specified in your Csound build. If not, of course, you need to fix that. 

Also, if you have regular Lua installed, you need to ensure that the headers and libs for LuaJIT are preferred in your build paths.

Hope this helps,
Mike


On Sun, Mar 3, 2013 at 8:44 AM, xharx <xharx00@googlemail.com> wrote:
When I compile csound on arch linux I get this error:


g++ -o Opcodes/LuaCsound.os -c -Wno-format -Wall -W
-Wno-missing-field-initializers -Wno-unused-parameter -O3 -mtune=native
-ftree-vectorize -ffast-math -Wno-format -DGNU_GETTEXT
-I/usr/local/include/libcwiimote-0.4.0/libcwiimote -fomit-frame-pointer
-fPIC -DLINUX -DPIPES -fPIC -DHAVE_FLTK -DHAVE_SOCKETS
-DHAVE_PTHREAD_SPIN_LOCK -DHAVE_PTHREAD_BARRIER_INIT
-DHAVE_SYNC_LOCK_TEST_AND_SET -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H
-DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_TERMIOS_H -DHAVE_VALUES_H
-DHAVE_SOCKETS -DHAVE_DIRENT_H -I. -IH -I/usr/lib/jvm/java-1.5.0/include
-I/usr/lib/jvm/java-1.5.0/include/linux -I/usr/local/include -I/usr/include
-I/usr/include -I/usr/X11R6/include -I/usr/local/include/luajit-2.0
Opcodes/LuaCsound.cpp
Opcodes/LuaCsound.cpp:69:0: warning: ignoring #pragma omp critical
[-Wunknown-pragmas]
Opcodes/LuaCsound.cpp:98:0: warning: ignoring #pragma omp critical
[-Wunknown-pragmas]
Opcodes/LuaCsound.cpp: In function 'lua_State* manageLuaState(char)':
Opcodes/LuaCsound.cpp:107:30: error: 'lua_open' was not declared in this
scope
Opcodes/LuaCsound.cpp: In member function 'int cslua_exec::init(CSOUND*)':
Opcodes/LuaCsound.cpp:151:25: error: 'LUA_GLOBALSINDEX' was not declared in
this scope
Opcodes/LuaCsound.cpp: At global scope:
Opcodes/LuaCsound.cpp:653:5: warning: narrowing conversion of '98368ul' from
'long unsigned int' to 'uint16 {aka short unsigned int}' inside { } is
ill-formed in C++11 [-Wnarrowing]
Opcodes/LuaCsound.cpp:653:5: warning: large integer implicitly truncated to
unsigned type [-Woverflow]
Opcodes/LuaCsound.cpp:653:5: warning: narrowing conversion of '98368ul' from
'long unsigned int' to 'uint16 {aka short unsigned int}' inside { } is
ill-formed in C++11 [-Wnarrowing]
Opcodes/LuaCsound.cpp:653:5: warning: large integer implicitly truncated to
unsigned type [-Woverflow]
Opcodes/LuaCsound.cpp:653:5: warning: narrowing conversion of '98368ul' from
'long unsigned int' to 'uint16 {aka short unsigned int}' inside { } is
ill-formed in C++11 [-Wnarrowing]
Opcodes/LuaCsound.cpp:653:5: warning: large integer implicitly truncated to
unsigned type [-Woverflow]
Opcodes/LuaCsound.cpp:653:5: warning: narrowing conversion of '98368ul' from
'long unsigned int' to 'uint16 {aka short unsigned int}' inside { } is
ill-formed in C++11 [-Wnarrowing]
Opcodes/LuaCsound.cpp:653:5: warning: large integer implicitly truncated to
unsigned type [-Woverflow]
Opcodes/LuaCsound.cpp:653:5: warning: narrowing conversion of '98368ul' from
'long unsigned int' to 'uint16 {aka short unsigned int}' inside { } is
ill-formed in C++11 [-Wnarrowing]
Opcodes/LuaCsound.cpp:653:5: warning: large integer implicitly truncated to
unsigned type [-Woverflow]
Opcodes/LuaCsound.cpp:653:5: warning: narrowing conversion of '98368ul' from
'long unsigned int' to 'uint16 {aka short unsigned int}' inside { } is
ill-formed in C++11 [-Wnarrowing]
Opcodes/LuaCsound.cpp:653:5: warning: large integer implicitly truncated to
unsigned type [-Woverflow]
scons: *** [Opcodes/LuaCsound.os] Error 1
scons: building terminated because of errors.
==> ERROR: A failure occurred in build().
    Aborting...

How can I fix this?



--
View this message in context: http://csound.1045644.n5.nabble.com/Error-compiling-with-buildLuaOpcodes-1-tp5720684.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

Date2013-03-09 17:31
Fromxharx
SubjectRe: [Cs-dev] Error compiling with buildLuaOpcodes=1
To make it short, sound 5.19.01 compiled normally in arch when I used
custom-linux-mkg.py instead of custom-linux-jpff.py. Thank you.



--
View this message in context: http://csound.1045644.n5.nabble.com/Error-compiling-with-buildLuaOpcodes-1-tp5720684p5720884.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net