www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17852] New: cannot compile phobos on freebsd

https://issues.dlang.org/show_bug.cgi?id=17852

          Issue ID: 17852
           Summary: cannot compile phobos on freebsd
           Product: D
           Version: D2
          Hardware: x86
                OS: FreeBSD
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: mengukagan gmail.com

as per the docs on https://wiki.dlang.org/Building_under_Posix and
https://dlang.org/dmd-freebsd.html, make fails to build phobos.

make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 37: Could not
find ../dmd/src/osmodel.mak
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 39: Missing
dependency operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 41: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 44: Missing
dependency operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 47: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 49: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 51: Missing
dependency operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 52: Missing
dependency operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 53: Missing
dependency operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 54: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 55: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 84: Missing
dependency operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 86: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 87: Missing
dependency operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 88: warning:
duplicate script for target "ifeq" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 40: warning:
using previous script for "ifeq" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 88: warning:
duplicate script for target "(,)" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 85: warning:
using previous script for "(,)" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 89: warning:
duplicate script for target "ifeq" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 40: warning:
using previous script for "ifeq" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 89: warning:
duplicate script for target "(,)" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 85: warning:
using previous script for "(,)" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 90: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 92: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 95: Missing
dependency operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 96: warning:
duplicate script for target "ifeq" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 40: warning:
using previous script for "ifeq" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 97: warning:
duplicate script for target "ifeq" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 40: warning:
using previous script for "ifeq" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 98: warning:
duplicate script for target "ifeq" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 40: warning:
using previous script for "ifeq" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 99: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 107: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 111: Missing
dependency operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 112: warning:
duplicate script for target "ifeq" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 40: warning:
using previous script for "ifeq" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 113: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 115: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 119: Missing
dependency operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 120: warning:
duplicate script for target "ifeq" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 40: warning:
using previous script for "ifeq" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 120: warning:
duplicate script for target "(release,debug)" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 112: warning:
using previous script for "(release,debug)" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 121: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 123: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 125: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 127: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 130: Missing
dependency operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 131: warning:
duplicate script for target "ifeq" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 40: warning:
using previous script for "ifeq" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 131: warning:
duplicate script for target "(,)" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 85: warning:
using previous script for "(,)" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 132: warning:
duplicate script for target "ifeq" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 40: warning:
using previous script for "ifeq" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 132: warning:
duplicate script for target "(,)" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 85: warning:
using previous script for "(,)" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 133: warning:
duplicate script for target "ifeq" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 40: warning:
using previous script for "ifeq" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 133: warning:
duplicate script for target "(,)" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 85: warning:
using previous script for "(,)" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 134: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 138: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 149: Missing
dependency operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 150: warning:
duplicate script for target "ifeq" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 40: warning:
using previous script for "ifeq" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 150: warning:
duplicate script for target "(,)" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 85: warning:
using previous script for "(,)" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 154: warning:
duplicate script for target "ifeq" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 40: warning:
using previous script for "ifeq" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 154: warning:
duplicate script for target "(,)" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 85: warning:
using previous script for "(,)" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 155: warning:
duplicate script for target "ifeq" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 40: warning:
using previous script for "ifeq" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 155: warning:
duplicate script for target "(,)" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 85: warning:
using previous script for "(,)" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 156: warning:
duplicate script for target "ifeq" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 40: warning:
using previous script for "ifeq" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 156: warning:
duplicate script for target "(,)" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 85: warning:
using previous script for "(,)" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 158: warning:
duplicate script for target "ifeq" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 40: warning:
using previous script for "ifeq" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 158: warning:
duplicate script for target "(,)" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 85: warning:
using previous script for "(,)" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 159: warning:
duplicate script for target "ifeq" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 40: warning:
using previous script for "ifeq" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 159: warning:
duplicate script for target "(,)" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 85: warning:
using previous script for "(,)" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 160: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 162: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 279: Missing
dependency operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 281: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 283: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 290: Missing
dependency operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 292: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 296: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 323: Missing
dependency operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 332: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 348: Missing
dependency operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 355: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 366: warning:
duplicate script for target "generated//release//unittest/test_runner" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 353: warning:
using previous script for "generated//release//unittest/test_runner" defined
here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 368: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 390: warning:
duplicate script for target "%.test" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 385: warning:
using previous script for "%.test" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 433: Missing
dependency operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 434: warning:
duplicate script for target "ifeq" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 40: warning:
using previous script for "ifeq" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 435: warning:
duplicate script for target "ifeq" ignored
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 40: warning:
using previous script for "ifeq" defined here
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 436: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 443: Missing
dependency operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 445: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 452: Missing
dependency operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 454: Need an
operator
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 458: Need an
operator
make: Unknown modifier ' '
make: "/usr/home/search-master/dmd2/src/phobos/posix.mak" line 484: Need an
operator
make: Fatal errors encountered -- cannot continue
make: stopped in /usr/home/search-master/dmd2/src/phobos

if i compile with gmake then this is what i get:

$ gmake -f posix.mak DMD=~/dmd2/freebsd/bin64/dmd
awk: can't open file ../dmd/VERSION
 source line number 1
awk: can't open file ../dmd/VERSION
 source line number 1
posix.mak:37: ../dmd/src/osmodel.mak: No such file or directory
gmake: *** No rule to make target '../dmd/src/osmodel.mak'.  Stop.

--
Sep 23