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

Re: [microblaze-uclinux] unknown option --fatal-warnings



Hi Tom,

Tom wrote:

message attached below. Seems as if the linker is
complaining about an option called "--fatal-warnings".

Just today I received an email from a Frech petalinux user who showed my why you get this problem (but in German :)

microblaze-uclinux-gcc  -Os -g -fomit-frame-pointer
-pipe -fno-common -fno-builtin -Wall  -mno-xl-soft-mul
-mno-xl-soft-div -mxl-barrel-shift -mcpu=v6.00.b -DEMBED
-I/home/marcus/tmp/petalinux-v0.20-rc3/software/petalinux-dist
-I/home/marcus/tmp/petalinux-v0.20-rc3/software/petalinux-dist/include
-I/home/marcus/tmp/petalinux-v0.20-rc3/software/petalinux-dist/include
-Dlinux -D__linux__ -Dunix -D__uClinux__ -DLINUX
-D__USE_BSD   -c -o agetty.o agetty.c
microblaze-uclinux-gcc  -Wl,--fatal-warnings
-L/home/marcus/tmp/petalinux-v0.20-rc3/software/petalinux-dist/lib
-mno-xl-soft-mul -mno-xl-soft-div -mxl-barrel-shift
-mcpu=v6.00.b  -o agetty agetty.o
/home/marcus/tmp/petalinux-v0.20-rc3/tools/linux-i386/microblaze-uclinux-tools/bin/../lib/gcc/microblaze-uclinux/3.4.1/../../../../microblaze-uclinux/bin/ld.real:
Unbekannte Option >>--fatal-warnings<<
/home/marcus/tmp/petalinux-v0.20-rc3/tools/linux-i386/microblaze-uclinux-tools/bin/../lib/gcc/microblaze-uclinux/3.4.1/../../../../microblaze-uclinux/bin/ld.real:
use the --help option for usage information

The PetaLinux build environment uses some simple algorithm to see if a the linker can support the --fatal-warnings flag (microblaze-gcc cannot). But, this test simply looks for an error message - in English!

So, users on non-english Linux distros will hit this problem.

For you, there's a workaround, but I need to come up with a more generic solution:

edit petalinux-dist/vendors/config/common/config.arch, around line 92,

see the line

ifeq "$(shell PATH=$(PATH) $(LD) --fatal-warnings 2>&1 | grep 'unrecogni.ed option')" ""

change the "unrecogni.ed option" text to the equivalent error message in German, in your case I suppose it will be

"Unbekannte Option"

This should get you going, but as I said a generic fix will take a little more thought (probably test the return code rather than parse the error output).

Similarly users in other languages will need to apply the same process for their local installs.

Regards,

John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/