Jump to content

Factor

Members
  • Content Count

    6
  • Joined

  • Last visited

Posts posted by Factor


  1. Hello! I'm using Ubuntu 20 Focal fossa in my Raspberry Pi 3B+. I installed a Ubuntu mate (18.01) in the raspberry and the same error occurred.

     

    Quote

    ../common/atomic.h:107:2: error: #error Your Target Platfrom is not supported
      107 | #error Your Target Platfrom is not supported
          |  ^~~~~

     

    My uname below:

    Quote

    $ uname -a
    Linux rasp-dan 5.4.0-1007-raspi #7-Ubuntu SMP Mon Mar 30 10:08:22 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux

     

     

    Is there any forecast for updating the emulator for this type of system?


  2. With the help of @4144 I got to a possible solution:

    Open common folder

    $ cd
    $ cd Hercules/src/common

    Edit atomic.h with your text editor:

    $ sudo vim atomic.h

    or 

    $ sudo nano atomic.h

     

    Go to the line 159 or locate this line of code:

     

    // The __sync functions are available on x86 or ARMv6+
    #if !defined(__x86_64__) && !defined(__i386__) \
            && ( !defined(__ARM_ARCH_VERSION__) || __ARM_ARCH_VERSION__ < 6 )
    #error Your Target Platfrom is not supported
    #endif

     

    Comment this line: 

    #error Your Target Platfrom is not supported
    

    It will be like this:

    // The __sync functions are available on x86 or ARMv6+
    #if !defined(__x86_64__) && !defined(__i386__) \
            && ( !defined(__ARM_ARCH_VERSION__) || __ARM_ARCH_VERSION__ < 6 )
    //#error Your Target Platfrom is not supported
    #endif

    Go back to Hercules folder:

    $ cd
    $ cd Hercules
    $ make clean
    $ make sql

    Leave comments here, but for now I think its solved!


  3. hello guys! I'm having an error while I try to make sql after ./configure command in my ubuntu mate.

    The result and error i get:

    Spoiler

    $ ./configure
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking minix/config.h usability... no
    checking minix/config.h presence... no
    checking for minix/config.h... no
    checking whether it is safe to define __EXTENSIONS__... yes
    checking host OS... Linux
    checking whether make sets $(MAKE)... yes
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ISO C89... (cached) none needed
    checking how to run the C preprocessor... gcc -E
    checking for ar... /usr/bin/ar
    checking whether gcc supports -std=c11... yes
    checking whether byte ordering is bigendian... no
    checking whether gcc produces 32bit code... no
    checking whether gcc supports __thread specifier (TLS)... yes
    checking whether gcc accepts -rdynamic... yes
    checking whether gcc supports -Wno-unused-parameter... yes
    checking whether gcc can actually use -Wno-unused-parameter... yes
    checking whether gcc supports -Wno-clobbered... yes
    checking whether gcc supports -Wempty-body... yes
    checking whether gcc supports -Wnewline-eof... no
    checking whether gcc supports -Wint-conversion... yes
    checking whether gcc supports -Winit-self... yes
    checking whether gcc supports -Wpointer-arith... yes
    checking whether gcc supports -Wswitch-bool... yes
    checking whether gcc supports -Wenum-conversion... no
    checking whether gcc supports -Wshorten-64-to-32... no
    checking whether gcc supports -Wconstant-conversion... no
    checking whether gcc supports -Wbool-conversion... no
    checking whether gcc supports -Wformat-security... yes
    checking whether gcc supports -Wformat... yes
    checking whether gcc supports -Wformat-signedness... yes
    checking whether gcc supports -Wformat-y2k... yes
    checking whether gcc supports -Wmissing-include-dirs... no
    checking whether gcc supports -Wsuggest-attribute=noreturn... yes
    checking whether gcc supports -Wundef... yes
    checking whether gcc supports -Wnested-externs... yes
    checking whether gcc supports -Wold-style-definition... yes
    checking whether gcc supports -Woverlength-strings... yes
    checking whether gcc supports -Wredundant-decls... yes
    checking whether gcc supports -Wcast-qual... yes
    checking whether gcc supports -Wmisleading-indentation... yes
    checking whether gcc supports -Wnull-dereference... yes
    checking whether gcc supports -Wvla... yes
    checking whether gcc supports -Wno-format-nonliteral... yes
    checking whether gcc supports -Wno-switch... yes
    checking whether gcc supports -Wno-missing-field-initializers... yes
    checking whether gcc supports -Wno-suggest-attribute=format... yes
    checking whether gcc supports -Wshadow... yes
    checking whether gcc can efficiently use -Wshadow... yes
    checking whether gcc supports -fPIC... yes
    checking how to make shared objects... -shared yes
    checking whether gcc needs -Wl,--no-undefined to check for undefined references in shared objects... yes
    checking whether gcc supports -fno-strict-aliasing... yes
    checking for setrlimit... yes
    checking for strnlen... yes
    checking for uselocale... yes
    checking for newlocale... yes
    checking for freelocale... yes
    checking xlocale.h usability... no
    checking xlocale.h presence... no
    checking for xlocale.h... no
    checking whether gcc supports -fno-omit-frame-pointer... yes
    checking whether gcc supports -funwind-tables... yes
    checking for gawk... gawk
    checking unwind.h usability... yes
    checking unwind.h presence... yes
    checking for unwind.h... yes
    checking for _Unwind_Backtrace... yes
    checking __sync extensions... yes
    checking __atomic extensions... yes
    checking output filetype... elf64
    checking for mmap... yes
    checking for dl_iterate_phdr... yes
    checking for fcntl... yes
    checking whether strnlen is declared... yes
    checking for lstat... yes
    checking for readlink... yes
    checking for getexecname... no
    checking whether gcc supports -fno-var-tracking... yes
    checking for MinGW... no
    checking for library containing inflateEnd... -lz
    checking zlib.h usability... yes
    checking zlib.h presence... yes
    checking for zlib.h... yes
    checking for library containing sqrt... -lm
    checking for library containing clock_gettime... none required
    checking whether CLOCK_MONOTONIC is supported and works... yes
    checking for library containing pthread_create... -lpthread
    checking for library containing pthread_sigmask... none required
    checking for library containing pthread_attr_init... none required
    checking for library containing pthread_attr_setstacksize... none required
    checking for library containing pthread_attr_destroy... none required
    checking for library containing pthread_cancel... none required
    checking for library containing pthread_join... none required
    checking execinfo.h usability... yes
    checking execinfo.h presence... yes
    checking for execinfo.h... yes
    checking for library containing backtrace... none required
    checking for mysql_config... /usr/bin/mysql_config
    checking for mysql_init... yes
    checking mysql.h usability... yes
    checking mysql.h presence... yes
    checking for mysql.h... yes
    checking whether my_bool is supported (MySQL)... yes
    checking MySQL library (required)... yes (10.1.44)
    checking PCRE library... checking pcre.h usability... yes
    checking pcre.h presence... yes
    checking for pcre.h... yes
    checking for library containing pcre_study... -lpcre
    checking for doxygen... yes
    checking for perl... yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating src/common/Makefile
    config.status: creating 3rdparty/mt19937ar/Makefile
    config.status: creating 3rdparty/libconfig/Makefile
    config.status: creating 3rdparty/libbacktrace/Makefile
    config.status: creating 3rdparty/libbacktrace/backtrace-supported.h
    config.status: creating src/char/Makefile
    config.status: creating src/login/Makefile
    config.status: creating src/map/Makefile
    config.status: creating src/plugins/Makefile
    config.status: creating src/test/Makefile
    config.status: creating tools/HPMHookGen/Makefile
    config.status: creating tools/doxygen/Makefile
    $ make clean
    make[1]: Entering directory '/home/hercuser/Hercules/src/common'
            CLEAN   common (build temp files)
            CLEAN   common
    make[1]: Leaving directory '/home/hercuser/Hercules/src/common'
    make[1]: Entering directory '/home/hercuser/Hercules/3rdparty/mt19937ar'
            CLEAN   mt19937ar (build temp files)
            CLEAN   mt19937ar
    make[1]: Leaving directory '/home/hercuser/Hercules/3rdparty/mt19937ar'
    make[1]: Entering directory '/home/hercuser/Hercules/3rdparty/libconfig'
            CLEAN   libconfig (build temp files)
            CLEAN   libconfig
    make[1]: Leaving directory '/home/hercuser/Hercules/3rdparty/libconfig'
    make[1]: Entering directory '/home/hercuser/Hercules/3rdparty/libbacktrace'
            CLEAN   libbacktrace (build temp files)
            CLEAN   libbacktrace
    make[1]: Leaving directory '/home/hercuser/Hercules/3rdparty/libbacktrace'
    make[1]: Entering directory '/home/hercuser/Hercules/src/login'
            CLEAN   login (build temp files)
            CLEAN   login
    make[1]: Leaving directory '/home/hercuser/Hercules/src/login'
    make[1]: Entering directory '/home/hercuser/Hercules/src/char'
            CLEAN   char (build temp files)
            CLEAN   char
    make[1]: Leaving directory '/home/hercuser/Hercules/src/char'
    make[1]: Entering directory '/home/hercuser/Hercules/src/map'
            CLEAN   map (build temp files)
            CLEAN   map
    make[1]: Leaving directory '/home/hercuser/Hercules/src/map'
    make[1]: Entering directory '/home/hercuser/Hercules/src/plugins'
            CLEAN   plugins (build temp files)
            CLEAN   plugins
    make[1]: Leaving directory '/home/hercuser/Hercules/src/plugins'
    make[1]: Entering directory '/home/hercuser/Hercules/src/test'
            CLEAN   test (build temp files)
            CLEAN   test
    make[1]: Leaving directory '/home/hercuser/Hercules/src/test'
    make[1]: Entering directory '/home/hercuser/Hercules/tools/HPMHookGen'
            CLEAN   HPMHookGen
    make[1]: Leaving directory '/home/hercuser/Hercules/tools/HPMHookGen'
    make[1]: Entering directory '/home/hercuser/Hercules/tools/doxygen'
            CLEAN   docs
    make[1]: Leaving directory '/home/hercuser/Hercules/tools/doxygen'
    $ make sql
            MAKE    mt19937ar
    make[1]: Entering directory '/home/hercuser/Hercules/3rdparty/mt19937ar'
            CC      mt19937ar.c
    make[1]: Leaving directory '/home/hercuser/Hercules/3rdparty/mt19937ar'
            MAKE    libconfig
    make[1]: Entering directory '/home/hercuser/Hercules/3rdparty/libconfig'
            CC      libconfig.c
            CC      grammar.c
            CC      scanctx.c
            CC      scanner.c
            CC      strbuf.c
    make[1]: Leaving directory '/home/hercuser/Hercules/3rdparty/libconfig'
            MAKE    libbacktrace
    make[1]: Entering directory '/home/hercuser/Hercules/3rdparty/libbacktrace'
            CC      atomic.c
            CC      dwarf.c
            CC      fileline.c
            CC      posix.c
            CC      print.c
            CC      sort.c
            CC      state.c
            CC      backtrace.c
            CC      simple.c
            CC      nounwind.c
            CC      unknown.c
            CC      read.c
            CC      mmapio.c
            CC      alloc.c
            CC      mmap.c
            CC      elf.c
    make[1]: Leaving directory '/home/hercuser/Hercules/3rdparty/libbacktrace'
            MAKE    common_sql
    make[1]: Entering directory '/home/hercuser/Hercules/src/common'
            MKDIR   obj_all
            CC      conf.c
            CC      db.c
            CC      des.c
            CC      ers.c
            CC      grfio.c
            CC      HPM.c
    In file included from ../common/spinlock.h:31:0,
                     from ../common/console.h:25,
                     from ../common/HPMi.h:24,
                     from HPM.h:29,
                     from HPM.c:23:
    ../common/atomic.h:107:2: error: #error Your Target Platfrom is not supported
     #error Your Target Platfrom is not supported
      ^~~~~
    Makefile:159: recipe for target 'obj_all/HPM.o' failed
    make[1]: *** [obj_all/HPM.o] Error 1
    make[1]: Leaving directory '/home/hercuser/Hercules/src/common'
    Makefile:99: recipe for target 'common_sql' failed
    make: *** [common_sql] Error 2

     

    Anyone can help me to make it work? HPM.o is the problem :(

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.