Re: binutils debian cross build misses ldscripts

2013-01-03 Thread Wookey
+++ Wookey [2013-01-03 12:42 +]:
> Franz Zinn wrote:

> Hmm. I use TARGET=sparc dpkg-buildpackage

I tried this (with 2.23.1) and found a bug - --target in configure is set to 
'sparc'
rasther than sparc-linux-gnu which means it builds for sparc-sunos.

This may well be due to my modifications for DEB_TARGET_ARCH so I've
fixed that and will submit an updated patch.

that built OK, but yes there are no ldscripts/* files in there. 

> However trying to assemble and link for a sun4 system (-m sun4
> argument to sparc-linux-gnu-ld ), results in a error that
> ldscripts/sun4.x is not found.

> Indeed the cross build process does not install the ldscripts into the
> deb package, even though the are generated and can be found in the
> builddir-sparc-linux-gnu directory.

I just read this a bit more carefully, and realised that I missed an
important point. You want to target sunos rather than sparc-linux-gnu?
Can one expect that to work using a binutils built for linux (i.e the
ABI stuff is all the same, only the linkage changes?) I wouldn't
expect that to work without building a binutils specifically targeting
sparc-sun-sunos4.1 (or something like that - I don't know which rune
is right )

dpkg-architecture -L list a lot of architectures/ABIs there is solaris
and opensolaris, but not sunos. Is one of those right?

The debian packaging primarily aims at building cross-toolchains
suitable for building packages for debian architectures. If they also
build other stuff then that's cool, but it's a bonus, and not
necessarily tested. 

Wookey
-- 
Principal hats:  Linaro, Emdebian, Wookware, Balloonboard, ARM
http://wookware.org/


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130103171725.gl9...@stoneboat.aleph1.co.uk



Re: binutils debian cross build misses ldscripts

2013-01-03 Thread Wookey
+++ Franz Zinn [2013-01-02 14:42 +]:
> Hi,
> 
> I am trying to build a cross version of binutils (Squeeze version
> 2.20.1) using the directions in debian/README.cross with the command
> line
> 
> TARGET=sparc fakeroot debian/rules binary-cross

Hmm. I use TARGET=sparc dpkg-buildpackage

the binary-cross target now says:
"Please use dpkg-buildpackage instead of calling binary-cross
directly; see README.cross"

That's true in the 2.22 ansd 2.23 I have to hand. Appraently there
have been changes here since squeeze. It probably amounts to the same
thing, but I'd check and see if that makes any difference for you.

I've never tested a sparc build in my life, but I do know that the
cross-build packaging for binutils is generally in good shape and
works well for armhf/armel/arm64

> However trying to assemble and link for a sun4 system (-m sun4
> argument to sparc-linux-gnu-ld ), results in a error that
> ldscripts/sun4.x is not found.
> 
> Indeed the cross build process does not install the ldscripts into the
> deb package, even though the are generated and can be found in the
> builddir-sparc-linux-gnu directory.
> 
> Is this a bug or feature ? Is there any easy (automated) way to do
> build a package with the ldscripts included.

The build above should work - if it doesn't that's a bug. The sparc
packaging has probably just got bit-rot because it's not being used
much, but if you are lucky it's because you are using an outdated
build rune.

BTW I have submitted a bug to normalise these cross-runes between
packages (so we don't have 'TARGET' for binutils and 'GCC_TARGET' for
gcc. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=695595 so at
some point the official build runes should become:

DEB_TARGET_ARCH= dpkg-buildpackage -b


Wookey
-- 
Principal hats:  Linaro, Emdebian, Wookware, Balloonboard, ARM
http://wookware.org/


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130103124250.gj9...@stoneboat.aleph1.co.uk



Re: binutils debian cross build misses ldscripts

2013-01-02 Thread Neil Williams
On Wed, 2 Jan 2013 14:42:41 +
Franz Zinn  wrote:

> I am trying to build a cross version of binutils (Squeeze version

You'll get more response asking on the debian-embedded mailing list,
forwarding...

> 2.20.1) using the directions in debian/README.cross with the command
> line
> 
> TARGET=sparc fakeroot debian/rules binary-cross
> 
> However trying to assemble and link for a sun4 system (-m sun4
> argument to sparc-linux-gnu-ld ), results in a error that
> ldscripts/sun4.x is not found.
> 
> Indeed the cross build process does not install the ldscripts into the
> deb package, even though the are generated and can be found in the
> builddir-sparc-linux-gnu directory.
> 
> Is this a bug or feature ? Is there any easy (automated) way to do
> build a package with the ldscripts included.


-- 


Neil Williams
=
http://www.linux.codehelp.co.uk/



pgpVv4kn14PBP.pgp
Description: PGP signature