Building RTEMS 6 toolchain on a Mac

Heinz Junkes junkes at fhi-berlin.mpg.de
Sun Apr 24 15:03:51 UTC 2022


Hello Sebastian,
unfortunately I could not build rtems7 on the Mac (as I can for rtems6):

Cloning into 'rsb'...
RTEMS Source Builder - Set Builder, 6 (376bf3247498)
Build Set: 7/rtems-arm
config: devel/dtc-1.6.1-1.cfg
package: dtc-1.6.1-x86_64-apple-darwin21.4.0-1
Creating source directory: sources
download: https://www.kernel.org/pub/software/utils/dtc/dtc-1.6.1.tar.gz -> sources/dtc-1.6.1.tar.gz
 redirect: https://mirrors.edge.kernel.org/pub/software/utils/dtc/dtc-1.6.1.tar.gz
^Mdownloading: sources/dtc-1.6.1.tar.gz - 0.0 bytes of 199.0kB (0%) ^Mdownloading: sources/dtc-1.6.1.tar.gz - 199.0kB of 199.0kB (100%)
^Mbuilding: dtc-1.6.1-x86_64-apple-darwin21.4.0-1
sizes: dtc-1.6.1-x86_64-apple-darwin21.4.0-1: 4.504MB (installed: 814.811KB)
cleaning: dtc-1.6.1-x86_64-apple-darwin21.4.0-1
reporting: devel/dtc-1.6.1-1.cfg -> dtc-1.6.1-x86_64-apple-darwin21.4.0-1.txt
reporting: devel/dtc-1.6.1-1.cfg -> dtc-1.6.1-x86_64-apple-darwin21.4.0-1.xml
config: devel/expat-2.1.0-1.cfg
package: expat-2.1.0-x86_64-apple-darwin21.4.0-1
download: https://github.com/libexpat/libexpat/releases/download/R_2_1_0/expat-2.1.0.tar.gz -> sources/expat-2.1.0.tar.gz
…
ownloading: sources/gmp-6.2.1.tar.bz2 - 1.8MB of 2.4MB (74%) ^Mdownloading: sources/gmp-6.2.
1.tar.bz2 - 2.0MB of 2.4MB (84%) ^Mdownloading: sources/gmp-6.2.1.tar.bz2 - 2.2MB of 2.4MB (
95%) ^Mdownloading: sources/gmp-6.2.1.tar.bz2 - 2.4MB of 2.4MB (100%)
^Mbuilding: arm-rtems7-gcc-b6e3390-newlib-64b2081-x86_64-apple-darwin21.4.0-1
error: building arm-rtems7-gcc-b6e3390-newlib-64b2081-x86_64-apple-darwin21.4.0-1
Build FAILED
  See error report: rsb-report-arm-rtems7-gcc-b6e3390-newlib-64b2081-x86_64-apple-darwin21.4
.0-1.txt
error: building arm-rtems7-gcc-b6e3390-newlib-64b2081-x86_64-apple-darwin21.4.0-1
Build Set: Time 0:12:11.609355
Build FAILED

…

libtool: compile:  /usr/bin/cc -O2 -pipe -fbracket-depth=1024 -I/Users/heinz/VE/rsb/rtems/build/tmp/sb-502/7/rtems-arm/Users/heinz/VE/ARM_WORK/rtems/7/include -DHAVE_CONFIG_H -I. -I../../../gnu-mirror-gcc-b6e3390/gmp/mpn -I.. -D__GMP_WITHIN_GMP -I../../../gnu-mirror-gcc-b6e3390/gmp -DOPERATION_gcd_22 -DNO_ASM -g -O2 -c gcd_22.c -o gcd_22.o
gcd_22.c:128:10: error: implicit declaration of function 'mpn_gcd_11' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
  g.d0 = mpn_gcd_11 ((u0 << 1) + 1, (v0 << 1) + 1);
         ^
1 error generated.
make[4]: *** [gcd_22.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-gmp] Error 2
make: *** [all] Error 2
shell cmd failed: /bin/sh -ex  /Users/heinz/VE/rsb/rtems/build/arm-rtems7-gcc-b6e3390-newlib-64b2081-x86_64-apple-darwin21.4.0-1/do-build
error: building arm-rtems7-gcc-b6e3390-newlib-64b2081-x86_64-apple-darwin21.4.0-1(base)

Gruss Heinz


> On 22. Apr 2022, at 14:06, Sebastian Huber <sebastian.huber at embedded-brains.de> wrote:
> 
> On 22/04/2022 08:55, Sebastian Huber wrote:
>>> Could GCC be upgraded to 11.2 or 12.0 which should be available very soon? are the patches still needed?
>> It is still undecided which GCC version will be used for RTEMS 6. GCC 10 will reach its end of life with the next release this year. GCC 12 would be brand new. We didn't use GCC 11 so far. I tend to use GCC 12.
> 
> I checked in some updates for the RSB. Could you please check if you can build the RTEMS 7 tool chain which is based on GCC 12:
> 
> ../source-builder/sb-set-builder 7/rtems-arm
> 
> -- 
> embedded brains GmbH
> Herr Sebastian HUBER
> Dornierstr. 4
> 82178 Puchheim
> Germany
> email: sebastian.huber at embedded-brains.de
> phone: +49-89-18 94 741 - 16
> fax:   +49-89-18 94 741 - 08
> 
> Registergericht: Amtsgericht München
> Registernummer: HRB 157899
> Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
> Unsere Datenschutzerklärung finden Sie hier:
> https://embedded-brains.de/datenschutzerklaerung/
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel



More information about the devel mailing list