From harrismh777 at gmail.com Sun Apr 12 04:01:43 2015 From: harrismh777 at gmail.com (Mark H. Harris) Date: Sat, 11 Apr 2015 21:01:43 -0500 Subject: [RPL/2] RPL/2 build problems on Intel Edison SoC from sources Message-ID: Greetings, Well, I've been at it for about twenty hours; and I'm stuck. I am trying to build RPL/2 native on an Intel Edison SoC and I continue to get a 'configure' error; "C compiler cannot create executables"; this for tools/gnuplot, and ncurses, and others; depending on what I disable and how far I can get it to go. Things I've tried: CFLAGS, LDFLAGS, environment variables; I have verified that libc6-dev and libc-dev are on-board ( I was able to build the entire GCC compiler enabling C, C++, anc gFortran from sources ; works great ) I have built several of the gnu tools with the compiler that 'configure' is telling doesn't work! So, I'm frustrated. Anyone have any idea what I might try, or take a look at. Oh, by the by, ./autogen.sh runs flawlessly... and 'configure' looks like its going to run flawlessly... finds gcc, and everything checks out... all the patches run fine, and then it throws up its hands at depfiles... and gets the first C compiler cannot create executables at the tools/gnuplot... if I --disable-embedded-gnuplot (I have it installed on my system) then the configure throws up its hands with the same error for ncurses-5.9 ? TIA kind regards, marucs :) -- Kind regards, Mark H. Harris -------------- next part -------------- An HTML attachment was scrubbed... URL: From joel.bertrand at systella.fr Mon Apr 13 23:23:57 2015 From: joel.bertrand at systella.fr (=?UTF-8?Q?BERTRAND_Jo=c3=abl?=) Date: Mon, 13 Apr 2015 23:23:57 +0200 Subject: [RPL/2] RPL/2 build problems on Intel Edison SoC from sources In-Reply-To: References: Message-ID: <552C33ED.3080809@systella.fr> Mark H. Harris a écrit : > Greetings, Hello, > Well, I've been at it for about twenty hours; and I'm stuck. I am > trying to build RPL/2 native on an Intel Edison SoC and I continue to > get a 'configure' error; "C compiler cannot create executables"; this > for tools/gnuplot, and ncurses, and others; depending on what I disable > and how far I can get it to go. Very strange. You should have an error in config.log. Warning, configure builds a static executable and a static library. Thus, all libraries in ./tools and ./rplcas are recursively configured. If error occurs in ncurses configuration, you have to check error in $(builddir)/tools/$(ncurses)/config.log. > Things I've tried: CFLAGS, LDFLAGS, environment variables; I have > verified that libc6-dev and libc-dev are on-board ( I was able to build > the entire GCC compiler enabling C, C++, anc gFortran from sources ; > works great ) I have built several of the gnu tools with the compiler > that 'configure' is telling doesn't work! > So, I'm frustrated. Anyone have any idea what I might try, or take a > look at. Oh, by the by, ./autogen.sh runs flawlessly... and > 'configure' looks like its going to run flawlessly... finds gcc, and > everything checks out... all the patches run fine, and then it throws up > its hands at > > depfiles... and gets the first C compiler cannot create executables at > the tools/gnuplot... if I --disable-embedded-gnuplot (I have it > installed on my system) then the configure throws up its hands with the > same error for ncurses-5.9 > > ? I don't know this SoC, but it seems to run over an Atom. Thus, I don't know why you obtain this error. Please send here your configuration (head config.log), operating system, gcc version and faulty config.log. Maybe your gcc doesn't understand one of the harcoded flags. Regards, JKB From harrismh777 at gmail.com Tue Apr 14 20:38:31 2015 From: harrismh777 at gmail.com (Mark H. Harris) Date: Tue, 14 Apr 2015 13:38:31 -0500 Subject: [RPL/2] RPL/2 build woes Config.log(s) attached Message-ID: Merci Beaucoup, I have attached the config.log files in a small tar.gz file containing the top-level config.log and the tools/ncurses-5.9 config.log. I apologize, I did not know that there was more than ONE config.log file. It appears that the linker cannot find ieee library (-lieee); not why such a simple open main C program confdefs would fail? Thanks again, for your help! -- Kind regards, Mark H. Harris -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: rpl-build.tar.gz Type: application/x-gzip Size: 11831 bytes Desc: not available URL: From joel.bertrand at systella.fr Tue Apr 14 20:46:34 2015 From: joel.bertrand at systella.fr (=?UTF-8?Q?BERTRAND_Jo=c3=abl?=) Date: Tue, 14 Apr 2015 20:46:34 +0200 Subject: [RPL/2] RPL/2 build woes Config.log(s) attached In-Reply-To: References: Message-ID: <552D608A.3010406@systella.fr> Mark H. Harris a écrit : > Merci Beaucoup, You're welcome. > I have attached the config.log files in a small tar.gz file containing > the top-level config.log and the tools/ncurses-5.9 config.log. > > I apologize, I did not know that there was more than ONE config.log > file. It appears that the linker cannot find ieee library (-lieee); > not why such a simple open main C program confdefs would fail? I cannot check this evening, I will open your tarball tomorrow morning (CEST). But I'm pretty sure that there is no libieee anywhere... Configure script checks for IEEE compiler options and sets appropriate option in CFLAGS, CXXFLAGS and FFLAGS. I have seen your message in HPmuseum forum. X11 is not required, but without X11, you cannot use gnuplot nor lib$motif. TeX is not required also, but is you want to use Postscript output, you have to install a minimal LaTeX system. Best regards, JKB From joel.bertrand at systella.fr Tue Apr 14 23:28:16 2015 From: joel.bertrand at systella.fr (=?UTF-8?Q?BERTRAND_Jo=c3=abl?=) Date: Tue, 14 Apr 2015 23:28:16 +0200 Subject: [RPL/2] RPL/2 build woes Config.log(s) attached In-Reply-To: <552D608A.3010406@systella.fr> References: <552D608A.3010406@systella.fr> Message-ID: <552D8670.5000309@systella.fr> BERTRAND Joël a écrit : > Mark H. Harris a écrit : >> Merci Beaucoup, > > You're welcome. > >> I have attached the config.log files in a small tar.gz file containing >> the top-level config.log and the tools/ncurses-5.9 config.log. >> >> I apologize, I did not know that there was more than ONE config.log >> file. It appears that the linker cannot find ieee library (-lieee); >> not why such a simple open main C program confdefs would fail? > > I cannot check this evening, I will open your tarball tomorrow > morning (CEST). But I'm pretty sure that there is no libieee anywhere... > Configure script checks for IEEE compiler options and sets appropriate > option in CFLAGS, CXXFLAGS and FFLAGS. > > I have seen your message in HPmuseum forum. X11 is not required, > but without X11, you cannot use gnuplot nor lib$motif. TeX is not > required also, but is you want to use Postscript output, you have to > install a minimal LaTeX system. I have some questions. Quark is a i486 with i487 FPU and emulated i586 instructions. Your compiler announce : Target: i686-pc-linux-gnu You should have i586-pc-linux-gnu (or maybe i486-pc-linux-gnu) if your compiler is a native compiler. I don't know the differences between i487 FPU and modern FPU, but I can build RPL/2 on my old K6-III that is a i586 class CPU with extensions (not i686). I'm not sure that i487 knows IEEE floating point operations without external library. In this case, gcc tries to produce a code that requires external libieee.a. On my system (quad xeon 64 bits), I have : rayleigh:[/usr/libx32] > dpkg -S libieee libc6-dev-i386: /usr/lib32/libieee.a ... libc6-dev-x32: /usr/libx32/libieee.a ... libc6-dev:amd64: /usr/lib/x86_64-linux-gnu/libieee.a ... but these libraries only contains _LIB_VERSION symbol. Can you check if you have one of these libraries ? Please try to build a test program with gcc -g -O3 -malign-double -mieee-fp -Wall -Wextra and post result here. Regards, JKB From harrismh777 at gmail.com Thu Apr 16 06:45:29 2015 From: harrismh777 at gmail.com (Mark H. Harris) Date: Wed, 15 Apr 2015 23:45:29 -0500 Subject: [RPL/2] RPL2 build problem Message-ID: Greetings, I am wondering if you were able to determine what I'm missing when I try to configure rpl2 on my Edison? Did the config.log I forwarded make sense? Am I indeed missing an ieee library, and if so is this the ieee754 library? What do I need to do to get this sources to configure and compile? thanks much! -- Kind regards, Mark H. Harris -------------- next part -------------- An HTML attachment was scrubbed... URL: From joel.bertrand at systella.fr Thu Apr 16 08:28:29 2015 From: joel.bertrand at systella.fr (=?UTF-8?Q?BERTRAND_Jo=c3=abl?=) Date: Thu, 16 Apr 2015 08:28:29 +0200 Subject: [RPL/2] RPL2 build problem In-Reply-To: References: Message-ID: <552F568D.8080402@systella.fr> Mark H. Harris a écrit : > Greetings, I am wondering if you were able to determine what I'm > missing when I try to configure rpl2 on my Edison? Did the config.log I > forwarded make sense? Am I indeed missing an ieee library, and if so is > this the ieee754 library? What do I need to do to get this sources to > configure and compile? Hello, Have you tried to build a simple program with floating point computation and -g -O3 -malign-double -mieee-fp -Wall -Wextra ? For example : #include #include int main() { double x; int i; for(x = 0, i = 0; i < 1000; i++) { x += ((double) 1) / i; } printf("S=%f\n", x); return(0); } $ gcc -g -O3 -malign-double -mieee-fp main.c and please post result here. Regards, JKB From harrismh777 at gmail.com Thu Apr 16 10:24:29 2015 From: harrismh777 at gmail.com (Mark H. Harris) Date: Thu, 16 Apr 2015 03:24:29 -0500 Subject: [RPL/2] RPL/2 build problem Making Progress Message-ID: Greetings, merci, I am making progress. You are correct, libieee.a is nowhere on the Edison; although, libc6 and libc6-dev are there! The Raspberry PI has libieee.a (and I have read only) that it is an empty static library for cases where -lieee checks / I built my own test static library libieee.a and tried configure again... this time it ran to completion! --no errors. Then I tried make. make ran for about an hour and a half, and then failed with the following error(s) in the output: Now please type 'make check' to run a quick test suite. Hope it works. make[4]: Leaving directory '/opt/work/rpl-4.1.20/rpl-build/tools/libsigsegv-2.11' make[3]: Leaving directory '/opt/work/rpl-4.1.20/rpl-build/tools/libsigsegv-2.11' make[2]: Leaving directory '/opt/work/rpl-4.1.20/rpl-build/tools/libsigsegv-2.11' make -C ./tools make[2]: Entering directory '/opt/work/rpl-4.1.20/rpl-build/tools' Makefile:577: warning: overriding recipe for target 'distclean' Makefile:486: warning: ignoring old recipe for target 'distclean' test -f openmotif.lib && rm -f openmotif.lib; if [ x"" = x ]; then \ touch openmotif.lib; \ else \ echo -n LD_MOTIF_ > openmotif.lib; \ grep "^LIBS=" openmotif-2.3.4/config.log | \ tr -d "'" >> openmotif.lib; \ echo -n LD_MOTIF_ >> openmotif.lib; \ grep "^X_XMU" openmotif-2.3.4/config.log | \ tr -d "'" >> openmotif.lib; \ fi if [ x"" != x ]; then \ make -C gnuplot-5.0.0 all; fi make[2]: Leaving directory '/opt/work/rpl-4.1.20/rpl-build/tools' make -C ./rpltags make[2]: Entering directory '/opt/work/rpl-4.1.20/rpl-build/rpltags' CC rpltags-rpltags.o CCLD rpltags make[2]: Leaving directory '/opt/work/rpl-4.1.20/rpl-build/rpltags' make -C ./src make[2]: Entering directory '/opt/work/rpl-4.1.20/rpl-build/src' AWK generateurs.c /usr/local/bin/bash: locale: command not found CONV ../../src/algebre_lineaire1.c /usr/local/bin/bash: line 4: expand: command not found Makefile:6389: recipe for target 'algebre_lineaire1-conv.c' failed make[2]: *** [algebre_lineaire1-conv.c] Error 127 make[2]: Leaving directory '/opt/work/rpl-4.1.20/rpl-build/src' Makefile:1219: recipe for target 'all-rpl' failed make[1]: *** [all-rpl] Error 2 make[1]: Leaving directory '/opt/work/rpl-4.1.20/rpl-build' Makefile:936: recipe for target 'all' failed make: *** [all] Error 2 Thanks again for your help... -- Kind regards, Mark H. Harris -------------- next part -------------- An HTML attachment was scrubbed... URL: From joel.bertrand at systella.fr Thu Apr 16 11:44:01 2015 From: joel.bertrand at systella.fr (=?UTF-8?B?QkVSVFJBTkQgSm/Dq2w=?=) Date: Thu, 16 Apr 2015 11:44:01 +0200 Subject: [RPL/2] RPL/2 build problem Making Progress In-Reply-To: References: Message-ID: <552F8461.2010904@systella.fr> Mark H. Harris a écrit : > Greetings, merci, I am making progress. You are correct, libieee.a > is nowhere on the Edison; although, libc6 and libc6-dev are there! > > The Raspberry PI has libieee.a (and I have read only) that it is an > empty static library for cases where -lieee checks / > > I built my own test static library libieee.a and tried configure > again... this time it ran to completion! --no errors. > > > Then I tried make. > > make ran for about an hour and a half, and then failed with the > following error(s) in the output: > > > Now please type 'make check' to run a quick test suite. Hope it works. > > make[4]: Leaving directory > '/opt/work/rpl-4.1.20/rpl-build/tools/libsigsegv-2.11' > make[3]: Leaving directory > '/opt/work/rpl-4.1.20/rpl-build/tools/libsigsegv-2.11' > make[2]: Leaving directory > '/opt/work/rpl-4.1.20/rpl-build/tools/libsigsegv-2.11' > make -C ./tools > make[2]: Entering directory '/opt/work/rpl-4.1.20/rpl-build/tools' > Makefile:577: warning: overriding recipe for target 'distclean' > Makefile:486: warning: ignoring old recipe for target 'distclean' > test -f openmotif.lib && rm -f openmotif.lib; > if [ x"" = x ]; then \ > touch openmotif.lib; \ > else \ > echo -n LD_MOTIF_ > openmotif.lib; \ > grep "^LIBS=" openmotif-2.3.4/config.log | \ > tr -d "'" >> openmotif.lib; \ > echo -n LD_MOTIF_ >> openmotif.lib; \ > grep "^X_XMU" openmotif-2.3.4/config.log | \ > tr -d "'" >> openmotif.lib; \ > fi > if [ x"" != x ]; then \ > make -C gnuplot-5.0.0 all; fi > make[2]: Leaving directory '/opt/work/rpl-4.1.20/rpl-build/tools' > make -C ./rpltags > make[2]: Entering directory '/opt/work/rpl-4.1.20/rpl-build/rpltags' > CC rpltags-rpltags.o > CCLD rpltags > make[2]: Leaving directory '/opt/work/rpl-4.1.20/rpl-build/rpltags' > make -C ./src > make[2]: Entering directory '/opt/work/rpl-4.1.20/rpl-build/src' > AWK generateurs.c > /usr/local/bin/bash: locale: command not found > CONV ../../src/algebre_lineaire1.c > /usr/local/bin/bash: line 4: expand: command not found src/Makefile requires 'expand' utilities (and a regular locale) to convert *.c into *-conv.c. You have to install GNU Corutils. By default, I'm not sure that RPL/CAS will be built, but you can use RPL/2 without RPL/CAS. You can try to build this extension later with --enable-rplcas. > Makefile:6389: recipe for target 'algebre_lineaire1-conv.c' failed > make[2]: *** [algebre_lineaire1-conv.c] Error 127 > make[2]: Leaving directory '/opt/work/rpl-4.1.20/rpl-build/src' > Makefile:1219: recipe for target 'all-rpl' failed > make[1]: *** [all-rpl] Error 2 > make[1]: Leaving directory '/opt/work/rpl-4.1.20/rpl-build' > Makefile:936: recipe for target 'all' failed > make: *** [all] Error 2 Regards, JKB From joel.bertrand at systella.fr Mon Apr 20 10:20:52 2015 From: joel.bertrand at systella.fr (=?UTF-8?B?QkVSVFJBTkQgSm/Dq2w=?=) Date: Mon, 20 Apr 2015 10:20:52 +0200 Subject: [RPL/2] RPL/2 build problem Making Progress In-Reply-To: References: Message-ID: <5534B6E4.9060001@systella.fr> Mark H. Harris a écrit : > Greetings, merci, I am making progress. You are correct, libieee.a > is nowhere on the Edison; although, libc6 and libc6-dev are there! > > The Raspberry PI has libieee.a (and I have read only) that it is an > empty static library for cases where -lieee checks / > > I built my own test static library libieee.a and tried configure > again... this time it ran to completion! --no errors. > > > Then I tried make. Hello, Do you have some news ? I'm writing some patches to port RPL/2 on xBSD. Last CVS tree seems to build without error on FreeBSD and NetBSD (with RPL/CAS) and on OpenBSD (without RPL/CAS). If edison requires some patches,I would like to add them for next stable release. Regards, JKB