FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Build problems on Ubuntu 7.04 (x86_64)
Goto page 1, 2  Next
 
Post new topic   Reply to topic     Forum Index -> Build
View previous topic :: View next topic  
Author Message
mus1876



Joined: 26 Aug 2007
Posts: 2

PostPosted: Sun Aug 26, 2007 12:41 pm    Post subject: Build problems on Ubuntu 7.04 (x86_64) Reply with quote

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 Sad
Back to top
View user's profile Send private message
Auria



Joined: 29 May 2006
Posts: 44

PostPosted: Mon Aug 27, 2007 2:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Mon Aug 27, 2007 4:07 pm    Post subject: Reply with quote

Build(bud) uses "macro" as a variable name in some files but "macro" is a keyword now.
Back to top
View user's profile Send private message
Auria



Joined: 29 May 2006
Posts: 44

PostPosted: Mon Aug 27, 2007 5:31 pm    Post subject: Reply with quote

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... Sad
Back to top
View user's profile Send private message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Tue Aug 28, 2007 1:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
mus1876



Joined: 26 Aug 2007
Posts: 2

PostPosted: Tue Aug 28, 2007 3:24 pm    Post subject: Reply with quote

Thank you guys for your replies so far.
Back to top
View user's profile Send private message
Derek Parnell



Joined: 22 Apr 2004
Posts: 408
Location: Melbourne, Australia

PostPosted: Fri Aug 31, 2007 1:43 am    Post subject: Reply with quote

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
View user's profile Send private message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Fri Aug 31, 2007 6:27 am    Post subject: Reply with quote

Derek Parnell wrote:
New release coming out this weekend.

That's good news
Back to top
View user's profile Send private message
macdonag



Joined: 14 Aug 2007
Posts: 2

PostPosted: Fri Sep 21, 2007 3:00 am    Post subject: Reply with quote

Any news on the release? I'm having the same problem.

Thanks.
Back to top
View user's profile Send private message
dholling



Joined: 28 Oct 2007
Posts: 5

PostPosted: Mon Nov 12, 2007 7:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
torhu



Joined: 30 Mar 2006
Posts: 56

PostPosted: Sun Nov 18, 2007 6:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
revcompgeek



Joined: 24 Nov 2007
Posts: 27

PostPosted: Sat Nov 24, 2007 6:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
revcompgeek



Joined: 24 Nov 2007
Posts: 27

PostPosted: Sat Nov 24, 2007 7:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
fred.reichbier



Joined: 30 Nov 2007
Posts: 4

PostPosted: Sat Dec 01, 2007 8:12 am    Post subject: Reply with quote

Hi,

it worked for me with ./build build -full -op -Xstd Smile

Greetings,

Fred
Back to top
View user's profile Send private message
siegerstein



Joined: 17 Jan 2008
Posts: 8

PostPosted: Thu Jan 17, 2008 5:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Build All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group