Trusster Forums » Technical Support

error while compiling teal

(4 posts)
  • Started 10 months ago by pramod
  • Latest reply from Mike Mintz

  1. pramod
    Member

    Hi

    I am getting this error while compiling teal on a suse64 bit machine, please help.

    gcc -c -fPIC ./teal_memory.cpp -o ./teal_memory.o -Wall -DSIM=vcs -Dvcs -I. -I/usr/synopsys/A-2008.09/include -I/usr/synopsys/A-2008.09/pli_incs -I/usr/synopsys/A-2008.09/pli/interface
    ./teal_memory.cpp: In constructor âregular_memory_bank::regular_memory_bank(const std::string&)â:
    ./teal_memory.cpp:364: error: cast from âteal::uint8*â to âteal::uint32â loses precision

    Posted 10 months ago #
  2. Mike Mintz
    Key Master

    Hi,

    My mistake. That's the usual 32 versus 64 bit issue. Change:
    (uint32)aval_start_ to (size_t)aval_start_

    Sorry about that,
    Mike

    Posted 10 months ago #
  3. jagan
    Member

    Hi Mike
    I got the same error and and now I get the following error when compiling after making the change you suggested ((uint32)aval_start_ to (size_t)aval_start_) in teal_memory.cpp

    In file included from ./teal.h:137,
    from ./teal_memory.cpp:32:
    ./teal_reg.h:95: warning: ‘typedef’ was ignored in this declaration
    ./teal_memory.cpp: In constructor ‘regular_memory_bank::regular_memory_bank(const std::string&)’:
    ./teal_memory.cpp:364: error: ambiguous overload for ‘operator<<’ in ‘((teal::vout*)((teal::vout*)((teal::vout*)((teal::vout*)((teal::vout*)((teal::vout*)teal::operator<< [with TP1 = const std::string&, TP2 = std::pair<int, int>](((teal::vout&)(&<unnamed>::local_log)), ((const teal::vmanip<const std::string&, std::pair<int, int> >&)((const teal::vmanip<const std::string&, std::pair<int, int> >*)(& teal::mark_start(((const std::string&)(& std::basic_string<char, std::char_traits<char>, std::allocator<char> >(((const char*)"./teal_memory.cpp"), ((const std::allocator<char>&)((const std::allocator<char>*)(& std::allocator<char>())))))), std::pair<int, int>(((const int&)((const int*)(&2055))), ((const int&)((const int*)(&363))))))))))->teal::vout::operator<<(((const std::string&)(& std::basic_string<char, std::char_traits<char>, std::allocator<char> >(((const char*)"Memory ctor: bytes_per_group_ "), ((const std::allocator<char>&)((const std::allocator<char>*)(& std::allocator<char>()))))))))->teal::vout::operator<<(((regular_memory_bank*)this)->regular_memory_bank::bytes_per_group_))->teal::vout::operator<<(((const std::string&)(& std::basic_string<char, std::char_traits<char>, std::allocator<char> >(((const char*)" bit_length_ : "), ((const std::allocator<char>&)((const std::allocator<char>*)(& std::allocator<char>()))))))))->teal::vout::operator<<(((regular_memory_bank*)this)->regular_memory_bank::bit_length_))->teal::vout::operator<<(teal::hex))->teal::vout::operator<<(((const std::string&)(& std::basic_string<char, std::char_traits<char>, std::allocator<char> >(((const char*)" aval_start: "), ((const std::allocator<char>&)((const std::allocator<char>*)(& std::allocator<char>()))))))) << (size_t)((regular_memory_bank*)this)->regular_memory_bank::aval_start_’
    ./teal_vout.h:131: note: candidates are: virtual teal::vout& teal::vout::operator<<(char)
    ./teal_vout.h:132: note: virtual teal::vout& teal::vout::operator<<(int)

    What can I do to get over this error. Also, do you have a different version/download for 64bit machines.?

    Thanks

    Posted 6 months ago #
  4. Mike Mintz
    Key Master

    Hi,

    Sorry for the delay in responding.

    Since teal_memory.cpp:95 and 364 are just a log lines, you can comment them out.

    Feel free to e-mail me directly at mike <> trusster <> com

    Again, I apologize for the delay.

    take Care,
    mike

    Posted 4 months ago #

RSS feed for this topic

Reply

You must log in to post.