zt449569708

Results 7 issues of zt449569708

### Xmake 版本 v2.6.4+master.26e6cc713 ### 操作系统版本和架构 ubuntu 18.04 ### 描述问题 ``` add_requires("linux-headers", {configs = {driver_modules = true}}) target("fpga") add_rules("platform.linux.driver") add_files("*.c") add_packages("linux-headers") set_license("GPL-2.0") ``` 通过上面xmake.lua编译驱动,错误日志和makefile编译日志如下: [xmakeLog.txt](https://github.com/xmake-io/xmake/files/8474584/xmakeLog.txt) [makefileLog.txt](https://github.com/xmake-io/xmake/files/8474585/makefileLog.txt) 其中有两个问题: 1、编译问题 2、linux-headers没找对,在日志中可以看到找的是linux-headers-5.4.0-84-generic,但实际使用的是如图:(由于系统更新,本机中存在多个内核版本) ![image](https://user-images.githubusercontent.com/6011216/163002962-889188d2-ad0a-4343-a3fe-ba0ab8701fb3.png)...

bug

现象:在cmd下,通过xmake编译xmake通过的CUDA测试代码console,出现问题如下: ![图片](https://user-images.githubusercontent.com/6011216/149148537-548327f2-3903-4fee-b079-6ca513bd84af.png) 从图中可以看出,编译到25%就退出来,也没提示任何的错误信息。 版本: xmake:v2.6.2+HEAD.90e499cb2 操作系统:win7 vs : vs2019

bug

`tb_long_t tb_socket_recv(tb_socket_ref_t sock, tb_byte_t* data, tb_size_t size) { // check tb_assert_and_check_return_val(sock && data, -1); tb_check_return_val(size, 0); #ifndef TB_CONFIG_MICRO_ENABLE // attempt to use iocp object to recv data if exists tb_iocp_object_ref_t...

### Xmake 版本 xmake v2.8.2+HEAD.57212c6 ### 操作系统版本和架构 Ubuntu22.04 ### 描述问题 使用方式: 现在有库a和库b,以及应用程序main_a和main_b,main_a调用了库a,main_b调用了库b,因为库b用到了库a的函数,因此需要将库a合并到库b,xmake.lua脚本如下: ![1695480668117](https://github.com/xmake-io/xmake/assets/6011216/2b3f6fd3-cf6e-469c-9981-ca43357489f2) 编译错误: 当使用上图脚本编译时,报如下错误, ![1695480929831](https://github.com/xmake-io/xmake/assets/6011216/4f01c43b-499c-4653-988a-6f91b31a4055) 但是现在main_a程序里面调用的show_a在库a里面是定义了的,这个函数是在a.c里面实现,也就是库a的源码。 ### 期待的结果 编译成功 ### 工程配置 整个工程源码,见附件 [test.zip](https://github.com/xmake-io/xmake/files/12706743/test.zip) ### 附加信息和错误日志 xmake -vD信息,见附件 [error_log.txt](https://github.com/xmake-io/xmake/files/12706753/error_log.txt)

bug

问题: TCP通信,当使用单独的线程去收数据时,并且线程里只使用read函数,不使用select函数配合,代码如下: ``` while (1) { ret = read(sock, buf, 64); if (ret 0) { rt_mutex_take(sock->recv_lock, RT_WAITING_FOREVER); recv_len = wizchip_recv(socket, mem, len); if (recv_len > 0) { rt_mutex_release(sock->recv_lock); goto __exit;...

问题: 当在创建socket时,wiz_socket函数会去调用WIZ_INIT_STATUS_CHECK来检查物理上是否link up,并且accept函数里面也是,这就导致我不插网线时,无法创建socket。这种做法不符合通用的使用方法。 环境: RT-Thread Studio 2.1.2 wiznet latest

### Is there an existing issue for the same bug? - [x] I have checked the existing issues. ### RAGFlow workspace code commit ID 448fa1c4d4bc4d0653dd0d8b4bb7397fc79f1ebf ### RAGFlow image version v0.16.0...

bug