Jump to content

Running SystemC on new Apple M1 silicon

Recommended Posts

Managed to run SystemC on new Apple M1 silicon, following are the steps 

1. modify configure file, add the following code highlighted in red

     # check CPU architecture

     case ${target_cpu} in #(

         x86_64|amd64) :



          QT_ARCH="x86_64" ;; #(

  x*86|i*86) :


          QT_ARCH="iX86" ;; #(

  powerpc64) :



          QT_ARCH="pthreads" ;; #(

  powerpc) :



          QT_ARCH="powerpc-apple-macosx" ;; #(

  arm) :



          QT_ARCH="pthreads" ;;



  *) :

    as_fn_error $? "\"sorry...architecture not supported\"" "$LINENO" 5 ;;

2. install g++ using homebrew

brew install gcc

3. setting CXX  and point to the homebrew g++-11 in step 2, run configure

export CXX=g++-11 


4. make all

5. make check

I would like to encourage others to share their experience of porting systemC to this new mac silicon. 

Link to post
Share on other sites
  • 3 weeks later...

Thanks William for this, worked as a charm for me. I've made similar changes to the configure for SystemC AMS and succeeded in building it too. Too bad a google search on build systemc apple m1 doesn't point to this, would have saved me some time.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...