Summary: | sys-apps/groff-1.20.1 errors out when cross-compiling | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jacob Godserv <jacobgodserv> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | dschridde+gentoobugs, embedded, OdinsHorse, swapon |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
The failed compile log
Check if host and target version matches. |
Description
Jacob Godserv
2009-02-05 14:42:11 UTC
Created attachment 181033 [details]
The failed compile log
what version of groff is on your host ? sys-apps/groff-1.19.2-r3 so install 1.20.1 and see if it fixes things Created attachment 184831 [details, diff]
Check if host and target version matches.
Cross-compiling groff requires that the host has the same version of groff installed. This patch checks if the host version of groff matches the version to emerge. If this is not the case, it errors out.
Tested on target armv4tl-softfloat-linux-gnueabi host amd64 and in the Openmoko overlay. You might need to env LC_ALL=C before calling groff to ensure the grep always returns the proper results. Sorry, guys, for not responding sooner. I'll test this new patch ASAP if you still need me to. I've been rebuilding my crossdev environment so it's cleaner and less bug-prone. I'll let you all know the moment I have results. what exactly is needed on the host ? if it's just a binary or two, we can do like python where we build up host groff a little for cross-compilers and use that rather than needing the user to upgrade their host system. As the failing command is: GROFF_COMMAND_PREFIX=''; export GROFF_COMMAND_PREFIX; GROFF_BIN_PATH=; \ export GROFF_BIN_PATH; sed -e "s;@VERSION@;1.20.1;" pic.ms | /usr/bin/groff I would guess that groff is needed to fix it. Will look deeper into the issue, but if someone beats me to it, I'm fine. ;-) yes, but i dont know what files groff also uses during its processing steps. like perhaps things in /usr/share/groff/$PV/ Ok it seems groff links in a lot of packages, so it would be quite hard to compile a minimal version using the host compiler... I think the best thing to do is to check the host version as proposed here, else the build process would die silently. I think this issue persists in groff-1.21, just differently: checking whether we are cross compiling... configure: error: in `/var/tmp/portage-powerpc64-unknown-linux-gnu/portage/sys-apps/groff-1.21/work/groff-1.21/src/libs/gnulib': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. (In reply to comment #13) > I think this issue persists in groff-1.21, just differently: > checking whether we are cross compiling... configure: error: in > `/var/tmp/portage-powerpc64-unknown-linux-gnu/portage/sys-apps/groff-1.21/ > work/groff-1.21/src/libs/gnulib': > configure: error: cannot run C compiled programs. > If you meant to cross compile, use `--host'. Filed that as bug #432062 Closing as obsolete because version bug was filed against is no longer available in Gentoo repository. Please re-open if you are still able to reproduce against latest available version. |