configure script sends bad switches to daughter configure scripts
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
configure script sends bad switches to daughter configure scripts
I am working on creating a gentoo ebuild for a software package, and a problem that I am running into is that the main configure script is sending some bad switches to one of the daughter configure scripts. The problem is that this is only happening when the ebuild is being emerged. If I do the configure manually, there are no problems.
So the initial configure command looks like the following:
This appears to work fine, at least until the script spawns a configure script in a daughter directory:
Quote:
=== configuring in res-rsa (/var/tmp/portage/games-simulation/netrek-server-vanilla-2.15.0/work/netrek-server-vanilla-2.15.0/res-rsa)
configure: running /bin/sh ./configure '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--with-gmp' '--build=i686-pc-linux-gnu' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-O2 -march=i686 -pipe' 'LDFLAGS=-Wl,-O1' 'CXXFLAGS=-O2 -march=i686 -pipe' --cache-file=/dev/null --srcdir=.
configure: warning: build_alias=i686-pc-linux-gnu: invalid host type
configure: warning: host_alias=i686-pc-linux-gnu: invalid host type
configure: error: can only configure for one host and one target at a time
configure: error: ./configure failed for res-rsa
As can be seen in the above configure command, a couple of switches are mangled. I have not been able to find where the heck these are even coming from in the first place, but I am suspecting that there is something broken with the main configure script.
Why are you passing the --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu? Those are used when cross-compiling, which it doesn't look like you're doing. If you're trying to override config.guess, only --build is needed.
Last edited by weibullguy; 10-07-2008 at 03:28 PM.
Why are you passing the --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu? Those are used when cross-compiling, which it doesn't look like you're doing. If you're trying to override config.guess, only --build is needed.
Good call! Of course, I am not that sure how to turn that off in the first place. I am not trying to cross compile at this time. So now the question is how are those items getting set in the first place? I am not familiar with this portion of the gentoo build system, unfortunately.
So now the question is how are those items getting set in the first place? I am not familiar with this portion of the gentoo build system, unfortunately.
It looks like you're passing them to the configure script in the initial configure command.
It looks like you're passing them to the configure script in the initial configure command.
Nope. This is all being done in an ebuild script that I have in my personal overlay, which is then executed by the emerge command. The src_compile() section of the ebuild script looks like this:
Quote:
src_compile() {
export > /tmp/export.txt
econf --with-gmp || die
emake || die "emake failed"
}
I didn't know if that meant you built the package manually and it worked or whether you used configure directly in the ebuild. Why can't you just use configure in the ebuild instead of the econf function?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.