microsoft / VSLinux

VS extension for C++ Linux development
206 stars 34 forks source link

False-positive on successful build #168

Closed Stardidi closed 5 years ago

Stardidi commented 7 years ago

When compiling my project using VS for Linux, it reports a successful build. However, checking the folder on my remote machine, no executable was produced. Running the actual linker command on that machine also produces an error that VS does not show.

My actual solution configuration is wrong, in that the library file is missing, so I would expect compilation to fail, and it does. However, VS reports incorrectly that it succeeded.

VS2017 Community (26430.16) with Visual C++ for Linux 1.0.6, building to Ubuntu 16.04.2 LTS (GNU/Linux 4.10.0-30-generic x86_64) gcc version 5.4.0 20160609

VS Build output:

_1>------ Build started: Project: master_serverlinux, Configuration: Release x64 ------ 1>Validating architecture 1>Validating sources 1>Copying sources remotely to -removed- 1>Starting remote build 1>Compiling sources: 1>Linking objects ========== Build: 1 succeeded, 0 failed, 13 up-to-date, 0 skipped ==========

direct linking output:

/usr/bin/ld: cannot find -llib/release/raknet/RakNetLibStatic.lib collect2: error: ld returned 1 exit status

robotdad commented 7 years ago

@itodirel do you have a repro you can use to dig into this, or already understand the root cause?

itodirel commented 5 years ago

@Stardidi Hi, is this still a problem? is there a repro we can use?

itodirel commented 5 years ago

I'm not able to reproduce so closing, if it's still an issue please feel free to reopen

Stardidi commented 5 years ago

Unfortunately the setup I had is no longer available, nor am I working on this at the moment, so I cannot provide a repro.

However, because of I'm currently not using VSLinux it's also not a problem for me anymore.