matterser Posted January 22, 2015 Report Share Posted January 22, 2015 Hi, I want install systemc 32bit on my 64bit host. I follow the website comment. cd $SYSTEMC_HOME/objdir ../configure --target=i686-linux-gnu # QuickThreads: make CPPFLAGS="-m32" AS="as --32" # Pthreads: make CPPFLAGS="-m32" QT_ARCH="pthreads" pthreads make install But when I make CPPFLAGS="-m32" AS="as --32", I have a problem, as following make[3]: *** [libsystemc.la] Error 1 make[3]: Leaving directory `/root/systemc-2.3.1/src/sysc' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/root/systemc-2.3.1/src/sysc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/systemc-2.3.1/src' make: *** [all-recursive] Error 1 How can I solve the problem? Thank a lot. Quote Link to comment Share on other sites More sharing options...
apfitch Posted January 22, 2015 Report Share Posted January 22, 2015 Follow the instructions in the INSTALL file in the download, kind regards Alan Quote Link to comment Share on other sites More sharing options...
matterser Posted January 24, 2015 Author Report Share Posted January 24, 2015 Hi, When I install 32bit systemc on 64bit OS, # mkdir objdir # cd objdir # ../configure --prefix=/usr/local/systemc-2.3.1 --host=i686-linux-gnu # make # make install And I have error: /usr/local/systemc-2.3.1/lib-linux/libsystemc.a: could not read symbols: File in wrong format Is that the enviroment problem? Quote Link to comment Share on other sites More sharing options...
apfitch Posted January 25, 2015 Report Share Posted January 25, 2015 I could only compile with pthreads (quickthreads didn't work) ../configure --host=i686-linux-gnu --prefix=/home/apf/systemc-2.3.1x86 --enable-pthreads Then in my Makefile for the actual systemc program I was building, I had to add -m32 to g++ regards Alan Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.