This is the 1.1 version of m5? What version of g++ do you have? And
does typing "scons ALPHA_FS/m5.opt" give you the same error message, or
is there extra information? From my experiences ld usually tells which
functions aren't defined before it exits like that.
Kevin
Chenjie Yu wrote:
Ali,
This is the whole screen display:
scons ALPHA_FS/test/opt/quick
scons: Reading SConscript files ...
Checking for C header file fenv.h... yes
Compiling in ALPHA_FS with MySQL support.
scons: done reading SConscript files.
scons: Building targets ...
g++ -o ALPHA_FS/m5.opt ALPHA_FS/arch/alpha/decoder.o
ALPHA_FS/arch/alpha/alpha_o3_exec.o ALPHA_FS/arch/alpha/fast_cpu_exec.o
ALPHA_FS/arch/alpha/simple_cpu_exec.o
ALPHA_FS/arch/alpha/full_cpu_exec.o ALPHA_FS/arch/alpha/faults.o
ALPHA_FS/arch/alpha/isa_traits.o ALPHA_FS/base/circlebuf.o
ALPHA_FS/base/copyright.o ALPHA_FS/base/cprintf.o
ALPHA_FS/base/embedfile.o ALPHA_FS/base/fast_alloc.o
ALPHA_FS/base/fifo_buffer.o ALPHA_FS/base/hostinfo.o
ALPHA_FS/base/hybrid_pred.o ALPHA_FS/base/inifile.o
ALPHA_FS/base/intmath.o ALPHA_FS/base/match.o ALPHA_FS/base/misc.o
ALPHA_FS/base/output.o ALPHA_FS/base/pollevent.o ALPHA_FS/base/range.o
ALPHA_FS/base/random.o ALPHA_FS/base/sat_counter.o
ALPHA_FS/base/socket.o ALPHA_FS/base/statistics.o ALPHA_FS/base/str.o
ALPHA_FS/base/time.o ALPHA_FS/base/trace.o ALPHA_FS/base/traceflags.o
ALPHA_FS/base/userinfo.o ALPHA_FS/base/compression/lzss_compression.o
ALPHA_FS/base/loader/aout_object.o ALPHA_FS/base/loader/ecoff_object.o
ALPHA_FS/base/loader/elf_object.o ALPHA_FS/base/loader/object_file.o
ALPHA_FS/base/loader/symtab.o ALPHA_FS/base/stats/events.o
ALPHA_FS/base/stats/statdb.o ALPHA_FS/base/stats/visit.o
ALPHA_FS/base/stats/text.o ALPHA_FS/cpu/base.o
ALPHA_FS/cpu/base_dyn_inst.o ALPHA_FS/cpu/exec_context.o
ALPHA_FS/cpu/exetrace.o ALPHA_FS/cpu/pc_event.o
ALPHA_FS/cpu/static_inst.o ALPHA_FS/cpu/o3/2bit_local_pred.o
ALPHA_FS/cpu/o3/alpha_dyn_inst.o ALPHA_FS/cpu/o3/alpha_cpu.o
ALPHA_FS/cpu/o3/alpha_cpu_builder.o ALPHA_FS/cpu/o3/bpred_unit.o
ALPHA_FS/cpu/o3/btb.o ALPHA_FS/cpu/o3/commit.o ALPHA_FS/cpu/o3/decode.o
ALPHA_FS/cpu/o3/fetch.o ALPHA_FS/cpu/o3/free_list.o
ALPHA_FS/cpu/o3/cpu.o ALPHA_FS/cpu/o3/iew.o
ALPHA_FS/cpu/o3/inst_queue.o ALPHA_FS/cpu/o3/ldstq.o
ALPHA_FS/cpu/o3/mem_dep_unit.o ALPHA_FS/cpu/o3/ras.o
ALPHA_FS/cpu/o3/rename.o ALPHA_FS/cpu/o3/rename_map.o
ALPHA_FS/cpu/o3/rob.o ALPHA_FS/cpu/o3/sat_counter.o
ALPHA_FS/cpu/o3/store_set.o ALPHA_FS/cpu/o3/tournament_pred.o
ALPHA_FS/cpu/fast/cpu.o ALPHA_FS/cpu/sampler/sampler.o
ALPHA_FS/cpu/simple/cpu.o ALPHA_FS/cpu/trace/reader/mem_trace_reader.o
ALPHA_FS/cpu/trace/reader/ibm_reader.o
ALPHA_FS/cpu/trace/reader/itx_reader.o
ALPHA_FS/cpu/trace/reader/m5_reader.o ALPHA_FS/cpu/trace/opt_cpu.o
ALPHA_FS/cpu/trace/trace_cpu.o ALPHA_FS/encumbered/cpu/full/bpred.o
ALPHA_FS/encumbered/cpu/full/commit.o
ALPHA_FS/encumbered/cpu/full/cpu.o
ALPHA_FS/encumbered/cpu/full/create_vector.o
ALPHA_FS/encumbered/cpu/full/cv_spec_state.o
ALPHA_FS/encumbered/cpu/full/dd_queue.o
ALPHA_FS/encumbered/cpu/full/dep_link.o
ALPHA_FS/encumbered/cpu/full/dispatch.o
ALPHA_FS/encumbered/cpu/full/dyn_inst.o
ALPHA_FS/encumbered/cpu/full/execute.o
ALPHA_FS/encumbered/cpu/full/fetch.o
ALPHA_FS/encumbered/cpu/full/floss_reasons.o
ALPHA_FS/encumbered/cpu/full/fu_pool.o
ALPHA_FS/encumbered/cpu/full/inst_fifo.o
ALPHA_FS/encumbered/cpu/full/instpipe.o
ALPHA_FS/encumbered/cpu/full/issue.o
ALPHA_FS/encumbered/cpu/full/ls_queue.o
ALPHA_FS/encumbered/cpu/full/machine_queue.o
ALPHA_FS/encumbered/cpu/full/pc_sample_profile.o
ALPHA_FS/encumbered/cpu/full/pipetrace.o
ALPHA_FS/encumbered/cpu/full/readyq.o
ALPHA_FS/encumbered/cpu/full/reg_info.o
ALPHA_FS/encumbered/cpu/full/rob_station.o
ALPHA_FS/encumbered/cpu/full/spec_memory.o
ALPHA_FS/encumbered/cpu/full/spec_state.o
ALPHA_FS/encumbered/cpu/full/storebuffer.o
ALPHA_FS/encumbered/cpu/full/writeback.o
ALPHA_FS/encumbered/cpu/full/iq/iq_station.o
ALPHA_FS/encumbered/cpu/full/iq/iqueue.o
ALPHA_FS/encumbered/cpu/full/iq/segmented/chain_info.o
ALPHA_FS/encumbered/cpu/full/iq/segmented/chain_wire.o
ALPHA_FS/encumbered/cpu/full/iq/segmented/iq_seg.o
ALPHA_FS/encumbered/cpu/full/iq/segmented/iq_segmented.o
ALPHA_FS/encumbered/cpu/full/iq/segmented/seg_chain.o
ALPHA_FS/encumbered/cpu/full/iq/seznec/iq_seznec.o
ALPHA_FS/encumbered/cpu/full/iq/standard/iq_standard.o
ALPHA_FS/encumbered/mem/functional/main.o ALPHA_FS/mem/base_hier.o
ALPHA_FS/mem/base_mem.o ALPHA_FS/mem/hier_params.o
ALPHA_FS/mem/mem_cmd.o ALPHA_FS/mem/mem_debug.o ALPHA_FS/mem/mem_req.o
ALPHA_FS/mem/memory_interface.o ALPHA_FS/mem/bus/base_interface.o
ALPHA_FS/mem/bus/bus.o ALPHA_FS/mem/bus/bus_bridge.o
ALPHA_FS/mem/bus/bus_bridge_master.o
ALPHA_FS/mem/bus/bus_bridge_slave.o ALPHA_FS/mem/bus/bus_interface.o
ALPHA_FS/mem/bus/dma_bus_interface.o ALPHA_FS/mem/bus/dma_interface.o
ALPHA_FS/mem/bus/master_interface.o ALPHA_FS/mem/bus/slave_interface.o
ALPHA_FS/mem/cache/base_cache.o ALPHA_FS/mem/cache/cache.o
ALPHA_FS/mem/cache/cache_builder.o
ALPHA_FS/mem/cache/coherence/coherence_protocol.o
ALPHA_FS/mem/cache/coherence/uni_coherence.o
ALPHA_FS/mem/cache/miss/blocking_buffer.o
ALPHA_FS/mem/cache/miss/miss_queue.o ALPHA_FS/mem/cache/miss/mshr.o
ALPHA_FS/mem/cache/miss/mshr_queue.o
ALPHA_FS/mem/cache/prefetch/base_prefetcher.o
ALPHA_FS/mem/cache/prefetch/prefetcher.o
ALPHA_FS/mem/cache/prefetch/tagged_prefetcher.o
ALPHA_FS/mem/cache/tags/base_tags.o
ALPHA_FS/mem/cache/tags/cache_tags.o ALPHA_FS/mem/cache/tags/fa_lru.o
ALPHA_FS/mem/cache/tags/iic.o ALPHA_FS/mem/cache/tags/lru.o
ALPHA_FS/mem/cache/tags/repl/gen.o ALPHA_FS/mem/cache/tags/repl/repl.o
ALPHA_FS/mem/functional/functional.o ALPHA_FS/mem/timing/base_memory.o
ALPHA_FS/mem/timing/memory_builder.o
ALPHA_FS/mem/timing/simple_mem_bank.o ALPHA_FS/mem/trace/itx_writer.o
ALPHA_FS/mem/trace/mem_trace_writer.o ALPHA_FS/mem/trace/m5_writer.o
ALPHA_FS/python/pyconfig.o ALPHA_FS/python/embedded_py.o
ALPHA_FS/sim/builder.o ALPHA_FS/sim/configfile.o ALPHA_FS/sim/debug.o
ALPHA_FS/sim/eventq.o ALPHA_FS/sim/main.o ALPHA_FS/sim/param.o
ALPHA_FS/sim/profile.o ALPHA_FS/sim/root.o ALPHA_FS/sim/serialize.o
ALPHA_FS/sim/sim_events.o ALPHA_FS/sim/sim_exit.o
ALPHA_FS/sim/sim_object.o ALPHA_FS/sim/startup.o
ALPHA_FS/sim/stat_context.o ALPHA_FS/sim/stat_control.o
ALPHA_FS/sim/trace_context.o ALPHA_FS/arch/alpha/alpha_memory.o
ALPHA_FS/arch/alpha/arguments.o ALPHA_FS/arch/alpha/ev5.o
ALPHA_FS/arch/alpha/osfpal.o ALPHA_FS/arch/alpha/pseudo_inst.o
ALPHA_FS/arch/alpha/vtophys.o ALPHA_FS/base/crc.o ALPHA_FS/base/inet.o
ALPHA_FS/base/remote_gdb.o ALPHA_FS/cpu/intr_control.o
ALPHA_FS/dev/alpha_console.o ALPHA_FS/dev/baddev.o
ALPHA_FS/dev/simconsole.o ALPHA_FS/dev/disk_image.o
ALPHA_FS/dev/etherbus.o ALPHA_FS/dev/etherdump.o
ALPHA_FS/dev/etherint.o ALPHA_FS/dev/etherlink.o
ALPHA_FS/dev/etherpkt.o ALPHA_FS/dev/ethertap.o ALPHA_FS/dev/ide_ctrl.o
ALPHA_FS/dev/ide_disk.o ALPHA_FS/dev/io_device.o ALPHA_FS/dev/ns_gige.o
ALPHA_FS/dev/pciconfigall.o ALPHA_FS/dev/pcidev.o
ALPHA_FS/dev/pcifake.o ALPHA_FS/dev/pktfifo.o ALPHA_FS/dev/platform.o
ALPHA_FS/dev/sinic.o ALPHA_FS/dev/simple_disk.o ALPHA_FS/dev/tsunami.o
ALPHA_FS/dev/tsunami_cchip.o ALPHA_FS/dev/isa_fake.o
ALPHA_FS/dev/tsunami_io.o ALPHA_FS/dev/tsunami_pchip.o
ALPHA_FS/dev/uart.o ALPHA_FS/dev/uart8250.o
ALPHA_FS/kern/kernel_binning.o ALPHA_FS/kern/kernel_stats.o
ALPHA_FS/kern/system_events.o ALPHA_FS/kern/freebsd/freebsd_system.o
ALPHA_FS/kern/linux/linux_syscalls.o ALPHA_FS/kern/linux/linux_system.o
ALPHA_FS/kern/linux/printk.o ALPHA_FS/kern/tru64/dump_mbuf.o
ALPHA_FS/kern/tru64/printf.o ALPHA_FS/kern/tru64/tru64_events.o
ALPHA_FS/kern/tru64/tru64_syscalls.o ALPHA_FS/kern/tru64/tru64_system.o
ALPHA_FS/mem/functional/memory_control.o
ALPHA_FS/mem/functional/physical.o ALPHA_FS/sim/system.o
ALPHA_FS/base/mysql.o ALPHA_FS/base/stats/mysql.o ALPHA_FS/base/date.o
-Llibelf/lib -L/usr/lib/mysql -L/usr/lib -lz -lelf -lmysqlclient -lz
-lcrypt -lnsl -lm -lssl -lcrypto
collect2: ld returned 1 exit status
scons: *** [ALPHA_FS/m5.opt] Error 1
scons: building terminated because of errors.
I think it just failed at the last step. But don't know why.
Chandler
You're
going to need to provide the previous line where the linker says what
it can't find.
Ali
On Aug 24, 2006, at 11:35 AM, Chenjie Yu wrote:
Hi all,
?lt;/DIV>
I was building
?lt;/DIV>
scons ALPHA_FS/test/opt/quick
?lt;/DIV>
but get the following error.
?lt;/DIV>
collect2: ld returned 1 exit status
scons: *** [ALPHA_FS/m5.opt] Error 1
scons: building terminated because of errors.
Anyone knows why?
?lt;/DIV>
Thanks,
?lt;/DIV>
Chandler
Do you Yahoo!?
Everyone is raving about the all-new
Yahoo! Mail.
_______________________________________________
m5-users mailing list
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
Get your email and more, right on the
new Yahoo.com
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
|
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users