Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc 1.40
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Thu Oct 18, 2007 5:41 pm    Post subject: gcc 1.40 Reply with quote

hi

i need to use motorola DSP56002, that is an old DSP that gcc only support in the gcc-1.40
so i need to built the old gcc-1.40

downloading sources from gnu.org, configuring and compiling it has not success
any idea or suggestion to build it ?


regards


p.s.
is it possibile to emerge gcc-2.95.3 on a ppc-gentoo ?
if so, how to do this ? the ebuild is blocked by something i can't understand
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Fri Oct 19, 2007 2:18 am    Post subject: Reply with quote

Perhaps your best bet is an old disk from which you could install an entire old OS, perhaps to a VM or something.
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Fri Oct 19, 2007 10:47 am    Post subject: Re: gcc 1.40 Reply with quote

ddc wrote:

p.s.
is it possibile to emerge gcc-2.95.3 on a ppc-gentoo ?
if so, how to do this ? the ebuild is blocked by something i can't understand

It is profile masked. You can still emerge it if you are brave enough!
Create the file (and some of the directories, probably) /etc/portage/profile/packages
and put ">=sys-devel/gcc-2.95.3-r10" in it.
I am not completely sure of the file name as I don't touch stuff in /etc/portage/profile/ a lot.
Basically this version of gcc is blocked by "/usr/portage/profile/default-linux/ppc/ppc32/2007.0/packages"
or the equivalent linked from /etc/make.profile, have a look.
I cannot test this right now but it should work in theory.
However unmasking gcc may only be the first hurdle, building it may be another story.
Back to top
View user's profile Send private message
hawaiian717
n00b
n00b


Joined: 13 May 2004
Posts: 71

PostPosted: Fri Oct 19, 2007 9:53 pm    Post subject: Reply with quote

The file fb is referring to is /etc/portage/package.unmask. See: http://gentoo-wiki.com/TIP_Dealing_with_masked_packages#Hard_Masked
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Fri Oct 19, 2007 11:38 pm    Post subject: Reply with quote

hawaiian717 wrote:
The file fb is referring to is /etc/portage/package.unmask. See: http://gentoo-wiki.com/TIP_Dealing_with_masked_packages#Hard_Masked

Absolutly not! package.unmask work for packages that are filled in /usr/portage/package.mask
and other package.mask files that can be inherited from your profile. It doesn't work
if the package is profile masked as I described.
Let's look at eix output:
Code:
eix sys-devel/gcc
[I] sys-devel/gcc
     Available versions:
        (2.95)  [P]2.95.3-r9 [P]~2.95.3-r10
        (3.1)   [P]3.1.1-r2
        (3.2)   [P]**3.2.2 [P]3.2.3-r4
        (3.3)   [P]3.3.2-r7 3.3.5-r1 3.3.5.20050130-r1 3.3.6 3.3.6-r1
        (3.4)   ~3.4.1-r3 3.4.4-r1 3.4.5 3.4.5-r1 ~3.4.6 3.4.6-r1 3.4.6-r2
        (4.0)   ~*4.0.3 ~*4.0.4
        (4.1)   ~4.1.0-r1 4.1.1 4.1.1-r1 4.1.1-r3 4.1.2
        (4.2)   ~4.2.0 ~4.2.1 (~)4.2.2
A ~ indicate something that is in ~arch and can be "package.mask"-ed as well.
A * indicate a missing keyword for the present arch, A ** indicate a lack of keywords
whatsoever.
And finally [P] indicate a profile masking and no matter what you put in package.unmask
it will stay masked.
Back to top
View user's profile Send private message
hawaiian717
n00b
n00b


Joined: 13 May 2004
Posts: 71

PostPosted: Sat Oct 20, 2007 5:42 pm    Post subject: Reply with quote

Oops, sorry. Didn't catch that.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Sat Oct 20, 2007 5:50 pm    Post subject: Reply with quote

You will need to use an old profile to be able to emerge that. Anyway, I would rather compile it manually on my home. If you tried and you are getting errors, we will need to see them to be able to at least start thinking about what the problem might be.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Sun Oct 21, 2007 8:22 pm    Post subject: Reply with quote

erik258 wrote:
Perhaps your best bet is an old disk from which you could install an entire old OS, perhaps to a VM or something.



i think it is a good idea !
recompiling gcc-1.40 on modern linux system seems to be impossibile
too many errors, too many differences in the source, too many dependencies to the system libraries
so the problem is now: how to get an old x86 disk with an old enough linux
i successfully installed qemu-x86, i only need an idea to build an old enought linux


about gcc 2.95.3, i'm recompiling it manually, recompiling binutils 2.15 and using newlilb 1.12
it has been configured to be installed into /usr/local
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Thu Oct 25, 2007 9:39 pm    Post subject: Reply with quote

You might try getting Debian Woody. Woody used a 2.4 kernel and also used gcc-2.95. You can use debootstrap to create a build environment.
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Sat Nov 03, 2007 11:24 am    Post subject: Reply with quote

on the slackware mirror there are linuxes of 1994 (which should be the age of gcc 1.4x)
the problem is i'm not provided with a floppy reader

i wonder if there is a sort of museum with an old 1994 linux harddisk image ...



Quote:

GCC56K -- GCC Compiler for the DSP56000/1
GCC5616 -- GCC Compiler for the DSP5616 series
Version 0.1

This package contains GCC machine descriptions for the Motorola DSP56000
(or DSP56001) DSP chip and the DSP5616 series (including the DSP56116 and
the DSP56156). Using the machine description files, a GCC compiler can be
created which will generate assembly code suitable for processing by
Motorola's assemblers.

The machine description is based upon version 1.40 of GCC. It has not been
tried with any other version of GCC. If you do not have GCC 1.40, I
believe that it is available from many different sites. Two that I know of
are anonymous FTP sites: crl.dec.com and prep.ai.mit.edu. The latter
address has a substantial list of where you can obtain GNU software.

Andrew Sterian
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Sat Nov 03, 2007 3:27 pm    Post subject: Reply with quote

ddc wrote:
on the slackware mirror there are linuxes of 1994 (which should be the age of gcc 1.4x)
the problem is i'm not provided with a floppy reader

i wonder if there is a sort of museum with an old 1994 linux harddisk image ...



Quote:

GCC56K -- GCC Compiler for the DSP56000/1
GCC5616 -- GCC Compiler for the DSP5616 series
Version 0.1

This package contains GCC machine descriptions for the Motorola DSP56000
(or DSP56001) DSP chip and the DSP5616 series (including the DSP56116 and
the DSP56156). Using the machine description files, a GCC compiler can be
created which will generate assembly code suitable for processing by
Motorola's assemblers.

The machine description is based upon version 1.40 of GCC. It has not been
tried with any other version of GCC. If you do not have GCC 1.40, I
believe that it is available from many different sites. Two that I know of
are anonymous FTP sites: crl.dec.com and prep.ai.mit.edu. The latter
address has a substantial list of where you can obtain GNU software.

Andrew Sterian


Could you post a direct link so we can review that images?

If they are regular dd images you could access its contents by just mounting them on a loopback filesystem. You might even be able to boot them using a virtual machine. No need to actually put the image on a physical floppy drive.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Sat Nov 03, 2007 6:59 pm    Post subject: Reply with quote

also i found this ftp://ftp.unina.it/pub/linux/distributions/slackware/
Slackware 1.1.2 ~ 1993, gcc ~ 2.5.x
there are tgz, so it is better : P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum