<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hi Frank,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Thanks very much. That did the trick. I'm now the proud owner of a hello.exe file
<span id="🙂">🙂</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span>Pete.</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span><br>
</span></div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Frank Kühndel <frank.kuehndel@embedded-brains.de><br>
<b>Sent:</b> Tuesday, July 25, 2023 5:13 AM<br>
<b>To:</b> Siddons, David <siddons@bnl.gov>; rtems-users@rtems.org <users@rtems.org><br>
<b>Cc:</b> Chris Johns <chrisj@rtems.org>; martinerikwerner.aac@gmail.com <martinerikwerner.aac@gmail.com><br>
<b>Subject:</b> Re: build failed</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hi Pete,<br>
<br>
oops, you found another bug. Try<br>
<br>
$ git -C rtems_waf checkout 68654b4<br>
<br>
$ ./waf configure --rtems=$HOME/quick-start/rtems/6 <br>
--rtems-bsp=arm/xilinx_zynq_zc702<br>
<br>
Patch c721249 "Allow vendor field in toolchain target triplet" broke <br>
this function. Let me add Martin Erik Werner the author of this path to CC.<br>
<br>
Greetings,<br>
Frank<br>
<br>
On 7/25/23 00:00, Siddons, David wrote:<br>
> Subject:<br>
> Re: build failed<br>
> From:<br>
> "Siddons, David" <siddons@bnl.gov><br>
> Date:<br>
> 7/25/23, 00:00<br>
> <br>
> To:<br>
> Frank Kühndel <frank.kuehndel@embedded-brains.de>, <br>
> "rtems-users@rtems.org" <users@rtems.org><br>
> CC:<br>
> Chris Johns <chrisj@rtems.org><br>
> <br>
> <br>
> Hi Frank,<br>
> I switched to 6, and started working through the quick-start recipe. All went well until I tried to build the hello app:<br>
> peter@peter-HP:~/quick-start/app/hello$ ./waf configure --rtems=$HOME/quick-start/rtems/6 --rtems-bsp=arm/xilinx_zynq_zc702<br>
> Setting top to : /home/peter/quick-start/app/hello<br>
> Setting out to : /home/peter/quick-start/app/hello/build<br>
> Traceback (most recent call last):<br>
> File "/home/peter/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Scripting.py", line 119, in waf_entry_point<br>
> run_commands()<br>
> File "/home/peter/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Scripting.py", line 182, in run_commands<br>
> ctx=run_command(cmd_name)<br>
> File "/home/peter/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Scripting.py", line 173, in run_command<br>
> ctx.execute()<br>
> File "/home/peter/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Configure.py", line 85, in execute<br>
> super(ConfigurationContext,self).execute()<br>
> File "/home/peter/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Context.py", line 92, in execute<br>
> self.recurse([os.path.dirname(g_module.root_path)])<br>
> File "/home/peter/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Context.py", line 133, in recurse<br>
> user_function(self)<br>
> File "/home/peter/quick-start/app/hello/wscript", line 26, in configure<br>
> rtems.configure(conf, bsp_configure = bsp_configure)<br>
> File "/home/peter/quick-start/app/hello/rtems_waf/rtems.py", line 190, in configure<br>
> check_options(conf,<br>
> File "/home/peter/quick-start/app/hello/rtems_waf/rtems.py", line 496, in check_options<br>
> arch_bsps = _check_arch_bsps(rtems_bsps, rtems_config, rtems_path,<br>
> File "/home/peter/quick-start/app/hello/rtems_waf/rtems.py", line 851, in _check_arch_bsps<br>
> installed = _find_installed_arch_bsps(config, path, archs, version)<br>
> File "/home/peter/quick-start/app/hello/rtems_waf/rtems.py", line 823, in _find_installed_arch_bsps<br>
> if _arch_from_arch_bsp(f[:-3]) in archs:<br>
> File "/home/peter/quick-start/app/hello/rtems_waf/rtems.py", line 862, in _arch_from_arch_bsp<br>
> rtems_field_index = next(i for i, field in enumerate(fields) if field.startswith('rtems'))<br>
> StopIteration<br>
> <br>
> Not sure what I did wrong.<br>
> I have attached the files I generated for the app<br>
> <br>
> Pete.<br>
> <br>
> <br>
> ________________________________<br>
> From: Siddons, David<siddons@bnl.gov><br>
> Sent: Saturday, July 22, 2023 9:46 AM<br>
> To: Frank Kühndel<frank.kuehndel@embedded-brains.de>;rtems-users@rtems.org <users@rtems.org><br>
> Cc: Chris Johns<chrisj@rtems.org><br>
> Subject: Re: build failed<br>
> <br>
> Hi Frank,<br>
> THanks for responding. The output is:<br>
> <br>
> peter@peter-HP:~/quick-start/src/rsb/rtems$ /usr/bin/python3-config --ldflags<br>
> -L/usr/lib/python3.10/config-3.10-x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -lcrypt -ldl -lm -lm<br>
> peter@peter-HP:~/quick-start/src/rsb/rtems$ /usr/bin/python3-config --ldflags --embed<br>
> -L/usr/lib/python3.10/config-3.10-x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -lpython3.10 -lcrypt -ldl -lm -lm<br>
> <br>
> So I guess you are right.<br>
> I am starting pretty much from scratch, so I chose 5 as the most recent released version. Would I be better off switching to 6?<br>
> Pete.<br>
> <br>
> <br>
> ________________________________<br>
> From: Frank Kühndel<frank.kuehndel@embedded-brains.de><br>
> Sent: Saturday, July 22, 2023 2:25 AM<br>
> To: Siddons, David<siddons@bnl.gov>;rtems-users@rtems.org <users@rtems.org><br>
> Cc: Chris Johns<chrisj@rtems.org><br>
> Subject: Re: build failed<br>
> <br>
> Hi Pete,<br>
> <br>
> this looks like bughttps://urldefense.com/v3/__https://devel.rtems.org/ticket/4631__;!!P4SdNyxKAPE!AC1ZvL2wAQCQ7iQRpVCcyO-eP2P-xD3OJxSxyVv2nG86THYXD4jA0AyeoYw8zCGRzOtFZCoiACmEEpE5mKYzHi9gMHKQBlqzPA$<br>
> <br>
> It was fixed for RTEMS 6 but may be not for RTEMS 5?<br>
> <br>
> I am adding Chris Johns to CC as he fixed this bug in RTEMS 6.<br>
> <br>
> If it is this bug, the cause is that on newer OS the command<br>
> `/usr/bin/python3-config --ldflags` needs an additional `--embed` option<br>
> while on older OS it does not even understand it. I am not using RTEMS 5<br>
> so maybe someone else can provide you advice.<br>
> <br>
> Pete, which version of Python are you using?<br>
> What is the output of the following commands on your machine?<br>
> <br>
> /usr/bin/python3-config --ldflags<br>
> /usr/bin/python3-config --ldflags --embed<br>
> <br>
> Greetings<br>
> Frank<br>
> <br>
> On 7/21/23 18:00, Siddons, David wrote:<br>
>> Subject:<br>
>> build failed<br>
>> From:<br>
>> "Siddons, David"<siddons@bnl.gov><br>
>> Date:<br>
>> 7/21/23, 18:00<br>
>><br>
>> To:<br>
>> "rtems-users@rtems.org" <users@rtems.org><br>
>><br>
>><br>
>> I'm following the quick-start guide, substituting arm for sparc, and at this step:<br>
>> <a href="https://urldefense.com/v3/__https://docs.rtems.org/branches/master/user/start/tools.html__;!!P4SdNyxKAPE!AC1ZvL2wAQCQ7iQRpVCcyO-eP2P-xD3OJxSxyVv2nG86THYXD4jA0AyeoYw8zCGRzOtFZCoiACmEEpE5mKYzHi9gMHIWgY02Jw$">
https://urldefense.com/v3/__https://docs.rtems.org/branches/master/user/start/tools.html__;!!P4SdNyxKAPE!AC1ZvL2wAQCQ7iQRpVCcyO-eP2P-xD3OJxSxyVv2nG86THYXD4jA0AyeoYw8zCGRzOtFZCoiACmEEpE5mKYzHi9gMHIWgY02Jw$</a><br>
>><br>
>><br>
>> cd $HOME/quick-start/src/rsb/rtems<br>
>> ../source-builder/sb-set-builder --prefix=$HOME/quick-start/rtems/5 5/rtems-arm<br>
>><br>
>> Eventually I get this:<br>
>><br>
>> config: tools/rtems-gdb-9.1-1.cfg<br>
>> error: shell macro failed: /home/peter/quick-start/src/rsb/source-builder/sb/rtems-build-dep -c gcc -l : 2: error: no library (-l) provided<br>
>> Build FAILED<br>
>> Build Set: Time 0:00:23.976088<br>
>> Build FAILED<br>
>><br>
>> What did I do wrong?<br>
>><br>
>> Pete.<br>
> --<br>
> embedded brains GmbH & Co. KG<br>
> Herr Frank KÜHNDEL<br>
> Dornierstr. 4<br>
> 82178 Puchheim<br>
> Germany<br>
> email:frank.kuehndel@embedded-brains.de<br>
> phone: +49-89-18 94 741 - 23<br>
> mobile: +49-176-15 22 06 - 11<br>
> <br>
> Registergericht: Amtsgericht München<br>
> Registernummer: HRA 117265<br>
> Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler<br>
> Unsere Datenschutzerklärung finden Sie hier:<br>
> <a href="https://urldefense.com/v3/__https://embedded-brains.de/datenschutzerklaerung/__;!!P4SdNyxKAPE!AC1ZvL2wAQCQ7iQRpVCcyO-eP2P-xD3OJxSxyVv2nG86THYXD4jA0AyeoYw8zCGRzOtFZCoiACmEEpE5mKYzHi9gMHL-lRS8Ew$">
https://urldefense.com/v3/__https://embedded-brains.de/datenschutzerklaerung/__;!!P4SdNyxKAPE!AC1ZvL2wAQCQ7iQRpVCcyO-eP2P-xD3OJxSxyVv2nG86THYXD4jA0AyeoYw8zCGRzOtFZCoiACmEEpE5mKYzHi9gMHL-lRS8Ew$</a><br>
> <br>
> Attachments:<br>
> <br>
> wscript 696 bytes<br>
> init.c 307 bytes<br>
> hello.c 186 bytes<br>
> <br>
<br>
-- <br>
embedded brains GmbH & Co. KG<br>
Herr Frank KÜHNDEL<br>
Dornierstr. 4<br>
82178 Puchheim<br>
Germany<br>
email: frank.kuehndel@embedded-brains.de<br>
phone: +49-89-18 94 741 - 23<br>
mobile: +49-176-15 22 06 - 11<br>
<br>
Registergericht: Amtsgericht München<br>
Registernummer: HRA 117265<br>
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler<br>
Unsere Datenschutzerklärung finden Sie hier:<br>
<a href="https://urldefense.com/v3/__https://embedded-brains.de/datenschutzerklaerung/__;!!P4SdNyxKAPE!HvAXXbrec7_bcsC68qUhFxay2gYGTfxkbb84pHP1dTZia4c0BkuH3d-i5GzlIGOCuB4YSAIUYN_jzk2JNhzbJCRlKWiAP2qB9Q$">https://urldefense.com/v3/__https://embedded-brains.de/datenschutzerklaerung/__;!!P4SdNyxKAPE!HvAXXbrec7_bcsC68qUhFxay2gYGTfxkbb84pHP1dTZia4c0BkuH3d-i5GzlIGOCuB4YSAIUYN_jzk2JNhzbJCRlKWiAP2qB9Q$</a>
<br>
</div>
</span></font></div>
</body>
</html>