Hi Bernd,
Bernd Büttner wrote:
trying to switch to dist20080808 I'm running into a toolchain problem.
My platform is m68knommu (coldfire 528x) and I'm using toolchain
m68k-uclinux-tools-20061214.sh (latest at uclinux.org)
Trying to compile dist20080808 with latest patch
uClinux-dist-20080808-20090423
results in an error message
"Your version of gcc miscompiles the __weak directive"
end breaks.
This comes from compiler-gcc4.h
/* GCC 4.1.[01] miscompiles __weak */
#if __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ <= 1
# error Your version of gcc miscompiles the __weak directive
#endif
Where do I get a newer toolchain and does it work with older
distribution (dist20070130) too?
I have to work in parallel some time.
I use a gcc-4.2.4 for testing of the dists currently. (I am uploading
my binary package to www.uclinux.org now - it will be there in a few
hours :-(
You can use the Code Sourcery tool packages too.
You will probably have to make a few minor fixes to older code
(in older dist packages) to get it compiling with these newer
toolchains. I recall having to tweak a few things in the 2.4.x
code base for example to get it to compile with gcc-4.2.4. (The
newer versions of gcc are very pedantic, and will fail and warn
in things that older versions of gcc didn't).
It is possible to install multiple toolchain versions at once.
It requires a little effort.
Regards
Greg
------------------------------------------------------------------------
Greg Ungerer -- Principal Engineer EMAIL: g...@snapgear.com
SnapGear Group, McAfee PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev