• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC Design
  3. Using system gcc instead the MMSIM one during ahdlcmi c...

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 125
  • Views 15166
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using system gcc instead the MMSIM one during ahdlcmi compilation

Johanny Saenz
Johanny Saenz over 6 years ago

Hi all!

I'm having problems during VerilogA compilation and the spectre.out show me the following error in MMSIM 15.1.0.257

ERROR (VACOMP-1008): Cannot compile ahdlcmi module library.

Checking in the ahdlcmi.out file, I get the following problematic line:

ld: cannot find -lc
collect2: error: ld returned 1 exit status

Executing the same command that is contained in the ahdlcmi.out file but replacing the gcc version contained on MMSIM folder ($MMSIMHOME/tools.lnx86/cdsgcc/gcc/4.8/bin/gcc) by the gcc command available on the system, there is no longer error.

I want to know how I can redirect the gcc to be the same of the machine and not the used by Cadence

gcc version 4.8.3 (Cadence)

gcc version 4.9.2 (Linux)

Thanks!

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 6 years ago

    I don't think this is due to the gcc version being used, but probably that you are running spectre in 32-bit mode and you don't have the 32-bit libc installed on your machine (normally in /usr/lib/libc.so). Can you try running spectre in 64-bit and see if that fixes it?

    You can do this in ADE by turning on 64 bit mode on Setup->Environment or you can set this before starting virtuoso:

    setenv CDS_AUTO_64BIT ALL

    if using csh, or:

    export CDS_AUTO_64BIT=ALL

    if using bash/ksh. Note you could just set the env var to spectre rather than ALL if you only want to enable spectre in 64 bit mode, but probably simplest just to enable everything. Virtuoso is always 64-bit in IC617 onwards anyway.

    Regards,

    Andrew.

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • Johanny Saenz
    Johanny Saenz over 6 years ago in reply to Andrew Beckett

    Hi Andrew!

    I have solved this issue creating a symbolic link named {$CDS_DIR}/MMSIM15.10.257/tools.lnx86/cdsgcc/gcc/4.8/bin/gcc to the gcc system (/usr/bin/gcc).

    I thought that MMSIM15 automatically would use the gcc version from the system. How can I configure it?

    Thanks!

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Johanny Saenz
    Johanny Saenz over 6 years ago in reply to Andrew Beckett

    Hi Andrew!

    I have solved this issue creating a symbolic link named {$CDS_DIR}/MMSIM15.10.257/tools.lnx86/cdsgcc/gcc/4.8/bin/gcc to the gcc system (/usr/bin/gcc).

    I thought that MMSIM15 automatically would use the gcc version from the system. How can I configure it?

    Thanks!

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Andrew Beckett
    Andrew Beckett over 6 years ago in reply to Johanny Saenz

    That absolutely should not be required (and is not recommended). We intentionally use the gcc we ship as that is both tested, and also will then produce a shared library that is compatible with the compilers used to build spectre. I suspect you've just worked around the real issue (I'm not sure why your change fixes it). Please contact customer support so that we can investigate what is really wrong with the setup of your machine that causes this to fail.

    Regards,

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information