Hi, I am trying to build CMPFlex. Components compile but there is something wrong when linking with the boost libraries:
/home/gcc-3.4.4/bin/g++-3.4.4 -shared -export-dynamic -Wl,--whole-archive *.v9_iface_gcc_o /home/vgliasko/flexus/components/Common/Common.v9.iface.gcc.a /home/vgliasko/flexus/components/BPWarm/BPWarm.v9.iface.gcc.a /home/vgliasko/flexus/components/InorderSimicsFeeder/InorderSimicsFeeder.v9.iface.gcc.a /home/vgliasko/flexus/components/CmpCache/CmpCache.v9.iface.gcc.a /home/vgliasko/flexus/components/MemoryLoopback/MemoryLoopback.v9.iface.gcc.a /home/vgliasko/flexus/components/MemoryMap/MemoryMap.v9.iface.gcc.a /home/vgliasko/flexus/components/MagicBreak/MagicBreak.v9.iface.gcc.a /home/vgliasko/flexus/components/IFetch/IFetch.v9.iface.gcc.a /home/vgliasko/flexus/components/Execute/Execute.v9.iface.gcc.a /home/vgliasko/flexus/components/Cache/Cache.v9.iface.gcc.a -L/home/vgliasko/flexus/core -Wl,--whole-archive -lcore_v9_iface_gcc -lsimics_v9_iface_gcc -lboost_date_time -lboost_regex -lboost_serialization -lz -o libflexus_CMPFlex_v9_iface_gcc.so I get many of the following errors: /usr/bin/ld: `.gnu.linkonce.t._ZNK5boost7archive17archive_exception4whatEv' referenced in section `.rodata' of /home/vgliasko/flexus/core/libboost_serialization.a(text_oarchive.gcc_o): defined in discarded section `.gnu.linkonce.t._ZNK5boost7archive17archive_exception4whatEv' of /home/vgliasko/flexus/core/libboost_serialization.a(text_oarchive.gcc_o) /usr/bin/ld: `.gnu.linkonce.t._ZNK5boost7archive17archive_exception4whatEv' referenced in section `.rodata' of /home/vgliasko/flexus/core/libboost_serialization.a(text_oarchive.gcc_o): defined in discarded section `.gnu.linkonce.t._ZNK5boost7archive17archive_exception4whatEv' of /home/vgliasko/flexus/core/libboost_serialization.a(text_oarchive.gcc_o) /usr/bin/ld: `.gnu.linkonce.t._ZNK5boost7archive17archive_exception4whatEv' referenced in section `.rodata' of /home/vgliasko/flexus/core/libboost_serialization.a(text_oarchive.gcc_o): defined in discarded section `.gnu.linkonce.t._ZNK5boost7archive17archive_exception4whatEv' of /home/vgliasko/flexus/core/libboost_serialization.a(text_oarchive.gcc_o) And finally: /usr/lib/libc_nonshared.a(elf-init.oS)(.text+0x1c): In function `__libc_csu_init': : undefined reference to `__init_array_end' /usr/lib/libc_nonshared.a(elf-init.oS)(.text+0x22): In function `__libc_csu_init': : undefined reference to `__init_array_start' /usr/lib/libc_nonshared.a(elf-init.oS)(.text+0x68): In function `__libc_csu_fini': : undefined reference to `__fini_array_end' /usr/lib/libc_nonshared.a(elf-init.oS)(.text+0x6e): In function `__libc_csu_fini': : undefined reference to `__fini_array_start' /usr/bin/ld: libflexus_CMPFlex_v9_iface_gcc.so: hidden symbol `__fini_array_end' isn't defined /usr/bin/ld: final link failed: Nonrepresentable section on output collect2: ld returned 1 exit status make[6]: *** [libflexus_CMPFlex_v9_iface_gcc.so] Error 1 make[5]: *** [simics-v9] Error 2 make[4]: *** [CMPFlex] Error 2 BOOST_PATH points to the correct boost directory. Do I need to configure something manually in the boost directory? thanks, - Vasilis
