Compiling Error Debianx86

Discussions related to using the OSE version of VirtualBox.

Compiling Error Debianx86

Postby setokaiba » 7. Nov 2018, 23:44

I got these error while compiling for linux x86

Code: Select all   Expand viewCollapse view
In file included from /usr/include/unicode/utypes.h:38:0,
                 from /usr/include/unicode/ucnv_err.h:88,
                 from /usr/include/unicode/ucnv.h:52,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from /home/kali/Desktop/VirtualBox-5.2.20/src/VBox/Runtime/r3/xml.cpp:40:
/usr/include/unicode/umachine.h:347:13: error: ‘char16_t’ does not name a type
     typedef char16_t UChar;
             ^
In file included from /usr/include/unicode/utypes.h:39:0,
                 from /usr/include/unicode/ucnv_err.h:88,
                 from /usr/include/unicode/ucnv.h:52,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from /home/kali/Desktop/VirtualBox-5.2.20/src/VBox/Runtime/r3/xml.cpp:40:
/usr/include/unicode/uversion.h:167:55: error: ‘UChar’ does not name a type
 u_versionFromUString(UVersionInfo versionArray, const UChar *versionString);
                                                       ^
In file included from /usr/include/unicode/ucnv.h:52:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from /home/kali/Desktop/VirtualBox-5.2.20/src/VBox/Runtime/r3/xml.cpp:40:
/usr/include/unicode/ucnv_err.h:198:11: error: ‘UChar’ does not name a type
     const UChar *source;        /**< Pointer to the source source buffer. @stable ICU 2.0    */
           ^
/usr/include/unicode/ucnv_err.h:199:11: error: ‘UChar’ does not name a type
     const UChar *sourceLimit;   /**< Pointer to the limit (end + 1) of source buffer. @stable ICU 2.0    */
           ^
/usr/include/unicode/ucnv_err.h:216:5: error: ‘UChar’ does not name a type
     UChar *target;              /**< Pointer to the target buffer. @stable ICU 2.0    */
     ^
/usr/include/unicode/ucnv_err.h:217:11: error: ‘UChar’ does not name a type
     const UChar *targetLimit;   /**< Pointer to the limit (end + 1) of target buffer. @stable ICU 2.0     */
           ^
/usr/include/unicode/ucnv_err.h:239:25: error: ‘UChar’ does not name a type
                   const UChar* codeUnits,
                         ^
/usr/include/unicode/ucnv_err.h:290:25: error: ‘UChar’ does not name a type
                   const UChar* codeUnits,
                         ^
/usr/include/unicode/ucnv_err.h:320:25: error: ‘UChar’ does not name a type
                   const UChar* codeUnits,
                         ^
/usr/include/unicode/ucnv_err.h:376:25: error: ‘UChar’ does not name a type
                   const UChar* codeUnits,
                         ^
In file included from /usr/include/unicode/ucnv.h:53:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from /home/kali/Desktop/VirtualBox-5.2.20/src/VBox/Runtime/r3/xml.cpp:40:
/usr/include/unicode/uenum.h:112:16: error: ‘UChar’ does not name a type
 U_STABLE const UChar* U_EXPORT2
                ^
In file included from /usr/include/unicode/ucnv.h:53:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from /home/kali/Desktop/VirtualBox-5.2.20/src/VBox/Runtime/r3/xml.cpp:40:
/usr/include/unicode/uenum.h:190:41: error: ‘UChar’ does not name a type
 uenum_openUCharStringsEnumeration(const UChar* const strings[], int32_t count,
                                         ^
In file included from /usr/include/libxml2/libxml/encoding.h:31:0,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from /usr/include/libxml2/libxml/tree.h:1307,
                 from /home/kali/Desktop/VirtualBox-5.2.20/src/VBox/Runtime/r3/xml.cpp:40:
/usr/include/unicode/ucnv.h:226:27: error: ‘UChar’ does not name a type
                     const UChar* codeUnits,
                           ^
/usr/include/unicode/ucnv.h:397:18: error: ‘UChar’ does not name a type
 ucnv_openU(const UChar *name,
                  ^
/usr/include/unicode/ucnv.h:669:27: error: ‘UChar’ does not name a type
                     const UChar *s,
                           ^
/usr/include/unicode/ucnv.h:707:23: error: ‘UChar’ has not been declared
                       UChar *errUChars,
                       ^
/usr/include/unicode/ucnv.h:846:21: error: ‘UChar’ has not been declared
                     UChar *displayName,
                     ^
/usr/include/unicode/ucnv.h:1147:25: error: ‘UChar’ does not name a type
                   const UChar ** source,
                         ^
/usr/include/unicode/ucnv.h:1148:25: error: ‘UChar’ does not name a type
                   const UChar * sourceLimit,
                         ^
/usr/include/unicode/ucnv.h:1214:16: error: ‘UChar’ has not been declared
                UChar **target,
                ^
/usr/include/unicode/ucnv.h:1215:22: error: ‘UChar’ does not name a type
                const UChar *targetLimit,
                      ^
/usr/include/unicode/ucnv.h:1252:23: error: ‘UChar’ does not name a type
                 const UChar *src, int32_t srcLength,
                       ^
/usr/include/unicode/ucnv.h:1283:15: error: ‘UChar’ has not been declared
               UChar *dest, int32_t destCapacity,
               ^
/usr/include/unicode/ucnv.h:1505:16: error: ‘UChar’ has not been declared
                UChar *pivotStart, UChar **pivotSource,
                ^
/usr/include/unicode/ucnv.h:1505:35: error: ‘UChar’ has not been declared
                UChar *pivotStart, UChar **pivotSource,
                                   ^
/usr/include/unicode/ucnv.h:1506:16: error: ‘UChar’ has not been declared
                UChar **pivotTarget, const UChar *pivotLimit,
                ^
/usr/include/unicode/ucnv.h:1506:43: error: ‘UChar’ does not name a type
                UChar **pivotTarget, const UChar *pivotLimit,
                                           ^
/usr/include/unicode/ucnv.h:1916:46: error: ‘UChar’ has not been declared
 ucnv_fixFileSeparator(const UConverter *cnv, UChar *source, int32_t sourceLen);
                                              ^
kmk: *** [/home/kali/Desktop/VirtualBox-5.2.20/out/linux.x86/release/obj/RuntimeR3/r3/xml.o] Error 1
The failing command:
@g++ -c -O2 -g -pipe -pedantic -Wshadow -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -Wno-unused-parameter     -Wlogical-op   -Wno-variadic-macros -Wno-long-long -Wunused-variable -Wunused-function -Wunused-label -Wunused-parameter  -Wno-overloaded-virtual -Wno-variadic-macros -march=i586 -O2 -mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -fvisibility-inlines-hidden    -m32 -I/home/kali/Desktop/VirtualBox-5.2.20/src/VBox/Runtime/include -I/home/kali/Desktop/VirtualBox-5.2.20/src/libs/liblzf-3.4 -I/home/kali/Desktop/VirtualBox-5.2.20/src/libs/kStuff/kStuff/include -I/home/kali/Desktop/VirtualBox-5.2.20/out/linux.x86/release/obj/RuntimeR3/dtrace -I/usr/include/libxml2 -I/home/kali/Desktop/VirtualBox-5.2.20/include -I/home/kali/Desktop/VirtualBox-5.2.20/out/linux.x86/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_REM -DVBOX_WITH_RAW_MODE -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_X86 -D__X86__ -DVBOX_WITH_DEBUGGER -D_REENTRANT -DIN_RT_STATIC -DIN_RT_R3 -DIN_SUP_STATIC -DIN_RING3 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -DVBOX_WITH_DTRACE -DVBOX_WITH_DTRACE_R3 -DIN_RT_R3 -DIN_SUP_R3 -DLDR_WITH_NATIVE -DLDR_WITH_ELF32 -DLDR_WITH_PE -DRT_WITH_VBOX -DRT_NO_GIP -DRT_WITHOUT_NOCRT_WRAPPERS -DIPRT_WITH_OPENSSL -DNOFILEID -DLDR_WITH_KLDR -DRT_WITH_ICONV_CACHE -Wp,-MD,/home/kali/Desktop/VirtualBox-5.2.20/out/linux.x86/release/obj/RuntimeR3/r3/xml.o.dep -Wp,-MT,/home/kali/Desktop/VirtualBox-5.2.20/out/linux.x86/release/obj/RuntimeR3/r3/xml.o -Wp,-MP -o /home/kali/Desktop/VirtualBox-5.2.20/out/linux.x86/release/obj/RuntimeR3/r3/xml.o /home/kali/Desktop/VirtualBox-5.2.20/src/VBox/Runtime/r3/xml.cpp
setokaiba
 
Posts: 3
Joined: 7. Nov 2018, 02:06

Re: Compiling Error Debianx86

Postby SamASR » 19. Mar 2019, 22:40

Hi, execute the following command: "dpkg -l | grep icu"
If the version of libicu-dev is > 55.1-7, libicu55 > 55.1-7 and you have libicu63 installed - you should downgrade them.

Here is the similar problem: github . com / openstreetmap / mod_tile / issues / 179#issuecomment-408694408

With these packets, latest version of VirtualBox compiles perfectly:
libicu-dev:amd64 55.1-7
libicu55:amd64 55.1-7
libicu60:amd64 60.2-6ubuntu1
SamASR
 
Posts: 14
Joined: 19. Mar 2019, 22:34


Return to VirtualBox OSE

Who is online

Users browsing this forum: No registered users and 2 guests