Greetings,
I am attempting to compile Csound-5.12.1 (needed by Gnash-0.8.7) on a compter
with the following features: Processor:amd64,
OperatingSystem:cblfs-linux(64bit
only) Kernel2.6.33/gcc4.4.2.
My custom.py is as follows:=
####################
'''
dependencies for csound
Order is important: place local paths ahead of system paths.
java, jack, alsa, fltk
'''
import sys
customCPPPATH = []
customCCFLAGS = []
customCXXFLAGS = []
customLIBS = []
customLIBPATH = []
customSHLINKFLAGS = []
customSWIGFLAGS = []
if sys.platform[:5] == 'linux':
platform = 'linux'
customCPPPATH.append('/usr/include/alsa')
customCPPPATH.append('/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/finclude')
customCPPPATH.append('/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/include')
customCPPPATH.append('/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/include-fixed')
customLIBPATH.append('/usr/lib')
customLIBPATH.append('/usr/lib/gettext')
customLIBPATH.append('/usr/lib/python2.6')
customCPPPATH.append('/usr/include/python2.6')
customCPPPATH.append('/usr/local/include/FL')
customCPPPATH.append('/usr/local/include/jack')
customCPPPATH.append('/usr/local/include/libmusicxml')
customLIBPATH.append('/usr/local/lib')
customCPPPATH.append('/opt/ede2/include/fltk')
customLIBPATH.append('/opt/lib')
customLIBPATH.append('/opt/ede2/lib')
customLIBPATH.append('/opt/lib/pulse-0.9.21/modules')
customCPPPATH.append('/opt/include/pulse')
customCPPPATH.append('/opt/jdk/include')
customLIBPATH.append('/opt/jdk/lib')
customCPPPATH.append('/opt/jdk/jdk1.6.0_18/include')
customLIBPATH.append('/opt/jdk/jdk1.6.0_18/lib')
customLIBPATH.append('/opt/jdk/jdk1.6.0_18/jre/lib')
customCPPPATH.append('/opt/include')
customCPPPATH.append('/usr/local/include')
customCPPPATH.append('/usr/include')
customCCFLAGS = ['-march=k8','-mtune=k8']
customCXXFLAGS = ['-march=k8','-mtune=k8']
else:
platform = 'unsupported platform'
##################
scons (with options) is as follows:-
####################
scons \
usePortMIDI=0 \
custom=custom.py \
buildLuaWrapper=1 \
buildPythonWrapper=1 \
useJack=1 \
buildCsoundAC=1 \
buildCsoundVST=1 \
buildvst4cs=0 \
buildInterfaces=1 \
buildCsoundAC=1 \
buildJavaWrapper=0 \
useOSC=1 \
buildPythonOpcodes=1 \
buildLoris=0 \
buildStkOpcodes=1 \
buildWinsound=1 \
noFLTKThreads=0 \
useLrint=1 \
usePortAudio=0 \
buildPDClass=1 \
buildVirtual=1 \
buildTclcsound=0 \
buildLua=1 \
useDouble=1 \
dynamicCsoundLibrary=1 \
buildRelease=0 \
buildDSSI=1 \
noDebug=0 \
Lib64=1 \
Word64=1 \
generatePdf=1 \
useFLTK=0/1 \
useGettext=1 \
useALSA=1
##################
scons yields the following compiler spew (with useFLTK=1):-
####################
n file included from Opcodes/ampmidid.cpp:21:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:105:
error: '::acos' has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:121:
error: '::asin' has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:137:
error: '::atan' has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:153:
error: '::atan2' has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:175:
error: '::ceil' has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:191:
error: '::cos' has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:207:
error: '::cosh' has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:223:
error: '::exp' has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:239:
error: '::fabs' has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:255:
error: '::floor' has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:271:
error: '::fmod' has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:281:
error: '::frexp' has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:297:
error: '::ldexp' has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:313:
error: '::log' has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:329:
error: '::log10' has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:345:
error: '::modf' has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:355:
error: '::pow' has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:393:
error: '::sin' has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:409:
error: '::sinh' has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:425:
error: '::sqrt' has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:441:
error: '::tan' has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:457:
error: '::tanh' has not been declared
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:
In function 'typename __gnu_cxx::__enable_if<std::__is_arithmetic::__value,
int>::__type std::fpclassify(_Tp)':
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:500:
error: 'FP_NAN' was not declared in this scope
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:500:
error: 'FP_INFINITE' was not declared in this scope
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:500:
error: 'FP_NORMAL' was not declared in this scope
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:501:
error: 'FP_SUBNORMAL' was not declared in this scope
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:501:
error: 'FP_ZERO' was not declared in this scope
Opcodes/ampmidid.cpp: In member function 'int KAMPMIDID::init(CSOUND*)':
Opcodes/ampmidid.cpp:61: error: call of overloaded 'sqrt(double&)' is
ambiguous
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:428:
note: candidates are: float std::sqrt(float)
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:432:
note: long double std::sqrt(long double)
Opcodes/ampmidid.cpp: In member function 'int IAMPMIDID::init(CSOUND*)':
Opcodes/ampmidid.cpp:95: error: call of overloaded 'sqrt(double&)' is
ambiguous
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:428:
note: candidates are: float std::sqrt(float)
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../include/c++/4.4.2/cmath:432:
note: long double std::sqrt(long double)
scons: *** [Opcodes/ampmidid.os] Error 1
scons: building terminated because of errors.
##################
##################
scons yields the following compiler spew (with useFLTK=0):-
####################
-I/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/finclude
-I/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/include
-I/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/include-fixed
-I/usr/include/python2.6 -I/usr/local/include/FL -I/usr/local/include/jack
-I/usr/local/include/libmusicxml -I/opt/ede2/include/fltk -I/opt/include/pulse
-I/opt/jdk/include -I/opt/jdk/jdk1.6.0_18/include -I/opt/include
-I/usr/local/include -I/usr/include -I/usr/X11R6/include -IInOut
-IInOut/virtual_keyboard
InOut/FL_graph.cpp
InOut/FL_graph.cpp: In function 'void add_graph(CSOUND*, WINDAT*)':
InOut/FL_graph.cpp:189: error: 'memcpy' was not declared in this scope
InOut/FL_graph.cpp:194: error: 'strcmp' was not declared in this scope
InOut/FL_graph.cpp:214: error: 'strlen' was not declared in this scope
InOut/FL_graph.cpp:215: error: 'strcpy' was not declared in this scope
InOut/FL_graph.cpp: In function 'int ExitGraph_FLTK(CSOUND*)':
InOut/FL_graph.cpp:299: error: 'strcmp' was not declared in this scope
scons: *** [InOut/FL_graph.os] Error 1
scons: building terminated because of errors.
##############
help would be appreciated
lux-integ
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page