LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-14-2013, 03:30 PM   #1
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Rep: Reputation: 86
Question Can't compile Slackware ARM x-toolchain on 14.0 32 bit.


Hi!

I'm compiling the 14.0 toolchain on a fresh 32bit unpatched 14.0
ftp://ftp.armedslack.org/slackwarear...n_oldversions/

I run into a:

ar: can't set BFD default target to `i486-slackware-linux-gnu': Invalid bfd target

It's working fine on x86_64 targets.
 
Old 01-15-2013, 06:56 PM   #2
padeen
Member
 
Registered: Sep 2009
Location: Perth, W.A.
Distribution: Slackware 14, Debian 7, FreeBSD, OpenBSD
Posts: 176

Rep: Reputation: 34
I've never built this, but it looks like Slackware's man page for ar is broken since the bfdname section is missing. Here is an online one for V2.22, down the bottom is the specification for the --target parameter.

Having a quick look at the target specification link, I guess that your bfdtarget is not correct (as indeed ar is telling you); possibly a more likely candidate could be i486-linux-gnu? What does the build log say for the x86_64 build?
 
Old 02-06-2013, 12:42 PM   #3
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Original Poster
Rep: Reputation: 86
Well, x86_64.
 
Old 02-06-2013, 12:46 PM   #4
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Original Poster
Rep: Reputation: 86
Question

Here's the log.
Attached Files
File Type: txt log.txt (126.9 KB, 6 views)
 
Old 02-06-2013, 06:23 PM   #5
padeen
Member
 
Registered: Sep 2009
Location: Perth, W.A.
Distribution: Slackware 14, Debian 7, FreeBSD, OpenBSD
Posts: 176

Rep: Reputation: 34
The error occurs at lines 1429 & 1476. Libbfd is described at Wikipedia and there are plenty of hits from google.

It's got to be the "slackware" component of the name, right? It's set at line 130 (i.e. log line 130) for build and host systems and then the target system is set. Perhaps you need to edit the Makefile and insert a sed clause that removes the "-slackware" component so that the BFD clause changes from i486-slackware-linux-gnu to i486-linux-gnu, assuming it is set with a make or shell command.

Could be the blind leading the blind here, but that would be my first attempt to fix it. Also, I happened to note while going through some man pages the following
Code:
archive_entry_uname [] (3)  - functions for manipulating archive entry descriptions
archive_entry_uname [] (3p)  - functions for manipulating archive entry descriptions
  and 
libarchive []        (3)  - functions for reading and writing streaming archives
libarchive []        (3p)  - functions for reading and writing streaming archives
libarchive []        (5)  - formats - archive formats supported by the libarchive library
libarchive_internals [] (3)  - description of libarchive internal interfaces
libarchive_internals [] (3p)  - description of libarchive internal interfaces
which may be relevant since your errors are coming from ar.

Good luck.

Last edited by padeen; 02-06-2013 at 06:24 PM. Reason: stupid thumbs down icon appeared from nowhere -- removed.
 
Old 02-10-2013, 02:29 PM   #6
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Original Poster
Rep: Reputation: 86
Thanks for help.

I took the lazy way and compiled it on a -current. It worked.
 
Old 02-11-2013, 12:53 AM   #7
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,752

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
'i486-slackware-linux-gnu' I'd say that more likely it's the '-gnu' part that causes the problem. binutils and others expect 'properly formed' target name which include -gnu or other libc names. Slackware, of course does not have that, so tools which have their own routines for determining the arch complain and fail over it. A small patch will fix the sources, or linking all references to i486-slackware-linux to i486-slackware-linux-gnu.
 
Old 05-04-2013, 05:35 PM   #8
the3dfxdude
Member
 
Registered: May 2007
Posts: 316

Rep: Reputation: 87
The binutils-2.22.52.0.2 in arm 14.0's x-toolchain seems to have a problem building on slackware x86. I updated to binutils-2.23.52.0.1 in x-toolchain current, and the problem goes away. I'll try out my tool-chain and hope it works. I want a locked down tool-chain on the latest stable version because I don't think I will be changing slackware arm versions on my raspberry pi ever. So I want to make it easy to know what was used than to remember what current meant.
 
Old 05-10-2013, 05:01 PM   #9
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Original Poster
Rep: Reputation: 86
Thanks for the tip.
 
  


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
Where can I download arm-linux-* toolchain ? unimous Linux - Embedded & Single-board computer 20 04-12-2013 07:43 AM
g++ toolchain for ARM platform yuchankit Slackware 3 10-07-2012 12:33 AM
[SOLVED] arm kit + jtag + toolchain PoleStar Linux - Embedded & Single-board computer 6 03-04-2011 10:59 AM
cross compile in 64 bit machine for 32 bit arm sattulinux Linux - Newbie 8 11-20-2010 09:09 AM
ARM Toolchain Problem richardji Linux - General 2 08-08-2005 10:24 PM


All times are GMT -5. The time now is 05:43 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration