Re: Problem compiling
Daniel Diaz <[email protected]> Thu, 16 Oct 2008 19:55:13 +0200
| Newsgroups | gmane.comp.gnu.prolog.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hi Jasper From what I have found on the web it seems this problem occurs on a 64 bits when compiling in 32 bits. It seems there is an incompatibility between signal.h and asm/sigcontext.h. Could you try to comment the include asm/sigcontext in machine.c:455 please ? If this does not fix the problem can I have an access to your machine to try to figure out where the problems come from ? Thank you > (Oops, sorry, used my alter-ego!) I got this trying to compile the > latest 'unstable' version (that > fixes the last bug I reported!) using gcc 4.3.2 on Ubuntu Intrepid Beta. > It compiles OK on MacOS 10.5.5 with gcc 4.2. > On Intrepid I also get the same problem with the 18th May 2007 version. > --Jasper > > (cd EnginePl; make config) > make[1]: Entering directory > `/home/jaspert/Build/gprolog-1.3.1/src/EnginePl' > gcc -march=pentiumpro -O3 -fomit-frame-pointer -o pl_config pl_config.c > ./pl_config > > ------------------------------- > --- GNU PROLOG INSTALLATION --- > ------------------------------- > > GNU Prolog version: 1.3.1 (Oct 1 2008) > Operating system : linux-gnu > Processor : i686 > Size of a word : 32 bits > C compiler : gcc > C flags : -O3 -fomit-frame-pointer > C flags machine : -march=pentiumpro > Loader flags : > Loader libraries : -lm > Use line editor : Yes > Use piped consult : Yes > Use sockets : Yes > Use FD solver : Yes > Use fast call : Yes > Use machine regs. : Yes > Used register(s) : ebx (TR) > > ------------------------------ > > (cd ../TopComp; make gplc) > make[2]: Entering directory > `/home/jaspert/Build/gprolog-1.3.1/src/TopComp' > gcc -march=pentiumpro -O3 -fomit-frame-pointer -o gplc top_comp.c -lm > top_comp.c: In function ‘Spawn_Decode_Hex’: > top_comp.c:820: warning: ignoring return value of ‘fgets’, declared with > attribute warn_unused_result > make[2]: Leaving directory > `/home/jaspert/Build/gprolog-1.3.1/src/TopComp' > make[1]: Leaving directory > `/home/jaspert/Build/gprolog-1.3.1/src/EnginePl' > . ./SETVARS;for i in TopComp EnginePl Wam2Ma Ma2Asm Linedit BipsPl > Pl2Wam Fd2C EngineFD BipsFD;do (cd $i; make) || exit 1; done;\ > (cd TopComp; make gprolog) > make[1]: Entering directory > `/home/jaspert/Build/gprolog-1.3.1/src/TopComp' > gcc -march=pentiumpro -O3 -fomit-frame-pointer -o hexgplc hexfilter.c > make[1]: Leaving directory > `/home/jaspert/Build/gprolog-1.3.1/src/TopComp' > make[1]: Entering directory > `/home/jaspert/Build/gprolog-1.3.1/src/EnginePl' > gcc -march=pentiumpro -O3 -fomit-frame-pointer -o cpp_headers > cpp_headers.c > D=`(cd ..;for i in *;do test -d $i && X="$X > /home/jaspert/Build/gprolog-1.3.1/src/$i";done;echo $X)`; ./cpp_headers > headers.h gprolog.h $D > gplc -c -C '-O3 -fomit-frame-pointer' machine.c > In file included from machine.c:455: > /usr/include/asm/sigcontext.h:22: error: redefinition of ‘struct _fpreg’ > /usr/include/asm/sigcontext.h:27: error: redefinition of ‘struct _fpxreg’ > /usr/include/asm/sigcontext.h:33: error: redefinition of ‘struct _xmmreg’ > /usr/include/asm/sigcontext.h:37: error: redefinition of ‘struct > _fpstate’ > /usr/include/asm/sigcontext.h:64: error: redefinition of ‘struct > sigcontext’ > machine.c: In function ‘M_Get_Working_Dir’: > machine.c:1027: warning: ignoring return value of ‘getcwd’, declared > with attribute warn_unused_result > compilation failed > make[1]: *** [machine.o] Error 1 > make[1]: Leaving directory > `/home/jaspert/Build/gprolog-1.3.1/src/EnginePl' > make: *** [all] Error 1 > > > > > _______________________________________________ > Bug-prolog mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/bug-prolog >