[erlang-questions] otp 18.1.3: compilation failed: error: 'slocked' undeclared (first use in this function)

Matwey V. Kornilov <>
Thu Oct 29 15:16:17 CET 2015


I am sorry, forget it.

29.10.2015 17:07, Matwey V. Kornilov пишет:
> Hello,
>
> I am trying to compile otp 18.1.3 from sources and get the following:
>
> [  269s]  CC    obj/x86_64-suse-linux-gnu/opt/smp/erl_process_dict.o
> [  270s] beam/erl_process.c: In function 'fetch_sys_task':
> [  270s] beam/erl_process.c:10015:13: error: 'slocked' undeclared (first
> use in this function)
> [  270s]          if (slocked)
> [  270s]              ^
> [  270s] beam/erl_process.c:10015:13: note: each undeclared identifier
> is reported only once for each function it appears in
> [  270s] beam/erl_process.c:10016:34: error: 'p' undeclared (first use
> in this function)
> [  270s]              erts_smp_proc_unlock(p, ERTS_PROC_LOCK_STATUS);
> [  270s]                                   ^
> [  270s]  CC    obj/x86_64-suse-linux-gnu/opt/smp/erl_process_lock.o
> [  270s] x86_64-suse-linux-gnu/Makefile:676: recipe for target
> 'obj/x86_64-suse-linux-gnu/opt/smp/erl_process.o' failed
> [  270s] make[3]: *** [obj/x86_64-suse-linux-gnu/opt/smp/erl_process.o]
> Error 1
>
>
> My gcc version is 4.8. Configure options was the following:
>
> ./configure --host=x86_64-suse-linux-gnu --build=x86_64-suse-linux-gnu
> --program-prefix= --disable-dependency-tracking --prefix=/usr
> --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
> --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include
> --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var
> --sharedstatedir=/usr/com --mandir=/usr/share/man
> --infodir=/usr/share/info --disable-dependency-tracking --enable-systemd
> --with-ssl=/usr --enable-threads --enable-smp-support
> --enable-kernel-poll --enable-hipe --enable-shared-zlib
>




More information about the erlang-questions mailing list