klayout v0.24 compile issue on RHEL5

edited August 2015 in KLayout Support

Hi Matthias,

I tried to compile klayout v0.24 on RHEL5, and it showed the following errors:

/klayout-0.24/src/gsiTypes.h:1823:   instantiated from oid gsi::do_on_type2<F2>::operator()(gsi::BasicType, gsi::BasicType, const A1&, const A2&, const A3&, const A4&) [with A1 = gsi::SerialArgs*, A2 = VALUE, A3 = gsi::ArgType, A4 = tl::Heap*, F2 = rba::map_writer]
/klayout-0.24/src/rba.cc:1926:   instantiated from here
/klayout-0.24/src/rba.cc:1869: error: HASH_SIZE was not declared in this scope

make[1]: *** [rba.o] Error 1
make[1]: Leaving directory `/klayout-0.24/build.linux-64-gcc-release/main'
make: *** [all] Error 1

Could you please let me know how to fix it ? thanks~

This environment is ok to build v0.23.7, and the compile related tools version:

gcc 4.1.2
libtool 1.5.22
ruby 1.8.5
glibc 2.5

Best Regards,

chhung

Comments

  • edited November -1

    Hi chhung,

    Version 0.24 supports hashes in some places hence the difference.

    I guess the build issue is because of the old Ruby version - the oldest one I have been testing on was 1.8.7 where the HASH_SIZE macro is defined.

    I strongly recommend going to 1.9.1 at least (2.x is even better) because those versions are pretty much improved compared to 1.8.7 and you cannot mix Python with 1.8.7 because of a name clash in the include files ("node.h" is present twice).

    Regards,

    Matthias

  • edited November -1

    Hi Matthias,

    I tried to upgrade the ruby version from 1.8.5-19(RHEL5.7) to 1.8.7-374-2, and it fixed the rba.cc error, thank you so much~ :)

    Best Regards,

    chhung

Sign In or Register to comment.