www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19342] New: Error in backend/elfobj.c

https://issues.dlang.org/show_bug.cgi?id=19342

          Issue ID: 19342
           Summary: Error in backend/elfobj.c
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: richardpalme5b gmail.com

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

--
Oct 30 2018