Building RTEMS 6 toolchain on a Mac
Heinz Junkes
junkes at fhi-berlin.mpg.de
Thu Apr 28 09:15:06 UTC 2022
Hallo Sebastian,
maybe too late, but this is the result of RTEMS 7 rsb on my Mac:
Command Line: ../source-builder/sb-set-builder --jobs=4 --prefix=/Users/heinz/VE/ARM_WORK/rtems/7 7/rtems-arm
Python: 3.8.5 (default, Sep 4 2020, 02:22:02) [Clang 10.0.0 ]
https://github.com/RTEMS/rtems-source-builder.git/origin/a53d2c94322ed4fe261ba0c99bfb66a6cbd1def1
...
CXX unittests/tui-selftests.o
In file included from ../../sourceware-mirror-binutils-gdb-36b1241/gdb/unittests/string_view-selftests.c:34:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/fstream:579:17: warning: The symbol ::fdopen refers to the system function. Use gnulib::fdopen instead. [-Wuser-defined-warnings]
__file_ = fdopen(__fd, __mdstr);
^
../gnulib/import/stdio.h:826:1: note: from 'diagnose_if' attribute on 'fdopen':
_GL_CXXALIASWARN (fdopen);
^~~~~~~~~~~~~~~~~~~~~~~~~
../gnulib/import/stdio.h:461:4: note: expanded from macro '_GL_CXXALIASWARN'
_GL_CXXALIASWARN_1 (func, GNULIB_NAMESPACE)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../gnulib/import/stdio.h:463:4: note: expanded from macro '_GL_CXXALIASWARN_1'
_GL_CXXALIASWARN_2 (func, namespace)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../gnulib/import/stdio.h:468:5: note: expanded from macro '_GL_CXXALIASWARN_2'
_GL_WARN_ON_USE (func, \
^~~~~~~~~~~~~~~~~~~~~~~~
../gnulib/import/stdio.h:632:19: note: expanded from macro '_GL_WARN_ON_USE'
__attribute__ ((__diagnose_if__ (1, message, "warning")))
^ ~
CXX unittests/ui-file-selftests.o
CXX unittests/unique_xmalloc_ptr_char.o
CXX unittests/unpack-selftests.o
1 warning generated.
CXX unittests/utils-selftests.o
CXX unittests/vec-utils-selftests.o
CXX unittests/xml-utils-selftests.o
CXX user-regs.o
CXX utils.o
CXX valarith.o
CXX valops.o
CXX valprint.o
CXX value.o
CXX varobj.o
GEN stamp-version
GEN xml-builtin.c
CXX xml-support.o
CXX xml-syscall.o
CXX xml-tdesc.o
GEN init.c
CXX gdb.o
CXX aarch32-tdep.o
CXX ada-exp.o
CXX ada-lang.o
CXX ada-tasks.o
CXX ada-typeprint.o
CXX ada-valprint.o
CXX ada-varobj.o
CXX addrmap.o
CXX agent.o
CXX alloc.o
CXX annotate.o
CXX arch-utils.o
CXX arch/aarch32.o
CXX arch/arm-get-next-pcs.o
CXX arch/arm.o
CXX arm-none-tdep.o
CXX arm-pikeos-tdep.o
CXX arm-tdep.o
CXX async-event.o
CXX auto-load.o
CXX auxv.o
CXX ax-gdb.o
CXX ax-general.o
CXX bcache.o
CXX bfd-target.o
CXX block.o
CXX blockframe.o
CXX break-catch-exec.o
CXX break-catch-fork.o
CXX break-catch-sig.o
CXX break-catch-syscall.o
CXX break-catch-throw.o
CXX breakpoint.o
CXX bt-utils.o
CXX btrace.o
CXX build-id.o
CXX buildsym-legacy.o
CXX buildsym.o
CXX c-exp.o
CXX c-lang.o
CXX c-typeprint.o
CXX c-valprint.o
CXX c-varobj.o
CXX charset.o
CXX cli-out.o
CXX cli/cli-cmds.o
CXX cli/cli-decode.o
CXX cli/cli-dump.o
CXX cli/cli-interp.o
CXX cli/cli-logging.o
CXX cli/cli-option.o
CXX cli/cli-script.o
CXX cli/cli-setshow.o
CXX cli/cli-style.o
CXX cli/cli-utils.o
CXX coff-pe-read.o
CXX coffread.o
CXX compile/compile-c-support.o
CXX compile/compile-c-symbols.o
CXX compile/compile-c-types.o
CXX compile/compile-cplus-symbols.o
CXX compile/compile-cplus-types.o
CXX compile/compile-loc2c.o
CXX compile/compile-object-load.o
CXX compile/compile-object-run.o
CXX compile/compile.o
CXX complaints.o
CXX completer.o
CXX copying.o
CXX corefile.o
CXX corelow.o
CXX cp-abi.o
CXX cp-name-parser.o
CXX cp-namespace.o
CXX cp-support.o
CXX cp-valprint.o
CXX ctfread.o
CXX d-exp.o
CXX f-exp.o
CXX m2-exp.o
CXX go-exp.o
In file included from ../../sourceware-mirror-binutils-gdb-36b1241/gdb/m2-exp.y:42:
In file included from ../../sourceware-mirror-binutils-gdb-36b1241/gdb/language.h:26:
In file included from ../../sourceware-mirror-binutils-gdb-36b1241/gdb/symtab.h:39:
../../sourceware-mirror-binutils-gdb-36b1241/gdb/split-name.h:34:3: error: expected identifier
DOT,
^
m2-exp.c:163:13: note: expanded from macro 'DOT'
#define DOT 302
^
In file included from ../../sourceware-mirror-binutils-gdb-36b1241/gdb/m2-exp.y:42:
In file included from ../../sourceware-mirror-binutils-gdb-36b1241/gdb/language.h:26:
../../sourceware-mirror-binutils-gdb-36b1241/gdb/symtab.h:306:23: error: expected unqualified-id
style = split_style::DOT;
^
m2-exp.c:163:13: note: expanded from macro 'DOT'
#define DOT 302
^
2 errors generated.
make[2]: *** [m2-exp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all-gdb] Error 2
make: *** [all] Error 2
shell cmd failed: /bin/sh -ex /Users/heinz/VE/rsb/rtems/build/arm-rtems7-gdb-36b1241-x86_64-apple-darwin21.4.0-1/do-build
error: building arm-rtems7-gdb-36b1241-x86_64-apple-darwin21.4.0-1(base)
Gruss Heinz
> On 27. Apr 2022, at 07:49, Sebastian Huber <sebastian.huber at embedded-brains.de> wrote:
>
> On 27.04.22 07:46, Karel Gardas wrote:
>> On 4/27/22 06:46, Sebastian Huber wrote:
>>> On 26.04.22 22:57, Karel Gardas wrote:
>>>> On 4/25/22 10:10, Sebastian Huber wrote:
>>>>> Hello Heinz,
>>>>>
>>>>> you are probably one of the first persons building GCC 12 on this platform. I checked in a change which could fix the problem.
>>>>>
>>>>
>>>> Not sure if this is related, but after this hacking I'm no longer able to build neither 6/rtems-arm not 6/rtems-x86_64.
>>>
>>> I changed the mpfr version from 3.1.4 to 4.1.0. This is the latest mpfr release and used by the GCC contrib/download_prerequisites script currently. If this version doesn't build on macOS, then it would be good to submit a bug report to mpfr.
>> Right. My build with:
>> commit 6cf31074fa51c44ec563478b026a3778f5f214be
>> Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
>> Date: Fri Apr 22 08:45:21 2022 +0200
>> 6/7: Update GCC prerequisites for GCC 10 and 12
>> reverted went fine on catalina.
>
> Could you please test with the latest RSB. I changed it to use mpfr-3.1.6.
>
> --
> 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