LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 10-07-2008, 03:08 PM   #1
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
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:

Quote:
./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
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.

Anyone have any idea what might be wrong?
 
Old 10-07-2008, 03:25 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
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.
 
Old 10-07-2008, 03:52 PM   #3
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by weibullguy View Post
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.
 
Old 10-07-2008, 04:51 PM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Quote:
Originally Posted by Wells View Post
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.
 
Old 10-07-2008, 05:53 PM   #5
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by weibullguy View Post
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"
}
 
Old 10-10-2008, 02:47 PM   #6
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Have you tried executing the configure script directly instead of using econf?
 
Old 10-10-2008, 02:48 PM   #7
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by weibullguy View Post
Have you tried executing the configure script directly instead of using econf?
Yep, and it works just fine. I stated that in the last sentence of the first paragraph of my original question.
 
Old 10-10-2008, 03:38 PM   #8
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Caching for configure scripts Jooles Linux - General 0 04-03-2007 10:18 AM
pkgconfig, configure scripts and PKG_CONFIG_PATH shevegen Linux From Scratch 1 08-06-2006 08:20 AM
./configure - bad interpreter Seventh Linux - Newbie 4 02-23-2004 08:11 AM
Need help to configure Apache TO EXECUTE PHP SCRIPTS mgrapr Linux - Hardware 2 01-21-2004 09:23 AM
Samba './configure' goes bad gvaught Linux - Networking 6 12-09-2003 10:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration