digitalmars.D - How to build dub from source on Raspberry PI 4 , freebsd-OS, having a
- Alain De Vos (21/21) Jan 16 2023 Cloned the git sources of dub.
- Richard (Rikki) Andrew Cattermole (6/6) Jan 16 2023 For dmd to specify a version to enable you use ``-version=``, for ldc
- Alain De Vos (6/12) Jan 17 2023 The native d-compiler on freebsd-arm64 is ldc2. But it comes
Cloned the git sources of dub. Done: export CC=gcc ldc2 ./build.d Then running build spits out: Using pre-existing version file. To force a rebuild, provide an explicit version (first argument) or remove: /home/freebsd/Git_app/dub/./source/dub/version_.d Building dub using /usr/local/bin/ldc2 (dflags: ["-g", "-O", "-w"]), this may take a while... Command `["/usr/local/bin/ldc2", "-of/home/freebsd/Git_app/dub/./bin/dub", "-I/home/freebsd/Git_app/dub/./source", "-version=DubUseCurl", "-version=DubApplication", "-g", "-O", "-w", " build-files.txt"]` failed, output was: ldc2: for the --version option: does not allow a value! 'DubUseCurl' specified. ldc2: for the --version option: does not allow a value! 'DubApplication' specified. What is this ? It gives me the option LDC but it is ldc2 ?
Jan 16 2023
For dmd to specify a version to enable you use ``-version=``, for ldc you use ``--d-version=``. But why is it using ldc2 to compile? Its meant to be using the wrapper ldmd2 which swaps the dmd style to ldc2 style. Also why are you building dub? Does your build of ldc not come with it for some reason?
Jan 16 2023
On Monday, 16 January 2023 at 12:07:29 UTC, Richard (Rikki) Andrew Cattermole wrote:For dmd to specify a version to enable you use ``-version=``, for ldc you use ``--d-version=``. But why is it using ldc2 to compile? Its meant to be using the wrapper ldmd2 which swaps the dmd style to ldc2 style. Also why are you building dub? Does your build of ldc not come with it for some reason?The native d-compiler on freebsd-arm64 is ldc2. But it comes without dub. [No dmd or gdc is available or they have to be build with llvm/gcc/ldc2 ]
Jan 17 2023