Re: Compiling scheme48 for TPE-R1100

Christopher Howard <[email protected]> Sun, 29 Jan 2017 22:01:58 -0900
Newsgroups gmane.lisp.scheme.scheme48
Message-ID <[email protected]>
Hi, thanks. I am trying to compile scheme48-1.9.2 using a toolkit I
built using the librecmc-1.3.4 source code. (I can send the toolkit to
anyone who wants it.) With this particular toolkit and directory
structure, I attempt to run configure with a command like so:

--------
$ CC=../../../../bin/mips-librecmc-linux-gcc LDFLAGS=-L../../../../lib
./configure --host=mips32r2
--------

Several configure tests pass, but then one dies with:

--------
checking bits per byte... configure: error: failed to compile test program
--------

Looking in config.log (which I would also be glad to send to anyone) I see:

--------
configure:3053: ../../../../bin/mips-librecmc-linux-gcc -c   conftest.c >&5
mips-librecmc-linux-musl-gcc.bin: warning: environment variable
'STAGING_DIR' not defined
configure:3053: $? = 0
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
--------

However, if I put this code in a file, and then try to compile it anyway
I can, e.g.

--------
$ CFLAGS='-I ../../../../include ' LDFLAGS='../../../../lib'
../../../../bin/mips-librecmc-linux-gcc -mips32r2 -c conftest.c
--------

It compiles just fine:

--------
$ file conftest.o
conftest.o: ELF 32-bit MSB relocatable, MIPS, MIPS32 rel2 version 1
(SYSV), not stripped
--------

So it would seem like either there is something wrong with the configure
script, or I'm not plugging the correct parameters into it. I study the
config.log and configure script code more, but the confusing style of
the configure code and log messages is practically indecipherable to me.

On 01/29/2017 12:03 AM, Michael Sperber wrote:
> 
> Christopher Howard <[email protected]> writes:
> 
>> Hi, is this list active? (I couldn't bring up the archives...) I'm
>> trying to get scheme48 compiled for a TPE-R1100 device running
>> libre-cmc-1.3.4 with a mips32r2 processor, using a buildroot toolkit. I
>> was having some trouble relating to the source code configure script,
>> and was hoping for some help. I'll give more details if I get a response.
> 
> The list is fine.  How can we help?
> 

-- 
https://qlfiles.net