Re: Multiarching perl
On Mon, Sep 24, 2012 at 01:41:48AM +0100, Wookey wrote:
> +++ Niko Tyni [2012-09-21 22:13 +0300]:
> > I've pushed the current state on the 'ntyni/multiarch-5.14' branch of
> > git://git.debian.org/perl/perl.git
> > This is work in progress, no guarantees about not rewriting history yet.
> OK. Do you expect that to build as it stands?
Yes, it does build for me on sid/amd64. No special tricks should be
necessary. It also built on i386 when I was at it in August, but haven't
verified that now.
> cc -o perl -Wl,-z,relro -fstack-protector -L/usr/local/lib -Wl,-E
> perlmain.o libperl.so.5.14.2 cat ext.libs -ldl -lm -lpthread -lc -lcrypt
> Can't locate File/Spec.pm in @INC (@INC contains: /etc/perl
> /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
> /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.14
> /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/bin/gcc.real line 4.
> BEGIN failed--compilation aborted at /usr/bin/gcc.real line 4.
It looks like your /usr/bin/gcc.real is a perl script? The LD_LIBRARY_PATH
thing makes it pick up the new libperl with a new @INC instead of the old one,
but things aren't installed into the new @INC yet.
IOW, sorry, I'm not supporting that right now :)