LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-01-2004, 09:24 PM   #1
ras123
Member
 
Registered: Jan 2004
Posts: 33

Rep: Reputation: 15
rpmbuild options


I build rpm files from xine-lib and xine-ui sources. My processor is AMD Athelon 1800XP, but I got only i386 rpms, Do I need to change any configuration in my gcc, or anywhere else?. ( Please tell me in detail ).

My OS is Fedora Core 1.
 
Old 05-01-2004, 10:00 PM   #2
hazza
Member
 
Registered: Nov 2003
Location: Australia
Distribution: Mandrake, SUSE, Fedora
Posts: 122

Rep: Reputation: 15
You can use the "--target PLATFORM" option of rpmbuild to tell it to build rpms for a different CPU architecture other than the default of "i386" under FC1. If you want to rebuild a xine source rpm then you could try something like:

$ rpmbuild --rebuild --target athlon xine*.src.rpm

If you have a tarball then you could try something like:

$ rpmbuild -ta --target athlon xine*.tar.gz
 
Old 05-02-2004, 07:26 AM   #3
ras123
Member
 
Registered: Jan 2004
Posts: 33

Original Poster
Rep: Reputation: 15
rpmbuild -ta --target athlon xine*.tar.gz is works, and it gives athlon.rpm files. But installed files not works ie xine is not starting.
I think my gcc is not support athlon, I tried rum configure file in the xine-lib by the following way ( as per xine's installing instruction but that is failed.

./configure --host=k7-pc-linux-gnu
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... Invalid configuration `k7-pc-linux-gnu': machine `k7-pc' not recognized
configure: error: /bin/sh ./config.sub k7-pc-linux-gnu failed

So how can I install gcc supporting athlon ?.
 
Old 05-02-2004, 10:27 PM   #4
hazza
Member
 
Registered: Nov 2003
Location: Australia
Distribution: Mandrake, SUSE, Fedora
Posts: 122

Rep: Reputation: 15
Gcc recognises an athlon as "athlon" and not "k7". The problem isn't gcc not supporting building for an athlon and is more likely to be some sort of dependency. Did you take a look at the output of the configure stage when you tried to use rpmbuild? Building it manually might help find the problem. Try:

$ script configure.log
$ ./configure --build=athlon-redhat-linux
$ exit

That will save the output "./configure" in configure.log so you can look at it afterwards to see if there were any missing libraries or other errors.

An alternative would be grabbing the xine rpms from freshrpms.net and rebuilding those. You'll find them at:
http://yarrow.freshrpms.net/rpm/xine
http://yarrow.freshrpms.net/rpm/xine-lib
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
rpmbuild --with : mysql - unknown option. How to pass extra options to build? fireman949 Red Hat 0 07-06-2005 06:53 PM
need help using rpmbuild. dr_zayus69 Linux - Software 3 04-24-2005 08:49 AM
rpmbuild desired cpu options asprayama Linux - Software 1 03-27-2005 01:42 PM
rpmbuild ?? mickeyboa Fedora 1 07-25-2004 10:09 PM
Kernel 2.6.2 options question - LOCKED options ? tvojvodi Linux - General 0 02-17-2004 04:23 AM

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

All times are GMT -5. The time now is 03:07 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