View previous topic :: View next topic |
Author |
Message |
mus1876
Joined: 26 Aug 2007 Posts: 2
|
Posted: Sun Aug 26, 2007 12:41 pm Post subject: Build problems on Ubuntu 7.04 (x86_64) |
|
|
Hi,
I'm having trouble to build bud in order to use Derelict.
The version of GCC/GDC is :
gdc (GCC) 4.1.2 20070214 ( (gdc 0.24, using dmd 1.020))
After downloading and extracting into the directory bud-3.04 the following errors come up when executing 'make -f Makefile.gdc':
gdmd -op -release -inline -ofbuild build.d util/pathex_bn.d util/pathex.d source_bn.d util/str.d build_bn.d util/booltype.d util/fdt_bn.d util/str_bn.d source.d util/fdt.d util/fileex.d util/fileex_bn.d util/linetoken.d util/linetoken_bn.d util/macro.d util/file2.d
build.d:56: Identifier expected following package
build.d:56: ';' expected
build.d:634: identifier expected following '.', not 'macro'
build.d:3348: identifier expected following '.', not 'macro'
source.d:55: Identifier expected following package
source.d:55: ';' expected
source.d:105: Identifier expected following package
source.d:105: ';' expected
source.d:483: identifier expected following '.', not 'macro'
util/macro.d:38: Identifier expected following package
make: *** [build] Fehler 1
As I'm a newbie to D and Derelict I was out of ideas pretty soon |
|
Back to top |
|
|
Auria
Joined: 29 May 2006 Posts: 44
|
Posted: Mon Aug 27, 2007 2:55 pm Post subject: |
|
|
Sad to say, but i never got bud to work correctly with GDC, and with this version i get the same error.
Until it's solved, i'd recommend looking at DSSS/Rebuild, basically it's the same thing but GDC support worked out-of-the-box for me |
|
Back to top |
|
|
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Mon Aug 27, 2007 4:07 pm Post subject: |
|
|
Build(bud) uses "macro" as a variable name in some files but "macro" is a keyword now. |
|
Back to top |
|
|
Auria
Joined: 29 May 2006 Posts: 44
|
Posted: Mon Aug 27, 2007 5:31 pm Post subject: |
|
|
doob wrote: | Build(bud) uses "macro" as a variable name in some files but "macro" is a keyword now. |
yes, i changed that keyword in every file and in the makefiles. it built fine through that part, but it failed in another because of another error... |
|
Back to top |
|
|
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Tue Aug 28, 2007 1:12 pm Post subject: |
|
|
What's the new error, I remember also having some errors compiling bud last time I did it. First it was the macro keyword then it was something else I can't remember now, but I think it had to do with some changes in the latest dmd/gdc, it seems bud's code hasn't been updated in a while. |
|
Back to top |
|
|
mus1876
Joined: 26 Aug 2007 Posts: 2
|
Posted: Tue Aug 28, 2007 3:24 pm Post subject: |
|
|
Thank you guys for your replies so far. |
|
Back to top |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Fri Aug 31, 2007 1:43 am Post subject: |
|
|
doob wrote: | bud's code hasn't been updated in a while. |
New release coming out this weekend. _________________ --
Derek
skype name: derek.j.parnell |
|
Back to top |
|
|
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Fri Aug 31, 2007 6:27 am Post subject: |
|
|
Derek Parnell wrote: | New release coming out this weekend. |
That's good news |
|
Back to top |
|
|
macdonag
Joined: 14 Aug 2007 Posts: 2
|
Posted: Fri Sep 21, 2007 3:00 am Post subject: |
|
|
Any news on the release? I'm having the same problem.
Thanks. |
|
Back to top |
|
|
dholling
Joined: 28 Oct 2007 Posts: 5
|
Posted: Mon Nov 12, 2007 7:49 pm Post subject: |
|
|
same problem here too, but I am using DMD 1.015
I've tried it on Ubuntu 7.04 and 7.10 and both fail |
|
Back to top |
|
|
torhu
Joined: 30 Mar 2006 Posts: 56
|
Posted: Sun Nov 18, 2007 6:39 pm Post subject: |
|
|
All you need to do is to add -v1 to DFLAGS. Compiles both under ubuntu 7.04 and windows for me then. |
|
Back to top |
|
|
revcompgeek
Joined: 24 Nov 2007 Posts: 27
|
Posted: Sat Nov 24, 2007 6:54 pm Post subject: |
|
|
I found that if I rename all instances of macro to something like mmacro, than using make works ok, but doing the "./build build -full -op command" does not work for me. I am on a powerpc mac, so i also had to rename std.c.darwin.darwin to std.c.unix.unix, but after that it worked fine. The actual errors the command gave are:
powerpc-apple-darwin8-gdc-4.0.1: str.o: No such file or directory
powerpc-apple-darwin8-gdc-4.0.1: str_bn.o: No such file or directory
powerpc-apple-darwin8-gdc-4.0.1: linetoken.o: No such file or directory
powerpc-apple-darwin8-gdc-4.0.1: linetoken_bn.o: No such file or directory
powerpc-apple-darwin8-gdc-4.0.1: booltype.o: No such file or directory
powerpc-apple-darwin8-gdc-4.0.1: fdt.o: No such file or directory
powerpc-apple-darwin8-gdc-4.0.1: fdt_bn.o: No such file or directory
powerpc-apple-darwin8-gdc-4.0.1: pathex.o: No such file or directory
powerpc-apple-darwin8-gdc-4.0.1: pathex_bn.o: No such file or directory
powerpc-apple-darwin8-gdc-4.0.1: file2.o: No such file or directory
powerpc-apple-darwin8-gdc-4.0.1: file2_bn.o: No such file or directory
powerpc-apple-darwin8-gdc-4.0.1: fileex.o: No such file or directory
powerpc-apple-darwin8-gdc-4.0.1: fileex_bn.o: No such file or directory
powerpc-apple-darwin8-gdc-4.0.1: mmacro.o: No such file or directory |
|
Back to top |
|
|
revcompgeek
Joined: 24 Nov 2007 Posts: 27
|
Posted: Sat Nov 24, 2007 7:00 pm Post subject: |
|
|
Changing the command to "./build build -full" seems to work for me.
What does the -op at the end of the command do? |
|
Back to top |
|
|
fred.reichbier
Joined: 30 Nov 2007 Posts: 4
|
Posted: Sat Dec 01, 2007 8:12 am Post subject: |
|
|
Hi,
it worked for me with ./build build -full -op -Xstd
Greetings,
Fred |
|
Back to top |
|
|
siegerstein
Joined: 17 Jan 2008 Posts: 8
|
Posted: Thu Jan 17, 2008 5:36 pm Post subject: |
|
|
Also can't build bud:
$ make -f Makefile.unix
dmd -op -release -inline -ofbuild build.d util/pathex_bn.d util/pathex.d source_bn.d util/str.d build_bn.d util/booltype.d util/fdt_bn.d util/str_bn.d source.d util/fdt.d util/fileex.d util/fileex_bn.d util/linetoken.d util/linetoken_bn.d util/macro.d util/file2.d
/opt/dmd/bin/../src/phobos/std/c/stdio.d(190): Error: identifier 'va_list' is not defined
/opt/dmd/bin/../src/phobos/std/c/stdio.d(190): Error: va_list is used as a type
/opt/dmd/bin/../src/phobos/std/c/stdio.d(190): Error: cannot have parameter of type void
/opt/dmd/bin/../src/phobos/std/c/stdio.d(191): Error: identifier 'va_list' is not defined
/opt/dmd/bin/../src/phobos/std/c/stdio.d(191): Error: va_list is used as a type
/opt/dmd/bin/../src/phobos/std/c/stdio.d(191): Error: cannot have parameter of type void
/opt/dmd/bin/../src/phobos/std/c/stdio.d(193): Error: identifier 'va_list' is not defined
/opt/dmd/bin/../src/phobos/std/c/stdio.d(193): Error: va_list is used as a type
/opt/dmd/bin/../src/phobos/std/c/stdio.d(193): Error: cannot have parameter of type void
/opt/dmd/bin/../src/phobos/std/c/stdio.d(247): Error: identifier 'va_list' is not defined
/opt/dmd/bin/../src/phobos/std/c/stdio.d(247): Error: va_list is used as a type
/opt/dmd/bin/../src/phobos/std/c/stdio.d(247): Error: cannot have parameter of type void
/opt/dmd/bin/../src/phobos/std/c/stdio.d(272): Error: identifier 'va_list' is not defined
/opt/dmd/bin/../src/phobos/std/c/stdio.d(272): Error: va_list is used as a type
/opt/dmd/bin/../src/phobos/std/c/stdio.d(272): Error: cannot have parameter of type void
/opt/dmd/bin/../src/phobos/std/c/stdio.d(273): Error: identifier 'va_list' is not defined
/opt/dmd/bin/../src/phobos/std/c/stdio.d(273): Error: va_list is used as a type
/opt/dmd/bin/../src/phobos/std/c/stdio.d(273): Error: cannot have parameter of type void
/opt/dmd/bin/../src/phobos/std/c/stdio.d(275): Error: identifier 'va_list' is not defined
/opt/dmd/bin/../src/phobos/std/c/stdio.d(275): Error: va_list is used as a type
/opt/dmd/bin/../src/phobos/std/c/stdio.d(275): Error: cannot have parameter of type void
/opt/dmd/bin/../src/phobos/std/c/stdio.d(277): Error: identifier 'va_list' is not defined
/opt/dmd/bin/../src/phobos/std/c/stdio.d(277): Error: va_list is used as a type
/opt/dmd/bin/../src/phobos/std/c/stdio.d(277): Error: cannot have parameter of type void
/opt/dmd/bin/../src/phobos/std/utf.d(49): Error: identifier 'Error' is not defined
/opt/dmd/bin/../src/phobos/std/utf.d(49): Error: Error is used as a type
/opt/dmd/bin/../src/phobos/std/utf.d(49): class std.utf.UtfError base type must be class or interface, not void
/opt/dmd/bin/../src/phobos/std/format.d(68): Error: identifier 'Error' is not defined
/opt/dmd/bin/../src/phobos/std/format.d(68): Error: Error is used as a type
/opt/dmd/bin/../src/phobos/std/format.d(68): class std.format.FormatError base type must be class or interface, not void
/opt/dmd/bin/../src/phobos/std/format.d(445): Error: identifier 'va_list' is not defined
/opt/dmd/bin/../src/phobos/std/format.d(445): Error: va_list is used as a type
/opt/dmd/bin/../src/phobos/std/format.d(445): Error: cannot have parameter of type void
/opt/dmd/bin/../src/phobos/std/array.d(6): Error: identifier 'Error' is not defined
/opt/dmd/bin/../src/phobos/std/array.d(6): Error: Error is used as a type
/opt/dmd/bin/../src/phobos/std/array.d(6): class std.array.ArrayBoundsError base type must be class or interface, not void
/opt/dmd/bin/../src/phobos/std/string.d(3434): Error: identifier 'va_list' is not defined
/opt/dmd/bin/../src/phobos/std/string.d(3434): Error: va_list is used as a type
/opt/dmd/bin/../src/phobos/std/string.d(3434): Error: cannot have parameter of type void
make: *** [build] Error 1
$
Digital Mars D Compiler v1.020
bud-3.04
OS: GNU/Linux |
|
Back to top |
|
|
|