Subject: bug#10462: Bug Report - Building all tools in 64Bit on Solaris 10.

From: ROBERT JONES <[email-masked]>
Date: Mon, 09 Jan 2012 02:19:46 -0500 (EST)

See below.  The bottom line is the reset of CFLAGS to remove the -m64 
for compiles that link....
Tests that didn't fail didn't have to link with anything else that was 
built when CFLAGS was untouched.

Robert W. Jones

gfp-ip@gfpmtipb:pts9:/build_tools/tools/build/automake-1.11.1/tests
$ grep "^CFLAGS=" 
/appl/archives/build_tools/tools/src/automake-1.11.1/tests/* | more
 
/appl/archives/build_tools/tools/src/automake-1.11.1/tests/ansi3.test:CFLAGS=
 
/appl/archives/build_tools/tools/src/automake-1.11.1/tests/ansi3b.test:CFLAGS=
 
/appl/archives/build_tools/tools/src/automake-1.11.1/tests/ansi5.test:CFLAGS=
 
/appl/archives/build_tools/tools/src/automake-1.11.1/tests/ccnoco.test:CFLAGS=
 
/appl/archives/build_tools/tools/src/automake-1.11.1/tests/ccnoco3.test:CFLAGS=
 
/appl/archives/build_tools/tools/src/automake-1.11.1/tests/cond16.test:CFLAGS=
 
/appl/archives/build_tools/tools/src/automake-1.11.1/tests/cond18.test:CFLAGS=
 
/appl/archives/build_tools/tools/src/automake-1.11.1/tests/cond19.test:CFLAGS=
 
/appl/archives/build_tools/tools/src/automake-1.11.1/tests/cond4.test:CFLAGS=
 
/appl/archives/build_tools/tools/src/automake-1.11.1/tests/depcomp2.test:CFLAGS=
 
/appl/archives/build_tools/tools/src/automake-1.11.1/tests/depend2.test:CFLAGS=
 
/appl/archives/build_tools/tools/src/automake-1.11.1/tests/lex3.test:CFLAGS=
 
/appl/archives/build_tools/tools/src/automake-1.11.1/tests/pr87.test:CFLAGS=
 
/appl/archives/build_tools/tools/src/automake-1.11.1/tests/subobj3.test:CFLAGS=
 
/appl/archives/build_tools/tools/src/automake-1.11.1/tests/substref.test:CFLAGS=
gfp-ip@gfpmtipb:pts9:/build_tools/tools/build/automake-1.11.1/tests
$ egrep "^FAIL:|^CFLAGS|^ld" test-suite.log | more
FAIL: ansi3.test (exit: 2)
CFLAGS=
ld: fatal: file ansi2knr.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to ansi2knr
FAIL: ansi3b.test (exit: 2)
CFLAGS=
ld: fatal: file ansi2knr.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to ansi2knr
FAIL: ansi5.test (exit: 2)
CFLAGS=
ld: fatal: file ansi2knr.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to ansi2knr
FAIL: ccnoco.test (exit: 2)
CFLAGS=
ld: fatal: file wish-a.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to wish
FAIL: ccnoco3.test (exit: 1)
CFLAGS=
ld: fatal: file a.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to wish
FAIL: depend2.test (exit: 2)
CFLAGS=
ld: fatal: file hello.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to hello
ldadd: running libtool --version
ldflags: running libtool --version
FAIL: lex3.test (exit: 2)
CFLAGS=
ld: fatal: file foo.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to foo
FAIL: pr87.test (exit: 1)
CFLAGS=
ld: fatal: file foo.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to foo
FAIL: subobj3.test (exit: 2)
CFLAGS=
ld: fatal: file sub/hello.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to hello
gfp-ip@gfpmtipb:pts9:/build_tools/tools/build/automake-1.11.1/tests
$ grep CFLAGS Makefile
gfp-ip@gfpmtipb:pts9:/build_tools/tools/build/automake-1.11.1/tests
$ grep CFLAGS ../../../MasterBuild
CFLAGS="-m64 -I${INSTARGET}/include"
FCFLAGS="-m64"
export OPTFLAGS CFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS