Project

General

Profile

Bug #6247

debug build failed on sparc after #4185

Added by Igor Kozhukhov about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2015-09-19
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description


/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/cw -_gcc -xO3 -m32 -Wc,-Qassembler-ounrefsym=0 -xregs=no%appl -K pic -xspace -W0,-Lt -Xa  -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -_gcc=-Wno-missing-braces -_gcc=-Wno-sign-compare -_gcc=-Wno-unknown-pragmas -_gcc=-Wno-unused-parameter -_gcc=-Wno-missing-field-initializers -_gcc=-Wno-array-bounds -xc99=%none -Wd,-xsafe=unboundsym -W2,-xwrap_int  -W0,-xglobalstatic -_gcc=-fno-inline-small-functions  -_gcc=-fno-inline-functions-called-once  -_gcc=-fno-ipa-cp    -v -g -Wc,-Qiselect-T1 -xc99=%none -W0,-noglobal  -xdebugformat=stabs  -DTEXT_DOMAIN=\"SUNW_OST_OSLIB\" -D_TS_ERRNO  -I/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/proto/root_sparc/usr/include      -I../common -DPIC -D_REENTRANT -c -I/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr -o pics/edonr.o /ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr/edonr.c
+ /usr/gcc/4.4/bin/gcc -fident -finline -fno-inline-functions -fno-builtin -fno-asm -fdiagnostics-show-option -nodefaultlibs -mno-integer-ldd-std -D__sun -fno-strict-aliasing -fno-unit-at-a-time -fno-optimize-sibling-calls -O2 -m32 -mno-app-regs -fpic -Wall -Wextra -Werror -Wno-missing-braces -Wno-sign-compare -Wno-unknown-pragmas -Wno-unused-parameter -Wno-missing-field-initializers -Wno-array-bounds -std=gnu89 -fno-inline-small-functions -fno-inline-functions-called-once -fno-ipa-cp-gdwarf-2 -std=gnu89 -DTEXT_DOMAIN="SUNW_OST_OSLIB" -D_TS_ERRNO -I/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/proto/root_sparc/usr/include -I../common -DPIC -D_REENTRANT -c -I/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr -o pics/edonr.o /ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr/edonr.c -mcpu=v8 -mno-v8plus
cc1: warnings being treated as errors
/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr/edonr.c: In function 'Q
512':

==== Build errors (DEBUG) ====

/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr/edonr.c:367: error: 's4' may be used uninitialized in this function [-Wuninitialized]
/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr/edonr.c:368: error: 's4' may be used uninitialized in this function [-Wuninitialized]
/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr/edonr.c:369: error: 's4' may be used uninitialized in this function [-Wuninitialized]
/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr/edonr.c:370: error: 's4' may be used uninitialized in this function [-Wuninitialized]
/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr/edonr.c:371: error: 's4' may be used uninitialized in this function [-Wuninitialized]
/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr/edonr.c:372: error: 's4' may be used uninitialized in this function [-Wuninitialized]
/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr/edonr.c:373: error: 's4' may be used uninitialized in this function [-Wuninitialized]
/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr/edonr.c:374: error: 's4' may be used uninitialized in this function [-Wuninitialized]
/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr/edonr.c:379: error: 's4' may be used uninitialized in this function [-Wuninitialized]
/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr/edonr.c:380: error: 's4' may be used uninitialized in this function [-Wuninitialized]
/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr/edonr.c:381: error: 's4' may be used uninitialized in this function [-Wuninitialized]
/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr/edonr.c:382: error: 's4' may be used uninitialized in this function [-Wuninitialized]
/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr/edonr.c:383: error: 's4' may be used uninitialized in this function [-Wuninitialized]
/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr/edonr.c:384: error: 's4' may be used uninitialized in this function [-Wuninitialized]
/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr/edonr.c:385: error: 's4' may be used uninitialized in this function [-Wuninitialized]
/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr/edonr.c:386: error: 's4' may be used uninitialized in this function [-Wuninitialized]
/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr/edonr.c:599: error: 's4' may be used uninitialized in this function [-Wuninitialized]
/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr/edonr.c:609: error: 's4' may be used uninitialized in this function [-Wuninitialized]
/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr/edonr.c:638: error: 's4' may be used uninitialized in this function [-Wuninitialized]
/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr/edonr.c:648: error: 's4' may be used uninitialized in this function [-Wuninitialized]
/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr/edonr.c:695: error: 's4' may be used uninitialized in this function [-Wuninitialized]
/ws/builds/jenkins/ws/dg/dilos-illumos-git-dbg/usr/src/common/crypto/edonr/edonr.c:709: error: 's4' may be used uninitialized in this function [-Wuninitialized]
dmake: Fatal error: Command failed for target `pics/edonr.o'
dmake: Fatal error: Command failed for target `sparc'
dmake: Fatal error: Command failed for target `libmd'
dmake: Fatal error: Command failed for target `lib'

History

#1

Updated by Igor Kozhukhov about 4 years ago

  • Description updated (diff)
#2

Updated by Igor Kozhukhov about 4 years ago

  • Description updated (diff)
#3

Updated by Gary Mills about 4 years ago

I had the same problem building illumos on my T2000. My fix is to change lib/libmd/sparc/Makefile like this:

 EXTPICS =    ../capabilities/sun4u/sparc/pics/symcap.o \
         ../capabilities/sun4v/sparc/pics/symcap.o

+# Suppress error for edonr.c __asm__ code
+pics/edonr.o := CERRWARN +=    -_gcc=-Wno-uninitialized
+
 .KEEP_STATE:

 all:        $(LIBS)

It doesn't affect the sparcv9 build. The error comes from code in edonr_byteorder.h .

#4

Updated by Igor Kozhukhov about 4 years ago

Gary Mills wrote:

I had the same problem building illumos on my T2000. My fix is to change lib/libmd/sparc/Makefile like this:

[...]

It doesn't affect the sparcv9 build. The error comes from code in edonr_byteorder.h .

it's ok and more better what i did for update Makefile.com for all targets.
you can publish your update.

#5

Updated by Electric Monk about 4 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit 59809f4b954b2b9b06cdf40f4705ad0f7b6bbce5

commit  59809f4b954b2b9b06cdf40f4705ad0f7b6bbce5
Author: Gary Mills <gary_mills@fastmail.fm>
Date:   2015-10-07T04:07:36.000Z

    6247 debug build failed on sparc after #4185
    Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
    Reviewed by: Gordon Ross <gordon.w.ross@gmail.com>
    Reviewed by: Toomas Soome <tsoome@me.com>
    Approved by: Matthew Ahrens <mahrens@delphix.com>

Also available in: Atom PDF