[opensuse-factory] Cross toolchains
Hi! At $dayjob we do a lot of embedded Linux. So I need cross compilers for many archs. I'm wondering why openSUSE does not offer packages for common cross toolchains like arm or ppc. There are icecream backends, so why are there no other packages to use the compilers without icecc? Something like emdebian would be great! http://www.emdebian.org/tools/crosstools.html -- Thanks, //richard -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Fri, 3 Aug 2012, richard -rw- weinberger wrote:
Hi!
At $dayjob we do a lot of embedded Linux. So I need cross compilers for many archs. I'm wondering why openSUSE does not offer packages for common cross toolchains like arm or ppc. There are icecream backends, so why are there no other packages to use the compilers without icecc?
Something like emdebian would be great! http://www.emdebian.org/tools/crosstools.html
It is mostly due to the lack of customer demand or volunteers to implement it. For Factory we are getting one step closer to be able to build a regular cross tools package from the icecc packages we build. Note that a feature I would consider important is the ability to populate a sysroot with packages needed for development. I'd like to see something like
zypper sysroot-setup <repository> <arch> (creates /usr/<arch-triplet>/, creates an rpm database there, etc.)
zypper install --sysroot <arch> glibc-devel
installs glibc-devel for the sysroot created for <arch>.
Without that a cross compiler alone won't help you too much
(but it's now almost trivial to create a cross compiler package).
Richard.
--
Richard Guenther
On Fri, Aug 3, 2012 at 1:46 PM, Richard Guenther
It is mostly due to the lack of customer demand or volunteers to implement it. For Factory we are getting one step closer to be able to build a regular cross tools package from the icecc packages we build.
Sounds good. :)
Note that a feature I would consider important is the ability to populate a sysroot with packages needed for development. I'd like to see something like
zypper sysroot-setup <repository> <arch> (creates /usr/<arch-triplet>/, creates an rpm database there, etc.)
zypper install --sysroot <arch> glibc-devel
installs glibc-devel for the sysroot created for <arch>.
Yeah this would be awesome.
Without that a cross compiler alone won't help you too much (but it's now almost trivial to create a cross compiler package).
Do build a kernel I don't need glibc. And most of the time I build only kernels. -- Thanks, //richard -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
* Richard Guenther
Note that a feature I would consider important is the ability to populate a sysroot with packages needed for development. I'd like to see something like
zypper sysroot-setup <repository> <arch> (creates /usr/<arch-triplet>/, creates an rpm database there, etc.)
zypper install --sysroot <arch> glibc-devel
installs glibc-devel for the sysroot created for <arch>.
This would also allow for "safe" upgrades in a controlled environment, that is by creating a filesystem snapshot, mounting it, running "zypper up --sysroot" on the mounted snapshot, and finally booting into the updated snapshot with the ability to return to the previous root. A much superior alternative to the idiocy of systemd's "offline" updates. The only potential problem with --sysroot are rpm scriptlets making assumptions about a running system. -- Guido Berhoerster -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Friday 2012-08-03 13:46, Richard Guenther wrote:
On Fri, 3 Aug 2012, richard -rw- weinberger wrote:
At $dayjob we do a lot of embedded Linux. So I need cross compilers for many archs. I'm wondering why openSUSE does not offer packages for common cross toolchains like arm or ppc. There are icecream backends, so why are there no other packages to use the compilers without icecc?
Something like emdebian would be great! http://www.emdebian.org/tools/crosstools.html
It is mostly due to the lack of customer demand or volunteers to implement it. For Factory we are getting one step closer to be able to build a regular cross tools package from the icecc packages we build.
Having a stage1 gcc would already be quite a boon (for kernels), but gcc.spec.in is always so big... though I've done it before somehow with that spec file.
Note that a feature I would consider important is the ability to populate a sysroot with packages needed for development. I'd like to see something like
zypper sysroot-setup <repository> <arch> (creates /usr/<arch-triplet>/, creates an rpm database there, etc.)
init_buildsystem can already be abused to do exactly that ;-) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Fri, Aug 03, richard -rw- weinberger wrote:
Something like emdebian would be great!
Indeed. Recently I had to roll my own for ARM. The result is here: https://build.opensuse.org/project/show?project=home%3Aolh%3Across https://build.opensuse.org/project/show?project=home%3Aolh%3Across%3Across-g... https://build.opensuse.org/project/show?project=home%3Aolh%3Across%3Across-g... https://build.opensuse.org/project/show?project=home%3Aolh%3Across%3Across-g... Olaf -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (5)
-
Guido Berhoerster
-
Jan Engelhardt
-
Olaf Hering
-
richard -rw- weinberger
-
Richard Guenther