[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#274367: glibc: [amd64] New GLIBC pass to create 32bit libc6-i386 and libc6-dev-i386 packages



On 04-Oct-04 19:48, Andreas Jochens wrote:
> On 04-Oct-04 12:27, Daniel Jacobowitz wrote:
> > When we do this for amd64, we ought to do the same thing for ia32 as
> > well.  Then amd64-libs can lose the libraries.
> 
> Thank you for your reply.
> 
> Of course a 'libc6-amd64' would be a good thing to have for 
> i386/amd64-libs. This should work with a similar patch (basically with 
> 'i386' replaced by 'amd64' and vice versa, and with '-m32' replaced by 
> '-m64'). 
> 
> I even tried to write such a patch, but at that moment there was no 
> biarch compiler with a working '-m64' switch available on i386.
> I just checked again and it seems that 'gcc-3.4 -m64' works now.
> 
> I will try to change the patch so that it also covers the 
> i386/libc-amd64 case.

When trying to change the patch accordingly, I discovered that
the 'linux-kernel-headers' package does not install the x86_64 kernel 
headers on i386. The x86_64 kernel headers will be necessary to compile
the 64bit x86_64 version of libc6 on i386. In the opposite case, the
i386 kernel headers are already being installed on amd64 by the current
sid version of 'linux-kernel-headers'.

I just filed a wishlist bug on 'linux-kernel-headers' to the BTS with a 
patch that installs the x86_64 linux kernel headers on i386 in the 
'/usr/include/x86_64-linux' directory.

Maybe the patch in my previous email which handles just 
the amd64/libc-i386 case could be applied to glibc first? 
The i386/libc-amd64 could then be added later when
an amended 'linux-kernel-headers' packages with the x86_64 headers
becomes available on i386.

Regards
Andreas Jochens



Reply to: