Skip to content

Broken build on Windows #89

Closed
Closed

Description

@targos

https://ci.nodejs.org/job/node-compile-windows/22413/label=win-vs2017/console

Error:

09:37:30 v8_base_0.lib(isolate.obj) : error LNK2001: unresolved external symbol v8_Default_embedded_blob_ [c:\workspace\node-compile-windows\node.vcxproj]
09:37:30 v8_base_0.lib(isolate.obj) : error LNK2001: unresolved external symbol v8_Default_embedded_blob_size_ [c:\workspace\node-compile-windows\node.vcxproj]
09:37:30 c:\workspace\node-compile-windows\Release\node.exe : fatal error LNK1120: 2 unresolved externals [c:\workspace\node-compile-windows\node.vcxproj]

Activity

  1. refack commented on Nov 20, 2018

    @refack

    @targos do you know which change made this regression?

  2. targos commented on Nov 20, 2018

    @targos
    MemberAuthor

    @refack Probably this change: v8/v8@bd8ed720cfa
    Corresponding gypfile update: 0b2a344

  3. refack commented on Nov 20, 2018

    @refack

    Thanks. I think it's a GYP bug (it does not map .S files as proper files to compile).
    On it.

  4. bzoz commented on Nov 21, 2018

    @bzoz

    FWIW manually changing embedded.S file type fixes compilation:
    image

  5. bzoz commented on Nov 21, 2018

    @bzoz

    Got it working, a GYP issue:

    diff --git a/tools/gyp/pylib/gyp/generator/msvs.py b/tools/gyp/pylib/gyp/generator/msvs.py
    index 8fe9e5af23..ba585b1bfc 100644
    --- a/tools/gyp/pylib/gyp/generator/msvs.py
    +++ b/tools/gyp/pylib/gyp/generator/msvs.py
    @@ -2171,6 +2171,9 @@ def _MapFileToMsBuildSourceType(source, rule_dependencies,
       elif ext == '.asm':
         group = 'masm'
         element = 'MASM'
    +  elif ext == '.S':
    +    group = 'masm'
    +    element = 'MASM'
       elif ext == '.idl':
         group = 'midl'
         element = 'Midl'
  6. refack commented on Nov 21, 2018

    @refack

    Thanks @bzoz! that's the patch I came up with as well.

  7. bzoz commented on Nov 21, 2018

    @bzoz

    PR with fix: nodejs/node#24553

  8. refack commented on Nov 21, 2018

    @refack

    So FTR windows-32 is a different error:

    08:44:22 c:\workspace\node-compile-windows\deps\v8\src/ia32/assembler-ia32-inl.h(282): error C2440: '?': cannot convert from 'v8::internal::Code' to 'bool' (compiling source file ..\src\snapshot\startup-deserializer.cc) [c:\workspace\node-compile-windows\deps\v8\gypfiles\v8_base_2.vcxproj]
    08:44:22   c:\workspace\node-compile-windows\deps\v8\src/ia32/assembler-ia32-inl.h(282): note: Ambiguous user-defined-conversion (compiling source file ..\src\snapshot\startup-deserializer.cc)
    08:44:22 c:\workspace\node-compile-windows\deps\v8\src/ia32/assembler-ia32-inl.h(281): error C2660: 'v8::internal::Assembler::set_target_address_at': function does not take 2 arguments (compiling source file ..\src\snapshot\startup-deserializer.cc) [c:\workspace\node-compile-windows\deps\v8\gypfiles\v8_base_2.vcxproj]
    
  9. vsemozhetbyt commented on Dec 1, 2018

    @vsemozhetbyt
  10. targos commented on Dec 1, 2018

    @targos
    MemberAuthor

    @ryzokuken fixed the canary branch today. Should be fine in the next build

  11. 108 remaining items

  12. added a commit that references this issue on Mar 9, 2019
  13. added a commit that references this issue on Mar 12, 2019
  14. added a commit that references this issue on Mar 12, 2019
  15. added a commit that references this issue on Mar 12, 2019
  16. added a commit that references this issue on Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions