libjit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libjit] Error compiling libjit on x86-64


From: Aleksey Demakov
Subject: Re: [Libjit] Error compiling libjit on x86-64
Date: Sat, 22 Oct 2016 22:03:11 +0600

Hi Rajan,

I reproduced the problem and pushed a quick fix to the repository.
Please check if it works for you,

Regards,
Aleksey

On Mon, Oct 17, 2016 at 11:03 AM, Rajan Walia <address@hidden> wrote:
> Hi,
>  I am trying to compile libjit on x86-64 system and getting this error
> while running make.
>
> address@hidden:~/work/lightning.rkt/libjit% make
> make  all-recursive
> make[1]: Entering directory '/home/rajan/work/lightning.rkt/libjit'
> Making all in tools
> ....
> make[3]: Entering directory '/home/rajan/work/lightning.rkt/libjit/jit'
> /bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
> -I..    -I../include -I../include -I. -I. -fno-gcse -g -O2 -Wall
> -fno-omit-frame-pointer -MT jit-apply-x86-64.lo -MD -MP -MF
> .deps/jit-apply-x86-64.Tpo -c -o jit-apply-x86-64.lo
> jit-apply-x86-64.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include
> -I../include -I. -I. -fno-gcse -g -O2 -Wall -fno-omit-frame-pointer
> -MT jit-apply-x86-64.lo -MD -MP -MF .deps/jit-apply-x86-64.Tpo -c
> jit-apply-x86-64.c  -fPIC -DPIC -o .libs/jit-apply-x86-64.o
> jit-apply-x86-64.c: In function '_jit_create_closure':
> jit-apply-x86-64.c:50:13: warning: unused variable 'signature'
> [-Wunused-variable]
>   jit_type_t signature = (jit_type_t)_type;
>              ^~~~~~~~~
> jit-apply-x86-64.c: In function '_jit_builtin_apply_add_struct':
> jit-apply-x86-64.c:757:14: error: 'jit_apply_builder {aka struct
> <anonymous>}' has no member named 'float_used'; did you mean
> 'word_used'?
>       (builder->float_used < JIT_APPLY_NUM_FLOAT_REGS))
>               ^~
> In file included from jit-apply-x86-64.c:23:0:
> jit-apply-x86-64.c:760:37: error: 'jit_apply_struct {aka struct
> <anonymous>}' has no member named 'float_regs'; did you mean
> 'word_regs'?
>      jit_memcpy(&(builder->apply_args->float_regs[builder->float_used]),
>                                      ^
> jit-internal.h:51:43: note: in definition of macro 'jit_memcpy'
>  # define jit_memcpy(s1, s2, len) (memcpy((s1), (s2), (len)))
>                                            ^~
> jit-apply-x86-64.c:760:57: error: 'jit_apply_builder {aka struct
> <anonymous>}' has no member named 'float_used'; did you mean
> 'word_used'?
>      jit_memcpy(&(builder->apply_args->float_regs[builder->float_used]),
>                                                          ^
> jit-internal.h:51:43: note: in definition of macro 'jit_memcpy'
>  # define jit_memcpy(s1, s2, len) (memcpy((s1), (s2), (len)))
>                                            ^~
> jit-apply-x86-64.c:762:15: error: 'jit_apply_builder {aka struct
> <anonymous>}' has no member named 'float_used'; did you mean
> 'word_used'?
>      ++(builder->float_used);
>                ^~
> jit-apply-x86-64.c:787:15: error: 'jit_apply_builder {aka struct
> <anonymous>}' has no member named 'float_used'; did you mean
> 'word_used'?
>        (builder->float_used < JIT_APPLY_NUM_FLOAT_REGS))
>                ^~
> In file included from jit-apply-x86-64.c:23:0:
> jit-apply-x86-64.c:790:37: error: 'jit_apply_struct {aka struct
> <anonymous>}' has no member named 'float_regs'; did you mean
> 'word_regs'?
>      jit_memcpy(&(builder->apply_args->float_regs[builder->float_used]),
>                                      ^
> jit-internal.h:51:43: note: in definition of macro 'jit_memcpy'
>  # define jit_memcpy(s1, s2, len) (memcpy((s1), (s2), (len)))
>                                            ^~
> jit-apply-x86-64.c:790:57: error: 'jit_apply_builder {aka struct
> <anonymous>}' has no member named 'float_used'; did you mean
> 'word_used'?
>      jit_memcpy(&(builder->apply_args->float_regs[builder->float_used]),
>                                                          ^
> jit-internal.h:51:43: note: in definition of macro 'jit_memcpy'
>  # define jit_memcpy(s1, s2, len) (memcpy((s1), (s2), (len)))
>                                            ^~
> jit-apply-x86-64.c:792:15: error: 'jit_apply_builder {aka struct
> <anonymous>}' has no member named 'float_used'; did you mean
> 'word_used'?
>      ++(builder->float_used);
>                ^~
> jit-apply-x86-64.c:805:14: error: 'jit_apply_builder {aka struct
> <anonymous>}' has no member named 'float_used'; did you mean
> 'word_used'?
>       (builder->float_used < JIT_APPLY_NUM_FLOAT_REGS) &&
>               ^~
> In file included from jit-apply-x86-64.c:23:0:
> jit-apply-x86-64.c:813:37: error: 'jit_apply_struct {aka struct
> <anonymous>}' has no member named 'float_regs'; did you mean
> 'word_regs'?
>      jit_memcpy(&(builder->apply_args->float_regs[builder->float_used]),
>                                      ^
> jit-internal.h:51:43: note: in definition of macro 'jit_memcpy'
>  # define jit_memcpy(s1, s2, len) (memcpy((s1), (s2), (len)))
>                                            ^~
> jit-apply-x86-64.c:813:57: error: 'jit_apply_builder {aka struct
> <anonymous>}' has no member named 'float_used'; did you mean
> 'word_used'?
>      jit_memcpy(&(builder->apply_args->float_regs[builder->float_used]),
>                                                          ^
> jit-internal.h:51:43: note: in definition of macro 'jit_memcpy'
>  # define jit_memcpy(s1, s2, len) (memcpy((s1), (s2), (len)))
>                                            ^~
> jit-apply-x86-64.c:815:15: error: 'jit_apply_builder {aka struct
> <anonymous>}' has no member named 'float_used'; did you mean
> 'word_used'?
>      ++(builder->float_used);
>                ^~
> jit-apply-x86-64.c:819:14: error: 'jit_apply_builder {aka struct
> <anonymous>}' has no member named 'float_used'; did you mean
> 'word_used'?
>       (builder->float_used < JIT_APPLY_NUM_FLOAT_REGS) &&
>               ^~
> In file included from jit-apply-x86-64.c:23:0:
> jit-apply-x86-64.c:824:37: error: 'jit_apply_struct {aka struct
> <anonymous>}' has no member named 'float_regs'; did you mean
> 'word_regs'?
>      jit_memcpy(&(builder->apply_args->float_regs[builder->float_used]),
>                                      ^
> jit-internal.h:51:43: note: in definition of macro 'jit_memcpy'
>  # define jit_memcpy(s1, s2, len) (memcpy((s1), (s2), (len)))
>                                            ^~
> jit-apply-x86-64.c:824:57: error: 'jit_apply_builder {aka struct
> <anonymous>}' has no member named 'float_used'; did you mean
> 'word_used'?
>      jit_memcpy(&(builder->apply_args->float_regs[builder->float_used]),
>                                                          ^
> jit-internal.h:51:43: note: in definition of macro 'jit_memcpy'
>  # define jit_memcpy(s1, s2, len) (memcpy((s1), (s2), (len)))
>                                            ^~
> jit-apply-x86-64.c:826:15: error: 'jit_apply_builder {aka struct
> <anonymous>}' has no member named 'float_used'; did you mean
> 'word_used'?
>      ++(builder->float_used);
>                ^~
> jit-apply-x86-64.c: In function '_jit_builtin_apply_get_struct':
> jit-apply-x86-64.c:875:14: error: 'jit_apply_builder {aka struct
> <anonymous>}' has no member named 'float_used'; did you mean
> 'word_used'?
>       (builder->float_used < JIT_APPLY_NUM_FLOAT_REGS))
>               ^~
> In file included from jit-apply-x86-64.c:23:0:
> jit-apply-x86-64.c:879:31: error: 'jit_apply_struct {aka struct
> <anonymous>}' has no member named 'float_regs'; did you mean
> 'word_regs'?
>           &(builder->apply_args->float_regs[builder->float_used]),
>                                ^
> jit-internal.h:51:49: note: in definition of macro 'jit_memcpy'
>  # define jit_memcpy(s1, s2, len) (memcpy((s1), (s2), (len)))
>                                                  ^~
> jit-apply-x86-64.c:879:51: error: 'jit_apply_builder {aka struct
> <anonymous>}' has no member named 'float_used'; did you mean
> 'word_used'?
>           &(builder->apply_args->float_regs[builder->float_used]),
>                                                    ^
> jit-internal.h:51:49: note: in definition of macro 'jit_memcpy'
>  # define jit_memcpy(s1, s2, len) (memcpy((s1), (s2), (len)))
>                                                  ^~
> jit-apply-x86-64.c:881:15: error: 'jit_apply_builder {aka struct
> <anonymous>}' has no member named 'float_used'; did you mean
> 'word_used'?
>      ++(builder->float_used);
>                ^~
> jit-apply-x86-64.c:886:18: warning: unused variable 'align' 
> [-Wunused-variable]
>      unsigned int align = jit_type_get_alignment(struct_type);
>                   ^~~~~
> jit-apply-x86-64.c:907:15: error: 'jit_apply_builder {aka struct
> <anonymous>}' has no member named 'float_used'; did you mean
> 'word_used'?
>        (builder->float_used < JIT_APPLY_NUM_FLOAT_REGS))
>                ^~
> In file included from jit-apply-x86-64.c:23:0:
> jit-apply-x86-64.c:911:31: error: 'jit_apply_struct {aka struct
> <anonymous>}' has no member named 'float_regs'; did you mean
> 'word_regs'?
>           &(builder->apply_args->float_regs[builder->float_used]),
>                                ^
> jit-internal.h:51:49: note: in definition of macro 'jit_memcpy'
>  # define jit_memcpy(s1, s2, len) (memcpy((s1), (s2), (len)))
>                                                  ^~
> jit-apply-x86-64.c:911:51: error: 'jit_apply_builder {aka struct
> <anonymous>}' has no member named 'float_used'; did you mean
> 'word_used'?
>           &(builder->apply_args->float_regs[builder->float_used]),
>                                                    ^
> jit-internal.h:51:49: note: in definition of macro 'jit_memcpy'
>  # define jit_memcpy(s1, s2, len) (memcpy((s1), (s2), (len)))
>                                                  ^~
> jit-apply-x86-64.c:913:15: error: 'jit_apply_builder {aka struct
> <anonymous>}' has no member named 'float_used'; did you mean
> 'word_used'?
>      ++(builder->float_used);
>                ^~
> jit-apply-x86-64.c:927:14: error: 'jit_apply_builder {aka struct
> <anonymous>}' has no member named 'float_used'; did you mean
> 'word_used'?
>       (builder->float_used < JIT_APPLY_NUM_FLOAT_REGS) &&
>               ^~
> In file included from jit-apply-x86-64.c:23:0:
> jit-apply-x86-64.c:937:31: error: 'jit_apply_struct {aka struct
> <anonymous>}' has no member named 'float_regs'; did you mean
> 'word_regs'?
>           &(builder->apply_args->float_regs[builder->float_used]),
>                                ^
> jit-internal.h:51:49: note: in definition of macro 'jit_memcpy'
>  # define jit_memcpy(s1, s2, len) (memcpy((s1), (s2), (len)))
>                                                  ^~
> jit-apply-x86-64.c:937:51: error: 'jit_apply_builder {aka struct
> <anonymous>}' has no member named 'float_used'; did you mean
> 'word_used'?
>           &(builder->apply_args->float_regs[builder->float_used]),
>                                                    ^
> jit-internal.h:51:49: note: in definition of macro 'jit_memcpy'
>  # define jit_memcpy(s1, s2, len) (memcpy((s1), (s2), (len)))
>                                                  ^~
> jit-apply-x86-64.c:939:15: error: 'jit_apply_builder {aka struct
> <anonymous>}' has no member named 'float_used'; did you mean
> 'word_used'?
>      ++(builder->float_used);
>                ^~
> jit-apply-x86-64.c:943:14: error: 'jit_apply_builder {aka struct
> <anonymous>}' has no member named 'float_used'; did you mean
> 'word_used'?
>       (builder->float_used < JIT_APPLY_NUM_FLOAT_REGS) &&
>               ^~
> In file included from jit-apply-x86-64.c:23:0:
> jit-apply-x86-64.c:949:31: error: 'jit_apply_struct {aka struct
> <anonymous>}' has no member named 'float_regs'; did you mean
> 'word_regs'?
>           &(builder->apply_args->float_regs[builder->float_used]),
>                                ^
> jit-internal.h:51:49: note: in definition of macro 'jit_memcpy'
>  # define jit_memcpy(s1, s2, len) (memcpy((s1), (s2), (len)))
>                                                  ^~
> jit-apply-x86-64.c:949:51: error: 'jit_apply_builder {aka struct
> <anonymous>}' has no member named 'float_used'; did you mean
> 'word_used'?
>           &(builder->apply_args->float_regs[builder->float_used]),
>                                                    ^
> jit-internal.h:51:49: note: in definition of macro 'jit_memcpy'
>  # define jit_memcpy(s1, s2, len) (memcpy((s1), (s2), (len)))
>                                                  ^~
> jit-apply-x86-64.c:951:15: error: 'jit_apply_builder {aka struct
> <anonymous>}' has no member named 'float_used'; did you mean
> 'word_used'?
>      ++(builder->float_used);
>                ^~
> jit-apply-x86-64.c:961:18: warning: unused variable 'align' 
> [-Wunused-variable]
>      unsigned int align = jit_type_get_alignment(struct_type);
>                   ^~~~~
> jit-apply-x86-64.c:970:16: warning: unused variable 'align' 
> [-Wunused-variable]
>    unsigned int align = jit_type_get_alignment(struct_type);
>                 ^~~~~
> make[3]: *** [Makefile:595: jit-apply-x86-64.lo] Error 1
> make[3]: Leaving directory '/home/rajan/work/lightning.rkt/libjit/jit'
> make[2]: *** [Makefile:454: all] Error 2
> make[2]: Leaving directory '/home/rajan/work/lightning.rkt/libjit/jit'
> make[1]: *** [Makefile:430: all-recursive] Error 1
> make[1]: Leaving directory '/home/rajan/work/lightning.rkt/libjit'
> make: *** [Makefile:362: all] Error 2
>
>
>
> * gcc version info
> Using built-in specs.
> COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.1/lto-wrapper
> Target: x86_64-pc-linux-gnu
> Configured with: /build/gcc/src/gcc/configure --prefix=/usr
> --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man
> --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/
> --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++
> --enable-shared --enable-threads=posix --enable-libmpx
> --with-system-zlib --with-isl --enable-__cxa_atexit
> --disable-libunwind-exceptions --enable-clocale=gnu
> --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object
> --enable-linker-build-id --enable-lto --enable-plugin
> --enable-install-libiberty --with-linker-hash-style=gnu
> --enable-gnu-indirect-function --disable-multilib --disable-werror
> --enable-checking=release
> Thread model: posix
> gcc version 6.2.1 20160830 (GCC)
>
>
>
> * Processor information:
> Architecture:          x86_64
> CPU op-mode(s):        32-bit, 64-bit
> Byte Order:            Little Endian
> CPU(s):                4
> On-line CPU(s) list:   0-3
> Thread(s) per core:    2
> Core(s) per socket:    2
> Socket(s):             1
> NUMA node(s):          1
> Vendor ID:             GenuineIntel
> CPU family:            6
> Model:                 61
> Model name:            Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz
> Stepping:              4
> CPU MHz:               2400.146
> CPU max MHz:           3000.0000
> CPU min MHz:           500.0000
> BogoMIPS:              4790.48
> Virtualization:        VT-x
> L1d cache:             32K
> L1i cache:             32K
> L2 cache:              256K
> L3 cache:              4096K
> NUMA node0 CPU(s):     0-3
> Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep
> mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht
> tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts
> rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq
> dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid
> sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx
> f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt tpr_shadow vnmi
> flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms
> invpcid rdseed adx smap xsaveopt dtherm ida arat pln pts
>
>
> Looking at the gen-apply.c it looks like num_float_args are coming out
> to be zero and the struct doesn't have float_regs in it. I have
> attached jit-apply-rules.h or link
> https://gist.github.com/rjnw/104dd6f5feb7b99bbff744dc5fa707bb
> Any help will be greatly appreciated.
> Thanks,
> Rajan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]