Bug 19342 – Error when building dmd/backend/elfobj.c
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2018-10-30T14:27:44Z
Last change time
2018-10-31T16:05:53Z
Assigned to
No Owner
Creator
Richard Palme
Comments
Comment #0 by richardpalme5b — 2018-10-30T14:27:44Z
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
Comment #1 by richardpalme5b — 2018-10-31T16:05:27Z