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

[Bug]: Error while building client app for windows | undefined: core.LWIPStack #1932

Closed
I-amCoder opened this issue Mar 18, 2024 · 2 comments
Assignees
Labels
bug Something is broken, we are tracking it build issue Issues related to the build system go Pull requests that update Go code need more info We need more information in order to help or verify os/windows

Comments

@I-amCoder
Copy link

I-amCoder commented Mar 18, 2024

Application

Outline Client

Describe the bug

src\tun2socks\tunnel\tunnel.go:35:19: undefined: core.LWIPStack
src\tun2socks\tunnel\tunnel.go:59:57: undefined: core.LWIPStack
npm run action electron/build windows

> outline-client@0.0.0 action
> node src/build/run_action.mjs electron/build windows


       / __ \| |  | |__   __| |    |_   _| \ | |  ____|    
      | |  | | |  | |  | |  | |      | | |  \| | |__       
      | |  | | |  | |  | |  | |      | | | . ` |  __|      
      | |__| | |__| |  | |  | |____ _| |_| |\  | |____     
       \____/ \____/   |_|  |______|_____|_| \_|______|    

  =========================================================
               © The Outline Authors, 2023
  =========================================================

▶ action(electron/build):
  Running [node '--trace-uncaught' 'D:\outline-apps\src\electron\build.action.mjs' 'windows']...
  ▶ action(www/build):
    Running [node '--trace-uncaught' 'D:\outline-apps\src\www\build.action.mjs' 'windows']...
  ▶ action(www/build): 🎉 Success! (16540ms)
  ▶ action(tun2socks/build):
    Running [node '--trace-uncaught' 'D:\outline-apps\src\tun2socks\build.action.mjs' 'windows']...
    Running [go 'build' '-o' 'output/build/windows/tun2socks' 'github.com/Jigsaw-Code/outline-client/src/tun2socks/outline/electron']...
  ERROR(spawn_stream): node --trace-uncaught D:\outline-apps\src\electron\build.action.mjs windows failed with exit code 1.}
  Printing stderr:
  WARNING: building "windows" in [DEBUG] mode. Do not publish this build!!
    ERROR(spawn_stream): node --trace-uncaught D:\outline-apps\src\tun2socks\build.action.mjs windows failed with exit code 1.}
    Printing stderr:
    ERROR(spawn_stream): go build -o output/build/windows/tun2socks github.com/Jigsaw-Code/outline-client/src/tun2socks/outline/electron failed with exit code 1.}
    Printing stderr:
    # github.com/Jigsaw-Code/outline-client/src/tun2socks/tunnel
    src\tun2socks\tunnel\tunnel.go:35:19: undefined: core.LWIPStack
    src\tun2socks\tunnel\tunnel.go:59:57: undefined: core.LWIPStack
    node:internal/process/esm_loader:40
          internalBinding('errors').triggerUncaughtException(
                                    ^
    # github.com/Jigsaw-Code/outline-client/src/tun2socks/tunnelsrc\tun2socks\tunnel\tunnel.go:35:19: undefined: core.LWIPStacksrc\tun2socks\tunnel\tunnel.go:59:57: undefined: core.LWIPStack       
    Thrown at:
        at loadESM (node:internal/process/esm_loader:40:33)
        at processTicksAndRejections (node:internal/process/task_queues:95:5)
    Node.js v18.19.1
  ▶ action(tun2socks/build): ❌ Failed.
▶ action(electron/build): ❌ Failed.

Steps to reproduce

Run the following command:
npm run action electron/build windows

windows 11

What did you expect to happen?

No response

What actually happened?

No response

Outline Version

1.10.1

What operation system are you using?

Windows

Operating System Version

Windows 11

Screenshots and Videos

image

@I-amCoder I-amCoder added the bug Something is broken, we are tracking it label Mar 18, 2024
@daniellacosse daniellacosse added build issue Issues related to the build system os/windows go Pull requests that update Go code labels Mar 25, 2024
@jyyi1
Copy link
Contributor

jyyi1 commented Apr 5, 2024

Hi @I-amCoder , this seems to be a go environment problem, please make sure the CC, CXX, CGO_ENABLED=1 are correctly set in go env. Also, please ensure the C/C++ compilers referenced by CC and CXX are installed in the system (they should all be accessed via PATH).

@jyyi1 jyyi1 added the need more info We need more information in order to help or verify label Apr 5, 2024
@daniellacosse
Copy link
Contributor

@I-amCoder did you manage to get this to work with @jyyi1's advice? Feel free to reopen this if you still need help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken, we are tracking it build issue Issues related to the build system go Pull requests that update Go code need more info We need more information in order to help or verify os/windows
Projects
None yet
Development

No branches or pull requests

3 participants