question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Linux build-runtime compilation error

See original GitHub issue

OS: Manjaro Linux x86_64

NOTE: For some reason I don’t have the command ‘arch’ installed so I replaced it with ‘uname -m’ in build-runtime.sh. Doesn’t seem to be related to the error, but I thought I should mention it anyway.

$ sh build-runtime.sh

///////////////////////////////////////////////
// Build IL2C.Runtime (gcc-linux-$Platform-$Configuration)

-- The C compiler identification is GNU 10.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/Desktop/IL2C/IL2C.Runtime/build.cmake/gcc-linux-x86_64-
[1/62] Building C object src/CMakeFiles/il2c-gcc-linux-x86_64-.dir/Platform/no-threading.c.obj
FAILED: src/CMakeFiles/il2c-gcc-linux-x86_64-.dir/Platform/no-threading.c.obj 
/usr/bin/cc -D_LIB -I../../cmake/../include -I../../src -I../../src/../include -pipe -g2 -Wall -Werror -Wstrict-prototypes -Wno-unused -fdata-sections -ffunction-sections -Wl,--gc-sections -O0 -D_DEBUG -pipe -g2 -Wall -Werror -Wstrict-prototypes -Wno-unused -fdata-sections -ffunction-sections -Wl,--gc-sections -O0 -D_DEBUG -MD -MT src/CMakeFiles/il2c-gcc-linux-x86_64-.dir/Platform/no-threading.c.obj -MF src/CMakeFiles/il2c-gcc-linux-x86_64-.dir/Platform/no-threading.c.obj.d -o src/CMakeFiles/il2c-gcc-linux-x86_64-.dir/Platform/no-threading.c.obj -c ../../src/Platform/no-threading.c
../../src/Platform/no-threading.c:1:10: fatal error: il2c_private.H: No such file or directory
    1 | #include <il2c_private.H>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
[14/62] Building C object src/CMakeFiles/il2c-gcc-linux-x86_64-.dir/Platform/strings.c.obj
ninja: build stopped: subcommand failed.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
0x0015commented, Oct 16, 2020

I cloned pulled the devel branch, ran bulid-runtime.sh and build.sh in the calculator demo, and it worked! Thanks for the help.

1reaction
0x0015commented, Oct 6, 2020

Okay, replacing i2lc_private.H to .h it builds now. So I have the IL2C folder in the bin of my c# project(just the getting started sample), so how do I want to build it? The getting started only explains v++, with visual studio.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CI build of Linux runtime doesn't stop on coreclr ...
I have noticed that when a native coreclr stuff compilation failed, the build was continuing, tried to run corerun that was not produced...
Read more >
linux - Undefined symbols on Runtime that cause no Error ...
Undefined symbols on Runtime that cause no Error on Compile/Link Time ... Why wasn't this undefined symbol thrown during compilation/linking time?
Read more >
Why does it matter if something crashes at compile time or ...
Runtime errors are much more dangerous. Your program compiles and runs. Maybe it encounters a bug and crashes immediately, but more often than ......
Read more >
Compiling the engine from source on Linux and getting a ...
Hi there, I'd like to run Unreal Editor on my machine which is running Fedora 34, everything is fine when I was running...
Read more >
Fix the top 10 most common compile time errors in Java
Compile time errors in Java can be confusing and frustrating. Be prepared with this list of the 10 most common Java compile errors...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found