PedroLopes951 Posted January 14, 2023 Report Share Posted January 14, 2023 Hey everyone, I was following along the build instructions for linux, after I executed the shell script : ./update-workspaces.sh -j3 --with-system-nvtt all was building correctly but then I got this fatal error while compiling some the C code: /mnt/c/Users/pedro/0ad/libraries/source/spidermonkey/mozjs-91.13.1/build-debug/dist/system_wrappers/string.h:3:15: fatal error: String.h: No such file or directory 3 | #include_next <String.h> | ^~~~~~~~~~ compilation terminated. After this error, the compilation still continued for while, compiling some rust files but in the end I got that the error saying that the SpiderMonkey Build failed. I went to this file and I did found the <String.h> on the dir "C:\Users\pedro\0ad\libraries\source\spidermonkey\mozjs-91.13.1\third_party\rust\cexpr\tests\input\strings.h " Any ideas of what I can do to solve this? Quote Link to comment Share on other sites More sharing options...
Stan` Posted January 14, 2023 Report Share Posted January 14, 2023 What version of GCC do you have ? What OS are you on? What Python Version do you have? Quote Link to comment Share on other sites More sharing options...
hyperion Posted January 14, 2023 Report Share Posted January 14, 2023 28 minutes ago, PedroLopes951 said: #include_next <String.h> lowercase <string.h> is part of libc, the system_wrapper/string.h includes next the lowercase version ... Your toolchain likes to capitalize, maybe switch to a case insensitive filesystem Quote Link to comment Share on other sites More sharing options...
PedroLopes951 Posted January 15, 2023 Author Report Share Posted January 15, 2023 @Stan` gcc version : I am using the windows subsystem for linux Python Version : Quote Link to comment Share on other sites More sharing options...
Stan` Posted January 15, 2023 Report Share Posted January 15, 2023 Oh wait you're using WSL2... Compiling there has never been done before. And you are running into Windows being case insensitive. Why don't you compile using MSVC on Windows ? Quote Link to comment Share on other sites More sharing options...
PedroLopes951 Posted January 15, 2023 Author Report Share Posted January 15, 2023 @Stan` I like to use a Linux environment to program but I need to access some apps using windows for my job, so I decided to use wsl. But if there is little information on building with wsl, I can use the MSVC on Windows and start the process over again. Regarding the case insensitive, from what I know when working with Windows Subsystem for Linux (WSL) on Windows, the file system is case-insensitive by default. Quote Link to comment Share on other sites More sharing options...
Stan` Posted January 15, 2023 Report Share Posted January 15, 2023 1 minute ago, PedroLopes951 said: But if there is little information on building with wsl, I can use the MSVC on Windows and start the process over again. There is none currently but you can still try. Maybe using podman and an actual docker image would work. We have some to build on the CI. 2 minutes ago, PedroLopes951 said: Regarding the case insensitive, from what I know when working with Windows Subsystem for Linux (WSL) on Windows, the file system is case-insensitive by default. Yeah and that's the issue. String.h and string.h are two different files, but your OS think it's the same Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.