Thread overview
[phobos] compiling phobos and std.all
Sep 24, 2010
Jonathan M Davis
Sep 24, 2010
Jonathan M Davis
September 23, 2010
Okay, every time that I've built phobos, since std.all was added, it fails to compile with output like this:

make --no-print-directory -f linux.mak OS=posix BUILD=release
cc -c  -m32 -O3 etc/c/zlib/adler32.c -
ogenerated/posix/release/etc/c/zlib/adler32.o
cc -c  -m32 -O3 etc/c/zlib/compress.c -
ogenerated/posix/release/etc/c/zlib/compress.o
cc -c  -m32 -O3 etc/c/zlib/crc32.c -ogenerated/posix/release/etc/c/zlib/crc32.o
cc -c  -m32 -O3 etc/c/zlib/deflate.c -
ogenerated/posix/release/etc/c/zlib/deflate.o
cc -c  -m32 -O3 etc/c/zlib/gzio.c -ogenerated/posix/release/etc/c/zlib/gzio.o
cc -c  -m32 -O3 etc/c/zlib/infback.c -
ogenerated/posix/release/etc/c/zlib/infback.o
cc -c  -m32 -O3 etc/c/zlib/inffast.c -
ogenerated/posix/release/etc/c/zlib/inffast.o
cc -c  -m32 -O3 etc/c/zlib/inflate.c -
ogenerated/posix/release/etc/c/zlib/inflate.o
cc -c  -m32 -O3 etc/c/zlib/inftrees.c -
ogenerated/posix/release/etc/c/zlib/inftrees.o
cc -c  -m32 -O3 etc/c/zlib/trees.c -ogenerated/posix/release/etc/c/zlib/trees.o
cc -c  -m32 -O3 etc/c/zlib/uncompr.c -
ogenerated/posix/release/etc/c/zlib/uncompr.o
cc -c  -m32 -O3 etc/c/zlib/zutil.c -ogenerated/posix/release/etc/c/zlib/zutil.o
dmd -I../druntime/import -w -O -release -nofloat -d -lib -
ofgenerated/posix/release/libphobos2.a ../druntime/lib/libdruntime.a crc32.d
std/algorithm.d std/all.d std/array.d std/base64.d std/bigint.d std/bitmanip.d
std/boxer.d std/compiler.d std/complex.d std/concurrency.d std/container.d
std/contracts.d std/conv.d std/cpuid.d std/cstream.d std/ctype.d std/date.d
std/datebase.d std/dateparse.d std/demangle.d std/encoding.d std/file.d
std/format.d std/functional.d std/getopt.d std/gregorian.d std/intrinsic.d
std/json.d std/loader.d std/math.d std/md5.d std/metastrings.d std/mmfile.d
std/numeric.d std/outbuffer.d std/path.d std/perf.d std/process.d std/random.d
std/range.d std/regex.d std/regexp.d std/signals.d std/socket.d
std/socketstream.d std/stdint.d std/stdio.d std/stdiobase.d std/stream.d
std/string.d std/syserror.d std/system.d std/traits.d std/typecons.d
std/typetuple.d std/uni.d std/uri.d std/utf.d std/variant.d std/xml.d std/zip.d
std/zlib.d std/c/stdarg.d std/c/stdio.d etc/c/zlib.d
std/internal/math/biguintcore.d std/internal/math/biguintnoasm.d
std/internal/math/biguintx86.d std/c/linux/linux.d std/c/linux/socket.d
generated/posix/release/etc/c/zlib/adler32.o
generated/posix/release/etc/c/zlib/compress.o
generated/posix/release/etc/c/zlib/crc32.o
generated/posix/release/etc/c/zlib/deflate.o
generated/posix/release/etc/c/zlib/gzio.o
generated/posix/release/etc/c/zlib/infback.o
generated/posix/release/etc/c/zlib/inffast.o
generated/posix/release/etc/c/zlib/inflate.o
generated/posix/release/etc/c/zlib/inftrees.o
generated/posix/release/etc/c/zlib/trees.o
generated/posix/release/etc/c/zlib/uncompr.o
generated/posix/release/etc/c/zlib/zutil.o
std/all.d(1): Declaration expected, not '"\x0a"'
std/all.d(1): Declaration expected, not '"\x0a"'
std/all.d(1): Declaration expected, not '"\x0a"'
std/all.d(1): Declaration expected, not '"\x0a"'
std/all.d(1): Declaration expected, not '"\x0a"'
std/all.d(1): Declaration expected, not '"\x0a"'
std/all.d(1): Declaration expected, not '"\x0a"'
std/all.d(1): Declaration expected, not '"\x0a"'
std/all.d(1): Declaration expected, not '"\x0a"'
std/all.d(1): Declaration expected, not '"\x0a"'
std/all.d(1): Declaration expected, not '"\x0a"'
std/all.d(1): Declaration expected, not '"\x0a"'
std/all.d(1): Declaration expected, not '"\x0a"'
std/all.d(1): Declaration expected, not '"\x0a"'
std/all.d(1): Declaration expected, not '"\x0a"'
std/all.d(1): Declaration expected, not '"\x0a"'
std/all.d(1): Declaration expected, not '"\x0a"'
std/all.d(1): Declaration expected, not '"\x0a"'
std/all.d(1): Declaration expected, not '"\x0a"'
std/all.d(1): Declaration expected, not '"\x0a"'
std/all.d(1): Declaration expected, not '"\x0a"'
make[1]: *** [generated/posix/release/libphobos2.a] Error 1
make: *** [release] Error 2


