Menu

compilation on alpine linux

vania
2019-11-02
2019-11-08
  • vania

    vania - 2019-11-02

    Hi, trying to compile statifier on Alpine Linux 3.8

    getting this:

    alpine:~/statifier-1.7.4/src# make all-local-64
    ELF_CLASS=64 && mkdir --parents $ELF_CLASS && make ELF_CLASS=$ELF_CLASS all-local-internal
    make[1]: Entering directory '/root/statifier-1.7.4/src'
    gcc -c -m64 -I. -Icpus/x86_64 -I64 -Wall -O2 -g my_gdb/my_ptrace.c -o 64/my_ptrace.o
    In file included from my_gdb/my_ptrace.c:10:0:
    my_gdb/my_ptrace.h:19:7: warning: 'enum __ptrace_request' declared inside parameter list will not be visible outside of this definition or declaration
    enum __ptrace_request request,
    ^~~~~~~~~~~~~~~~
    my_gdb/my_ptrace.c:17:7: warning: 'enum __ptrace_request' declared inside parameter list will not be visible outside of this definition or declaration
    enum __ptrace_request request,
    ^~~~~~~~~~~~~~~~
    my_gdb/my_ptrace.c:17:24: error: parameter 1 ('request') has incomplete type
    enum __ptrace_request request,
    ^~~~~~~
    make[1]: [Makefile:190: 64/my_ptrace.o] Error 1
    make[1]: Leaving directory '/root/statifier-1.7.4/src'
    make:
    [Makefile:159: all-local-64] Error 2

    any idea how to proceed?

    Thanks

     
    • Valery Reznic

      Valery Reznic - 2019-11-06

      Hi.

      Could you please tell me what gcc version you have?

      Valery

      On Saturday, November 2, 2019, 2:40:39 PM GMT+2, vania vania99@users.sourceforge.net wrote:

      Hi, trying to compile statifier on Alpine Linux 3.8

      getting this:

      alpine:~/statifier-1.7.4/src# make all-local-64

      ELF_CLASS=64 && mkdir --parents $ELF_CLASS && make ELF_CLASS=$ELF_CLASS all-local-internal

      make[1]: Entering directory '/root/statifier-1.7.4/src'

      gcc -c -m64 -I. -Icpus/x86_64 -I64 -Wall -O2 -g my_gdb/my_ptrace.c -o 64/my_ptrace.o

      In file included from my_gdb/my_ptrace.c:10:0:

      my_gdb/my_ptrace.h:19:7: warning: 'enum __ptrace_request' declared inside parameter list will not be visible outside of this definition or declaration

      enum __ptrace_request request,

      ^~~~~~~~~~~~~~~~

      my_gdb/my_ptrace.c:17:7: warning: 'enum __ptrace_request' declared inside parameter list will not be visible outside of this definition or declaration

      enum __ptrace_request request,

      ^~~~~~~~~~~~~~~~

      my_gdb/my_ptrace.c:17:24: error: parameter 1 ('request') has incomplete type

      enum __ptrace_request request,

      ^~~~~~~

      make[1]: [Makefile:190: 64/my_ptrace.o] Error 1

      make[1]: Leaving directory '/root/statifier-1.7.4/src'

      make: [Makefile:159: all-local-64] Error 2

      any idea how to proceed?

      Thanks

      compilation on alpine linux

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/statifier/discussion/358806/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
  • vania

    vania - 2019-11-06

    alpine:~# gcc -v
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-alpine-linux-musl/6.4.0/lto-wrapper
    Target: x86_64-alpine-linux-musl
    Configured with: /home/buildozer/aports/main/gcc/src/gcc-6.4.0/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --build=x86_64-alpine-linux-musl --host=x86_64-alpine-linux-musl --target=x86_64-alpine-linux-musl --with-pkgversion='Alpine 6.4.0' --enable-checking=release --disable-fixed-point --disable-libstdcxx-pch --disable-multilib --disable-nls --disable-werror --disable-symvers --enable-__cxa_atexit --enable-default-pie --enable-cloog-backend --enable-languages=c,c++,objc,java,fortran,ada --disable-libssp --disable-libmpx --disable-libmudflap --disable-libsanitizer --enable-shared --enable-threads --enable-tls --with-system-zlib --with-linker-hash-style=gnu
    Thread model: posix
    gcc version 6.4.0 (Alpine 6.4.0)

     
    • Valery Reznic

      Valery Reznic - 2019-11-08

      Please check if you /usr/include/sys/ptrace.h defines enum __ptrace_request
      If not try to find file with this enum

      Valery

      On Wednesday, November 6, 2019, 11:26:09 AM GMT+2, vania vania99@users.sourceforge.net wrote:

      alpine:~# gcc -v

      Using built-in specs.

      COLLECT_GCC=gcc

      COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-alpine-linux-musl/6.4.0/lto-wrapper

      Target: x86_64-alpine-linux-musl

      Configured with: /home/buildozer/aports/main/gcc/src/gcc-6.4.0/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --build=x86_64-alpine-linux-musl --host=x86_64-alpine-linux-musl --target=x86_64-alpine-linux-musl --with-pkgversion='Alpine 6.4.0' --enable-checking=release --disable-fixed-point --disable-libstdcxx-pch --disable-multilib --disable-nls --disable-werror --disable-symvers --enable-__cxa_atexit --enable-default-pie --enable-cloog-backend --enable-languages=c,c++,objc,java,fortran,ada --disable-libssp --disable-libmpx --disable-libmudflap --disable-libsanitizer --enable-shared --enable-threads --enable-tls --with-system-zlib --with-linker-hash-style=gnu

      Thread model: posix

      gcc version 6.4.0 (Alpine 6.4.0)

      compilation on alpine linux

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/statifier/discussion/358806/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.