dlang-community / drepl

A REPL for D
Boost Software License 1.0
78 stars 20 forks source link

Build fails with DMD master #58

Closed nordlow closed 7 years ago

nordlow commented 7 years ago

Stack trace:

Fetching linenoise ~master (getting selected version)...
Fetching libdparse 0.7.0-beta.2 (getting selected version)...
WARNING: A deprecated branch based version specification is used for the dependency linenoise. Please use numbered versions instead. Also note that you can still use the dub.selections.json file to override a certain dependency to use a branch instead.
Performing "debug" build using dmd for x86_64.
colorize 1.0.5: building configuration "library"...
libdparse 0.7.0-beta.2: building configuration "library"...
drepl 0.1.2: building configuration "console"...
Linking...
/usr/bin/ld: error: cannot find -llinenoise
src/console.d:18: error: undefined reference to 'linenoiseHistoryLoad'
src/console.d:24: error: undefined reference to 'linenoise'
src/console.d:26: error: undefined reference to 'linenoiseHistoryAdd'
src/console.d:27: error: undefined reference to 'linenoiseHistorySave'
collect2: error: ld returned 1 exit status
Error: linker exited with status 1
dmd failed with exit code 1.
wilzbach commented 7 years ago

As pointed out in the newsgroup discussion this is due to cant find linenoise and for the record I just recompiled it with the lastest, greatest DMD and it still worked :)

In case you think that DUB should have a smoother integration with C code -> https://github.com/dlang/dub/issues/852

nordlow commented 7 years ago

Ok, thanks.