Testing issues related to changes made in phobos locally
Akshat Sharma
aksharma.nsut at gmail.com
Mon Mar 24 13:43:26 UTC 2025
I am currently working on a good first issue in the phobos
(https://github.com/dlang/phobos) . So to work on that I referred
to the contribution guide
(https://wiki.dlang.org/Contributing_to_Phobos#Full_build) .
As per the guide , the workflow should be as follows :-
1.Fork Phobos on GitHub
2.Create your own branch
3.Work locally on your new feature or fix (see the tips below)
4.Test your improvements locally
5.Submit your pull request (PR)
I was able to complete the first 3 steps , after which I
installed the DMD compiler (DMD 2.110.0 , windows version) and
took care of the environment variables, but facing some issues in
the 4th step . As per the contributing guide , To unittest the
entire library , we have to run the below given command :
make -j16 -f posix.mak unittest
Unfortunately , it's resulting in the following error :-
$ make -j16 -f posix.mak unittest
posix.mak:1: ===== DEPRECATION NOTICE =====
posix.mak:2: ===== DEPRECATION: posix.mak is deprecated. Please
use generic Makefile instead.
posix.mak:3: ==============================
C:/Dev-Cpp/bin/make.exe -f Makefile unittest
Makefile:142: Extraneous text after `else' directive
Makefile:146: *** only one `else' per conditional. Stop.
make.exe[1]: Entering directory `C:/Users/Aman
Sharma/Desktop/Dlang_help/phobos'
make.exe[1]: Leaving directory `C:/Users/Aman
Sharma/Desktop/Dlang_help/phobos'
C:\Dev-Cpp\bin\make.exe: *** [unittest] Error 2
Would appreciate if someone could offer some help . Or by any
chance is this some bug from phobos ?
More information about the Digitalmars-d-learn
mailing list