D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19342 - Error when building dmd/backend/elfobj.c
Summary: Error when building dmd/backend/elfobj.c
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P1 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-30 14:27 UTC by Richard Palme
Modified: 2018-10-31 16:05 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Richard Palme 2018-10-30 14:27:44 UTC
When trying to build dmd v2.083.0-rc.1 on my system (Manjaro Linux), I get an error message which boils down to:

------------------------------------------------------------------------------
c++ -c -o../generated/linux/release/64/elfobj.o -Wno-deprecated -Wstrict-aliasing -Werror -fno-exceptions -fno-rtti -D__pascal= -DMARS=1 -DTARGET_LINUX=1 -DDM_TARGET_CPU_X86=1 -m64 -fPIC -std=gnu++98 -Idmd/root -Idmd/tk -Idmd/backend -I../generated/linux/release/64 -Idmd -DDMDV2=1 -MMD -MF ../generated/linux/release/64/elfobj.deps dmd/backend/elfobj.c
dmd/backend/elfobj.c: In function ‘size_t relsize64(uint)’:
dmd/backend/elfobj.c:2873:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
dmd/backend/elfobj.c: In function ‘size_t relsize32(uint)’:
dmd/backend/elfobj.c:2915:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
------------------------------------------------------------------------------


Since this seems to be related to gcc: My gcc version is 8.2.1