Skip to contentSkip to conversation

About tool chains of metag

Consult Chen Gang 3 participants 10 messages Dec 4, 2013 – Dec 9, 2013 6 messages not in the archive

lore
Share & tools
lore

Chen Gang

author
#0 lore raw

Hello James Hogan:

Could you provide any related information about metag tool chains?

I plan to cross compile metag with allmodconfig, but now it seems not quite easy to find related gcc (binutils-2.23.2 support metag, but gcc main line does not).

And also, welcome any related suggestions or completions.

:-)

Thanks.

Signature · 5 lines
Chen Gang
--
To unsubscribe from this list: send the line "unsubscribe linux-metag" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Hi Chen,

Quoted 5 lines · Chen Gang

Could you provide any related information about metag tool chains?

I plan to cross compile metag with allmodconfig, but now it seems not quite easy to find related gcc (binutils-2.23.2 support metag, but gcc main line does not).

A buildroot tree containing a gcc-4.2.4 patch can be found here:

git://github.com/img-meta/metag-buildroot.git metag-core

Use meta2_defconfig

There's a known issue with all/random config builds with this toolchain which results in internal compiler errors triggered by the inline asm in arch/metag/include/asm/io.h when used by certain drivers, so I need to update the patch to the latest before these will go away.

The other main issue with all/random config builds for Meta is a few missing !METAG dependencies on legacy PC peripherals like SERIO_I8042, which I believe you've already come across for Arc.

Please read this thread before attempting to fix them:
https://lkml.kernel.org/r/[email protected]

I haven't got around to fixing this properly myself, but it would be a worthwhile improvement if you felt inclined to do so.

Cheers
James

--
To unsubscribe from this list: send the line "unsubscribe linux-metag" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 9 lines · James Hogan
Quoted 5 lines · Chen Gang

Could you provide any related information about metag tool chains?

I plan to cross compile metag with allmodconfig, but now it seems not quite easy to find related gcc (binutils-2.23.2 support metag, but gcc main line does not).

A buildroot tree containing a gcc-4.2.4 patch can be found here:

Quoted 8 lines

git://github.com/img-meta/metag-buildroot.git metag-core

Use meta2_defconfig

There's a known issue with all/random config builds with this toolchain which results in internal compiler errors triggered by the inline asm in arch/metag/include/asm/io.h when used by certain drivers, so I need to update the patch to the latest before these will go away.

I've pushed a new buildroot branch which has the updated GCC 4.2.4 patch:

git://github.com/img-meta/metag-buildroot.git metag-core-2013.11 Again use meta2_defconfig.

Tony: Is this something you can easily use to generate a Meta toolchain for https://www.kernel.org/pub/tools/crosstool/?

Thanks
James

Quoted 10 lines

The other main issue with all/random config builds for Meta is a few missing !METAG dependencies on legacy PC peripherals like SERIO_I8042, which I believe you've already come across for Arc.

Please read this thread before attempting to fix them:
https://lkml.kernel.org/r/[email protected]

I haven't got around to fixing this properly myself, but it would be a worthwhile improvement if you felt inclined to do so.

--
To unsubscribe from this list: send the line "unsubscribe linux-metag" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#6 lore raw

Thank you very much for your details valuable information.

I will/should try my best to let it pass allmodconfig, and I guess
https://lkml.kernel.org/r/[email protected] is valuable to me, and I will/should reference it.

I will/should try to finish allmodconfig within one month, but excuse me, I have to do it in my free time as a volunteer, so maybe it needs longer (but at least, it should be finished within 2014-1-31).

Thanks.

Quoted 41 lines · James Hogan
Quoted 9 lines · James Hogan
Quoted 5 lines · Chen Gang

Could you provide any related information about metag tool chains?

I plan to cross compile metag with allmodconfig, but now it seems not quite easy to find related gcc (binutils-2.23.2 support metag, but gcc main line does not).

A buildroot tree containing a gcc-4.2.4 patch can be found here:

Quoted 8 lines

git://github.com/img-meta/metag-buildroot.git metag-core

Use meta2_defconfig

There's a known issue with all/random config builds with this toolchain which results in internal compiler errors triggered by the inline asm in arch/metag/include/asm/io.h when used by certain drivers, so I need to update the patch to the latest before these will go away.

I've pushed a new buildroot branch which has the updated GCC 4.2.4 patch:

git://github.com/img-meta/metag-buildroot.git metag-core-2013.11 Again use meta2_defconfig.

Tony: Is this something you can easily use to generate a Meta toolchain for https://www.kernel.org/pub/tools/crosstool/?

Thanks
James

Quoted 10 lines

The other main issue with all/random config builds for Meta is a few missing !METAG dependencies on legacy PC peripherals like SERIO_I8042, which I believe you've already come across for Arc.

Please read this thread before attempting to fix them:
https://lkml.kernel.org/r/[email protected]

I haven't got around to fixing this properly myself, but it would be a worthwhile improvement if you felt inclined to do so.

Signature · 7 lines
Chen Gang

Open, share, and attitude like air, water and life which God blessed
--
To unsubscribe from this list: send the line "unsubscribe linux-metag" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#8 lore raw
Quoted 7 lines · Chen Gang

Thank you very much for your details valuable information.

I will/should try my best to let it pass allmodconfig, and I guess
https://lkml.kernel.org/r/[email protected] is valuable to me, and I will/should reference it.

Oh, excuse me, I can not access "https://lkml.kernel.org/r/..." in normal way in China. :-(

Could you please provide another links which include the same contents?

Thanks.

Quoted 50 lines

I will/should try to finish allmodconfig within one month, but excuse me, I have to do it in my free time as a volunteer, so maybe it needs longer (but at least, it should be finished within 2014-1-31).

Thanks.

Quoted 41 lines · James Hogan
Quoted 9 lines · James Hogan
Quoted 5 lines · Chen Gang

Could you provide any related information about metag tool chains?

I plan to cross compile metag with allmodconfig, but now it seems not quite easy to find related gcc (binutils-2.23.2 support metag, but gcc main line does not).

A buildroot tree containing a gcc-4.2.4 patch can be found here:

Quoted 8 lines

git://github.com/img-meta/metag-buildroot.git metag-core

Use meta2_defconfig

There's a known issue with all/random config builds with this toolchain which results in internal compiler errors triggered by the inline asm in arch/metag/include/asm/io.h when used by certain drivers, so I need to update the patch to the latest before these will go away.

I've pushed a new buildroot branch which has the updated GCC 4.2.4 patch:

git://github.com/img-meta/metag-buildroot.git metag-core-2013.11 Again use meta2_defconfig.

Tony: Is this something you can easily use to generate a Meta toolchain for https://www.kernel.org/pub/tools/crosstool/?

Thanks
James

Quoted 10 lines

The other main issue with all/random config builds for Meta is a few missing !METAG dependencies on legacy PC peripherals like SERIO_I8042, which I believe you've already come across for Arc.

Please read this thread before attempting to fix them:
https://lkml.kernel.org/r/[email protected]

I haven't got around to fixing this properly myself, but it would be a worthwhile improvement if you felt inclined to do so.

Signature · 7 lines
Chen Gang

Open, share, and attitude like air, water and life which God blessed
--
To unsubscribe from this list: send the line "unsubscribe linux-metag" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#10 lore raw
Quoted 10 lines · Chen Gang
Quoted 4 lines · Chen Gang

I will/should try my best to let it pass allmodconfig, and I guess
https://lkml.kernel.org/r/[email protected] is valuable to me, and I will/should reference it.

Oh, excuse me, I can not access "https://lkml.kernel.org/r/..." in normal way in China. :-(

Could you please provide another links which include the same contents?

http://marc.info/?l=linux-arch&m=135307927916985
http://article.gmane.org/gmane.linux.kernel.cross-arch/15908

Cheers
James

--
To unsubscribe from this list: send the line "unsubscribe linux-metag" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#11 lore raw
Quoted 7 lines · James Hogan
Quoted 6 lines · Chen Gang
Quoted 4 lines · Chen Gang

I will/should try my best to let it pass allmodconfig, and I guess
https://lkml.kernel.org/r/[email protected] is valuable to me, and I will/should reference it.

Quoted 8 lines
Quoted 4 lines

Oh, excuse me, I can not access "https://lkml.kernel.org/r/..." in normal way in China. :-(

Could you please provide another links which include the same contents?

http://marc.info/?l=linux-arch&m=135307927916985
http://article.gmane.org/gmane.linux.kernel.cross-arch/15908

That is really valuable to me!!

You and arnd have done much for HAVE_XXX, and I should continue to try based on your work. For me, it is really a suitable solution for all HAVE_XXX (although still need think of more details). :-)

Welcome another related members to provide your suggestions or completions.

Thanks.

Signature · 3 lines
Chen Gang

Open, share, and attitude like air, water and life which God blessed
author
#12 lore raw
In reply to a message not in the archive

Hello Maintainers:

After tried, I guess related binutils and gcc are not match with each
other: gcc support "-minim" option which will pass to gas, but gas can not recognize it.

With "-mno-minim" option, we can try to bypass this issue (I am just trying), but it seems not a quite good idea.

Welcome any additional suggestions or completions for it, thanks.

The related error with making manually ("make menuconfig; make" in root directory also get the same issue):

/upstream/src/metag/metag-buildroot-metag-core/output/toolchain/gcc-4.2.4-initial/./gcc/xgcc -B/upstream/src/metag/metag-buildroot-metag-core/output/toolchain/gcc-4.2.4-initial/./gcc/ -B/upstream/src/metag/metag-buildroot-metag-core/output/host/usr/metag-buildroot-linux-uclibc/bin/ -B/upstream/src/metag/metag-buildroot-metag-core/output/host/usr/metag-buildroot-linux-uclibc/lib/ -isystem /upstream/src/metag/metag-buildroot-metag-core/output/host/usr/metag-buildroot-linux-uclibc/include -isystem /upstream/src/metag/metag-buildroot-metag-core/output/host/usr/metag-buildroot-linux-uclibc/sys-include -O2 -g -Os -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I/upstream/src/metag/metag-buildroot-
metag-core/output/toolchain/gcc-4.2.4/gcc -I/upstream/src/metag/metag-buildroot-metag-core/output/toolchain/gcc-4.2.4/gcc/. -I/upstream/src/metag/metag-buildroot-metag-core/output/toolchain/gcc-4.2.4

/gcc/../include -I/upstream/src/metag/metag-buildroot-metag-core/output/toolchain/gcc-4.2.4/gcc/../libcpp/include -I/upstream/src/metag/metag-buildroot-metag-core/output/host/usr/include -I/upstream/src/metag/metag-buildroot-metag-core/output/host/usr/include -I/upstream/src/metag/metag-buildroot-metag-core/output/toolchain/gcc-4.2.4/gcc/../libdecnumber -I../libdecnumber  -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -Dinhibit_libc -fPIC \
    -c /upstream/src/metag/metag-buildroot-metag-core/output/toolchain/gcc-4.2.4/gcc/crtstuff.c -DCRT_END -DCRTSTUFFS_O \
    -o crtendS.o

Assembler messages:
Error: unrecognized option -minim
make[2]: *** [crtbegin.o] Error 1
make[2]: *** Waiting for unfinished jobs....

Thanks.

Quoted 41 lines · James Hogan
Quoted 9 lines · James Hogan
Quoted 5 lines · Chen Gang

Could you provide any related information about metag tool chains?

I plan to cross compile metag with allmodconfig, but now it seems not quite easy to find related gcc (binutils-2.23.2 support metag, but gcc main line does not).

A buildroot tree containing a gcc-4.2.4 patch can be found here:

Quoted 8 lines

git://github.com/img-meta/metag-buildroot.git metag-core

Use meta2_defconfig

There's a known issue with all/random config builds with this toolchain which results in internal compiler errors triggered by the inline asm in arch/metag/include/asm/io.h when used by certain drivers, so I need to update the patch to the latest before these will go away.

I've pushed a new buildroot branch which has the updated GCC 4.2.4 patch:

git://github.com/img-meta/metag-buildroot.git metag-core-2013.11 Again use meta2_defconfig.

Tony: Is this something you can easily use to generate a Meta toolchain for https://www.kernel.org/pub/tools/crosstool/?

Thanks
James

Quoted 10 lines

The other main issue with all/random config builds for Meta is a few missing !METAG dependencies on legacy PC peripherals like SERIO_I8042, which I believe you've already come across for Arc.

Please read this thread before attempting to fix them:
https://lkml.kernel.org/r/[email protected]

I haven't got around to fixing this properly myself, but it would be a worthwhile improvement if you felt inclined to do so.

Signature · 5 lines
Chen Gang
--
To unsubscribe from this list: send the line "unsubscribe linux-metag" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#14 lore raw
Quoted 4 lines · On Sunday 08 December 2013 18:25:30 Chen Gang wrote:

Assembler messages:
Error: unrecognized option -minim
make[2]: *** [crtbegin.o] Error 1
make[2]: *** Waiting for unfinished jobs....

Did you use meta2_defconfig in buildroot as I suggested?

It has --enable-meta-default in BR2_EXTRA_GCC_CONFIG_OPTIONS which prevents the compiler defaulting to minim (which isn't supported for Linux).

Cheers
James

author
#15 lore raw
Quoted 8 lines · James Hogan
Quoted 4 lines · On Sunday 08 December 2013 18:25:30 Chen Gang wrote:

Assembler messages:
Error: unrecognized option -minim
make[2]: *** [crtbegin.o] Error 1
make[2]: *** Waiting for unfinished jobs....

Did you use meta2_defconfig in buildroot as I suggested?

Oh, sorry, I didn't, I missed understanding (originally, I only noticed meta2_defconfig for Linux kernel, didn't notice another meta2_defconfig for global).

Next, I will/should try.

Quoted 3 lines

It has --enable-meta-default in BR2_EXTRA_GCC_CONFIG_OPTIONS which prevents the compiler defaulting to minim (which isn't supported for Linux).

Thank you very much for your details information (after that, we can generate cross compiler).

And I will/should use "--enable-meta-default" and another options to generate individual cross-compiler and continue to compile kernel with allmodconfig.

:-)

Thanks.

Signature · 7 lines
Chen Gang

Open, share, and attitude like air, water and life which God blessed
--
To unsubscribe from this list: send the line "unsubscribe linux-metag" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html