Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置远程编译后,结果无法再客户端显示 #6003

Open
kobewk opened this issue Dec 24, 2024 · 4 comments
Open

配置远程编译后,结果无法再客户端显示 #6003

kobewk opened this issue Dec 24, 2024 · 4 comments
Labels

Comments

@kobewk
Copy link

kobewk commented Dec 24, 2024

Xmake Version

2.9.7

Operating System Version and Architecture

win11 Ubuntu-aarch-22.04

Describe Bug

配置完成连接后,输入
xmake
显示
(base) PS D:\OneDrive\05Work\03STM\00xmakeTest> xmake <remote_build_client>: run 'xmake' in 10.255.246.191:9691 ..
查看服务器上,已经编译完成,但是无法在本地显示

Expected Behavior

应该正常显示

Project Configuration

add_rules("mode.debug", "mode.release")

target("00xmakeTest")
set_kind("binary")
add_files("src/*.c")

--
-- If you want to known more usage about xmake, please see https://xmake.io

-- ## FAQ

-- You can enter the project directory firstly before building project.

-- $ cd projectdir

-- 1. How to build project?

-- $ xmake

-- 2. How to configure project?

-- $ xmake f -p [macosx|linux|iphoneos ..] -a [x86_64|i386|arm64 ..] -m [debug|release]

-- 3. Where is the build output directory?

-- The default output directory is ./build and you can configure the output directory.

-- $ xmake f -o outputdir
-- $ xmake

-- 4. How to run and debug target after building project?

-- $ xmake run [targetname]
-- $ xmake run -d [targetname]

-- 5. How to install target to the system directory or other output directory?

-- $ xmake install
-- $ xmake install -o installdir

-- 6. Add some frequently-used compilation flags in xmake.lua

-- @code
-- -- add debug and release modes
-- add_rules("mode.debug", "mode.release")

-- -- add macro definition
-- add_defines("NDEBUG", "_GNU_SOURCE=1")

-- -- set warning all as error
-- set_warnings("all", "error")

-- -- set language: c99, c++11
-- set_languages("c99", "c++11")

-- -- set optimization: none, faster, fastest, smallest
-- set_optimize("fastest")

-- -- add include search directories
-- add_includedirs("/usr/include", "/usr/local/include")

-- -- add link libraries and search directories
-- add_links("tbox")
-- add_linkdirs("/usr/local/lib", "/usr/lib")

-- -- add system link libraries
-- add_syslinks("z", "pthread")

-- -- add compilation and link flags
-- add_cxflags("-stdnolib", "-fno-strict-aliasing")
-- add_ldflags("-L/usr/local/lib", "-lpthread", {force = true})

-- @Endcode

Additional Information and Error Logs

是远程编译相关功能异常

@kobewk kobewk added the bug label Dec 24, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: After configuring remote compilation, the results cannot be displayed on the client.

@waruqi
Copy link
Member

waruqi commented Dec 25, 2024

说清楚,win -> win, win -> linux 还是 linux -> win

另外,issues 整理下,太乱,用 markdown

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Make it clear, win -> win, win -> linux or linux -> win

@kobewk
Copy link
Author

kobewk commented Dec 25, 2024

client: WIN11
server: Ubuntu 22.04
client:
(base) PS D:\OneDrive\05Work\03STM\00xmakeTest> xmake service --connect <remote_build_client>: has been connected! (base) PS D:\OneDrive\05Work\03STM\00xmakeTest> xmake <remote_build_client>: run 'xmake' in 10.255.246.191:9691 ..
server:
image

firefly@firefly:~/.xmake/service/server/remote_build/sessions/0503f7e3/source/build/linux/arm64/release$ ./00xmakeTest hello world!

config: -- client: client.conf
{ connect_timeout = 10000, distcc_build = { hosts = { { connect = "127.0.0.1:9693", token = "82f67ab2247904ad2bf69234b4328c9b" } } }, recv_timeout = -1, remote_build = { connect = "10.255.246.191:9691", token = "791337234c375dc33d89adeca93de5ed" }, remote_cache = { connect = "127.0.0.1:9692", token = "82f67ab2247904ad2bf69234b4328c9b" }, send_timeout = -1 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants