FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian GCC

 
 
LinkBack Thread Tools
 
Old 11-01-2011, 08:18 PM
Kyle Moffett
 
Default Bug#647324: gcj-4.6: Wrong MULTIARCH_DIRNAME on powerpcspe (is "powerpc-linux-gnu")

Source: gcj-4.6
Version: 4.6.2-1
Severity: wishlist
Tags: patch

Building gcj-4.6=4.6.2-1 (using gcc-4.6-source=4.6.2-2) is failing due
to an invalid value of MULTIARCH_DIRNAME on powerpcspe.

I don't have the foggiest idea why GCC itself builds and installs
correctly, but the Java build fails with this error:
dh_movefiles: debian/tmp/usr/lib/powerpc-linux-gnuspe/gcj-4.6-12/libjvm.so not found (supposed to put it in libgcj12)
dh_movefiles: debian/tmp/usr/lib/powerpc-linux-gnuspe/gcj-4.6-12/libjavamath.so not found (supposed to put it in libgcj12)

Inspecting that directory, I see this:
$ ls -l debian/tmp/usr/lib
total 20
drwxr-xr-x 3 kmoffett kmoffett 4096 Nov 1 14:11 gcc
drwxr-xr-x 3 kmoffett kmoffett 4096 Nov 1 14:13 jvm
drwxr-xr-x 3 kmoffett kmoffett 4096 Nov 1 14:13 jvm-exports
drwxr-xr-x 3 kmoffett kmoffett 4096 Nov 1 14:13 powerpc-linux-gnu
drwxr-xr-x 3 kmoffett kmoffett 4096 Nov 1 14:13 powerpc-linux-gnuspe

The "powerpc-linux-gnu" is obviously wrong, and it contains the files
that are missing from "powerpc-linux-gnuspe":
$ ls -l debian/tmp/usr/lib/powerpc-linux-gnu
total 135200
drwxr-xr-x 2 kmoffett kmoffett 4096 Nov 1 14:13 gcj-4.6-12
-rwxr-xr-x 1 kmoffett kmoffett 1637 Nov 1 14:12 libgcj_bc.so
lrwxrwxrwx 1 kmoffett kmoffett 18 Nov 1 14:12 libgcj_bc.so.1 -> libgcj_bc.so.1.0.0
-rwxr-xr-x 1 kmoffett kmoffett 1637 Nov 1 14:12 libgcj_bc.so.1.0.0
lrwxrwxrwx 1 kmoffett kmoffett 16 Nov 1 14:12 libgcj.so -> libgcj.so.12.0.0
lrwxrwxrwx 1 kmoffett kmoffett 16 Nov 1 14:12 libgcj.so.12 -> libgcj.so.12.0.0
-rwxr-xr-x 1 kmoffett kmoffett 127976277 Nov 1 14:12 libgcj.so.12.0.0
lrwxrwxrwx 1 kmoffett kmoffett 22 Nov 1 14:12 libgcj-tools.so -> libgcj-tools.so.12.0.0
lrwxrwxrwx 1 kmoffett kmoffett 22 Nov 1 14:12 libgcj-tools.so.12 -> libgcj-tools.so.12.0.0
-rwxr-xr-x 1 kmoffett kmoffett 10421495 Nov 1 14:12 libgcj-tools.so.12.0.0
lrwxrwxrwx 1 kmoffett kmoffett 16 Nov 1 14:12 libgij.so -> libgij.so.12.0.0
lrwxrwxrwx 1 kmoffett kmoffett 16 Nov 1 14:12 libgij.so.12 -> libgij.so.12.0.0
-rwxr-xr-x 1 kmoffett kmoffett 19447 Nov 1 14:12 libgij.so.12.0.0
-rw-r--r-- 1 kmoffett kmoffett 1437 Nov 1 14:12 logging.properties
drwxr-xr-x 2 kmoffett kmoffett 4096 Nov 1 14:12 security

I can disassemble those files with objdump and they clearly contain
valid e500v2 opcode sequences, so the build process seems to be fine
except for the multiarch directory.

I tried to hack up a patch (attached) that looks correct to me, but I
have very little experience with this area of GCC and I haven't tested
it yet. I would really appreciate a second set of eyes.

I'm going to apply it on top of the gcc-4.6 sources (4.6.2-2) and
rebuild GCC and GIJ to see if the problem goes away; I'll let you know
when I have some results.

Cheers,
Kyle Moffett

-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (700, 'testing'), (700, 'stable'), (600, 'unstable'), (500, 'stable-updates'), (500, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
 
Old 11-02-2011, 07:09 PM
"Moffett, Kyle D"
 
Default Bug#647324: gcj-4.6: Wrong MULTIARCH_DIRNAME on powerpcspe (is "powerpc-linux-gnu")

Hello,

I have verified that gcc-4.6 and gcj-4.6 both build successfully
on "powerpcspe" with that patch. It turns out gcj needs to build
an embedded copy of libffi (is that OK under Debian policy?), so
I also had to apply the new libffi patch in #647288 [1].

This patch modifies a case conditional that only applies for SPE,
so it should be safe to merge into the existing multiarch patch.

Thanks for your time!

Cheers,
Kyle Moffett

[1] http://bugs.debian.org/647288

--
Curious about my work on the Debian powerpcspe port?
I'm keeping a blog here: http://pureperl.blogspot.com/




--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: A5981543-6B2D-42B6-8C32-801C5917F8B2@boeing.com">http://lists.debian.org/A5981543-6B2D-42B6-8C32-801C5917F8B2@boeing.com
 
Old 11-02-2011, 08:07 PM
Matthias Klose
 
Default Bug#647324: gcj-4.6: Wrong MULTIARCH_DIRNAME on powerpcspe (is "powerpc-linux-gnu")

On 11/02/2011 04:09 PM, Moffett, Kyle D wrote:
> Hello,
>
> I have verified that gcc-4.6 and gcj-4.6 both build successfully
> on "powerpcspe" with that patch. It turns out gcj needs to build
> an embedded copy of libffi (is that OK under Debian policy?), so
> I also had to apply the new libffi patch in #647288 [1].
>
> This patch modifies a case conditional that only applies for SPE,
> so it should be safe to merge into the existing multiarch patch.

the multiarch dir is already encoded in the rs600/t-spe file; can we move the
MULTIARCH_DIRNAME macro to this file as well? Or the other way around?




--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4EB1B104.80903@debian.org">http://lists.debian.org/4EB1B104.80903@debian.org
 
Old 11-02-2011, 08:22 PM
"Moffett, Kyle D"
 
Default Bug#647324: gcj-4.6: Wrong MULTIARCH_DIRNAME on powerpcspe (is "powerpc-linux-gnu")

On Nov 02, 2011, at 17:07, Matthias Klose wrote:
> On 11/02/2011 04:09 PM, Moffett, Kyle D wrote:
>> Hello,
>>
>> I have verified that gcc-4.6 and gcj-4.6 both build successfully
>> on "powerpcspe" with that patch. It turns out gcj needs to build
>> an embedded copy of libffi (is that OK under Debian policy?), so
>> I also had to apply the new libffi patch in #647288 [1].
>>
>> This patch modifies a case conditional that only applies for SPE,
>> so it should be safe to merge into the existing multiarch patch.
>
> the multiarch dir is already encoded in the rs600/t-spe file; can we move the
> MULTIARCH_DIRNAME macro to this file as well? Or the other way around?

Well, that "t-spe" file is not being included at all for our target triplet
right now; it only gets referenced for "powerpc-linux-eabispe" targets as
per "src/gcc/config.gcc".

Furthermore, the Debian PowerPCSPE port does not want any of the stuff in that
file, as it's all multilib stuff that doesn't apply to e500 anyways.

So the MULTILIB_OSDIRNAMES value in "t-spe" needs to be changed to "eabispe"
upstream as a bugfix, but that is not applicable to the Debian e500 port.

I suppose in theory PPC EABI is better than PPC SYSV and if I'd have given it
a bit more thought I might have tried to build the port based on "eabispe" in
the first place, but that's water under the bridge at this point. Even still,
we wouldn't want the multilib stuff anyways.

Cheers,
Kyle Moffett

--
Curious about my work on the Debian powerpcspe port?
I'm keeping a blog here: http://pureperl.blogspot.com/




--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1B80DA42-744A-4C42-B086-C3678859A9AB@boeing.com">http://lists.debian.org/1B80DA42-744A-4C42-B086-C3678859A9AB@boeing.com
 

Thread Tools




All times are GMT. The time now is 06:52 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org