D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3299 - DMD does not build under Ubuntu linux
Summary: DMD does not build under Ubuntu linux
Status: RESOLVED DUPLICATE of issue 2908
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: Other Linux
: P2 minor
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-04 10:54 UTC by Michael Parrott
Modified: 2014-04-18 09:12 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Michael Parrott 2009-09-04 10:54:12 UTC
Under linux(Ubuntu), building 1.047(+ 1.046, maybe other revisions too), there is the error:
g++ -m32 -c -Wno-deprecated -D__near= -D__pascal= -fno-exceptions -O2 -Ibackend -Itk -D__I86__=1 -DMARS=1 -DTARGET_LINUX=1 -D_DH backend/dwarf.c
backend/dwarf.c:54:26: error: ../mars/mars.h: No such file or directory
backend/dwarf.c: In function ‘void dwarf_initfile(const char*)’:
backend/dwarf.c:453: error: ‘global’ was not declared in this scope
make: *** [dwarf.o] Error 1
Fixing this is simple.

dwarf.c, line 54:

#include "../mars/mars.h"

should be:

#include "../mars.h"

Then it compiles fine.
Comment 1 David Simcha 2009-10-12 20:26:08 UTC

*** This issue has been marked as a duplicate of issue 2908 ***