gauravssnl / unladen-swallow

Automatically exported from code.google.com/p/unladen-swallow
Other
0 stars 0 forks source link

trunk (r821) doesn't build on FreeBSD #77

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
A simple ./configure (which used to run and resulted a compilable
environment) gives this with r821:
[...]
checking for socklen_t... yes
checking for --with(out)-py3k-warnings... yes
checking for --with-computed-gotos... yes
checking for --with(out)-llvm... test: unexpected operator
built-in
test: 1: unexpected operator
checking for --with-instrumentation... test: unexpected operator
no
checking for --with-tsc... no
checking for build directories... done
configure: creating ./config.status
config.status: creating Makefile.pre
config.status: creating Modules/Setup.config
config.status: creating pyconfig.h
config.status: pyconfig.h is unchanged
creating Modules/Setup
creating Modules/Setup.local
creating Makefile

gmake then starts to build python, which obviously fails at:
g++ -pthread -c -I -I./ -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
-Woverloaded-virtual -fno-strict-aliasing -fwrapv -Wall -DNDEBUG -g -O3 
-I. -IInclude -I. -I./Include   -DPy_BUILD_CORE -Wno-write-strings -o
Objects/_llvmfunctionobject.o Objects/_llvmfunctionobject.cc
In file included from ./Python/global_llvm_data.h:15,
                 from Objects/_llvmfunctionobject.cc:8:
./Util/ConstantMirror.h:10:31: error: llvm/ADT/DenseMap.h: No such file or
directory
In file included from Objects/_llvmfunctionobject.cc:8:
./Python/global_llvm_data.h:17:30: error: llvm/LLVMContext.h: No such file
or directory
./Python/global_llvm_data.h:18:30: error: llvm/PassManager.h: No such file
or directory
./Python/global_llvm_data.h:19:32: error: llvm/ADT/StringMap.h: No such
file or directory
./Python/global_llvm_data.h:20:32: error: llvm/ADT/OwningPtr.h: No such
file or directory
In file included from Objects/_llvmfunctionobject.cc:9:
./Util/Stats.h:9:37: error: llvm/Support/MutexGuard.h: No such file or
directory
./Util/Stats.h:10:38: error: llvm/Support/raw_ostream.h: No such file or
directory
Objects/_llvmfunctionobject.cc:11:27: error: llvm/Function.h: No such file
or directory
Objects/_llvmfunctionobject.cc:12:25: error: llvm/Module.h: No such file or
directory
Objects/_llvmfunctionobject.cc:13:42: error:
llvm/CodeGen/MachineCodeInfo.h: No such file or directory
Objects/_llvmfunctionobject.cc:14:50: error:
llvm/ExecutionEngine/ExecutionEngine.h: No such file or directory
Objects/_llvmfunctionobject.cc:15:40: error: llvm/Support/ManagedStatic.h:
No such file or directory
Objects/_llvmfunctionobject.cc:16:38: error: llvm/Support/raw_ostream.h: No
such file or directory
In file included from Objects/_llvmfunctionobject.cc:8:
./Python/global_llvm_data.h:46: error: 'llvm::Function' has not been declared
./Python/global_llvm_data.h:82: error: ISO C++ forbids declaration of
'OwningPtr' with no type
./Python/global_llvm_data.h:82: error: invalid use of '::'
./Python/global_llvm_data.h:82: error: expected ';' before '<' token
./Python/global_llvm_data.h:86: error: ISO C++ forbids declaration of
'vector' with no type
./Python/global_llvm_data.h:86: error: invalid use of '::'
./Python/global_llvm_data.h:86: error: expected ';' before '<' token
./Python/global_llvm_data.h:90: error: ISO C++ forbids declaration of
'StringMap' with no type
./Python/global_llvm_data.h:90: error: invalid use of '::'
./Python/global_llvm_data.h:90: error: expected ';' before '<' token
./Python/global_llvm_data.h:92: error: ISO C++ forbids declaration of
'OwningPtr' with no type
./Python/global_llvm_data.h:92: error: invalid use of '::'
./Python/global_llvm_data.h:92: error: expected ';' before '<' token
./Python/global_llvm_data.h: In member function 'llvm::LLVMContext&
PyGlobalLlvmData::context() const':
./Python/global_llvm_data.h:53: error: 'getGlobalContext' is not a member
of 'llvm'
./Python/global_llvm_data.h: In member function 'PyConstantMirror&
PyGlobalLlvmData::constant_mirror()':
./Python/global_llvm_data.h:57: error: 'struct PyGlobalLlvmData' has no
member named 'constant_mirror_'
./Python/global_llvm_data.h: In member function 'llvm::DIFactory*
PyGlobalLlvmData::DebugInfo()':
./Python/global_llvm_data.h:60: error: 'struct PyGlobalLlvmData' has no
member named 'debug_info_'
In file included from Objects/_llvmfunctionobject.cc:9:
./Util/Stats.h: At global scope:
./Util/Stats.h:67: error: 'llvm::sys' has not been declared
./Util/Stats.h:67: error: ISO C++ forbids declaration of 'Mutex' with no type
./Util/Stats.h:67: error: expected ';' before 'lock_'
./Util/Stats.h: In member function 'void
DataVectorStats<ValueTy>::RecordDataPoint(ValueTy)':
./Util/Stats.h:44: error: 'MutexGuard' is not a member of 'llvm'
./Util/Stats.h:44: error: expected `;' before 'locked'
./Util/Stats.h: In destructor 'DataVectorStats<ValueTy>::~DataVectorStats()':
./Util/Stats.h:55: error: 'errs' is not a member of 'llvm'
./Util/Stats.h:58: error: 'errs' is not a member of 'llvm'
./Util/Stats.h:59: error: 'errs' is not a member of 'llvm'
./Util/Stats.h:60: error: 'errs' is not a member of 'llvm'
./Util/Stats.h:61: error: 'errs' is not a member of 'llvm'
./Util/Stats.h:62: error: 'errs' is not a member of 'llvm'
Objects/_llvmfunctionobject.cc: In function 'void
_LlvmFunction_Dealloc(_LlvmFunction*)':
Objects/_llvmfunctionobject.cc:61: error: 'Function' is not a member of 'llvm'
Objects/_llvmfunctionobject.cc:61: error: 'function' was not declared in
this scope
Objects/_llvmfunctionobject.cc:61: error: 'Function' is not a member of 'llvm'
Objects/_llvmfunctionobject.cc:61: error: expected primary-expression
before ')' token
Objects/_llvmfunctionobject.cc:61: error: expected `;' before 'functionobj'
Objects/_llvmfunctionobject.cc:63: error: 'llvm::GlobalValue' has not been
declared
Objects/_llvmfunctionobject.cc:72: error: invalid use of incomplete type
'struct llvm::ExecutionEngine'
./Util/ConstantMirror.h:16: error: forward declaration of 'struct
llvm::ExecutionEngine'
Objects/_llvmfunctionobject.cc: In function 'PyObject* (*
_LlvmFunction_Jit(_LlvmFunction*))(_frame*)':
Objects/_llvmfunctionobject.cc:81: error: 'Function' is not a member of 'llvm'
Objects/_llvmfunctionobject.cc:81: error: 'function' was not declared in
this scope
Objects/_llvmfunctionobject.cc:81: error: 'Function' is not a member of 'llvm'
Objects/_llvmfunctionobject.cc:81: error: expected primary-expression
before ')' token
Objects/_llvmfunctionobject.cc:81: error: expected `;' before 'function_obj'
Objects/_llvmfunctionobject.cc:98: error: invalid use of incomplete type
'struct llvm::ExecutionEngine'
./Util/ConstantMirror.h:16: error: forward declaration of 'struct
llvm::ExecutionEngine'
Objects/_llvmfunctionobject.cc: At global scope:
Objects/_llvmfunctionobject.cc:124: error: expected initializer before '*'
token
Objects/_llvmfunctionobject.cc: In function 'PyObject*
llvmfunction_str(PyLlvmFunctionObject*)':
Objects/_llvmfunctionobject.cc:146: error: 'Function' is not a member of 'llvm'
Objects/_llvmfunctionobject.cc:146: error: expected primary-expression
before 'const'
Objects/_llvmfunctionobject.cc:146: error: expected `;' before 'const'
Objects/_llvmfunctionobject.cc:147: error: 'function' was not declared in
this scope
Objects/_llvmfunctionobject.cc:153: error: 'raw_string_ostream' is not a
member of 'llvm'
Objects/_llvmfunctionobject.cc:153: error: expected `;' before 'wrapper'
Objects/_llvmfunctionobject.cc:154: error: 'function' was not declared in
this scope
Objects/_llvmfunctionobject.cc:154: error: 'wrapper' was not declared in
this scope
Objects/_llvmfunctionobject.cc: In function 'PyObject*
func_get_module(PyLlvmFunctionObject*)':
Objects/_llvmfunctionobject.cc:163: error: '_PyLlvmFunction_GetFunction'
was not declared in this scope
Objects/_llvmfunctionobject.cc:170: error: 'raw_string_ostream' is not a
member of 'llvm'
Objects/_llvmfunctionobject.cc:170: error: expected `;' before 'wrapper'
Objects/_llvmfunctionobject.cc:171: error: invalid use of incomplete type
'struct llvm::Module'
./Python/global_llvm_data.h:28: error: forward declaration of 'struct
llvm::Module'
Objects/_llvmfunctionobject.cc:171: error: 'wrapper' was not declared in
this scope
gmake: *** [Objects/_llvmfunctionobject.o] Error 1

Original issue reported on code.google.com by nagy.att...@gmail.com on 31 Aug 2009 at 12:38

GoogleCodeExporter commented 8 years ago
The attached patch fixes configure and build on FreeBSD.

Original comment by nagy.att...@gmail.com on 31 Aug 2009 at 3:02

Attachments:

GoogleCodeExporter commented 8 years ago
That patch makes sense for me on freebsd 7.1; presumably a pythoneer was coding 
shell.
Suprised to see it's not actually done in the Q3 release.

Original comment by replabro...@gmail.com on 27 Oct 2009 at 5:22

GoogleCodeExporter commented 8 years ago
Committed in r884. Thanks for the patch!

Original comment by collinw on 30 Oct 2009 at 5:54