#13244 closed defect (duplicate)
clisp does not build on 10.5 MacBook Pro; fails with "CPPFLAGS has changed"
Reported by: | jaroom@… | Owned by: | kballard (Lily Ballard) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.5.0 |
Keywords: | clisp | Cc: | waqar@…, CaptSolo |
Port: |
Description
clisp is the first package I've tried to install after installing MacPorts.
Install failed with the message:
configure: error: `CPPFLAGS' has changed since the previous run: configure: former value: configure: current value: -I/opt/local/include configure: error: changes in the environment can compromise the build configure: error: run `make distclean' and/or `rm ../config.cache' and start over make: *** [i18n] Error 1
Here is the complete text of the error:
---> Fetching clisp ---> Attempting to fetch clisp-2.42.tar.bz2 from http://ftp.gnu.org/gnu/clisp/release/2.42 ---> Verifying checksum(s) for clisp ---> Extracting clisp ---> Configuring clisp ---> Building clisp with target all Error: Target org.macports.build returned: shell command "cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_clisp/work/clisp-2.42/src && ulimit -s 16384 && unset LD_PREBIND && unset LD_PREBIND_ALLOW_OVERLAP && make" returned error 2 Command output: ln -s ../utils/modprep.lisp modprep.lisp rm -rf linkkit mkdir linkkit cd linkkit && ln -s ../modules.d modules.d cd linkkit && ln -s ../modules.c modules.c cd linkkit && ln -s ../clisp.h clisp.h cd linkkit && ln -s ../modprep.lisp modprep.lisp (echo 'CC='"'"'gcc'"'" ; echo 'CPPFLAGS='"'"'-I/opt/local/include '"'" ; echo 'CFLAGS='"'"'-D_NONSTD_SOURCE -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -O2 -fexpensive-optimizations -falign-functions=4 -DUNIX_BINARY_DISTRIB -DUNICODE -I.'"'" ; echo 'CLFLAGS='"'"'-x none'"'" ; echo 'LIBS='"'"'lisp.a -L/opt/local/lib -lintl -liconv -lc -Wl,-framework -Wl,CoreFoundation libcharset.a -L/opt/local/lib -lreadline -lncurses -L/opt/local/lib -liconv -L/opt/local/lib -lsigsegv -lc'"'" ; echo 'X_LIBS='"'"'-L/usr/X11/lib'"'" ; echo 'RANLIB='"'"'ranlib'"'" ; echo 'FILES='"'"'lisp.a libnoreadline.a libcharset.a '"'") > makevars ./lisp.run -B . -N locale -E 1:1 -Efile UTF-8 -Eterminal UTF-8 -norc -M lispinit.mem -q -c ../utils/modprep.lisp -o modprep.fas ;; Compiling file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_clisp/work/clisp-2.42/utils/modprep.lisp ... ;; Wrote file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_clisp/work/clisp-2.42/src/modprep.fas 0 errors, 0 warnings ./lndir ../modules/i18n i18n m=`cd ../modules/i18n; pwd`; \ if test -f i18n/configure -a i18n/configure -nt i18n/config.status ; then cd i18n ; \ ( cache=`echo i18n/ | sed -e 's,[^/][^/]*//*,../,g'`config.cache; \ if test -f ${cache} ; then . ${cache}; \ if test "${ac_cv_env_CC_set}" = set; then CC="${ac_cv_env_CC_value}"; export CC; fi; \ if test "${ac_cv_env_CFLAGS_set}" = set; then CFLAGS="${ac_cv_env_CFLAGS_value}"; export CFLAGS; fi; \ /bin/sh ./configure --cache-file=${cache} --srcdir=$m --with-libreadline-prefix=/opt/local --with-libsigsegv-prefix=/opt/local --with-libiconv-prefix=/opt/local --with-unicode --with-readline --without-dynamic-ffi --with-export-syscalls --with-gettext;\ else /bin/sh ./configure --srcdir=$m --with-libreadline-prefix=/opt/local --with-libsigsegv-prefix=/opt/local --with-libiconv-prefix=/opt/local --with-unicode --with-readline --without-dynamic-ffi --with-export-syscalls --with-gettext; \ fi ) ;\ fi configure: loading cache ../config.cache configure: error: `CPPFLAGS' has changed since the previous run: configure: former value: configure: current value: -I/opt/local/include configure: error: changes in the environment can compromise the build configure: error: run `make distclean' and/or `rm ../config.cache' and start over make: *** [i18n] Error 1 Error: Status 1 encountered during processing.
Change History (11)
comment:1 Changed 17 years ago by jaroom@…
comment:2 Changed 17 years ago by waqar@…
Cc: | waqar@… added |
---|
comment:4 follow-up: 5 Changed 17 years ago by jay macports@…
I encountered a nearly-identical issue installing 2.43:
---> Fetching clisp ---> Attempting to fetch clisp-2.43.tar.bz2 from http://ftp.gnu.org/gnu/clisp/release/2.43 ---> Verifying checksum(s) for clisp ---> Extracting clisp ---> Configuring clisp ---> Building clisp with target all Error: Target org.macports.build returned: shell command "cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_clisp/work/clisp-2.43/src && ulimit -s 16384 && unset LD_PREBIND LD_PREBIND_ALLOW_OVERLAP && make" returned error 2 Command output: cd linkkit && ln -s ../modules.d modules.d cd linkkit && ln -s ../modules.c modules.c cd linkkit && ln -s ../clisp.h clisp.h cd linkkit && ln -s ../modprep.lisp modprep.lisp (echo 'CC='"'"'gcc'"'" ; echo 'CPPFLAGS='"'"'-I/opt/local/include '"'" ; echo 'CFLAGS='"'"'-D_NONSTD_SOURCE -Igllib -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -O2 -fexpensive-optimizations -falign-functions=4 -DUNIX_BINARY_DISTRIB -DUNICODE -I.'"'" ; echo 'CLFLAGS='"'"'-x none'"'" ; echo 'LIBS='"'"'lisp.a -L/opt/local/lib -lintl -liconv -lc -Wl,-framework -Wl,CoreFoundation -L/opt/local/lib -lreadline -lncurses -L/opt/local/lib -liconv -L/opt/local/lib -lsigsegv -lc'"'" ; echo 'X_LIBS='"'"'-L/usr/X11/lib -R/usr/X11/lib'"'" ; echo 'RANLIB='"'"'ranlib'"'" ; echo 'FILES='"'"'lisp.a libnoreadline.a gllib/uniwidth/width.o gllib/uniname/uniname.o gllib/localcharset.o '"'") > makevars ./lisp.run -B . -N locale -E 1:1 -Efile UTF-8 -Eterminal UTF-8 -norc -M lispinit.mem -q -c ../utils/modprep.lisp -o modprep.fas ;; Compiling file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_clisp/work/clisp-2.43/utils/modprep.lisp ... ;; Wrote file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_clisp/work/clisp-2.43/src/modprep.fas 0 errors, 0 warnings ./lndir ../modules/i18n i18n m=`cd ../modules/i18n; pwd`; \ if test -f i18n/configure -a i18n/configure -nt i18n/config.status ; then cd i18n ; \ ( cache=`echo i18n/ | sed -e 's,[^/][^/]*//*,../,g'`config.cache; \ if test -f ${cache} ; then . ${cache}; \ if test "${ac_cv_env_CC_set}" = set; then CC="${ac_cv_env_CC_value}"; export CC; fi; \ if test "${ac_cv_env_CFLAGS_set}" = set; then CFLAGS="${ac_cv_env_CFLAGS_value}"; export CFLAGS; fi; \ /bin/sh ./configure --cache-file=${cache} --srcdir=$m --with-libreadline-prefix=/opt/local --with-libsigsegv-prefix=/opt/local --with-libiconv-prefix=/opt/local --with-unicode --with-readline --without-dynamic-ffi --with-export-syscalls --with-gettext;\ else /bin/sh ./configure --srcdir=$m --with-libreadline-prefix=/opt/local --with-libsigsegv-prefix=/opt/local --with-libiconv-prefix=/opt/local --with-unicode --with-readline --without-dynamic-ffi --with-export-syscalls --with-gettext; \ fi ) ;\ fi configure: loading cache ../config.cache configure: error: `CPPFLAGS' has changed since the previous run: configure: former value: configure: current value: -I/opt/local/include configure: error: `CPP' has changed since the previous run: configure: former value: configure: current value: gcc -E configure: error: changes in the environment can compromise the build configure: error: run `make distclean' and/or `rm ../config.cache' and start over make: *** [i18n] Error 1 Error: Status 1 encountered during processing.
comment:5 Changed 17 years ago by kballard (Lily Ballard)
Replying to jay macports@contravariant.org:
I encountered a nearly-identical issue installing 2.43:
What OS are you running? I just tested and it still builds fine on 10.5.2.
comment:6 Changed 16 years ago by rlonstein@…
comment:7 Changed 16 years ago by anthony.hw.kong@…
Same happened to mine (10.5.3). Here is the uname output.
Darwin mymac 9.3.0 Darwin Kernel Version 9.3.0: Fri May 23 00:49:16 PDT 2008; root:xnu-1228.5.18~1/RELEASE_I386 i386
comment:8 Changed 16 years ago by CaptSolo
Can confirm the same bug (error: `CPPFLAGS' has changed since the previous run).
clisp: 2.43 MacPorts: 1.6.0 OS X: 10.5.4
However, this error only appears if the libsigsegv 2.5 port (which clisp depends on) was installed on the same go. Or if retrying installing clicp after this error happened, without doing "port clean". Would be good to get this fixed, but for now there are a couple of ways to work around it:
a) install libsigsegv separately, then install clisp
b) if the error occured already, do "port clean --all clisp" and try to install it again
comment:10 Changed 16 years ago by blb@…
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Dup of #13930 (Tcl env bug).
Update:
Rerunning "port install clisp" fails with a similar message. However, removing the _opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_clisp directory and rerunning port install succeeded.
clisp is now running successfully for me.