-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while running make under macOS #1
Comments
The actual error messages will be found in "make.log", so please check that file and let me know what the specific error messages are. |
As per 'make.log' file the following are the errors generated while running 'make' Error#1:gcc -g -I. -I.. -DCAD_DIR="/usr/local/lib" -DBIN_DIR="/usr/local/bin" -DPACKAGE_NAME="irsim" -DPACKAGE_TARNAME="irsim" -DPACKAGE_VERSION="9.7" -DPACKAGE_STRING="irsim\ 9.7" -DPACKAGE_BUGREPORT="[email protected]" -DPACKAGE_URL="" -DIRSIM_VERSION="9.7" -DIRSIM_REVISION="110" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_VOID_P=8 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_UNSIGNED_LONG=8 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DSIZEOF_VOID_P=8 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_UNSIGNED_LONG=8 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DSTDC_HEADERS=1 -DHAVE_SETENV=1 -DHAVE_PUTENV=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_VA_COPY=1 -DHAVE___VA_COPY=1 -DFAULT_SIM=1 -DPOWER_EST=1 -DUSER_SUBCKT=1 -DSTATS=1 -DCL_STATS=1 -DRANDOM=1 -DHAVE_PTHREADS=1 -DSHDLIB_EXT="" -DNDEBUG -c eval.c Error#2gcc -g -I/usr/X11/include -I../base -I. -I.. -DCAD_DIR="/usr/local/lib" -DBIN_DIR="/usr/local/bin" -DPACKAGE_NAME="irsim" -DPACKAGE_TARNAME="irsim" -DPACKAGE_VERSION="9.7" -DPACKAGE_STRING="irsim\ 9.7" -DPACKAGE_BUGREPORT="[email protected]" -DPACKAGE_URL="" -DIRSIM_VERSION="9.7" -DIRSIM_REVISION="110" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_VOID_P=8 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_UNSIGNED_LONG=8 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DSIZEOF_VOID_P=8 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_UNSIGNED_LONG=8 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DSTDC_HEADERS=1 -DHAVE_SETENV=1 -DHAVE_PUTENV=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_VA_COPY=1 -DHAVE___VA_COPY=1 -DFAULT_SIM=1 -DPOWER_EST=1 -DUSER_SUBCKT=1 -DSTATS=1 -DCL_STATS=1 -DRANDOM=1 -DHAVE_PTHREADS=1 -DSHDLIB_EXT="" -DNDEBUG -DX11 -DXLIB -DNDEBUG -c thread.c Error#3gcc -g -I../base -I. -I.. -DCAD_DIR="/usr/local/lib" -DBIN_DIR="/usr/local/bin" -DPACKAGE_NAME="irsim" -DPACKAGE_TARNAME="irsim" -DPACKAGE_VERSION="9.7" -DPACKAGE_STRING="irsim\ 9.7" -DPACKAGE_BUGREPORT="[email protected]" -DPACKAGE_URL="" -DIRSIM_VERSION="9.7" -DIRSIM_REVISION="110" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_VOID_P=8 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_UNSIGNED_LONG=8 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DSIZEOF_VOID_P=8 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_UNSIGNED_LONG=8 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DSTDC_HEADERS=1 -DHAVE_SETENV=1 -DHAVE_PUTENV=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_VA_COPY=1 -DHAVE___VA_COPY=1 -DFAULT_SIM=1 -DPOWER_EST=1 -DUSER_SUBCKT=1 -DSTATS=1 -DCL_STATS=1 -DRANDOM=1 -DHAVE_PTHREADS=1 -DSHDLIB_EXT="" -DNDEBUG -c subckt.c |
The output of './configure' is: checking build system type... arm-apple-darwin20.3.0 |
Oh, I remember coming across this one before. The Mac compiler apparently sets "-Werror" (treat compiler warnings as fatal errors) as a default. Probably what you want to do is this for "configure":
If that doesn't work, then find "CFLAGS =" in the "defs.mak" file and add "-Wno-error" to the list of gcc flags. |
I tried both ways and unfortunately I am getting the same error |
Could this be due to not declaring the function before calling it, as per the thread below: |
Well, yes, but there are hundreds if not thousands of such issues in the code, which was written in the 1980s, and rather than try to track them all down and fix them, I depend on the compiler treating them as warnings (or not at all) and continuing on. You might try "CFLAGS = -w" which would completely supress all compiler warnings. I'm not sure why "-Wno-error" doesn't work, though. |
Macbook M1,
bigSur 11.2
The error generated have summary as:
2 errors generated.
make[2]: *** [subckt.o] Error 1
make[1]: *** [modules] Error 2
Is there any fix? Thanks
The text was updated successfully, but these errors were encountered: