I'm trying to compile a kernel module driver but I get the following errors: (the operation generate some files, but not a ".ko" file)
make -C /lib/modules/5.16.0-kali7-amd64/build M=/home/z3r0/Scrivania/kernel_modules/start_stop modules
make[1]: ingresso nella directory «/usr/src/linux-headers-5.16.0-kali7-amd64»
/bin/sh: 1: /usr/src/linux-headers-5.16.0-kali7-common/scripts/pahole-flags.sh: not found
ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
make[1]: *** [/usr/src/linux-headers-5.16.0-kali7-common/Makefile:751: include/config/auto.conf] Errore 1
make[1]: uscita dalla directory «/usr/src/linux-headers-5.16.0-kali7-amd64»
make: *** [Makefile:3: all] Errore 2
When I try to execute "make oldconfig && make prepare" I get the following error:
/bin/sh: 1: /usr/src/linux-headers-5.16.0-kali7-common/scripts/pahole-flags.sh: not found
GEN Makefile
/bin/sh: 1: /usr/src/linux-headers-5.16.0-kali7-common/scripts/pahole-flags.sh: not found
/usr/src/linux-headers-5.16.0-kali7-common/scripts/Makefile.build:44: /usr/src/linux-headers-5.16.0-kali7-common/scripts/basic/Makefile: File o directory non esistente
make[1]: *** Nessuna regola per generare l'obiettivo «/usr/src/linux-headers-5.16.0-kali7-common/scripts/basic/Makefile». Arresto.
make: *** [/usr/src/linux-headers-5.16.0-kali7-common/Makefile:566: scripts_basic] Errore 2
The file is really simple (hello_world.c):
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
static int __init hello_start(void)
{
printk(KERN_INFO "Loading hello module...\n");
printk(KERN_INFO "Hello world\n");
return 0;
}
static void __exit hello_end(void)
{
printk(KERN_INFO "Goodbye Mr.\n");
}
module_init(hello_start);
module_exit(hello_end);
makefile:
obj-m = foo.o
KVERSION = $(shell uname -r)
all:
make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean
Can someone explain where is the error? Thank you
So I want to learn how to use CMake (specifically in CLion), and right now I'm trying to set up SDL2 with it. I got FindSDL2.cmake in my Modules folder, and this is my code:
CMakeLists.txt:
cmake_minimum_required(VERSION 3.13)
project(CLion_Tests)
set(CMAKE_CXX_STANDARD 11)
set(SDL2_PATH "C:/Users/Lerchi/Downloads/SDL/SDL2main/64")
find_package(SDL2 REQUIRED)
include_directories(${SDL2_INCLUDE_DIR})
add_executable(CLion_Tests main.cpp)
target_link_libraries(CLion_Tests ${SDL2_LIBRARY})
and main.cpp is just this:
#include <iostream>
#include <SDL.h>
int main(int argc, char* args[]) {
SDL_Init(SDL_INIT_EVERYTHING);
std::cout << "Hello, World!" << std::endl;
return 0;
}
The error I'm getting is
CMakeFiles\CLion_Tests.dir/objects.a(main.cpp.obj):main.cpp:(.text+0x1c): undefined reference to `SDL_Init'
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../libmingw32.a(main.o):(.text.startup+0xa0): undefined reference to `WinMain#16'
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[2]: *** [CLion_Tests.exe] Error 1
CMakeFiles\CLion_Tests.dir\build.make:87: recipe for target 'CLion_Tests.exe' failed
mingw32-make.exe[1]: *** [CMakeFiles/CLion_Tests.dir/all] Error 2
CMakeFiles\Makefile2:71: recipe for target 'CMakeFiles/CLion_Tests.dir/all' failed
mingw32-make.exe: *** [all] Error 2
Makefile:82: recipe for target 'all' failed
I am trying aot cross compiling with bazel.But failed in platform.h fatal error 'mutex' file not found.I can build with bazel without cross compile setting, and I can exec the binary in host.
My environment is below
x86-64 ubuntu14.04
target:arm-linux-gnueabihf
tensorflow:Head of maste cd5f3b67fca88217776522182481b0c128db5af9
bazel:0.5.4 installed by apt-get install
My test code is below.
#define EIGEN_USE_THREADS
#define EIGEN_USE_CUSTOM_THREAD_POOL
#include <iostream>
#include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor"
#include "tensorflow/compiler/aot/tests/test_graph_tfmatmul.h" // generated
int main(int argc, char** argv) {
Eigen::ThreadPool tp(2); // Size the thread pool as appropriate.
Eigen::ThreadPoolDevice device(&tp, tp.NumThreads());
foo::bar::MatMulComp matmul;
matmul.set_thread_pool(&device);
// Set up args and run the computation.
const float args[12] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12};
std::copy(args + 0, args + 6, matmul.arg0_data());
std::copy(args + 6, args + 12, matmul.arg1_data());
matmul.Run();
// Check result
if (matmul.result0(0, 0) == 58) {
std::cout << "Success" << std::endl;
} else {
std::cout << "Failed. Expected value 58 at 0,0. Got:"
<< matmul.result0(0, 0) << std::endl;
}
return 0;
}
I modified the some files to compile.
add cross compile setting to WORKSPACE file
new_local_repository( name = "linaroLinuxGcc49Repo", build_file =
"compilers/linaro_linux_gcc_4.9.BUILD", path =
"compilers/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf", )
add build setting in /tensorflow/compiler/aot/tests/BUILD
cc_binary(
name = "my_binary",
srcs = [
"my_code.cc", # include test_graph_tfmatmul.h to access the generated header
],
deps = [
":test_graph_tfmatmul", # link in the generated object file
"//third_party/eigen3",
],
linkopts = [
"-lpthread",
] )
Below is the build command I did.
bazel build --copt=-Wno-c++11-narrowing --cxxopt='-std=c++11'
//tensorflow/compiler/aot/tests:my_binary
--host_crosstool_top=#bazel_tools//tools/cpp:toolchain --crosstool_top=//tools/arm_compiler:toolchain --cpu=armeabi-v7a --verbose_failures
Finally I get the error below.
(root) user-name#machine-name:repo
[master]$ bazel build --copt=-Wno-c++11-narrowing
--cxxopt='-std=c++11' //tensorflow/compiler/aot/tests:my_binary --host_crosstool_top=#bazel_tools//tools/cpp:toolchain --crosstool_top=//tools/arm_compiler:toolchain --cpu=armeabi-v7a --verbose_failures WARNING: /home/user-name/tensorflow/repo/tensorflow/core/BUILD:1772:1: in
includes attribute of cc_library rule
//tensorflow/core:framework_headers_lib: '../../external/nsync/public'
resolves to 'external/nsync/public' not below the relative path of its
package 'tensorflow/core'. This will be an error in the future. Since
this rule was created by the macro 'cc_header_only_library', the error
might have been caused by the macro implementation in
/home/user-name/tensorflow/repo/tensorflow/tensorflow.bzl:1029:30
WARNING:
/home/user-name/tensorflow/repo/tensorflow/contrib/learn/BUILD:15:1:
in py_library rule //tensorflow/contrib/learn:learn: target
'//tensorflow/contrib/learn:learn' depends on deprecated target
'//tensorflow/contrib/session_bundle:exporter': No longer supported.
Switch to SavedModel immediately. WARNING:
/home/user-name/tensorflow/repo/tensorflow/contrib/learn/BUILD:15:1:
in py_library rule //tensorflow/contrib/learn:learn: target
'//tensorflow/contrib/learn:learn' depends on deprecated target
'//tensorflow/contrib/session_bundle:gc': No longer supported. Switch
to SavedModel immediately. INFO: Analysed target
//tensorflow/compiler/aot/tests:my_binary (0 packages loaded). INFO:
Found 1 target... ERROR:
/home/user-name/.cache/bazel/_bazel_user-name/6d2eb697f6f4dfadad89ea8a861fded5/external/nsync/BUILD:397:1:
C++ compilation of rule '#nsync//:nsync_cpp' failed (Exit 1): clang
failed: error executing command (cd
/home/user-name/.cache/bazel/_bazel_user-name/6d2eb697f6f4dfadad89ea8a861fded5/execroot/org_tensorflow
&& \ exec env - \
PWD=/proc/self/cwd \
PYTHON_BIN_PATH=/home/user-name/.pyenv/versions/anaconda3-4.4.0/bin/python
\
PYTHON_LIB_PATH=/home/user-name/.pyenv/versions/anaconda3-4.4.0/lib/python3.6/site-packages
\
TF_NEED_CUDA=0 \
TF_NEED_OPENCL=0 \ tools/arm_compiler/linaro_linux_gcc/clang_bin/clang -target
armv7a-arm-linux-gnueabif
'--sysroot=external/linaroLinuxGcc49Repo/arm-linux-gnueabihf/libc'
'-mfloat-abi=hard' -nostdinc -isystem /usr/lib/clang/3.6/include
-isystem external/linaroLinuxGcc49Repo/lib/gcc/arm-linux-gnueabihf/4.9.4/include
-isystem external/linaroLinuxGcc49Repo/arm-linux-gnueabihf/libc/usr/include
-isystem external/linaroLinuxGcc49Repo/lib/gcc/arm-linux-gnueabihf/4.9.4/include-fixed
-isystem external/linaroLinuxGcc49Repo/arm-linux-gnueabihf/libc/usr/include
-isystem external/linaroLinuxGcc49Repo/include/c++/4.9.4 -U_FORTIFY_SOURCE -fstack-protector -fPIE '-fdiagnostics-color=always' -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -Wno-c++11-narrowing -MD -MF bazel-out/clang_linux_armhf-py3-opt/bin/external/nsync/_objs/nsync_cpp/external/nsync/internal/sem_wait.d
-iquote external/nsync -iquote bazel-out/clang_linux_armhf-py3-opt/genfiles/external/nsync -iquote
external/bazel_tools -iquote
bazel-out/clang_linux_armhf-py3-opt/genfiles/external/bazel_tools
-isystem external/nsync/public -isystem bazel-out/clang_linux_armhf-py3-opt/genfiles/external/nsync/public
-isystem external/bazel_tools/tools/cpp/gcc3 -x c++ '-std=c++11' -DNSYNC_ATOMIC_CPP11 -DNSYNC_USE_CPP11_TIMEPOINT -I./external/nsync//platform/c++11 -I./external/nsync//platform/gcc -I./external/nsync//platform/arm -I./external/nsync//public -I./external/nsync//internal -I./external/nsync//platform/posix '-D_POSIX_C_SOURCE=200809L' -pthread -no-canonical-prefixes
-Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c
external/nsync/internal/sem_wait.c -o
bazel-out/clang_linux_armhf-py3-opt/bin/external/nsync/_objs/nsync_cpp/external/nsync/internal/sem_wait.o)
warning: unknown warning option '-Wunused-but-set-parameter'; did you
mean '-Wunused-parameter'? [-Wunknown-warning-option] warning: unknown
warning option '-Wno-free-nonheap-object'; did you mean
'-Wno-sequence-point'? [-Wunknown-warning-option] In file included
from external/nsync/internal/sem_wait.c:16:
./external/nsync//platform/c++11/platform.h:29:10: fatal error:
'mutex' file not found
#include
^ 2 warnings and 1 error generated. Target //tensorflow/compiler/aot/tests:my_binary failed to build INFO:
Elapsed time: 0.917s, Critical Path: 0.15s FAILED: Build did NOT
complete successfully
Error occures in "C++ compilation of rule '#nsync//:nsync_cpp' failed (Exit 1):" .
Befause of "./external/nsync//platform/c++11/platform.h:29:10: fatal error: 'mutex' file not found
#include
"
The file mutex is exist in ./compilers/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include/c++/4.9.4/mutex.
I think path above is setted in the build output line "-isystem external/linaroLinuxGcc49Repo/include/c++/4.9.4"
How could I set the path to mutex? for cross compiling nsync?
I made a mistake when I edit CROSSTOOL file.
If you know detail, please refer below.
https://github.com/bazelbuild/bazel/issues/3836
thanks!
I'm trying to call some objective-c code from within ocaml.
stubs.m
#include <Cocoa/Cocoa.h>
#define CAML_NAME_SPACE
#include <caml/mlvalues.h>
#include <caml/memory.h>
#include <caml/callback.h>
#include <caml/alloc.h>
#include <caml/fail.h>
CAMLprim value ml_NSLog (value str)
{
CAMLparam1 (str);
NSLog (#"%s", String_val (str));
CAMLreturn (Val_unit);
}
It gets compiled with the following command to stubs.o:
cc -Wextra -Wall -Werror -O -g -std=c99 -pedantic-errors -Wsign-compare -Wshadow -I /Users/Iwan/.opam/4.02.3/lib/ocaml -c -o stubs.o stubs.m
My ocaml code in index.ml is:
external _NSLog: string -> unit = "ml_NSLog"
let log s = _NSLog s
let () = log "hello"
When I execute ocamlopt -o app index.ml stubs.o I get:
Undefined symbols for architecture x86_64:
"_NSLog", referenced from:
_ml_NSLog in stubs.o
(maybe you meant: _ml_NSLog)
"___CFConstantStringClassReference", referenced from:
CFString in stubs.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
File "caml_startup", line 1:
Error: Error during linking
Why do I get the error in this case?
The solution was brutally simple:
ocamlopt -cclib "-framework Cocoa" -o app index.ml stubs.o
I had to pas "-framework Cocoa" as option to the c linker...
Im trying to build OpenAL-Soft for an ARM machine (the 3ds) and it stops in the cmake process when CHECK_SYMBOL_EXISTS can't find nanosleep function in time.h i tried commenting the error in CMakeLists.txt to see what would happen and the cmake process works but pthread.h related functions aren't found which causes errors in compilation.
Im using the latest commit from OpenAl soft, i've tried in older versions but same problem. Building with x86 GNU linux compiler works fine.
Im using this toolchain file.
Here's the last part of the CMakeError.log:
Determining if the aligned_alloc exist failed with the following output:
Change Dir: /home/sdk/openal-soft/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_f69e3/fast"
/usr/bin/make -f CMakeFiles/cmTC_f69e3.dir/build.make CMakeFiles/cmTC_f69e3.dir/build
make[1]: se ingresa al directorio «/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp»
Building C object CMakeFiles/cmTC_f69e3.dir/CheckSymbolExists.c.obj
/opt/devkitpro/devkitARM/bin/arm-none-eabi-gcc -DARM11 -D_3DS -fno-gnu89-inline -std=c11 -mword-relocations -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -D_LARGEFILE_SOURCE -D_LARGE_FILES -o CMakeFiles/cmTC_f69e3.dir/CheckSymbolExists.c.obj -c /home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function 'main':
/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: 'aligned_alloc' undeclared (first use in this function)
return ((int*)(&aligned_alloc))[argc];
^
/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [CMakeFiles/cmTC_f69e3.dir/CheckSymbolExists.c.obj] Error 1
make[1]: se sale del directorio «/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp»
make: *** [cmTC_f69e3/fast] Error 2
File /home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <stdlib.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef aligned_alloc
return ((int*)(&aligned_alloc))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the posix_memalign exist failed with the following output:
Change Dir: /home/sdk/openal-soft/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_f69e3/fast"
/usr/bin/make -f CMakeFiles/cmTC_f69e3.dir/build.make CMakeFiles/cmTC_f69e3.dir/build
make[1]: se ingresa al directorio «/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp»
Building C object CMakeFiles/cmTC_f69e3.dir/CheckSymbolExists.c.obj
/opt/devkitpro/devkitARM/bin/arm-none-eabi-gcc -DARM11 -D_3DS -fno-gnu89-inline -std=c11 -mword-relocations -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -D_LARGEFILE_SOURCE -D_LARGE_FILES -o CMakeFiles/cmTC_f69e3.dir/CheckSymbolExists.c.obj -c /home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function 'main':
/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: 'posix_memalign' undeclared (first use in this function)
return ((int*)(&posix_memalign))[argc];
^
/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [CMakeFiles/cmTC_f69e3.dir/CheckSymbolExists.c.obj] Error 1
make[1]: se sale del directorio «/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp»
make: *** [cmTC_f69e3/fast] Error 2
File /home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <stdlib.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef posix_memalign
return ((int*)(&posix_memalign))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the _aligned_malloc exist failed with the following output:
Change Dir: /home/sdk/openal-soft/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_f69e3/fast"
/usr/bin/make -f CMakeFiles/cmTC_f69e3.dir/build.make CMakeFiles/cmTC_f69e3.dir/build
make[1]: se ingresa al directorio «/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp»
Building C object CMakeFiles/cmTC_f69e3.dir/CheckSymbolExists.c.obj
/opt/devkitpro/devkitARM/bin/arm-none-eabi-gcc -DARM11 -D_3DS -fno-gnu89-inline -std=c11 -mword-relocations -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -D_LARGEFILE_SOURCE -D_LARGE_FILES -o CMakeFiles/cmTC_f69e3.dir/CheckSymbolExists.c.obj -c /home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function 'main':
/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: '_aligned_malloc' undeclared (first use in this function)
return ((int*)(&_aligned_malloc))[argc];
^
/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [CMakeFiles/cmTC_f69e3.dir/CheckSymbolExists.c.obj] Error 1
make[1]: se sale del directorio «/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp»
make: *** [cmTC_f69e3/fast] Error 2
File /home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <malloc.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef _aligned_malloc
return ((int*)(&_aligned_malloc))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the _controlfp exist failed with the following output:
Change Dir: /home/sdk/openal-soft/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_f69e3/fast"
/usr/bin/make -f CMakeFiles/cmTC_f69e3.dir/build.make CMakeFiles/cmTC_f69e3.dir/build
make[1]: se ingresa al directorio «/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp»
Building C object CMakeFiles/cmTC_f69e3.dir/CheckSymbolExists.c.obj
/opt/devkitpro/devkitARM/bin/arm-none-eabi-gcc -DARM11 -D_3DS -fno-gnu89-inline -std=c11 -mword-relocations -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -D_LARGEFILE_SOURCE -D_LARGE_FILES -o CMakeFiles/cmTC_f69e3.dir/CheckSymbolExists.c.obj -c /home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function 'main':
/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: '_controlfp' undeclared (first use in this function)
return ((int*)(&_controlfp))[argc];
^
/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [CMakeFiles/cmTC_f69e3.dir/CheckSymbolExists.c.obj] Error 1
make[1]: se sale del directorio «/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp»
make: *** [cmTC_f69e3/fast] Error 2
File /home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <float.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef _controlfp
return ((int*)(&_controlfp))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the __control87_2 exist failed with the following output:
Change Dir: /home/sdk/openal-soft/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_f69e3/fast"
/usr/bin/make -f CMakeFiles/cmTC_f69e3.dir/build.make CMakeFiles/cmTC_f69e3.dir/build
make[1]: se ingresa al directorio «/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp»
Building C object CMakeFiles/cmTC_f69e3.dir/CheckSymbolExists.c.obj
/opt/devkitpro/devkitARM/bin/arm-none-eabi-gcc -DARM11 -D_3DS -fno-gnu89-inline -std=c11 -mword-relocations -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -D_LARGEFILE_SOURCE -D_LARGE_FILES -o CMakeFiles/cmTC_f69e3.dir/CheckSymbolExists.c.obj -c /home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function 'main':
/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: '__control87_2' undeclared (first use in this function)
return ((int*)(&__control87_2))[argc];
^
/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [CMakeFiles/cmTC_f69e3.dir/CheckSymbolExists.c.obj] Error 1
make[1]: se sale del directorio «/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp»
make: *** [cmTC_f69e3/fast] Error 2
File /home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <float.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef __control87_2
return ((int*)(&__control87_2))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the include file windows.h exists failed with the following output:
Change Dir: /home/sdk/openal-soft/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_f69e4/fast"
/usr/bin/make -f CMakeFiles/cmTC_f69e4.dir/build.make CMakeFiles/cmTC_f69e4.dir/build
make[1]: se ingresa al directorio «/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp»
Building C object CMakeFiles/cmTC_f69e4.dir/CheckIncludeFile.c.obj
/opt/devkitpro/devkitARM/bin/arm-none-eabi-gcc -DARM11 -D_3DS -fno-gnu89-inline -std=c11 -mword-relocations -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -D_WIN32_WINNT=0x0502 -D_LARGEFILE_SOURCE -D_LARGE_FILES -o CMakeFiles/cmTC_f69e4.dir/CheckIncludeFile.c.obj -c /home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:21: fatal error: windows.h: No such file or directory
#include <windows.h>
^
compilation terminated.
make[1]: *** [CMakeFiles/cmTC_f69e4.dir/CheckIncludeFile.c.obj] Error 1
make[1]: se sale del directorio «/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp»
make: *** [cmTC_f69e4/fast] Error 2
Determining if the nanosleep exist failed with the following output:
Change Dir: /home/sdk/openal-soft/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_f69e4/fast"
/usr/bin/make -f CMakeFiles/cmTC_f69e4.dir/build.make CMakeFiles/cmTC_f69e4.dir/build
make[1]: se ingresa al directorio «/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp»
Building C object CMakeFiles/cmTC_f69e4.dir/CheckSymbolExists.c.obj
/opt/devkitpro/devkitARM/bin/arm-none-eabi-gcc -DARM11 -D_3DS -fno-gnu89-inline -std=c11 -mword-relocations -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -D_LARGEFILE_SOURCE -D_LARGE_FILES -o CMakeFiles/cmTC_f69e4.dir/CheckSymbolExists.c.obj -c /home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function 'main':
/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: 'nanosleep' undeclared (first use in this function)
return ((int*)(&nanosleep))[argc];
^
/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [CMakeFiles/cmTC_f69e4.dir/CheckSymbolExists.c.obj] Error 1
make[1]: se sale del directorio «/home/sdk/openal-soft/build/CMakeFiles/CMakeTmp»
make: *** [cmTC_f69e4/fast] Error 2
File /home/sdk/openal-soft/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <time.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef nanosleep
return ((int*)(&nanosleep))[argc];
#else
(void)argc;
return 0;
#endif
}