Every time, I have to go into std.all, replace of the extraneous "\n"s with actual newlines and change all of the std/ to std. for it to compile. What's the deal with this? This can't possibly be happening on the main build machine or it would have long ago been fixed. All I can guess is that I'm doing something wrong, since if everyone else were seeing it, it would have been fixed by now.

- Jonathan M Davis
September 23, 2010
std.all should not be in posix.mak anymore.

Andrei

On 09/23/2010 08:23 PM, Jonathan M Davis wrote:
> Okay, every time that I've built phobos, since std.all was added, it fails to compile with output like this:
>
> make --no-print-directory -f linux.mak OS=posix BUILD=release
> cc -c  -m32 -O3 etc/c/zlib/adler32.c -
> ogenerated/posix/release/etc/c/zlib/adler32.o
> cc -c  -m32 -O3 etc/c/zlib/compress.c -
> ogenerated/posix/release/etc/c/zlib/compress.o
> cc -c  -m32 -O3 etc/c/zlib/crc32.c -ogenerated/posix/release/etc/c/zlib/crc32.o
> cc -c  -m32 -O3 etc/c/zlib/deflate.c -
> ogenerated/posix/release/etc/c/zlib/deflate.o
> cc -c  -m32 -O3 etc/c/zlib/gzio.c -ogenerated/posix/release/etc/c/zlib/gzio.o
> cc -c  -m32 -O3 etc/c/zlib/infback.c -
> ogenerated/posix/release/etc/c/zlib/infback.o
> cc -c  -m32 -O3 etc/c/zlib/inffast.c -
> ogenerated/posix/release/etc/c/zlib/inffast.o
> cc -c  -m32 -O3 etc/c/zlib/inflate.c -
> ogenerated/posix/release/etc/c/zlib/inflate.o
> cc -c  -m32 -O3 etc/c/zlib/inftrees.c -
> ogenerated/posix/release/etc/c/zlib/inftrees.o
> cc -c  -m32 -O3 etc/c/zlib/trees.c -ogenerated/posix/release/etc/c/zlib/trees.o
> cc -c  -m32 -O3 etc/c/zlib/uncompr.c -
> ogenerated/posix/release/etc/c/zlib/uncompr.o
> cc -c  -m32 -O3 etc/c/zlib/zutil.c -ogenerated/posix/release/etc/c/zlib/zutil.o
> dmd -I../druntime/import -w -O -release -nofloat -d -lib -
> ofgenerated/posix/release/libphobos2.a ../druntime/lib/libdruntime.a crc32.d
> std/algorithm.d std/all.d std/array.d std/base64.d std/bigint.d std/bitmanip.d
> std/boxer.d std/compiler.d std/complex.d std/concurrency.d std/container.d
> std/contracts.d std/conv.d std/cpuid.d std/cstream.d std/ctype.d std/date.d
> std/datebase.d std/dateparse.d std/demangle.d std/encoding.d std/file.d
> std/format.d std/functional.d std/getopt.d std/gregorian.d std/intrinsic.d
> std/json.d std/loader.d std/math.d std/md5.d std/metastrings.d std/mmfile.d
> std/numeric.d std/outbuffer.d std/path.d std/perf.d std/process.d std/random.d
> std/range.d std/regex.d std/regexp.d std/signals.d std/socket.d
> std/socketstream.d std/stdint.d std/stdio.d std/stdiobase.d std/stream.d
> std/string.d std/syserror.d std/system.d std/traits.d std/typecons.d
> std/typetuple.d std/uni.d std/uri.d std/utf.d std/variant.d std/xml.d std/zip.d
> std/zlib.d std/c/stdarg.d std/c/stdio.d etc/c/zlib.d
> std/internal/math/biguintcore.d std/internal/math/biguintnoasm.d
> std/internal/math/biguintx86.d std/c/linux/linux.d std/c/linux/socket.d
> generated/posix/release/etc/c/zlib/adler32.o
> generated/posix/release/etc/c/zlib/compress.o
> generated/posix/release/etc/c/zlib/crc32.o
> generated/posix/release/etc/c/zlib/deflate.o
> generated/posix/release/etc/c/zlib/gzio.o
> generated/posix/release/etc/c/zlib/infback.o
> generated/posix/release/etc/c/zlib/inffast.o
> generated/posix/release/etc/c/zlib/inflate.o
> generated/posix/release/etc/c/zlib/inftrees.o
> generated/posix/release/etc/c/zlib/trees.o
> generated/posix/release/etc/c/zlib/uncompr.o
> generated/posix/release/etc/c/zlib/zutil.o
> std/all.d(1): Declaration expected, not '"\x0a"'
> std/all.d(1): Declaration expected, not '"\x0a"'
> std/all.d(1): Declaration expected, not '"\x0a"'
> std/all.d(1): Declaration expected, not '"\x0a"'
> std/all.d(1): Declaration expected, not '"\x0a"'
> std/all.d(1): Declaration expected, not '"\x0a"'
> std/all.d(1): Declaration expected, not '"\x0a"'
> std/all.d(1): Declaration expected, not '"\x0a"'
> std/all.d(1): Declaration expected, not '"\x0a"'
> std/all.d(1): Declaration expected, not '"\x0a"'
> std/all.d(1): Declaration expected, not '"\x0a"'
> std/all.d(1): Declaration expected, not '"\x0a"'
> std/all.d(1): Declaration expected, not '"\x0a"'
> std/all.d(1): Declaration expected, not '"\x0a"'
> std/all.d(1): Declaration expected, not '"\x0a"'
> std/all.d(1): Declaration expected, not '"\x0a"'
> std/all.d(1): Declaration expected, not '"\x0a"'
> std/all.d(1): Declaration expected, not '"\x0a"'
> std/all.d(1): Declaration expected, not '"\x0a"'
> std/all.d(1): Declaration expected, not '"\x0a"'
> std/all.d(1): Declaration expected, not '"\x0a"'
> make[1]: *** [generated/posix/release/libphobos2.a] Error 1
> make: *** [release] Error 2
>
>
> Every time, I have to go into std.all, replace of the extraneous "\n"s with actual newlines and change all of the std/ to std. for it to compile. What's the deal with this? This can't possibly be happening on the main build machine or it would have long ago been fixed. All I can guess is that I'm doing something wrong, since if everyone else were seeing it, it would have been fixed by now.
>
> - Jonathan M Davis
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
September 23, 2010
On Thursday 23 September 2010 19:25:50 Andrei Alexandrescu wrote:
> std.all should not be in posix.mak anymore.

I think that I was using linux.mak, if that matters. Regardless, I just tried with the most recent svn (which appears to have posix.mak and no linux.mak), and the problem is gone (though it's still in 2.049).

- Jonathan M Davis