Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.2k
-
Hi guys, can anybody explain to me why this compiler command fails or what i could do to fix this.. I did #define the failing Macros manually to test if it works then but i would need to do that with almost all string like macros because the afl-clang-fast++ seems to pass e.g. DIPRT_BLDCFG_VERSION_STRING="7.2.4" as 7.2.4 Does anybody have an efficient solution without manually editing the source code everywhere? The failing command: @/home/neo/AFL/AFLplusplussourceonly/afl-clang-fast++ -m64 -c -O2 -g -pipe -pedantic -Wshadow -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -fdiagnostics-color -Wno-unused-parameter -Wno-language-extension-token -Wno-gnu-folding-constant -Wno-gnu-anonymous-struct -Wno-string-plus-int -Wno-nested-anon-types -Wno-variadic-macros -Wno-c++17-compat-mangling -Wno-long-long -Wunused-variable -Wunused-function -Wunused-label -Wunused-parameter -Wno-return-type-c-linkage -Wno-overloaded-virtual -Wno-undefined-var-template -Wno-deprecated-copy -Wno-array-bounds -Wno-ignored-qualifiers -Wno-variadic-macros -O2 -mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -std=c++11 -fvisibility-inlines-hidden -m64 -I/home/neo/VirtualB0X/7.2/VirtualBox-7.2.4/src/VBox/Runtime/include -I/home/neo/VirtualB0X/7.2/VirtualBox-7.2.4/src/libs/liblzf-3.6 -I/home/neo/VirtualB0X/7.2/VirtualBox-7.2.4/out/linux.amd64/release/obj/RuntimeR3/dtrace -I/usr/include/libxml2 -I/home/neo/VirtualB0X/7.2/VirtualBox-7.2.4/include -I/home/neo/VirtualB0X/7.2/VirtualBox-7.2.4/out/linux.amd64/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE="/opt/VirtualBox" -DRTPATH_APP_PRIVATE_ARCH="/opt/VirtualBox" -DRTPATH_SHARED_LIBS="/opt/VirtualBox" -DRTPATH_APP_DOCS="/opt/VirtualBox" -D_REENTRANT -DIN_RT_STATIC -DIN_RT_R3 -DIN_SUP_STATIC -DIN_RING3 -DGC_ARCH_BITS=64 -DVBOX_WITH_DTRACE -DVBOX_WITH_DTRACE_R3 -DIN_RT_R3 -DLDR_WITH_NATIVE -DLDR_WITH_ELF32 -DLDR_WITH_LX -DLDR_WITH_MACHO -DLDR_WITH_PE -DRT_WITH_VBOX -DRT_NO_GIP -DRT_WITHOUT_NOCRT_WRAPPERS -DNOFILEID -DIN_SUP_R3 -DIPRT_WITH_LZMA -DRT_WITH_ICONV_CACHE -DHC_ARCH_BITS=64 -DIPRT_BLDCFG_SCM_REV=170995 -DIPRT_BLDCFG_VERSION_MAJOR=7 -DIPRT_BLDCFG_VERSION_MINOR=2 -DIPRT_BLDCFG_VERSION_BUILD=4 -DIPRT_BLDCFG_VERSION_STRING="7.2.4" -DIPRT_BLDCFG_TARGET="linux" -DIPRT_BLDCFG_TARGET_ARCH="amd64" -DIPRT_BLDCFG_TYPE="release" -Wp,-MD,/home/neo/VirtualB0X/7.2/VirtualBox-7.2.4/out/linux.amd64/release/obj/RuntimeR3/common/misc/buildconfig.o.dep -Wp,-MT,/home/neo/VirtualB0X/7.2/VirtualBox-7.2.4/out/linux.amd64/release/obj/RuntimeR3/common/misc/buildconfig.o -Wp,-MP -o /home/neo/VirtualB0X/7.2/VirtualBox-7.2.4/out/linux.amd64/release/obj/RuntimeR3/common/misc/buildconfig.o /home/neo/VirtualB0X/7.2/VirtualBox-7.2.4/src/VBox/Runtime/common/misc/buildconfig.cpp kBuild: Compiling RuntimeR3 - /home/neo/VirtualB0X/7.2/VirtualBox-7.2.4/src/VBox/Runtime/common/misc/buildconfig.cpp /home/neo/VirtualB0X/7.2/VirtualBox-7.2.4/src/VBox/Runtime/common/misc/buildconfig.cpp:63:12: error: invalid suffix '.4' on floating constant return IPRT_BLDCFG_VERSION_STRING; ^ :41:39: note: expanded from here #define IPRT_BLDCFG_VERSION_STRING 7.2.4 ^ /home/neo/VirtualB0X/7.2/VirtualBox-7.2.4/src/VBox/Runtime/common/misc/buildconfig.cpp:95:12: error: use of undeclared identifier 'linux' return IPRT_BLDCFG_TARGET; ^ :42:28: note: expanded from here #define IPRT_BLDCFG_TARGET linux ^ /home/neo/VirtualB0X/7.2/VirtualBox-7.2.4/src/VBox/Runtime/common/misc/buildconfig.cpp:103:12: error: use of undeclared identifier 'amd64' return IPRT_BLDCFG_TARGET_ARCH; ^ :43:33: note: expanded from here #define IPRT_BLDCFG_TARGET_ARCH amd64 ^ /home/neo/VirtualB0X/7.2/VirtualBox-7.2.4/src/VBox/Runtime/common/misc/buildconfig.cpp:111:12: error: use of undeclared identifier 'linux' return IPRT_BLDCFG_TARGET "." IPRT_BLDCFG_TARGET_ARCH; ^ :42:28: note: expanded from here #define IPRT_BLDCFG_TARGET linux ^ /home/neo/VirtualB0X/7.2/VirtualBox-7.2.4/src/VBox/Runtime/common/misc/buildconfig.cpp:111:30: error: expected ';' after return statement return IPRT_BLDCFG_TARGET "." IPRT_BLDCFG_TARGET_ARCH; ^ ; /home/neo/VirtualB0X/7.2/VirtualBox-7.2.4/src/VBox/Runtime/common/misc/buildconfig.cpp:119:12: error: use of undeclared identifier 'release'; did you mean 'delete'? return IPRT_BLDCFG_TYPE; ^~~~~~~~~~~~~~~~ delete :44:26: note: expanded from here #define IPRT_BLDCFG_TYPE release ^ /home/neo/VirtualB0X/7.2/VirtualBox-7.2.4/src/VBox/Runtime/common/misc/buildconfig.cpp:119:28: error: expected expression return IPRT_BLDCFG_TYPE; ^ 7 errors generated. kmk: *** [/home/neo/VirtualB0X/7.2/VirtualBox-7.2.4/kBuild/footer-pass2-compiling-targets.kmk:277: /home/neo/VirtualB0X/7.2/VirtualBox-7.2.4/out/linux.amd64/release/obj/RuntimeR3/common/misc/buildconfig.o] Error 1 kmk: *** Waiting for unfinished j |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 2 comments
-
this has nothing to do with afl++, either this is a clang++ weirdness or you did something wrong :) |
BetaWas this translation helpful?Give feedback.
All reactions
-
i dont know i am trying to understand why the backslashes are getting deleted, the usual vbox build with kbuild leads to automatic def quoting which makes the compile commands look like this: DIPRT_BLDCFG_TARGET_ARCH="amd64" + backslashes before the " I have tried to change the Makefile but this just confirms that the Makefile is doing what its supposed to do but something else interferes and deletes the backslashes. Any ideas? I am trying to work on this approachhttps://blog.doyensec.com/2022/04/26/vbox-fuzzing.html for VBox 7.2.4 Best Regards |
BetaWas this translation helpful?Give feedback.