The recipe contains this in do_install:

    install -m 0755 libmodem.so ${D}${libdir}

    # Create symbolic link
    ln -sf libmodem.so ${D}${libdir}/libmodem.so

This creates a symbolic link into the build directory which is
definitely incorrect. Just copying the file with install is enough.
What was the intent here?

Alex

On Sat, 27 May 2023 at 14:00, Mahendra Sondagar
<mahendrasondaga...@gmail.com> wrote:
>
> Hi.. there
>
> Hope all are doing well
>
>
>
> I'm dealing with the Makefile based project, for which i have created the 
> recipe file
>
> The file architecture of the recipes file is as follows,
>
> |---modem-api
> ├── files
> │   ├── GpioApi.c
> │   ├── GpioApi.h
> │   ├── main.c
> │   ├── Makefile
> │   ├── modem.c
> │   ├── modem.h
> │   └── target_build
> │       └── Makefile
> └── modem-api_1.0.bb
>
>
> - During the building the recipe modem-api, all files are fetched and 
> compiled with out any issue
> - The aim is to create the shared library called libmodem.so which need to 
> install in /usr/lib directory after the build
>
>
> Problem statement
>
> - During the do_package, it's generating the error message as OSError: [Errno 
> 40] too much recursions while resolving
>
> - For the instance, i have share the make file, recipe file and error logs 
> here
>
> - pl. can anyone help me here ?
>
> all comments and suggestions welcome
>
>
>
> Thanks
>
> Mahendra
>
>
>
> Error logs
>
> ERROR: modem-api-1.0-r0 do_package: Error executing a python function in 
> exec_python_func() autogenerated:
>
> The stack trace of python calls that resulted in this exception/failure was:
> File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
>      0001:
>  *** 0002:split_and_strip_files(d)
>      0003:
> File: 
> '/home/mahi/Documents/AIO_System/var-fslc-yocto/sources/poky/meta/classes/package.bbclass',
>  lineno: 1157, function: split_and_strip_files
>      1153:                    staticlibs.append(file)
>      1154:                    continue
>      1155:
>      1156:                try:
>  *** 1157:                    ltarget = cpath.realpath(file, dvar, False)
>      1158:                    s = cpath.lstat(ltarget)
>      1159:                except OSError as e:
>      1160:                    (err, strerror) = e.args
>      1161:                    if err != errno.ENOENT:
> File: 
> '/home/mahi/Documents/AIO_System/var-fslc-yocto/sources/poky/meta/lib/oe/cachedpath.py',
>  lineno: 229, function: realpath
>      0225:            if e.errno == errno.ELOOP:
>      0226:                # make ELOOP more readable; without catching it, 
> there will
>      0227:                # be printed a backtrace with 100s of OSError 
> exceptions
>      0228:                # else
>  *** 0229:                raise OSError(errno.ELOOP,
>      0230:                              "too much recursions while resolving 
> '%s'; loop in '%s'" %
>      0231:                              (file, e.strerror))
>      0232:
>      0233:            raise
> Exception: OSError: [Errno 40] too much recursions while resolving 
> '/home/mahi/Documents/AIO_System/var-fslc-yocto/build_aio/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/modem-api/1.0-r0/package/usr/lib/libmodem.so';
>  loop in 
> '/home/mahi/Documents/AIO_System/var-fslc-yocto/build_aio/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/modem-api/1.0-r0/package/usr/lib/libmodem.so'
>
>
>
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#60134): https://lists.yoctoproject.org/g/yocto/message/60134
Mute This Topic: https://lists.yoctoproject.org/mt/99166192/21656
Mute #hardknott:https://lists.yoctoproject.org/g/yocto/mutehashtag/hardknott
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to