LINK : fatal error LNK1181: cannot open input file 'and'

Bug #590866 reported by Peter Kiss
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
hsbuild
Invalid
High
Haakon Sporsheim

Bug Description

This is the error message I get trying to build json-glib or Clutter (with eliminating json-glib as a dependency). Looks like a syntax error somewhere, but where does this come from?

Revision history for this message
Haakon Sporsheim (ieei) wrote :

I need more info...
If you are building with hsbuild.exe, please use the --verbose switch: hsbuild build --verbose [module]
If you are building with msbuild.exe, please use the /v:d switch.

Attach some of the output if you have problems reading it :)

Revision history for this message
Peter Kiss (yscik) wrote :

Oh, I should have thought of that :)

The problem is here, output path is not quoted:

  "C:\Program Files\OAH Build\bin\link.exe" /DUMP /symbols /OUT:C:\Documents an
  d Settings\yscik\Local Settings\Temp\tmp2C2C.tmp x86/Release/json-glib/json-a
  rray.obj

I changed my temp folder to something without a space and now it works.

Here is the full relevant section if you need more, it's at the DumpSymbols task:

Target "DumpSymbols" in file "C:\Program Files\MSBuild\HSBuild\HSBuild.C.target
s" from project "Y:\dev\code\hs\json-glib\json-glib.hsproj":
Using "DumpSymbols" task from assembly "C:\Program Files\MSBuild\HSBuild\HSBuil
dTasks.dll".
Task "DumpSymbols"
  Command:
  Y:\app\VisualStudio2008\VC\bin\dumpbin.exe /symbols /OUT:"C:\Documents and Se
  ttings\yscik\Local Settings\Temp\tmp2C2C.tmp" x86/Release/json-glib/json-arra
  y.obj
  The "DumpSymbols" task is using "dumpbin.exe" from "Y:\app\VisualStudio2008\V
  C\bin\dumpbin.exe".
  "C:\Program Files\OAH Build\bin\link.exe" /DUMP /symbols /OUT:C:\Documents an
  d Settings\yscik\Local Settings\Temp\tmp2C2C.tmp x86/Release/json-glib/json-a
  rray.obj
  Microsoft (R) COFF/PE Dumper Version 9.00.30729.01
  Copyright (C) Microsoft Corporation. All rights reserved.

Revision history for this message
Haakon Sporsheim (ieei) wrote :

Right! I'll fix it ASAP! Thank you for the bug report!

Changed in hsbuild:
assignee: nobody → Haakon Sporsheim (ieei)
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Haakon Sporsheim (ieei) wrote :

Oh, I just looked over the code, and it does add quotes as it should. The problem is, I realize now, that you have OAH Build installed, which has taken over link.exe (an ugly ugly HACK introduced way back, and the reason for abandoning OAH Build btw). I suggest that you uninstall OAH Build and try building again.

If you have issues getting rid of OAH Build, then you have to do it manually. The best way is to copy "C:\Program Files\OAH Build\bin\link.exe" to "Y:\app\VisualStudio2008\VC\bin" (on your system) and the delete "C:\Program Files\OAH Build".

Sorry for the inconvenience. As I said, OAH Build introduced this ugly link.exe wrapper hack which I'm not very proud of.

Changed in hsbuild:
status: Confirmed → Invalid
Revision history for this message
Peter Kiss (yscik) wrote :

Okay, thank you for the quick reply. My windows system needs some cleaning up anyway :)
I found some other bumps i had to hack around, this might be the cause for those too. Thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.