Hi,

I downloaded the flexus version 1.0.2 and followed the Getting-started
guide.

When trying to run "make CMPFlex" I encountered a linking problem.
This is the output on my screen:

Checking dependant component v9_iface_gcc Common
Checking dependant component v9_iface_gcc BPWarm
Checking dependant component v9_iface_gcc InorderSimicsFeeder
Checking dependant component v9_iface_gcc CmpCache
Checking dependant component v9_iface_gcc MemoryLoopback
Checking dependant component v9_iface_gcc MemoryMap
Checking dependant component v9_iface_gcc MagicBreak
Checking dependant component v9_iface_gcc IFetch
Checking dependant component v9_iface_gcc Execute
Checking dependant component v9_iface_gcc Cache
Checking simics v9_iface_gcc core
Building Boost.DateTime
Building Boost.Regex
Building Boost.Serialization
/home/gcc-3.4.4/bin/g++-3.4.4 -shared -export-dynamic -Wl,--whole-
archive *.v9_iface_gcc_o /home/shachar/flexus/components/
Common/Common.v9.iface.gcc.a
/home/shachar/flexus/components/BPWarm/BPWarm.v9.iface.gcc.a
/home/shachar/flexus/components/I
norderSimicsFeeder/InorderSimicsFeeder.v9.iface.gcc.a
/home/shachar/flexus/components/CmpCache/CmpCache.v9.iface.gcc.a /hom
e/shachar/flexus/components/MemoryLoopback/MemoryLoopback.v9.iface.gcc.a
/home/shachar/flexus/components/MemoryMap/MemoryMa
p.v9.iface.gcc.a
/home/shachar/flexus/components/MagicBreak/MagicBreak.v9.iface.gcc.a
/home/shachar/flexus/components/IFetc
h/IFetch.v9.iface.gcc.a
/home/shachar/flexus/components/Execute/Execute.v9.iface.gcc.a
/home/shachar/flexus/components/Cach
e/Cache.v9.iface.gcc.a -L/home/shachar/flexus/core -Wl,--whole-archive -
lcore_v9_iface_gcc -lsimics_v9_iface_gcc -lboost_da
te_time -lboost_regex -lboost_serialization -lz -o
libflexus_CMPFlex_v9_iface_gcc.so
/usr/bin/ld:
`.gnu.linkonce.t._ZNK5boost7archive17archive_exception4whatEv'
referenced in section `.rodata' of /home/shacha
r/flexus/components/CmpCache/CmpCache.v9.iface.gcc.a
(CmpCacheImpl.v9_iface_gcc_o): defined in discarded section `.gnu.linko
nce.t._ZNK5boost7archive17archive_exception4whatEv'
of /home/shachar/flexus/components/CmpCache/CmpCache.v9.iface.gcc.a(Cmp
CacheImpl.v9_iface_gcc_o)

/usr/bin/ld:
`.gnu.linkonce.t._ZNK5boost7archive17archive_exception4whatEv'
referenced in section `.rodata' of /home/shacha
r/flexus/components/CmpCache/CmpCache.v9.iface.gcc.a
(CmpCacheImpl.v9_iface_gcc_o): defined in discarded section `.gnu.linko
nce.t._ZNK5boost7archive17archive_exception4whatEv'
of /home/shachar/flexus/components/CmpCache/CmpCache.v9.iface.gcc.a(Cmp
CacheImpl.v9_iface_gcc_o)

[...] (There are a lot from this kind of messages)

/usr/bin/ld:
`.gnu.linkonce.t._ZNK5boost7archive17archive_exception4whatEv'
referenced in section `.rodata' of /home/shacha
r/flexus/core/libboost_serialization.a(text_oarchive.gcc_o): defined in
discarded section `.gnu.linkonce.t._ZNK5boost7archi
ve17archive_exception4whatEv'
of /home/shachar/flexus/core/libboost_serialization.a
(text_oarchive.gcc_o)

/usr/bin/ld:
`.gnu.linkonce.t._ZNK5boost7archive17archive_exception4whatEv'
referenced in section `.rodata' of /home/shacha
r/flexus/core/libboost_serialization.a(text_oarchive.gcc_o): defined in
discarded section `.gnu.linkonce.t._ZNK5boost7archi
ve17archive_exception4whatEv'
of /home/shachar/flexus/core/libboost_serialization.a
(text_oarchive.gcc_o)

/usr/bin/ld:
`.gnu.linkonce.t._ZNK5boost7archive17archive_exception4whatEv'
referenced in section `.rodata' of /home/shacha
r/flexus/core/libboost_serialization.a(text_oarchive.gcc_o): defined in
discarded section `.gnu.linkonce.t._ZNK5boost7archi
ve17archive_exception4whatEv'
of /home/shachar/flexus/core/libboost_serialization.a
(text_oarchive.gcc_o)

/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
make[3]: *** [CMPFlex] Error 2
make[2]: *** [CMPFlex] Error 2
make[1]: *** [CMPFlex] Error 2


Can anyone help me?

Thanks,
Shachar Gang
[email protected]

Reply via email to