[CLN-list] make failed on .libs/exam
Ralf Wildenhues
Ralf.Wildenhues at gmx.de
Fri Oct 29 13:58:04 CEST 2004
* Richard B. Kreckel wrote on Wed, Oct 27, 2004 at 11:20:42PM CEST:
> On Wed, 27 Oct 2004, Ralf Wildenhues wrote:
> [...]
>
> Okay, I've now bootstrapped GCC 3.3.3 on the amd64 machine with
> Debian/sid and successfully compiled and tested CLN-1.1.8 using that
> compiler with the same compiler options the original problem report
> mentioned. Maybe Werner should start having a look at the toolchain now?
Yep. I would not be too surprised if libtool needed to be taught the
way SUSE does multilibbing. :-/
But let's not come to early conclusions. Fact is I don't know yet what
happens on his machine.
> [...]
> > > The major Linux distributors have a track record of
> > > patching GCC enough to cause problems which are absent in vanilla sources.
> > > Could you compile some recent binutils into a local prefix, then bootstrap
> > > GCC 3.4.2 and try these?
*snip*
>
> There are two unrelated problems, here. Yes, that problem with libgmp has
> been solved already by the libtool upgrade. The unresolved symbol problem
> needs debugging.
ACK.
> > BTW, a build with `CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32' fails in
> > several places.
>
> I can't reproduce them on my pure amd64 system. :-/
>
> Wait, let me guess: The compiler defines __i386__ and the script
> config.guess in addition #defines __x86_64__ and then compilation stops
> (probably quite early) due to redefinitions? Ouch. What's the canonical
> way to deal with such problems?
I coult get rid of those by using the setarch tool and the trivial patch
below:
$ setarch i386 ../cln/configure -C 'CFLAGS=-m32 -g -O2' \
'CXXFLAGS=-m32 -g -O2' LDFLAGS=-m32
$ setarch i386 make
$ setarch i386 make check
I don't know how to deal with them more proper than that (if that's
unproper in any way). This got me a libcln that passes `make check',
albeit now without gmp (merely because I don't have the 32bit libgmp
installed).
Regards,
Ralf
2004-10-28 Ralf Wildenhues <Ralf.Wildenhues at gmx.de>
* src/Makefile.in: Let config.status set LDFLAGS.
Index: src/Makefile.in
===================================================================
RCS file: /home/cvs/cln/src/Makefile.in,v
retrieving revision 1.13
diff -u -r1.13 Makefile.in
--- src/Makefile.in 26 Oct 2004 22:26:28 -0000 1.13
+++ src/Makefile.in 28 Oct 2004 15:45:44 -0000
@@ -27,6 +27,7 @@
CXXCPP = @CXXCPP@
INCLUDES = -I../include -I$(top_srcdir)/include
override CPPFLAGS += $(INCLUDES)
+LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_COMPILE = $(LIBTOOL) --mode=compile
More information about the CLN-list
mailing list