Re: [yocto] Patching gcc-4.7.2 to add support for Xilinx MicroBlaze
Elvis On Thu, Mar 7, 2013 at 8:20 AM, Elvis Dowson elvis.dow...@gmail.com wrote: Hi Khem, Any plans on moving to gcc-4.7.3 or 4.8.0 anytime soon? Neither of those has been released yet so no plans as of now. Nearly all the microblaze gcc patches are for gcc-4.8.0 on the trunk, several of them in fact. OK may be you should wait until fall release of yocto I've re-applied and ported all the existing patches that you've created for gcc-4.7.2 to gcc-4.7.3 (not yet tested). 4.7.3 is probably a snapshot you are talking about. We have moved away from snapshots for gcc since git repo for gcc is in terabytes and using svn did not go well with gcc recipe. If 4.7.3 is release in few days I will be happy to consider but as such we are staying with 4.7.2 So, I was wondering if you'd like me to try to get gcc-4.7.3 or gcc-4.8.0 built against the current poky master branch? You could try and may be even keep recipes in a layer and we can then progress them into OE-Core once the time comes. I can test ARM Cortex A9, ARM Cortex A8 and Microblaze at my end. Do let me know! Best regards, Elvis Dowson ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Patching gcc-4.7.2 to add support for Xilinx MicroBlaze
Hi Khem, After patching both gcc-4.7.2 and gcc-4.8.0, I get the following error. This looks like a common error, and I was wondering if there is something that needs to be additionally taken into consideration, in the poky gcc recipes (gcc-configure-*.inc) to get it to work for the microblaze processor? The output log is from the gcc-4.8.0 build, but the same message persists with the gcc-4.7.2 adapted build with the microblaze patches: | checking for microblaze-poky-linux-gcc... /tool/yocto/poky/build/tmp/work/microblaze-poky-linux/gcc-cross-initial/4.8.0-r01/gcc-4.8.0/build.x86_64-linux.microblaze-poky-linux/./gcc/xgcc -B/tool/yocto/poky/build/tmp/work/microblaze-poky-linux/gcc-cross-initial/4.8.0-r01/gcc-4.8.0/build.x86_64-linux.microblaze-poky-linux/./gcc/ -m32 -isystem/tool/yocto/poky/build/tmp/sysroots/spartan-6-sp601-microblaze/usr/include -B/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/microblaze-poky-linux/bin/ -B/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/microblaze-poky-linux/lib/ -isystem /tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/microblaze-poky-linux/include -isystem /tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/microblaze-poky-linux/sys-include --sysroot=/tool/yocto/poky/build/tmp/work/microblaze-poky-linux/gcc-cross-initial/4.8.0-r01/gcc-4.8.0/build.x86_64-linux.microblaze-poky-linux/tmpsysroot | checking for suffix of object files... configure: error: in `/tool/yocto/poky/build/tmp/work/microblaze-poky-linux/gcc-cross-initial/4.8.0-r01/gcc-4.8.0/build.x86_64-linux.microblaze-poky-linux/microblaze-poky-linux/libgcc': | configure: error: cannot compute suffix of object files: cannot compile | See `config.log' for more details. | make: *** [configure-target-libgcc] Error 1 | ERROR: oe_runmake failed | ERROR: Function failed: do_compile (see /tool/yocto/poky/build/tmp/work/microblaze-poky-linux/gcc-cross-initial/4.8.0-r01/temp/log.do_compile.32684 for further information) Best regards, Elvis Dowson ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Patching gcc-4.7.2 to add support for Xilinx MicroBlaze
On Mar 8, 2013, at 2:28 AM, Elvis Dowson elvis.dow...@gmail.com wrote: | configure: error: cannot compute suffix of object files: cannot compile | See `config.log' for more details. | make: *** [configure-target-libgcc] Error 1 seems some missing header or libs but doesn't say much. where is config.log ? ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Patching gcc-4.7.2 to add support for Xilinx MicroBlaze
Hi Khem, On Mar 8, 2013, at 6:47 PM, Khem Raj raj.k...@gmail.com wrote: | configure: error: cannot compute suffix of object files: cannot compile | See `config.log' for more details. | make: *** [configure-target-libgcc] Error 1 seems some missing header or libs but doesn't say much. where is config.log ? Here is the build report against the gcc-4.7.2 build: | checking for microblaze-poky-linux-gcc... /tool/yocto/poky/build/tmp/work/microblaze-poky-linux/gcc-cross-initial/4.7.2-r19/gcc-4.7.2/build.x86_64-linux.microblaze-poky-linux/./gcc/xgcc -B/tool/yocto/poky/build/tmp/work/microblaze-poky-linux/gcc-cross-initial/4.7.2-r19/gcc-4.7.2/build.x86_64-linux.microblaze-poky-linux/./gcc/ -m32-mhard-float -isystem/tool/yocto/poky/build/tmp/sysroots/spartan-6-sp601-microblaze/usr/include -B/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/microblaze-poky-linux/bin/ -B/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/microblaze-poky-linux/lib/ -isystem /tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/microblaze-poky-linux/include -isystem /tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/microblaze-poky-linux/sys-include --sysroot=/tool/yocto/poky/build/tmp/work/microblaze-poky-linux/gcc-cross-initial/4.7.2-r19/gcc-4.7.2/build.x86_64-linux.microblaze-poky-linux/tmpsysroot | checking for suffix of object files... configure: error: in `/tool/yocto/poky/build/tmp/work/microblaze-poky-linux/gcc-cross-initial/4.7.2-r19/gcc-4.7.2/build.x86_64-linux.microblaze-poky-linux/microblaze-poky-linux/libgcc': | configure: error: cannot compute suffix of object files: cannot compile | See `config.log' for more details. | make: *** [configure-target-libgcc] Error 1 | ERROR: oe_runmake failed | ERROR: Function failed: do_compile (see /tool/yocto/poky/build/tmp/work/microblaze-poky-linux/gcc-cross-initial/4.7.2-r19/temp/log.do_compile.31442 for further information) Some of the errors in the libgcc/config.log file are as follows: xgcc: error: unrecognized command line option '-m32' configure:3355: $? = 0 configure:3344: /tool/yocto/poky/build/tmp/work/microblaze-poky-linux/gcc-cross-initial/4.7.2-r19/gcc-4.7.2/build.x86_64-linux.microblaze-poky-linux/./gcc/xgcc -B/tool/yocto/poky/build/tmp/work/microblaze-poky-linux/gcc-cross-initial/4.7.2-r19/gcc-4.7.2/build.x86_64-linux.microblaze-poky-linux/./gcc/ -m32-mhard-float -isystem/tool/yocto/poky/build/tmp/sysroots/spartan-6-sp601-microblaze/usr/include -B/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/microblaze-poky-linux/bin/ -B/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/microblaze-poky-linux/lib/ -isystem /tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/microblaze-poky-linux/include -isystem /tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/microblaze-poky-linux/sys-include --sysroot=/tool/yocto/poky/build/tmp/work/microblaze-poky-linux/gcc-cross-initial/4.7.2-r19/gcc-4.7.2/build.x86_64-linux.microblaze-poky-linux/tmpsysroot -v 5 xgcc: error: unrecognized command line option '-m32' Reading specs from /tool/yocto/poky/build/tmp/work/microblaze-poky-linux/gcc-cross-initial/4.7.2-r19/gcc-4.7.2/build.x86_64-linux.microblaze-poky-linux/./gcc/specs COLLECT_GCC=/tool/yocto/poky/build/tmp/work/microblaze-poky-linux/gcc-cross-initial/4.7.2-r19/gcc-4.7.2/build.x86_64-linux.microblaze-poky-linux/./gcc/xgcc COLLECT_LTO_WRAPPER=/tool/yocto/poky/build/tmp/work/microblaze-poky-linux/gcc-cross-initial/4.7.2-r19/gcc-4.7.2/build.x86_64-linux.microblaze-poky-linux/./gcc/lto-wrapper Target: microblaze-poky-linux Configured with: /tool/yocto/poky/build/tmp/work-shared/gcc-4.7.2-r19/gcc-4.7.2/configure --build=x86_64-linux --host=x86_64-linux --target=microblaze-poky-linux --prefix=/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr --exec_prefix=/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr --bindir=/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/microblaze-poky-linux.gcc-cross-initial --sbindir=/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/microblaze-poky-linux.gcc-cross-initial --libexecdir=/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/libexec/microblaze-poky-linux.gcc-cross-initial --datadir=/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/share --sysconfdir=/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/etc --sharedstatedir=/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/com --localstatedir=/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/var --libdir=/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/lib/microblaze-poky-linux.gcc-cross- initial --includedir=/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/include --oldincludedir=/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/include --infodir=/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/share/info --mandir=/tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/share/man --disable-silent-rules --disable-dependency-tracking
Re: [yocto] Patching gcc-4.7.2 to add support for Xilinx MicroBlaze
On Fri, Mar 8, 2013 at 2:07 AM, Khem Raj raj.k...@gmail.com wrote: We have moved away from snapshots for gcc since git repo for gcc is in terabytes and It sure would be nice if git had a feature whereby one could grab just a specific snapshot without any history, or meta-information etc... just the code of one specific hash. (btw, I'm aware of shallow clones, they don't do what I'm asking for) ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Patching gcc-4.7.2 to add support for Xilinx MicroBlaze
Hi Khem, Any plans on moving to gcc-4.7.3 or 4.8.0 anytime soon? Nearly all the microblaze gcc patches are for gcc-4.8.0 on the trunk, several of them in fact. I've re-applied and ported all the existing patches that you've created for gcc-4.7.2 to gcc-4.7.3 (not yet tested). So, I was wondering if you'd like me to try to get gcc-4.7.3 or gcc-4.8.0 built against the current poky master branch? I can test ARM Cortex A9, ARM Cortex A8 and Microblaze at my end. Do let me know! Best regards, Elvis Dowson ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Patching gcc-4.7.2 to add support for Xilinx MicroBlaze
Hi Khem, On Mar 6, 2013, at 6:58 AM, Khem Raj raj.k...@gmail.com wrote: I dont have a public repo for gcc its too big to host. You can just do a normal patch process on gcc in work-shared using quilt That should work I've already started doing this. If I get the compiler support for MicroBlaze built and tested, I'll send across the patches for inclusion. The Xilinx Series -7 FPGAs without an ARM core will require a MicroBlaze processor (Artix-7, Kintex-7 and Virtex-7). The Xilinx mb-gcc toolchain was built using crosstool-ng, but I'd like to build it using Yocto. Best regards, Elvis Dowson ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Patching gcc-4.7.2 to add support for Xilinx MicroBlaze
On Tue, Mar 5, 2013 at 7:58 PM, Elvis Dowson elvis.dow...@gmail.com wrote: Hi Khem, On Mar 6, 2013, at 6:58 AM, Khem Raj raj.k...@gmail.com wrote: I dont have a public repo for gcc its too big to host. You can just do a normal patch process on gcc in work-shared using quilt That should work I've already started doing this. If I get the compiler support for MicroBlaze built and tested, I'll send across the patches for inclusion. nice. I will look forward for them The Xilinx Series -7 FPGAs without an ARM core will require a MicroBlaze processor (Artix-7, Kintex-7 and Virtex-7). The Xilinx mb-gcc toolchain was built using crosstool-ng, but I'd like to build it using Yocto. yes I dont see any reason that should not work Best regards, Elvis Dowson ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Patching gcc-4.7.2 to add support for Xilinx MicroBlaze
Hi Elvis I dont have a public repo for gcc its too big to host. You can just do a normal patch process on gcc in work-shared using quilt That should work Thanks -Khem On Tue, Mar 5, 2013 at 6:45 AM, Elvis Dowson elvis.dow...@gmail.com wrote: Hi Khem, I hope you're doing fine! Could you give me the url to your gcc-4.7.2 git repo, so that I can develop patches against it to add support for the Xilinx MicroBlaze soft-processor? I've hit the following bug http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54663 and the patches are available with this revision http://gcc.gnu.org/viewcvs?view=revisionrevision=195488 So, I'd like to back port it against the current gcc-4.7.2 recipe revision. Or else, I will have to do a git svn import of the source, and manually patch it using the current list of patches in the yocto recipe, which would take a couple of hours. So if I can have access to your repo, it will save me sometime! Thanks! Best regards, Elvis Dowson ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto