Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Compile error on Centos5.4 #153

Closed
davrodpin opened this Issue · 4 comments

3 participants

@davrodpin

I'm trying to compile rubinus rc2 on CentOS 5.4 and something is missing.

CentOS 5.4
gcc-c++-4.1.2-46.el5
gcc-4.1.2-46.el5
libgcc-4.1.2-46.el5
libstdc++-devel-4.1.2-46.el5
libstdc++-4.1.2-46.el5

There are lots and lots of error lines, but the most common is :

Timer.cpp:(.text+0x1676): undefined reference to `std::basic_ostream >& std::__ostream_insert >(std::basic_ostream >&, char const*, int)'

The command that generates the error:

g++ -L/usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib  -lpthread -ldl -lm -Wl,--export-dynamic -o vm/vm vm/external_libs/libtommath/libtommath.a vm/external_libs/libgdtoa/libgdtoa.a vm/external_libs/onig/.libs/libonig.a vm/external_libs/libffi/.libs/libffi.a vm/external_libs/libltdl/.libs/libltdl.a vm/external_libs/libev/.libs/libev.a vm/external_libs/udis86/libudis86/.libs/libudis86.a vm/ar.o vm/global_lock.o vm/event.o vm/vm.o vm/inline_cache.o vm/instructions.o vm/type_info.o vm/shared_state.o vm/arguments.o vm/global_cache.o vm/native_libraries.o vm/compiled_file.o vm/oop.o vm/ffi.o vm/dispatch.o vm/marshal.o vm/linkedlist.o vm/exception_point.o vm/signal.o vm/ffi_util.o vm/call_frame.o vm/primitives.o vm/vmmethod.o vm/exception.o vm/objectmemory.o vm/config_parser.o vm/environment.o vm/native_thread.o vm/helpers.o vm/virtual.o vm/symboltable.o vm/agent.o vm/thread_state.o vm/ontology.o vm/stack_variables.o vm/builtin/integer.o vm/builtin/bytearray.o vm/builtin/class.o vm/builtin/dir.o vm/builtin/packed_object.o vm/builtin/proc.o vm/builtin/array.o vm/builtin/lookuptable.o vm/builtin/access_variable.o vm/builtin/fixnum.o vm/builtin/regexp.o vm/builtin/block_environment.o vm/builtin/global_cache_entry.o vm/builtin/bignum.o vm/builtin/staticscope.o vm/builtin/executable.o vm/builtin/data.o vm/builtin/object.o vm/builtin/compactlookuptable.o vm/builtin/time.o vm/builtin/immediates.o vm/builtin/compiledmethod.o vm/builtin/float.o vm/builtin/weakref.o vm/builtin/string.o vm/builtin/list.o vm/builtin/thread.o vm/builtin/memorypointer.o vm/builtin/methodtable.o vm/builtin/location.o vm/builtin/tuple.o vm/builtin/nativefunction.o vm/builtin/autoload.o vm/builtin/symbol.o vm/builtin/iseq.o vm/builtin/taskprobe.o vm/builtin/io.o vm/builtin/exception.o vm/builtin/system.o vm/builtin/module.o vm/builtin/nativemethod.o vm/builtin/block_as_method.o vm/builtin/channel.o vm/builtin/capi_handle.o vm/builtin/variable_scope.o vm/capi/class.o vm/capi/array.o vm/capi/hash.o vm/capi/bignum.o vm/capi/data.o vm/capi/object.o vm/capi/float.o vm/capi/capi.o vm/capi/numeric.o vm/capi/string.o vm/capi/kernel.o vm/capi/thread.o vm/capi/gc.o vm/capi/globals.o vm/capi/handle.o vm/capi/io.o vm/capi/exception.o vm/capi/util.o vm/capi/module.o vm/capi/range.o vm/util/strlcat.o vm/util/strlcpy.o vm/util/dlmalloc.o vm/instruments/profiler.o vm/instruments/stats.o vm/gc/object_mark.o vm/gc/immix.o vm/gc/baker.o vm/gc/debug.o vm/gc/heap.o vm/gc/root.o vm/gc/marksweep.o vm/gc/inflated_headers.o vm/gc/gc.o vm/llvm/jit_compiler.o vm/llvm/jit_method.o vm/llvm/jit.o vm/llvm/inline.o vm/llvm/jit_builder.o vm/llvm/autotypes.o vm/llvm/jit_util.o vm/llvm/jit_block.o vm/llvm/jit_inline_method.o vm/llvm/inline_primitive.o vm/llvm/jit_inline_block.o vm/llvm/passes.o vm/drivers/cli.o vm/external_libs/udis86/libudis86/.libs/libudis86.a vm/external_libs/libev/.libs/libev.a vm/external_libs/libltdl/.libs/libltdl.a vm/external_libs/libffi/.libs/libffi.a vm/external_libs/onig/.libs/libonig.a vm/external_libs/libgdtoa/libgdtoa.a vm/external_libs/libtommath/libtommath.a -L/usr/local/lib -ldl -lrt -lcrypt /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMLinker.a /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMipo.a /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMInterpreter.a /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMInstrumentation.a /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMJIT.a /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMExecutionEngine.a /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMDebugger.a /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMBitWriter.a /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMX86AsmParser.a /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMX86AsmPrinter.a /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMX86CodeGen.a /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMSelectionDAG.a /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMX86Info.a /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMAsmPrinter.a /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMCodeGen.a /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMScalarOpts.a /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMTransformUtils.a /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMipa.a /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMAsmParser.a /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMArchive.a /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMBitReader.a /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMAnalysis.a /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMTarget.a /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMMC.a /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMCore.a /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMSupport.a /usr/local/rubinius-1.0.0-rc2-llvm/vm/external_libs/llvm/Release/lib/libLLVMSystem.a
@evanphx
Owner

I'm betting this is because of g++ 4.1. For some reason, it errors out with some code we have. We'll try and figure out why that happens.

@davrodpin

Thank you very much for feedback.

Someone can help me telling what distribution/compiler should I use to met the most stable rubinius compilation?

@rue
Collaborator
rue commented

GCC 4.0 should at least, but I recall 4.3 also working on Linuxes. Just set CC and CXX appropriately. (Though one additional hurdle may be that you then get an error building Melbourne because of a GCC version issue...check issue #91 for details and workaround if that happens.)

@evanphx
Owner

g++ 4.1 is not supported. Please upgrade to 4.2.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.