[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Newest Native Binutils release....



> The problem is in ld/genscripts.sh.
oh yes, I found it yestarday, too :) I see you took more intelligent
approach, I just linked sh -> /bin/bash and problem was solved :)

> 1) The makeinfo package from Sparemint has to be installed in order to
> make the build success
But to build infos itself you need makeinfo >= 4.4. I compiled texinfo
4.11 package, funny thing is there's a bug in configure script (which
is already fixed in gcc 4.2.2) which generates the same error with >=
4.10 version -- bad version checking. I don't have that pach here but
search for:

if ${MAKEINFO} --version \
        | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null
2>&1; then

and replace last line with:

       | egrep 'texinfo[^0-9]*(4\.([4-9]|[1-9][0-9])|[5-9]|[1-9][0-9])'
>/dev/null 2>&1; then

Btw, there's another strange thing I observed -- I just wanted to try
binutils 2.18 + gcc4 so I configured binutils with --disable-bootstrap
(don't know if that matters, for sure I mention it) to speed things
up, everything ok (with the patches you've already mentioned),
installation also ok. Fine, I uninstalled binutils RPM, to be sure the
right tools (as, ld, nm, ... ) will be used.

But as soon as some code needs to be linked, I've got: no -lc found!
When I use gcc -L/usr/lib hello.c, it works, else that error. Manual
page says with static libs it depends on emulation mode (i.e. m68k
target) or how was 'ld' configured. My question is clear now -- how do
I tell 'ld' where to look (by default) for libs? I compared 2.13 and
2.18 linking (gcc -v), the same command line parameters are given to
both of them.

Another gcc-related question :) What is the final ouput for 'install'
process in 3-stage build? In --disable-bootstrap it's clear -- I
compile gcc4 using gcc2 and this ouput will be installed. But with
bootstrap, there are three gcc4s built and I'm not sure which one is
installed then -- gcc4 compiled against gcc4? or that first one? gcc4
against gcc2?

And the last thing -- I'd like to compile, as mentioned,
68060-optimized gcc4. I modified two file
t-mint:

MULTILIB_OPTIONS = m68020-60/m68060 68881
MULTILIB_DIRNAMES =
MULTILIB_MATCHES = m68020-60=m68020-40 m68020-60=m68030
m68020-60=m68040 m68060=m68060
MULTILIB_EXCEPTIONS = m68060/68881
(to produce 030+68881, 030 and 060 gcc libs)

here I don't understand what is the difference between not specifying
68881 and specifying msoft-float library. In the first case, I can't
use any float operations at all?

then there's file called m68k-none.h. there are various definitions
for TARGET_CPU_DEFAULT (should be defined by configure? how?) and I
don't see 68060 here (just M68K_CPU_m68040) to produce 68060 code by
default. It's safe to add M68K_CPU_m68060 with integer 5 and to
#define TARGET_CPU_DEFAULT M68K_CPU_68060?

for me is the biggest mystery, where are all these constants defined,
no single header file with #define MASK_68040 etc...

Thanks for any help/hints :)

-- 
MiKRO / Mystic Bytes
http://mikro.atari.org