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

nimble build #31

Open
inv2004 opened this issue Oct 27, 2024 · 24 comments
Open

nimble build #31

inv2004 opened this issue Oct 27, 2024 · 24 comments

Comments

@inv2004
Copy link

inv2004 commented Oct 27, 2024

Cannot satisfy the dependency on results 0.5.0 and results 0.4.0
@xTrayambak
Copy link
Member

Weird. Could you send the entire log?

xTrayambak added a commit to ferus-web/stylus that referenced this issue Nov 2, 2024
This was causing a build failure in Ferus.
(ferus-web/ferus#31)
@xTrayambak xTrayambak reopened this Nov 2, 2024
@xTrayambak
Copy link
Member

Could you please check if Ferus compiles now?

@inv2004
Copy link
Author

inv2004 commented Nov 2, 2024

Something new at the moment:

   Building bali/test262 using cpp backend
   ...
   g++: error: Package: No such file or directory
g++: error: Package: No such file or directory
g++: error: simdutf: No such file or directory
g++: error: was: No such file or directory
g++: error: not: No such file or directory
g++: error: simdutf: No such file or directory
g++: error: found: No such file or directory

@xTrayambak
Copy link
Member

Oh, you need to install simdutf. I'm sorry, should've made that clear. Install the simdutf library.

@lwhgames
Copy link

lwhgames commented Nov 3, 2024

nimble build doesn't work on Windows neither.

@xTrayambak
Copy link
Member

Ah, sorry. Ferus is Linux-only for now. It's impossible to get it working on Windows right now unless a Windows user ends up joining as a developer. I will eventually get it working in a Windows VM after most of my goals are met.

@inv2004
Copy link
Author

inv2004 commented Nov 3, 2024

I am on WSL2

@xTrayambak
Copy link
Member

I am on WSL2

I was replying to @lwhgames. You need to install simdutf, that should fix the compilation problem.

@xTrayambak
Copy link
Member

@inv2004 Did installing simdutf work?

@lwhgames
Copy link

lwhgames commented Nov 13, 2024

Is there a more detailed instructions to install simdutf ? Compiled from source or nimble install simdutf respectively?
image
image

@xTrayambak
Copy link
Member

Is there a more detailed instructions to install simdutf ? Compiled from source or nimble install simdutf respectively? image image

You need to install the simdutf package from your distro's package manager and just try compiling Ferus. It'll automatically pull in the wrapper I wrote from the Nimble Index.

@lwhgames
Copy link

Is there a more detailed instructions to install simdutf ? Compiled from source or nimble install simdutf respectively? image image

You need to install the simdutf package from your distro's package manager and just try compiling Ferus. It'll automatically pull in the wrapper I wrote from the Nimble Index.

yes, but I got these errors as shown

@xTrayambak
Copy link
Member

What distro are you on with which Nim version? It seems like there are codegen errors on the Nim side. Ferus requires Nim >= 2.0.0 and a very old GCC probably won't work either. Also, you seem to be compiling it as root. Don't do that.

Run this command in the ferus repository:

nimble build --define:release

@lwhgames
Copy link

What distro are you on with which Nim version? It seems like there are codegen errors on the Nim side. Ferus requires Nim >= 2.0.0 and a very old GCC probably won't work either. Also, you seem to be compiling it as root. Don't do that.

Run this command in the ferus repository:

nimble build --define:release

Nim Compiler Version 2.0.11 [Linux: amd64]

gcc (Ubuntu 13.2.0-23ubuntu4) 13.2.0

@xTrayambak
Copy link
Member

That should work. Weird. Can you send me the command you used to install simdutf from your package manager?

@lwhgames
Copy link

That should work. Weird. Can you send me the command you used to install simdutf from your package manager?

I downloaded simdutf and built from source with cmake --build build and
export PKG_CONFIG_PATH=/mnt/c/Users/ROG/simdutf/build

@xTrayambak
Copy link
Member

That should work. Weird. Can you send me the command you used to install simdutf from your package manager?

I downloaded simdutf and built from source with cmake --build build and export PKG_CONFIG_PATH=/mnt/c/Users/ROG/simdutf/build

Weird. Can you try installing the package instead?

@lwhgames
Copy link

lwhgames commented Nov 14, 2024

That should work. Weird. Can you send me the command you used to install simdutf from your package manager?

I downloaded simdutf and built from source with cmake --build build and export PKG_CONFIG_PATH=/mnt/c/Users/ROG/simdutf/build

Weird. Can you try installing the package instead?

there is no simdutf package in ubuntu.

@xTrayambak
Copy link
Member

I meant, can you run cmake install or whatever the command is to install a library with cmake?

@lwhgames
Copy link

I meant, can you run cmake install or whatever the command is to install a library with cmake?

cd build && make install and nimble build got this
image

@xTrayambak
Copy link
Member

xTrayambak commented Nov 15, 2024

I'm not quite sure what's going wrong on your end. I cleared my compiler cache and fully re-compiled all of Ferus and it works just fine. I'm using NixOS Unstable with Nim 2.2.0 and GCC 13.3.0 (and yes, it worked fine on the 2.0.x series for me too)

@xTrayambak
Copy link
Member

@lwhgames I just realized that you're running nimble build as root. Is this intentional?

@lwhgames
Copy link

lwhgames commented Nov 28, 2024

@lwhgames I just realized that you're running nimble build as root. Is this intentional?

WSL uses root by default, does it matter?

@xTrayambak
Copy link
Member

xTrayambak commented Feb 3, 2025

I don't think it should matter but I still cannot reproduce your issue. Use Nim 2.2.0 and see if that works.

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

No branches or pull requests

3 participants