Master failed to compile on OSX 10.11.5

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Master failed to compile on OSX 10.11.5

Leo Liu-2
 CC obj/x86_64-apple-darwin15.5.0/opt/smp/erl_bif_os.o
 CC obj/x86_64-apple-darwin15.5.0/opt/smp/erl_bif_lists.o
beam/beam_emu.c:5344:51: error: use of undeclared identifier 'next'
                                  "<unknown/%p>", next);
                                                  ^
beam/beam_emu.c:5414:3: error: indirect goto in function with no
      address-of-label expressions
                Goto(*I);
                ^
beam/beam_emu.c:58:21: note: expanded from macro 'Goto'
#  define Goto(Rel) goto *((void *)Rel)
                    ^
2 errors generated.
make[3]: *** [obj/x86_64-apple-darwin15.5.0/opt/smp/beam_emu.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [opt] Error 2
make[1]: *** [smp] Error 2
make: *** [emulator] Error 2

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: Master failed to compile on OSX 10.11.5

Rickard Green-2
On Thu, Jun 2, 2016 at 11:21 AM, Leo Liu <[hidden email]> wrote:

>  CC     obj/x86_64-apple-darwin15.5.0/opt/smp/erl_bif_os.o
>  CC     obj/x86_64-apple-darwin15.5.0/opt/smp/erl_bif_lists.o
> beam/beam_emu.c:5344:51: error: use of undeclared identifier 'next'
>                                   "<unknown/%p>", next);
>                                                   ^
> beam/beam_emu.c:5414:3: error: indirect goto in function with no
>       address-of-label expressions
>                 Goto(*I);
>                 ^
> beam/beam_emu.c:58:21: note: expanded from macro 'Goto'
> #  define Goto(Rel) goto *((void *)Rel)
>                     ^
> 2 errors generated.
> make[3]: *** [obj/x86_64-apple-darwin15.5.0/opt/smp/beam_emu.o] Error 1
> make[3]: *** Waiting for unfinished jobs....
> make[2]: *** [opt] Error 2
> make[1]: *** [smp] Error 2
> make: *** [emulator] Error 2
>
> _______________________________________________
> erlang-questions mailing list
> [hidden email]
> http://erlang.org/mailman/listinfo/erlang-questions


Thanks, it will soon be fixed, however not in 19.0-rc2.

Note that it will build if you don't enable dirty schedulers.

Regards,
Rickard
--
Rickard Green, Erlang/OTP, Ericsson AB
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: [SPAM] Master failed to compile on OSX 10.11.5

Mikael Pettersson-5
In reply to this post by Leo Liu-2
Leo Liu writes:
 >  CC obj/x86_64-apple-darwin15.5.0/opt/smp/erl_bif_os.o
 >  CC obj/x86_64-apple-darwin15.5.0/opt/smp/erl_bif_lists.o
 > beam/beam_emu.c:5344:51: error: use of undeclared identifier 'next'
 >                                   "<unknown/%p>", next);
 >                                                   ^

Unbound variable inside an #ifdef USE_VM_PROBES block.  I notice a similar
block much earlier in the file, and there 'next' _is_ bound.  Could be a
misapplied patch, a broken refactoring, or something like that.

 > beam/beam_emu.c:5414:3: error: indirect goto in function with no
 >       address-of-label expressions
 >                 Goto(*I);
 >                 ^

Inside #ifdef ERTS_DIRTY_SCHEDULERS.  Looks like a blatant bug.  Like the
compiler said, there are no &&label expressions in that function, so the
indirect goto would have nowhere legitimate to go to, if it ever was to
execute.  And despite some claims, you cannot goto from one function to
another and except things to work reliably.
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: Master failed to compile on OSX 10.11.5

Rickard Green-2
In reply to this post by Rickard Green-2
On Thu, Jun 2, 2016 at 12:05 PM, Rickard Green <[hidden email]> wrote:

> On Thu, Jun 2, 2016 at 11:21 AM, Leo Liu <[hidden email]> wrote:
>>  CC     obj/x86_64-apple-darwin15.5.0/opt/smp/erl_bif_os.o
>>  CC     obj/x86_64-apple-darwin15.5.0/opt/smp/erl_bif_lists.o
>> beam/beam_emu.c:5344:51: error: use of undeclared identifier 'next'
>>                                   "<unknown/%p>", next);
>>                                                   ^
>> beam/beam_emu.c:5414:3: error: indirect goto in function with no
>>       address-of-label expressions
>>                 Goto(*I);
>>                 ^
>> beam/beam_emu.c:58:21: note: expanded from macro 'Goto'
>> #  define Goto(Rel) goto *((void *)Rel)
>>                     ^
>> 2 errors generated.
>> make[3]: *** [obj/x86_64-apple-darwin15.5.0/opt/smp/beam_emu.o] Error 1
>> make[3]: *** Waiting for unfinished jobs....
>> make[2]: *** [opt] Error 2
>> make[1]: *** [smp] Error 2
>> make: *** [emulator] Error 2
>>
>> _______________________________________________
>> erlang-questions mailing list
>> [hidden email]
>> http://erlang.org/mailman/listinfo/erlang-questions
>
>
> Thanks, it will soon be fixed, however not in 19.0-rc2.
>
> Note that it will build if you don't enable dirty schedulers.
>
> Regards,
> Rickard
> --
> Rickard Green, Erlang/OTP, Ericsson AB

Fixed in master now. Commit e25df0378738ba17fb66ae0bd947c439ac925800
equals OTP-19.0-rc2 + the fix for this issue.

Regards,
Rickard
--
Rickard Green, Erlang/OTP, Ericsson AB
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: Master failed to compile on OSX 10.11.5

Leo Liu-2
On 2016-06-02 15:34 +0200, Rickard Green wrote:
> Fixed in master now. Commit e25df0378738ba17fb66ae0bd947c439ac925800
> equals OTP-19.0-rc2 + the fix for this issue.

Thanks. Build succeeded.

Leo

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions