Hi Frank,
  I switched to 6, and started working through the quick-start recipe. All went 
well until I tried to build the hello app:
peter@peter-HP:~/quick-start/app/hello$ ./waf configure 
--rtems=$HOME/quick-start/rtems/6 --rtems-bsp=arm/xilinx_zynq_zc702
Setting top to                           : /home/peter/quick-start/app/hello
Setting out to                           : 
/home/peter/quick-start/app/hello/build
Traceback (most recent call last):
  File 
"/home/peter/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Scripting.py",
 line 119, in waf_entry_point
    run_commands()
  File 
"/home/peter/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Scripting.py",
 line 182, in run_commands
    ctx=run_command(cmd_name)
  File 
"/home/peter/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Scripting.py",
 line 173, in run_command
    ctx.execute()
  File 
"/home/peter/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Configure.py",
 line 85, in execute
    super(ConfigurationContext,self).execute()
  File 
"/home/peter/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Context.py",
 line 92, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File 
"/home/peter/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Context.py",
 line 133, in recurse
    user_function(self)
  File "/home/peter/quick-start/app/hello/wscript", line 26, in configure
    rtems.configure(conf, bsp_configure = bsp_configure)
  File "/home/peter/quick-start/app/hello/rtems_waf/rtems.py", line 190, in 
configure
    check_options(conf,
  File "/home/peter/quick-start/app/hello/rtems_waf/rtems.py", line 496, in 
check_options
    arch_bsps = _check_arch_bsps(rtems_bsps, rtems_config, rtems_path,
  File "/home/peter/quick-start/app/hello/rtems_waf/rtems.py", line 851, in 
_check_arch_bsps
    installed = _find_installed_arch_bsps(config, path, archs, version)
  File "/home/peter/quick-start/app/hello/rtems_waf/rtems.py", line 823, in 
_find_installed_arch_bsps
    if _arch_from_arch_bsp(f[:-3]) in archs:
  File "/home/peter/quick-start/app/hello/rtems_waf/rtems.py", line 862, in 
_arch_from_arch_bsp
    rtems_field_index = next(i for i, field in enumerate(fields) if 
field.startswith('rtems'))
StopIteration

Not sure what I did wrong.
I have attached the files I generated for the app

Pete.


________________________________
From: Siddons, David <sidd...@bnl.gov>
Sent: Saturday, July 22, 2023 9:46 AM
To: Frank Kühndel <frank.kuehn...@embedded-brains.de>; rtems-us...@rtems.org 
<users@rtems.org>
Cc: Chris Johns <chr...@rtems.org>
Subject: Re: build failed

Hi Frank,
THanks for responding. The output is:

peter@peter-HP:~/quick-start/src/rsb/rtems$ /usr/bin/python3-config --ldflags
-L/usr/lib/python3.10/config-3.10-x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu  
-lcrypt -ldl  -lm -lm
peter@peter-HP:~/quick-start/src/rsb/rtems$ /usr/bin/python3-config --ldflags 
--embed
-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

So I guess you are right.
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?
Pete.


________________________________
From: Frank Kühndel <frank.kuehn...@embedded-brains.de>
Sent: Saturday, July 22, 2023 2:25 AM
To: Siddons, David <sidd...@bnl.gov>; rtems-us...@rtems.org <users@rtems.org>
Cc: Chris Johns <chr...@rtems.org>
Subject: Re: build failed

Hi Pete,

this looks like bug 
https://urldefense.com/v3/__https://devel.rtems.org/ticket/4631__;!!P4SdNyxKAPE!AC1ZvL2wAQCQ7iQRpVCcyO-eP2P-xD3OJxSxyVv2nG86THYXD4jA0AyeoYw8zCGRzOtFZCoiACmEEpE5mKYzHi9gMHKQBlqzPA$

It was fixed for RTEMS 6 but may be not for RTEMS 5?

I am adding Chris Johns to CC as he fixed this bug in RTEMS 6.

If it is this bug, the cause is that on newer OS the command
`/usr/bin/python3-config --ldflags` needs an additional `--embed` option
while on older OS it does not even understand it. I am not using RTEMS 5
so maybe someone else can provide you advice.

Pete, which version of Python are you using?
What is the output of the following commands on your machine?

/usr/bin/python3-config --ldflags
/usr/bin/python3-config --ldflags --embed

Greetings
Frank

On 7/21/23 18:00, Siddons, David wrote:
> Subject:
> build failed
> From:
> "Siddons, David" <sidd...@bnl.gov>
> Date:
> 7/21/23, 18:00
>
> To:
> "rtems-us...@rtems.org" <users@rtems.org>
>
>
> I'm following the quick-start guide, substituting arm for sparc, and at this 
> step:
> https://urldefense.com/v3/__https://docs.rtems.org/branches/master/user/start/tools.html__;!!P4SdNyxKAPE!AC1ZvL2wAQCQ7iQRpVCcyO-eP2P-xD3OJxSxyVv2nG86THYXD4jA0AyeoYw8zCGRzOtFZCoiACmEEpE5mKYzHi9gMHIWgY02Jw$
>
>
> cd $HOME/quick-start/src/rsb/rtems
> ../source-builder/sb-set-builder --prefix=$HOME/quick-start/rtems/5 
> 5/rtems-arm
>
> Eventually I get this:
>
> config: tools/rtems-gdb-9.1-1.cfg
> 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
> Build FAILED
> Build Set: Time 0:00:23.976088
> Build FAILED
>
> What did I do wrong?
>
> Pete.

--
embedded brains GmbH & Co. KG
Herr Frank KÜHNDEL
Dornierstr. 4
82178 Puchheim
Germany
email: frank.kuehn...@embedded-brains.de
phone:  +49-89-18 94 741 - 23
mobile: +49-176-15 22 06 - 11

Registergericht: Amtsgericht München
Registernummer: HRA 117265
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://urldefense.com/v3/__https://embedded-brains.de/datenschutzerklaerung/__;!!P4SdNyxKAPE!AC1ZvL2wAQCQ7iQRpVCcyO-eP2P-xD3OJxSxyVv2nG86THYXD4jA0AyeoYw8zCGRzOtFZCoiACmEEpE5mKYzHi9gMHL-lRS8Ew$

Attachment: wscript
Description: wscript

/*
 * Simple RTEMS configuration
 */

#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER

#define CONFIGURE_UNLIMITED_OBJECTS
#define CONFIGURE_UNIFIED_WORK_AREAS

#define CONFIGURE_RTEMS_INIT_TASKS_TABLE

#define CONFIGURE_INIT

#include <rtems/confdefs.h>
/*
 * Hello world example
 */
#include <rtems.h>
#include <stdlib.h>
#include <stdio.h>

rtems_task Init(
  rtems_task_argument ignored
)
{
  printf( "\nHello World\n" );
  exit( 0 );
}
_______________________________________________
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Reply via email to