Re: first stab at a cross compiler ...

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

 



FYI any NetBSD folks:

On Fri, Apr 15, 2011 at 9:24 AM, kevin diggs <diggskevin38@xxxxxxxxx> wrote:
>
> I tried 4.3.5 with its fancy --with-build-time-tools configure option.
> This one died saying something about:
>
> undefined reference to `m68k_cpu_flags'
>
> while trying to link Tcollect2:
>
> make[2]: Entering directory `/home/kevdig/projects/GCC/obj-gcc-4.3.5-m68k/gcc'
> gcc   -O2 -march=pentium3 -fomit-frame-pointer -DIN_GCC
> -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
> -Wmissing-format-attribute -pedantic -Wno-long-long
> -Wno-variadic-macros                                 -Wno-overlength-strings
> -DHAVE_CONFIG_H  -o Tcollect2 \
>                collect2.o tlink.o intl.o version.o ../libcpp/libcpp.a
> ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
>
> This means 4.3.5 found all of its little internal binutils goodies, right!??
>
> How far did this one get?
>
> Thanks!
>
> kevin
>
The TARGET_VERSION macro for netbsd (netbsd-elf.h) refers to
TARGET_68010 which in turn uses m68k_cpu_flags variable. Apparently
collect2 does not link in libbackend.a which contains m68k.o where
m68k_cpu_flags is defined (declared?).

I tried to add that to the link on the command line but apparently
that ?somehow? wants to drag a bunch more stuff in?

kevin

P.S.:  It's almost 8 Meg!!!! How many things link this in? I think I'm
gonna look at doin some pic codin'!!!!!! Maybe a new configure option.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux