Host dependency issues

2022-12-20 Thread quic_pkommu
Hi  Developers,
Hope all is well 😊 

We are trying to enable selinux ,   21.02   where the default mtd-utils  (for 
NAND /ubifs ) are not supporting selinux . 
So  we moved to  mtd-utils 2.1.5 , where its fixed but we are seeing this build 
time  failure. 

Problem :
During mkfs.ubifs  host utility compilation   make system /autoconfig  is 
checking for thefollowing  depenecy as these are the first to get compile   
(libselinux is much later )
LIBSELINUX , 
SELinux/selinux.h
Selinux/label.h

So when compiling mtd-utils  this artifacts are  not found in the expected path 
 and  autoconfig  is assuming no-selinux and  disable SELinux . 
Where most of the include / Lib are in hostpkg which is not even created at 
that point of  time .
If I compile just mtd-utils post libselinux ( clean mtd-utils )  it works .
  . 

//LOG for config 
 #include 
configure:15186: result: no
configure:15186: WARNING: selinux/selinux.h: accepted by the compiler, rejected 
by the preprocessor!
configure:15186: WARNING: selinux/selinux.h: proceeding with the compiler's 
result
configure:15186: checking for selinux/selinux.h
configure:15186: result: yes
configure:15200: checking selinux/label.h usability
configure:15200: gcc -c -O2 
-I/local/mnt/workspace/rsiddoji/OWRT_Workspace/owrt/staging_dir/host/include  
-I/local/mnt/workspace/rsiddoji/OWRT_Workspace/owrt/staging_dir/hostpkg/include 
-I/local/mnt/workspace/rsiddoji/OWRT_Workspace/owrt/staging_dir/host/include  
conftest.c >&5
configure:15200: $? = 0
configure:15200: result: yes
configure:15200: checking selinux/label.h presence
configure:15200: gcc -E 
-I/local/mnt/workspace/rsiddoji/OWRT_Workspace/owrt/staging_dir/host/include  
conftest.c
conftest.c:25:10: fatal error: selinux/label.h: No such file or directory
#include 
  ^
compilation terminated.
configure:15200: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "mtd-utils"
| #define PACKAGE_TARNAME "mtd-utils"
| #define PACKAGE_VERSION "2.1.5"
| #define PACKAGE_STRING "mtd-utils 2.1.5"
| #define PACKAGE_BUGREPORT linux-...@lists.infradead.org
 End of log 


What we had tried :  

HOST_BUILD_DEPENDS:=libselinux/host
DEPENDS:=libselinux

## under define Package/mtd-utils/Default
DEPENDS:=@NAND_SUPPORT  +libselinux
But all this options seem to be used in enabling and disabling options at 
menuconfig level ,  

Is there a way that we can create a inter dependent , or make  selinux compile 
first and later the mtd-utils ? 


Regards,
Ravi, Prashanth.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


RE: lttng-modules-2.10.8/lttng-*.ko' is missing

2022-07-26 Thread quic_pkommu
Hello Coders,

I am trying to compile "lttng-modules" for OpenWRT I been consistently facing 
below error.
ERROR: module 
'/local/mnt/workspace/code/LE/openwrt/07042022/owrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/arm-chipset/lttng-modules-2.10.8/lttng-*.ko'
 is missing.
Please kindly guide me to the right method if I am missing something.

My target machine is based on ARM.
My host machine is ubuntu 18.04.
OpenWRT (Build system) version : 21.02.3
lttng-modules : 2.10.8
lttng-tools : 2.12.1
lttng-ust : 2.12.0
liburcu : 0.12.2


Thanks in advance.


 
-Original Message-----
From: quic_pkommu 
Sent: Tuesday, July 19, 2022 4:28 PM
To: 'openwrt-devel@lists.openwrt.org' ; 
'openwrt-b...@lists.openwrt.org' 
Subject: RE: lttng-modules-2.10.8/lttng-*.ko' is missing


Hello dear coders :)

I am trying to compile "lttng-modules" for OpenWRT I been consistently facing 
below error.
ERROR: module 
'/local/mnt/workspace/code/LE/openwrt/07042022/owrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/arm-chipset/lttng-modules-2.10.8/lttng-*.ko'
 is missing.
Please kindly guide me to the right method if I am missing something.

Thanks in advance.

 
user@ubuntu:/local/mnt/workspace/code/LE/openwrt/07042022/owrt$ make 
package/lttng-modules/compile V=s
time: target/linux/prereq#0.04#0.00#0.19
make[1]: Entering directory '/local/mnt/workspace/code/LE/openwrt/07042022/owrt'
make[2]: Entering directory 
'/local/mnt/workspace/code/LE/openwrt/07042022/owrt/feeds/packages/devel/lttng-modules'
mkdir -p /local/mnt/workspace/code/LE/openwrt/07042022/owrt/dl
SHELL= flock 
/local/mnt/workspace/code/LE/openwrt/07042022/owrt/tmp/.lttng-modules-2.10.8.tar.bz2.flock
 -c ' 
/local/mnt/workspace/code/LE/openwrt/07042022/owrt/scripts/download.pl 
"/local/mnt/workspace/code/LE/openwrt/07042022/owrt/dl" 
"lttng-modules-2.10.8.tar.bz2" 
"fe1d269bca723e8948af871c322c37d3900e647cdc5eb3efbe821e434beee44c" "" 
https://lttng.org/files/lttng-modules/    '
rm -rf 
/local/mnt/workspace/code/LE/openwrt/07042022/owrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/arm-chipset/lttng-modules-2.10.8/.pkgdir/kmod-lttng.installed
 
/local/mnt/workspace/code/LE/openwrt/07042022/owrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/arm-chipset/lttng-modules-2.10.8/.pkgdir/kmod-lttng
mkdir -p 
/local/mnt/workspace/code/LE/openwrt/07042022/owrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/arm-chipset/lttng-modules-2.10.8/.pkgdir/kmod-lttng
ERROR: module 
'/local/mnt/workspace/code/LE/openwrt/07042022/owrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/arm-chipset/lttng-modules-2.10.8/lttng-*.ko'
 is missing.
make[2]: *** [Makefile:47: 
/local/mnt/workspace/code/LE/openwrt/07042022/owrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/arm-chipset/lttng-modules-2.10.8/.pkgdir/kmod-lttng.installed]
 Error 1
make[2]: Leaving directory 
'/local/mnt/workspace/code/LE/openwrt/07042022/owrt/feeds/packages/devel/lttng-modules'
time: package/feeds/packages/lttng-modules/compile#0.08#0.00#0.22
    ERROR: package/feeds/packages/lttng-modules failed to build.
make[1]: *** [package/Makefile:116: 
package/feeds/packages/lttng-modules/compile] Error 1
make[1]: Leaving directory '/local/mnt/workspace/code/LE/openwrt/07042022/owrt'
make: *** 
[/local/mnt/workspace/code/LE/openwrt/07042022/owrt/include/toplevel.mk:230: 
package/lttng-modules/compile] Error 2 
user@ubuntu:/local/mnt/workspace/code/LE/openwrt/07042022/owrt$


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


RE: lttng-modules-2.10.8/lttng-*.ko' is missing

2022-07-19 Thread quic_pkommu


Hello dear coders :)

I am trying to compile "lttng-modules" for OpenWRT
I been consistently facing below error.
ERROR: module 
'/local/mnt/workspace/code/LE/openwrt/07042022/owrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/arm-chipset/lttng-modules-2.10.8/lttng-*.ko'
 is missing.
Please kindly guide me to the right method if I am missing something.

Thanks in advance.

 
user@ubuntu:/local/mnt/workspace/code/LE/openwrt/07042022/owrt$ make 
package/lttng-modules/compile V=s
time: target/linux/prereq#0.04#0.00#0.19
make[1]: Entering directory '/local/mnt/workspace/code/LE/openwrt/07042022/owrt'
make[2]: Entering directory 
'/local/mnt/workspace/code/LE/openwrt/07042022/owrt/feeds/packages/devel/lttng-modules'
mkdir -p /local/mnt/workspace/code/LE/openwrt/07042022/owrt/dl
SHELL= flock 
/local/mnt/workspace/code/LE/openwrt/07042022/owrt/tmp/.lttng-modules-2.10.8.tar.bz2.flock
 -c ' 
/local/mnt/workspace/code/LE/openwrt/07042022/owrt/scripts/download.pl 
"/local/mnt/workspace/code/LE/openwrt/07042022/owrt/dl" 
"lttng-modules-2.10.8.tar.bz2" 
"fe1d269bca723e8948af871c322c37d3900e647cdc5eb3efbe821e434beee44c" "" 
https://lttng.org/files/lttng-modules/    '
rm -rf 
/local/mnt/workspace/code/LE/openwrt/07042022/owrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/arm-chipset/lttng-modules-2.10.8/.pkgdir/kmod-lttng.installed
 
/local/mnt/workspace/code/LE/openwrt/07042022/owrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/arm-chipset/lttng-modules-2.10.8/.pkgdir/kmod-lttng
mkdir -p 
/local/mnt/workspace/code/LE/openwrt/07042022/owrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/arm-chipset/lttng-modules-2.10.8/.pkgdir/kmod-lttng
ERROR: module 
'/local/mnt/workspace/code/LE/openwrt/07042022/owrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/arm-chipset/lttng-modules-2.10.8/lttng-*.ko'
 is missing.
make[2]: *** [Makefile:47: 
/local/mnt/workspace/code/LE/openwrt/07042022/owrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/arm-chipset/lttng-modules-2.10.8/.pkgdir/kmod-lttng.installed]
 Error 1
make[2]: Leaving directory 
'/local/mnt/workspace/code/LE/openwrt/07042022/owrt/feeds/packages/devel/lttng-modules'
time: package/feeds/packages/lttng-modules/compile#0.08#0.00#0.22
    ERROR: package/feeds/packages/lttng-modules failed to build.
make[1]: *** [package/Makefile:116: 
package/feeds/packages/lttng-modules/compile] Error 1
make[1]: Leaving directory '/local/mnt/workspace/code/LE/openwrt/07042022/owrt'
make: *** 
[/local/mnt/workspace/code/LE/openwrt/07042022/owrt/include/toplevel.mk:230: 
package/lttng-modules/compile] Error 2
user@ubuntu:/local/mnt/workspace/code/LE/openwrt/07042022/owrt$


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel