<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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">
I switched to 6, and started working through the quick-start recipe. All went well until I tried to build the hello app:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0">
peter@peter-HP:~/quick-start/app/hello$ ./waf configure --rtems=$HOME/quick-start/rtems/6 --rtems-bsp=arm/xilinx_zynq_zc702
<div class="ContentPasted0">Setting top to : /home/peter/quick-start/app/hello
</div>
<div class="ContentPasted0">Setting out to : /home/peter/quick-start/app/hello/build
</div>
<div class="ContentPasted0">Traceback (most recent call last):</div>
<div class="ContentPasted0"> File "/home/peter/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Scripting.py", line 119, in waf_entry_point</div>
<div class="ContentPasted0"> run_commands()</div>
<div class="ContentPasted0"> File "/home/peter/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Scripting.py", line 182, in run_commands</div>
<div class="ContentPasted0"> ctx=run_command(cmd_name)</div>
<div class="ContentPasted0"> File "/home/peter/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Scripting.py", line 173, in run_command</div>
<div class="ContentPasted0"> ctx.execute()</div>
<div class="ContentPasted0"> File "/home/peter/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Configure.py", line 85, in execute</div>
<div class="ContentPasted0"> super(ConfigurationContext,self).execute()</div>
<div class="ContentPasted0"> File "/home/peter/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Context.py", line 92, in execute</div>
<div class="ContentPasted0"> self.recurse([os.path.dirname(g_module.root_path)])</div>
<div class="ContentPasted0"> File "/home/peter/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Context.py", line 133, in recurse</div>
<div class="ContentPasted0"> user_function(self)</div>
<div class="ContentPasted0"> File "/home/peter/quick-start/app/hello/wscript", line 26, in configure</div>
<div class="ContentPasted0"> rtems.configure(conf, bsp_configure = bsp_configure)</div>
<div class="ContentPasted0"> File "/home/peter/quick-start/app/hello/rtems_waf/rtems.py", line 190, in configure</div>
<div class="ContentPasted0"> check_options(conf,</div>
<div class="ContentPasted0"> File "/home/peter/quick-start/app/hello/rtems_waf/rtems.py", line 496, in check_options</div>
<div class="ContentPasted0"> arch_bsps = _check_arch_bsps(rtems_bsps, rtems_config, rtems_path,</div>
<div class="ContentPasted0"> File "/home/peter/quick-start/app/hello/rtems_waf/rtems.py", line 851, in _check_arch_bsps</div>
<div class="ContentPasted0"> installed = _find_installed_arch_bsps(config, path, archs, version)</div>
<div class="ContentPasted0"> File "/home/peter/quick-start/app/hello/rtems_waf/rtems.py", line 823, in _find_installed_arch_bsps</div>
<div class="ContentPasted0"> if _arch_from_arch_bsp(f[:-3]) in archs:</div>
<div class="ContentPasted0"> File "/home/peter/quick-start/app/hello/rtems_waf/rtems.py", line 862, in _arch_from_arch_bsp</div>
<div class="ContentPasted0"> rtems_field_index = next(i for i, field in enumerate(fields) if field.startswith('rtems'))</div>
<div class="ContentPasted0">StopIteration</div>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0">
Not sure what I did wrong.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0">
I have attached the files I generated for the app <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Pete.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div id="appendonsend"></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size: 11pt; color: rgb(0, 0, 0);" face="Calibri, sans-serif"><b>From:</b> Siddons, David <siddons@bnl.gov><br>
<b>Sent:</b> Saturday, July 22, 2023 9:46 AM<br>
<b>To:</b> Frank Kühndel <frank.kuehndel@embedded-brains.de>; rtems-users@rtems.org <users@rtems.org><br>
<b>Cc:</b> Chris Johns <chrisj@rtems.org><br>
<b>Subject:</b> Re: build failed</font>
<div> </div>
</div>
<div dir="ltr">
<div class="x_elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Frank,</div>
<div class="x_elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
THanks for responding. The output is:</div>
<div class="x_elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="x_elementToProof x_ContentPasted0" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
peter@peter-HP:~/quick-start/src/rsb/rtems$ /usr/bin/python3-config --ldflags
<div class="x_ContentPasted0">-L/usr/lib/python3.10/config-3.10-x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -lcrypt -ldl -lm -lm
</div>
<div class="x_ContentPasted0">peter@peter-HP:~/quick-start/src/rsb/rtems$ /usr/bin/python3-config --ldflags --embed</div>
<div class="x_ContentPasted0">-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
</div>
</div>
<div class="x_elementToProof x_ContentPasted0" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="x_appendonsend"></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
So I guess you are right.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Pete.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font style="font-size: 11pt; color: rgb(0, 0, 0);" face="Calibri, sans-serif"><b>From:</b> Frank Kühndel <frank.kuehndel@embedded-brains.de><br>
<b>Sent:</b> Saturday, July 22, 2023 2:25 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><br>
<b>Subject:</b> Re: build failed</font>
<div> </div>
</div>
<div class="x_BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="x_PlainText">Hi Pete,<br>
<br>
this looks like bug <a href="https://urldefense.com/v3/__https://devel.rtems.org/ticket/4631__;!!P4SdNyxKAPE!AC1ZvL2wAQCQ7iQRpVCcyO-eP2P-xD3OJxSxyVv2nG86THYXD4jA0AyeoYw8zCGRzOtFZCoiACmEEpE5mKYzHi9gMHKQBlqzPA$" data-auth="NotApplicable">
https://urldefense.com/v3/__https://devel.rtems.org/ticket/4631__;!!P4SdNyxKAPE!AC1ZvL2wAQCQ7iQRpVCcyO-eP2P-xD3OJxSxyVv2nG86THYXD4jA0AyeoYw8zCGRzOtFZCoiACmEEpE5mKYzHi9gMHKQBlqzPA$</a>
<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$" data-auth="NotApplicable">
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>
-- <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$" data-auth="NotApplicable">https://urldefense.com/v3/__https://embedded-brains.de/datenschutzerklaerung/__;!!P4SdNyxKAPE!AC1ZvL2wAQCQ7iQRpVCcyO-eP2P-xD3OJxSxyVv2nG86THYXD4jA0AyeoYw8zCGRzOtFZCoiACmEEpE5mKYzHi9gMHL-lRS8Ew$</a>
<br>
</div>
</span></font></div>
</div>
</body>
</html>