public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Compiling gcc-4.1.2 on 64-bit Ubuntu machines
@ 2011-01-19 14:48 Olumide
  2011-01-19 15:01 ` Cedric Roux
  2011-01-19 15:19 ` Jeff Law
  0 siblings, 2 replies; 22+ messages in thread
From: Olumide @ 2011-01-19 14:48 UTC (permalink / raw)
  To: gcc-help

Hi all,

We are trying to compile the gcc compiler a 64-bit Ubuntu machine -- 
because that is the version of gcc that Autodesk Maya 2011 is built with 
and therefore plugins must be compiled against the same version of gcc.
See: 
http://download.autodesk.com/us/maya/2011help/index.html?url=./files/Setting_up_your_build_environment_Linux_compiler_requirement.htm,topicNumber=d0e677620

Following the instructions in this link we ran

configure --prefix=/opt/gcc412 --program-suffix=412 --enable-shared 
--enable-threads=posix --enable-checking=release --with-system-zlib 
--disable-libunwind-exceptions --enable-__cxa_atexit

followed by

make -j 2 bootstrap

Unfortunately, the process build with the error

/usr/include/gnu/stubs.h:7:27:/usr/include/gnu/stubs.h:7:27:  error: 
error: gnu/stubs-32.h: No such file or directorygnu/stubs-32.h: No such 
file or directory

make[4]: *** [32/crtend.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [32/crtbegin.o] Error 1
make[4]: Leaving directory `/home/oaina/Downloads/gcc412/gcc-build/gcc'
make[3]: *** [extra32] Error 2
make[3]: Leaving directory `/home/oaina/Downloads/gcc412/gcc-build/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/home/oaina/Downloads/gcc412/gcc-build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/home/oaina/Downloads/gcc412/gcc-build/gcc'
make: *** [bootstrap] Error 2

We've tried linking the file stubs.h in /usr/include/gnu/ to stubs-32.h 
and tried rebuilding, but this time we get the error message:

/usr/bin/ld: skipping incompatible /usr/lib/../lib/libc.so when 
searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libc.a when searching 
for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[3]: *** [32/libgcc_s.so] Error 1
make[3]: Leaving directory `/home/oaina/Downloads/gcc412/gcc-build/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/home/oaina/Downloads/gcc412/gcc-build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/home/oaina/Downloads/gcc412/gcc-build/gcc'
make: *** [bootstrap] Error 2

-----------------------------------------------------------

Update:
We've set the CFAGS environment variable to m64 and tried rebuilding, 
and this time the process went much further but did eventually fail with 
the error message:

/usr/bin/ld: skipping incompatible /usr/lib/../lib/libc.so when 
searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libc.a when searching 
for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc

Thanks,

- Olumide



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Compiling gcc-4.1.2 on 64-bit Ubuntu machines
  2011-01-19 14:48 Compiling gcc-4.1.2 on 64-bit Ubuntu machines Olumide
@ 2011-01-19 15:01 ` Cedric Roux
  2011-01-19 15:51   ` Olumide
  2011-01-19 15:19 ` Jeff Law
  1 sibling, 1 reply; 22+ messages in thread
From: Cedric Roux @ 2011-01-19 15:01 UTC (permalink / raw)
  To: Olumide; +Cc: gcc-help

On 01/19/2011 03:48 PM, Olumide wrote:
> /usr/include/gnu/stubs.h:7:27:/usr/include/gnu/stubs.h:7:27:
>  error: error: gnu/stubs-32.h: No such file or directorygnu/stubs-32.h:
>  No such file or directory

pass --disable-multilib to configure

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Compiling gcc-4.1.2 on 64-bit Ubuntu machines
  2011-01-19 14:48 Compiling gcc-4.1.2 on 64-bit Ubuntu machines Olumide
  2011-01-19 15:01 ` Cedric Roux
@ 2011-01-19 15:19 ` Jeff Law
  1 sibling, 0 replies; 22+ messages in thread
From: Jeff Law @ 2011-01-19 15:19 UTC (permalink / raw)
  To: Olumide; +Cc: gcc-help

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/19/11 07:48, Olumide wrote:
> Hi all,
> 
> We are trying to compile the gcc compiler a 64-bit Ubuntu machine --
> because that is the version of gcc that Autodesk Maya 2011 is built with
> and therefore plugins must be compiled against the same version of gcc.
> See:
> http://download.autodesk.com/us/maya/2011help/index.html?url=./files/Setting_up_your_build_environment_Linux_compiler_requirement.htm,topicNumber=d0e677620
> 
> 
> Following the instructions in this link we ran
> 
> configure --prefix=/opt/gcc412 --program-suffix=412 --enable-shared
> --enable-threads=posix --enable-checking=release --with-system-zlib
> --disable-libunwind-exceptions --enable-__cxa_atexit
- --disable-multilib or install the glibc.i686 bits.

jeff
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNNwEVAAoJEBRtltQi2kC7088H/1z3zNucyWRk9XQDtc9/ZYlV
bx667TDpuGriGbRVd7ZWQTHQhI2SVTm9sKNwN/9E5EMR5N0PpnoFrvQZCUd1FVti
AbrxAt6DJKJivuOms5/aY4KZnYzUv/diIUuP7y8qBCyp9tm7jEi9Auyeq1R2ipuv
S0f0iuhel2DsOOawJvYjfHqP9FPjZ3naBBJM6K7bQhK+uK6m2bbW6YtWXZpefDQD
VaMX+9eQ+3Jz4HPpZwdrAaHbDCZKKZv42KwYkHIXogjOCFTav7JV13R2Ha5V8m+B
U9R/ZQu4XNi4W9WyGIWfwX8FLYiuFNylhlmR7sZxTKTXY5hoJLfXhqWjLNz51Ak=
=NH0o
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Compiling gcc-4.1.2 on 64-bit Ubuntu machines
  2011-01-19 15:01 ` Cedric Roux
@ 2011-01-19 15:51   ` Olumide
  2011-01-19 16:21     ` Ian Lance Taylor
  0 siblings, 1 reply; 22+ messages in thread
From: Olumide @ 2011-01-19 15:51 UTC (permalink / raw)
  To: gcc-help

On 19/01/2011 15:02, Cedric Roux wrote:
> On 01/19/2011 03:48 PM, Olumide wrote:
>> /usr/include/gnu/stubs.h:7:27:/usr/include/gnu/stubs.h:7:27:
>> error: error: gnu/stubs-32.h: No such file or directorygnu/stubs-32.h:
>> No such file or directory
>
> pass --disable-multilib to configure

The build fails with the following error:

make[6]: Leaving directory `/transfer/gcc412/gcc-4.1.2/build/gcc'
echo timestamp > stmp-multilib
make[5]: Leaving directory `/transfer/gcc412/gcc-4.1.2/build/gcc'
echo timestamp > stage3_build
echo stage3_build > stage_last
make[4]: Leaving directory `/transfer/gcc412/gcc-4.1.2/build/gcc'
make[3]: Leaving directory `/transfer/gcc412/gcc-4.1.2/build/gcc'
make[2]: Leaving directory `/transfer/gcc412/gcc-4.1.2/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/transfer/gcc412/gcc-4.1.2/build'


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Compiling gcc-4.1.2 on 64-bit Ubuntu machines
  2011-01-19 15:51   ` Olumide
@ 2011-01-19 16:21     ` Ian Lance Taylor
  2011-01-19 16:37       ` Olumide
  0 siblings, 1 reply; 22+ messages in thread
From: Ian Lance Taylor @ 2011-01-19 16:21 UTC (permalink / raw)
  To: Olumide; +Cc: gcc-help

Olumide <50295@web.de> writes:

> On 19/01/2011 15:02, Cedric Roux wrote:
>> On 01/19/2011 03:48 PM, Olumide wrote:
>>> /usr/include/gnu/stubs.h:7:27:/usr/include/gnu/stubs.h:7:27:
>>> error: error: gnu/stubs-32.h: No such file or directorygnu/stubs-32.h:
>>> No such file or directory
>>
>> pass --disable-multilib to configure
>
> The build fails with the following error:
>
> make[6]: Leaving directory `/transfer/gcc412/gcc-4.1.2/build/gcc'
> echo timestamp > stmp-multilib
> make[5]: Leaving directory `/transfer/gcc412/gcc-4.1.2/build/gcc'
> echo timestamp > stage3_build
> echo stage3_build > stage_last
> make[4]: Leaving directory `/transfer/gcc412/gcc-4.1.2/build/gcc'
> make[3]: Leaving directory `/transfer/gcc412/gcc-4.1.2/build/gcc'
> make[2]: Leaving directory `/transfer/gcc412/gcc-4.1.2/build'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/transfer/gcc412/gcc-4.1.2/build'

You did not include enough of the make log.  You need to look farther up
to see what the actual error is.

Ian

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Compiling gcc-4.1.2 on 64-bit Ubuntu machines
  2011-01-19 16:21     ` Ian Lance Taylor
@ 2011-01-19 16:37       ` Olumide
  2011-01-19 16:39         ` Andrew Haley
  2011-01-19 16:43         ` Cedric Roux
  0 siblings, 2 replies; 22+ messages in thread
From: Olumide @ 2011-01-19 16:37 UTC (permalink / raw)
  To: gcc-help

On 19/01/2011 16:21, Ian Lance Taylor wrote:
> Olumide<50295@web.de>  writes:
>
>> On 19/01/2011 15:02, Cedric Roux wrote:
>>> On 01/19/2011 03:48 PM, Olumide wrote:
>>>> /usr/include/gnu/stubs.h:7:27:/usr/include/gnu/stubs.h:7:27:
>>>> error: error: gnu/stubs-32.h: No such file or directorygnu/stubs-32.h:
>>>> No such file or directory
>>>
>>> pass --disable-multilib to configure
>>
>> The build fails with the following error:
>> ...
> You did not include enough of the make log.  You need to look farther up
> to see what the actual error is.

Having scrolled too far, I had to run make -j 2 bootstrap again in order 
to get the following message. (I can do a fresh build if I need to.)

user@wg0606:/transfer/gcc412/gcc-4.1.2/build$ make -j 2 bootstrap 
x=/opt/gcc412
make[1]: Entering directory `/transfer/gcc412/gcc-4.1.2/build/intl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/transfer/gcc412/gcc-4.1.2/build/intl'
make[1]: Entering directory 
`/transfer/gcc412/gcc-4.1.2/build/build-x86_64-unknown-linux-gnu/libiber
ty'
make[1]: Entering directory `/transfer/gcc412/gcc-4.1.2/build/libiberty'
make[2]: Entering directory 
`/transfer/gcc412/gcc-4.1.2/build/build-x86_64-unknown-linux-gnu/libiber
ty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory 
`/transfer/gcc412/gcc-4.1.2/build/build-x86_64-unknown-linux-gnu/libibert
y/testsuite'
make[1]: Leaving directory 
`/transfer/gcc412/gcc-4.1.2/build/build-x86_64-unknown-linux-gnu/libibert
y'
make[2]: Entering directory 
`/transfer/gcc412/gcc-4.1.2/build/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory 
`/transfer/gcc412/gcc-4.1.2/build/libiberty/testsuite'
make[1]: Entering directory `/transfer/gcc412/gcc-4.1.2/build/zlib'
true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2 " "CXXFLAGS=-g -O2" 
"CFLAGS_FOR_BUILD=-g -O2 " "CFLAGS_FOR_TARGET=-O2 -g -O2  " 
"INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" 
"INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install 
-c" "LDFLAGS=" "LIBCFLAG S=-g -O2 " "LIBCFLAGS_FOR_TARGET=-O2 -g -O2  " 
"MAKE=make" "MAKEINFO=/transfer/gcc412/gcc-4.1.2/miss
ing makeinfo --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" 
"SHELL=/bin/sh" "EXPECT=expect"  "RUNTEST=runtest" "RUNTESTFLAGS=" 
"exec_prefix=/opt/gcc412" "infodir=/opt/gcc412/info" "libdir=/opt 
/gcc412/lib" "prefix=/opt/gcc412" 
"tooldir=/opt/gcc412/x86_64-unknown-linux-gnu" "AR=ar" "AS=as" "CC =gcc" 
"CXX=c++" "LD=ld" "LIBCFLAGS=-g -O2 " "NM=nm" "PICFLAG=" "RANLIB=ranlib" 
"DESTDIR=" DO=all mul ti-do # make
make[1]: Leaving directory `/transfer/gcc412/gcc-4.1.2/build/zlib'
make[1]: Leaving directory `/transfer/gcc412/gcc-4.1.2/build/libiberty'
make[1]: Entering directory 
`/transfer/gcc412/gcc-4.1.2/build/build-x86_64-unknown-linux-gnu/fixincl
udes'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/transfer/gcc412/gcc-4.1.2/build/build-x86_64-unknown-linux-gnu/fixinclu
des'
make[1]: Entering directory `/transfer/gcc412/gcc-4.1.2/build/libcpp'
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[1]: Leaving directory `/transfer/gcc412/gcc-4.1.2/build/libcpp'
Bootstrapping the compiler
make[1]: Entering directory `/transfer/gcc412/gcc-4.1.2/build/gcc'

Bootstrap complete - make "quickstrap" to redo last build, "restage1" 
through "restage3" to rebuild specific stages, "restrap" to redo the 
bootstrap from stage1, or "cleanstrap" to redo the bootstrap from scratch.
make[1]: Leaving directory `/transfer/gcc412/gcc-4.1.2/build/gcc'
Comparing stage2 and stage3 of the compiler
make[1]: Entering directory `/transfer/gcc412/gcc-4.1.2/build/gcc'
rm -f .bad_compare
case "gnucompare" in *compare | *compare-lean ) stage=2 ;; * ) 
stage=`echo gnucompare | sed -e 's,^[ 
a-z]*compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
         for dir in . cp java objc build libgcc; do \
           if [ "`echo $dir/*.o`" != "$dir/*.o" ] ; then \
             for file in $dir/*.o; do \
               case "gnucompare" in \
                 slowcompare* ) \
                   tail +16c ./$file > tmp-foo1; \
                   tail +16c stage$stage/$file > tmp-foo2; \
                   cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1; \
                   cmpret=$?; \
                   ;; \
                 fastcompare* ) \
                   cmp $file stage$stage/$file 16 16 > /dev/null 2>&1; \
                   cmpret=$?; \
                   ;; \
                 gnucompare* ) \
                   cmp --ignore-initial=16 $file stage$stage/$file > 
/dev/null 2>&1; \
                   cmpret=$?; \
                   ;; \
               esac ; \
               if test $cmpret -eq 1; then \
                 case $file in \
                   ./cc*-checksum.o | libgcc/* ) \
                     echo warning: $file differs;; \
                   *) \
                     echo $file differs >> .bad_compare;; \
                 esac ; \
               fi; \
             done; \
           else true; fi; \
         done
rm -f tmp-foo*
case "gnucompare" in *compare | *compare-lean ) stage=2 ;; * ) 
stage=`echo gnucompare | sed -e 's,^[ 
a-z]*compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
         if [ -f .bad_compare ]; then \
           echo "Bootstrap comparison failure!"; \
           cat .bad_compare; \
           exit 1; \
         else \
           case "gnucompare" in \
             *-lean ) rm -rf stage$stage ;; \
             *) ;; \
           esac; true; \
         fi
make[1]: Leaving directory `/transfer/gcc412/gcc-4.1.2/build/gcc'
Building runtime libraries
make[1]: Entering directory `/transfer/gcc412/gcc-4.1.2/build'
make[2]: Entering directory `/transfer/gcc412/gcc-4.1.2/build'
make[3]: Entering directory `/transfer/gcc412/gcc-4.1.2/build/zlib'
true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2 " "CXXFLAGS=-g -O2" 
"CFLAGS_FOR_BUILD=-g -O2 " "CFLAGS_FOR_TARGET=-O2 -g -O2  " 
"INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" 
"INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install 
-c" "LDFLAGS=" "LIBCFLAG S=-g -O2 " "LIBCFLAGS_FOR_TARGET=-O2 -g -O2  " 
"MAKE=make" "MAKEINFO=/transfer/gcc412/gcc-4.1.2/miss
ing makeinfo --split-size=5000000 --split-size=5000000 
--split-size=5000000 " "PICFLAG=" "PICFLAG_FO R_TARGET=" "SHELL=/bin/sh" 
"EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" 
"exec_prefix=/opt/gcc41 2" "infodir=/opt/gcc412/info" 
"libdir=/opt/gcc412/lib" "prefix=/opt/gcc412" "tooldir=/opt/gcc412/x86 
_64-unknown-linux-gnu" "AR=ar" "AS=as" "CC=gcc" "CXX=c++" "LD=ld" 
"LIBCFLAGS=-g -O2 " "NM=nm" "PICFL AG=" "RANLIB=ranlib" "DESTDIR=" 
DO=all multi-do # make
make[3]: Leaving directory `/transfer/gcc412/gcc-4.1.2/build/zlib'
make[3]: Entering directory `/transfer/gcc412/gcc-4.1.2/build/libiberty'
make[3]: Entering directory `/transfer/gcc412/gcc-4.1.2/build/intl'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/transfer/gcc412/gcc-4.1.2/build/intl'
make[4]: Entering directory 
`/transfer/gcc412/gcc-4.1.2/build/libiberty/testsuite'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory 
`/transfer/gcc412/gcc-4.1.2/build/libiberty/testsuite'
make[3]: Leaving directory `/transfer/gcc412/gcc-4.1.2/build/libiberty'
make[3]: Entering directory 
`/transfer/gcc412/gcc-4.1.2/build/build-x86_64-unknown-linux-gnu/libiber
ty'
make[3]: Entering directory `/transfer/gcc412/gcc-4.1.2/build/fastjar'
make "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2 " "CXXFLAGS=-g -O2" 
"CFLAGS_FOR_BUILD=-g -O2 " "CFLAGS_FOR_TARGET=-O2 -g -O2  " 
"INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" 
"INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install 
-c" "JC1FLAGS=" "LDFLAGS =" "LIBCFLAGS=-g -O2 " 
"LIBCFLAGS_FOR_TARGET=-O2 -g -O2  " "MAKE=make" 
"MAKEINFO=/transfer/gcc412/gc c-4.1.2/missing makeinfo 
--split-size=5000000 --split-size=5000000 --split-size=5000000 " 
"PICFLAG="  "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" 
"exec_prefix=/opt/gcc412" "infodir=/opt/gcc412/info" "libdir= 
/opt/gcc412/lib" "prefix=/opt/gcc412" "AR=ar" "AS=as" "CC=gcc" "CXX=c++" 
"LD=ld" "LIBCFLAGS=-g -O2 "  "NM=nm" "PICFLAG=" "RANLIB=ranlib" 
"DESTDIR=" all-am
make[4]: Entering directory 
`/transfer/gcc412/gcc-4.1.2/build/build-x86_64-unknown-linux-gnu/libiber
ty/testsuite'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory 
`/transfer/gcc412/gcc-4.1.2/build/build-x86_64-unknown-linux-gnu/libibert
y/testsuite'
make[4]: Entering directory `/transfer/gcc412/gcc-4.1.2/build/fastjar'
restore=: && backupdir=".am$$" && \
         rm -rf $backupdir && mkdir $backupdir && \
         for f in fastjar.info fastjar.info-[0-9] 
fastjar.info-[0-9][0-9] fastjar.i[0-9] fastjar.i[0- 9][0-9]; do \
           if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
         done; \
         if /transfer/gcc412/gcc-4.1.2/missing makeinfo 
--split-size=5000000 --split-size=5000000 --s plit-size=5000000  -I 
../../fastjar/../gcc/doc/include  -I ../../fastjar \
          -o fastjar.info `test -f 'fastjar.texi' || echo 
'../../fastjar/'`fastjar.texi; \
         then \
           rc=0; \
         else \
           rc=$?; \
           $restore $backupdir/* `echo "./fastjar.info" | sed 
's|[^/]*$||'`; \
         fi; \
make[3]: Leaving directory 
`/transfer/gcc412/gcc-4.1.2/build/build-x86_64-unknown-linux-gnu/libibert
y'
         rm -rf $backupdir; exit $rc
WARNING: `makeinfo' is missing on your system.  You should only need it if
          you modified a `.texi' or `.texinfo' file, or any other file
          indirectly affecting the aspect of the manual.  The spurious
          call might also be the consequence of using a buggy `make' (AIX,
          DU, IRIX).  You might want to install the `Texinfo' package or
          the `GNU make' package.  Grab either from any GNU archive site.
make[3]: Entering directory `/transfer/gcc412/gcc-4.1.2/build/fixincludes'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/transfer/gcc412/gcc-4.1.2/build/fixincludes'
make[4]: *** [fastjar.info] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/transfer/gcc412/gcc-4.1.2/build/fastjar'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/transfer/gcc412/gcc-4.1.2/build/fastjar'
make[2]: *** [all-fastjar] Error 2
make[2]: *** Waiting for unfinished jobs....
make[3]: Entering directory 
`/transfer/gcc412/gcc-4.1.2/build/build-x86_64-unknown-linux-gnu/fixincludes'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory 
`/transfer/gcc412/gcc-4.1.2/build/build-x86_64-unknown-linux-gnu/fixincludes'
make[2]: Leaving directory `/transfer/gcc412/gcc-4.1.2/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/transfer/gcc412/gcc-4.1.2/build'
make: *** [bootstrap] Error 2










^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Compiling gcc-4.1.2 on 64-bit Ubuntu machines
  2011-01-19 16:37       ` Olumide
@ 2011-01-19 16:39         ` Andrew Haley
  2011-01-19 17:08           ` Olumide
  2011-01-19 16:43         ` Cedric Roux
  1 sibling, 1 reply; 22+ messages in thread
From: Andrew Haley @ 2011-01-19 16:39 UTC (permalink / raw)
  To: gcc-help

On 01/19/2011 04:37 PM, Olumide wrote:
> On 19/01/2011 16:21, Ian Lance Taylor wrote:
>> Olumide<50295@web.de> writes:
>>
>>> On 19/01/2011 15:02, Cedric Roux wrote:
>>>> On 01/19/2011 03:48 PM, Olumide wrote:
>>>>> /usr/include/gnu/stubs.h:7:27:/usr/include/gnu/stubs.h:7:27:
>>>>> error: error: gnu/stubs-32.h: No such file or directorygnu/stubs-32.h:
>>>>> No such file or directory
>>>>
>>>> pass --disable-multilib to configure
>>>
>>> The build fails with the following error:
>>> ...
>> You did not include enough of the make log. You need to look farther up
>> to see what the actual error is.
>
> Having scrolled too far, I had to run make -j 2 bootstrap again in order to get the following message. (I can do a fresh build if I need to.)
>
> WARNING: `makeinfo' is missing on your system. You should only need it if
> you modified a `.texi' or `.texinfo' file, or any other file
> indirectly affecting the aspect of the manual. The spurious
> call might also be the consequence of using a buggy `make' (AIX,
> DU, IRIX). You might want to install the `Texinfo' package or
> the `GNU make' package. Grab either from any GNU archive site.

I'd just install the packages.

You'll have to do a clean rebuild again.

Andrew.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Compiling gcc-4.1.2 on 64-bit Ubuntu machines
  2011-01-19 16:37       ` Olumide
  2011-01-19 16:39         ` Andrew Haley
@ 2011-01-19 16:43         ` Cedric Roux
  2011-01-19 16:47           ` Jonathan Wakely
  1 sibling, 1 reply; 22+ messages in thread
From: Cedric Roux @ 2011-01-19 16:43 UTC (permalink / raw)
  To: Olumide; +Cc: gcc-help

On 01/19/2011 05:37 PM, Olumide wrote:
> WARNING: `makeinfo' is missing on your system. You should only need it if
> you modified a `.texi' or `.texinfo' file, or any other file
> indirectly affecting the aspect of the manual. The spurious
> call might also be the consequence of using a buggy `make' (AIX,
> DU, IRIX). You might want to install the `Texinfo' package or
> the `GNU make' package. Grab either from any GNU archive site.

try to start all over from scratch, you did a "make distclean" right?
unzip the gcc tar.gz again and start from that clean point
(just a guess, I had that error many times with many software out there
because of a make distclean)

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Compiling gcc-4.1.2 on 64-bit Ubuntu machines
  2011-01-19 16:43         ` Cedric Roux
@ 2011-01-19 16:47           ` Jonathan Wakely
  0 siblings, 0 replies; 22+ messages in thread
From: Jonathan Wakely @ 2011-01-19 16:47 UTC (permalink / raw)
  To: Cedric Roux; +Cc: Olumide, gcc-help

On 19 January 2011 16:43, Cedric Roux wrote:
> On 01/19/2011 05:37 PM, Olumide wrote:
>>
>> WARNING: `makeinfo' is missing on your system. You should only need it if
>> you modified a `.texi' or `.texinfo' file, or any other file
>> indirectly affecting the aspect of the manual. The spurious
>> call might also be the consequence of using a buggy `make' (AIX,
>> DU, IRIX). You might want to install the `Texinfo' package or
>> the `GNU make' package. Grab either from any GNU archive site.
>
> try to start all over from scratch, you did a "make distclean" right?
> unzip the gcc tar.gz again and start from that clean point
> (just a guess, I had that error many times with many software out there
> because of a make distclean)
>

Also, it looks as though maybe you're building inside the gcc source tree:
/transfer/gcc412/gcc-4.1.2/build

Don't do that - the instructions you linked to correctly say to create
a directory next to the source tree and build in there.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Compiling gcc-4.1.2 on 64-bit Ubuntu machines
  2011-01-19 16:39         ` Andrew Haley
@ 2011-01-19 17:08           ` Olumide
  2011-01-19 17:11             ` Andrew Haley
  0 siblings, 1 reply; 22+ messages in thread
From: Olumide @ 2011-01-19 17:08 UTC (permalink / raw)
  To: gcc-help

On 19/01/2011 16:39, Andrew Haley wrote:
>> On 19/01/2011 16:21, Ian Lance Taylor wrote:
>> WARNING: `makeinfo' is missing on your system. You should only need it if
>> you modified a `.texi' or `.texinfo' file, or any other file
>> indirectly affecting the aspect of the manual. The spurious
>> call might also be the consequence of using a buggy `make' (AIX,
>> DU, IRIX). You might want to install the `Texinfo' package or
>> the `GNU make' package. Grab either from any GNU archive site.
>
> I'd just install the packages.
>
> You'll have to do a clean rebuild again.

I've done a fresh build, this time with the build directory outside the 
source but I'm getting the same error. Here's a much longer error dump. 
BTW, what am I missing? makeinfo, Texinfo or both or something else?

WARNING: `makeinfo' is missing on your system.  You should only need it if
          you modified a `.texi' or `.texinfo' file, or any other file
          indirectly affecting the aspect of the manual.  The spurious
          call might also be the consequence of using a buggy `make' (AIX,
          DU, IRIX).  You might want to install the `Texinfo' package or
          the `GNU make' package.  Grab either from any GNU archive site.
make[4]: *** [fastjar.info] Error 1
make[4]: Leaving directory `/transfer/gcc412/gcc412-build/fastjar'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/transfer/gcc412/gcc412-build/fastjar'
make[2]: *** [all-fastjar] Error 2
make[2]: *** Waiting for unfinished jobs....
make \
           CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -pedantic
  -Wno-long-long -Wno-variadic-macros -Wold-style-definition 
-Wmissing-format-attribute   " \
           CONFIG_H="config.h  auto-host.h 
../../gcc-4.1.2/gcc/../include/ansidecl.h" \
           MAKEOVERRIDES= \
           -f libgcc.mk all
make[6]: Entering directory `/transfer/gcc412/gcc412-build/gcc'
make GCC_FOR_TARGET=" ./xgcc -B./ 
-B/opt/gcc412/x86_64-unknown-linux-gnu/bin/ -isystem /opt/gcc412/x 
86_64-unknown-linux-gnu/include -isystem 
/opt/gcc412/x86_64-unknown-linux-gnu/sys-include -L/transfe 
r/gcc412/gcc412-build/gcc/../ld" \
           AR_FOR_TARGET="ar" \
           AR_CREATE_FOR_TARGET="ar  rc" \
           AR_EXTRACT_FOR_TARGET="ar  x" \
           AR_FLAGS_FOR_TARGET="" \
           CC="stage2/xgcc -Bstage2/ 
-B/opt/gcc412/x86_64-unknown-linux-gnu/bin/" CFLAGS="-g -O2 -W - Wall 
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic 
-Wno-long-long -Wno-variadic
-macros -Wold-style-definition -Wmissing-format-attribute   " \
           BUILD_PREFIX="" \
           BUILD_PREFIX_1="loser-" \
           LANGUAGES="c gcov gcov-dump c++ java objc" \
           LIBGCC2_CFLAGS="-O2  -O2 -g -O2   -DIN_GCC    -W -Wall 
-Wwrite-strings -Wstrict-prototypes
  -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC 
-g -DHAVE_GTHR_DEFAULT -DIN_ LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  "  \
           MULTILIB_CFLAGS="" T= crtbegin.o crtend.o crtbeginS.o 
crtendS.o crtbeginT.o crtfastmath.o
make[7]: Entering directory `/transfer/gcc412/gcc412-build/gcc'
make[7]: `crtfastmath.o' is up to date.
make[7]: `crtend.o' is up to date.
make[7]: `crtbeginS.o' is up to date.
make[7]: `crtendS.o' is up to date.
make[7]: `crtbeginT.o' is up to date.
make[7]: Leaving directory `/transfer/gcc412/gcc412-build/gcc'
./xgcc -B./ -B/opt/gcc412/x86_64-unknown-linux-gnu/bin/ -isystem 
/opt/gcc412/x86_64-unknown-linux-gn
u/include -isystem /opt/gcc412/x86_64-unknown-linux-gnu/sys-include 
-L/transfer/gcc412/gcc412-build/
gcc/../ld -O2  -O2 -g -O2   -DIN_GCC    -W -Wall -Wwrite-strings 
-Wstrict-prototypes -Wmissing-proto
types -Wold-style-definition  -isystem ./include  -fPIC -g 
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_ FLOAT_NOT_NEEDED  -shared 
-nodefaultlibs -Wl,--soname=libgcc_s.so.1 
-Wl,--version-script=libgcc/./li bgcc.map -o ./libgcc_s.so.1.tmp 
libgcc/./_muldi3_s.o libgcc/./_negdi2_s.o libgcc/./_lshrdi3_s.o lib 
gcc/./_ashldi3_s.o libgcc/./_ashrdi3_s.o libgcc/./_cmpdi2_s.o 
libgcc/./_ucmpdi2_s.o libgcc/./_clear_ cache_s.o 
libgcc/./_enable_execute_stack_s.o libgcc/./_trampoline_s.o 
libgcc/./__main_s.o libgcc/./_ absvsi2_s.o libgcc/./_absvdi2_s.o 
libgcc/./_addvsi3_s.o libgcc/./_addvdi3_s.o libgcc/./_subvsi3_s.o 
libgcc/./_subvdi3_s.o libgcc/./_mulvsi3_s.o libgcc/./_mulvdi3_s.o 
libgcc/./_negvsi2_s.o libgcc/./_ne gvdi2_s.o libgcc/./_ctors_s.o 
libgcc/./_ffssi2_s.o libgcc/./_ffsdi2_s.o libgcc/./_clz_s.o libgcc/./_ 
clzsi2_s.o libgcc/./_clzdi2_s.o libgcc/./_ctzsi2_s.o 
libgcc/./_ctzdi2_s.o libgcc/./_popcount_tab_s.o 
libgcc/./_popcountsi2_s.o libgcc/./_popcountdi2_s.o 
libgcc/./_paritysi2_s.o libgcc/./_paritydi2_s.o  libgcc/./_powisf2_s.o 
libgcc/./_powidf2_s.o libgcc/./_powixf2_s.o libgcc/./_powitf2_s.o 
libgcc/./_m ulsc3_s.o libgcc/./_muldc3_s.o libgcc/./_mulxc3_s.o 
libgcc/./_multc3_s.o libgcc/./_divsc3_s.o libgcc /./_divdc3_s.o 
libgcc/./_divxc3_s.o libgcc/./_divtc3_s.o libgcc/./_fixunssfsi_s.o 
libgcc/./_fixunsdf si_s.o libgcc/./_fixunsxfsi_s.o libgcc/./_fixsfdi_s.o 
libgcc/./_fixunssfdi_s.o libgcc/./_floatdisf_s .o libgcc/./_fixdfdi_s.o 
libgcc/./_fixunsdfdi_s.o libgcc/./_floatdidf_s.o libgcc/./_fixxfdi_s.o 
libg cc/./_fixunsxfdi_s.o libgcc/./_floatdixf_s.o libgcc/./_fixtfdi_s.o 
libgcc/./_fixunstfdi_s.o libgcc/. /_floatditf_s.o libgcc/./_divdi3_s.o 
libgcc/./_moddi3_s.o libgcc/./_udivdi3_s.o libgcc/./_umoddi3_s. o 
libgcc/./_udiv_w_sdiv_s.o libgcc/./_udivmoddi4_s.o 
libgcc/./unwind-dw2_s.o libgcc/./unwind-dw2-fde -glibc_s.o 
libgcc/./unwind-sjlj_s.o libgcc/./gthr-gnat_s.o libgcc/./unwind-c_s.o 
-lc && rm -f ./libg cc_s.so && if [ -f ./libgcc_s.so.1 ]; then mv -f 
./libgcc_s.so.1 ./libgcc_s.so.1.backup; else true; fi && mv 
./libgcc_s.so.1.tmp ./libgcc_s.so.1 && ln -s libgcc_s.so.1 ./libgcc_s.so
make[6]: Leaving directory `/transfer/gcc412/gcc412-build/gcc'
echo timestamp > stmp-multilib
make[5]: Leaving directory `/transfer/gcc412/gcc412-build/gcc'
echo timestamp > stage3_build
echo stage3_build > stage_last
make[4]: Leaving directory `/transfer/gcc412/gcc412-build/gcc'
make[3]: Leaving directory `/transfer/gcc412/gcc412-build/gcc'
make[2]: Leaving directory `/transfer/gcc412/gcc412-build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/transfer/gcc412/gcc412-build'
make: *** [bootstrap] Error 2

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Compiling gcc-4.1.2 on 64-bit Ubuntu machines
  2011-01-19 17:08           ` Olumide
@ 2011-01-19 17:11             ` Andrew Haley
  2011-01-19 20:13               ` Olumide
  0 siblings, 1 reply; 22+ messages in thread
From: Andrew Haley @ 2011-01-19 17:11 UTC (permalink / raw)
  To: gcc-help

On 01/19/2011 05:08 PM, Olumide wrote:
> On 19/01/2011 16:39, Andrew Haley wrote:
>>> On 19/01/2011 16:21, Ian Lance Taylor wrote:
>>> WARNING: `makeinfo' is missing on your system. You should only need it if
>>> you modified a `.texi' or `.texinfo' file, or any other file
>>> indirectly affecting the aspect of the manual. The spurious
>>> call might also be the consequence of using a buggy `make' (AIX,
>>> DU, IRIX). You might want to install the `Texinfo' package or
>>> the `GNU make' package. Grab either from any GNU archive site.
>>
>> I'd just install the packages.
>>
>> You'll have to do a clean rebuild again.
>
> I've done a fresh build, this time with the build directory outside the source but I'm getting the same error. Here's a much longer error dump. BTW, what am I missing? makeinfo, Texinfo or both or something else?
>
> WARNING: `makeinfo' is missing on your system. You should only need it if
> you modified a `.texi' or `.texinfo' file, or any other file
> indirectly affecting the aspect of the manual. The spurious
> call might also be the consequence of using a buggy `make' (AIX,
> DU, IRIX). You might want to install the `Texinfo' package or
> the `GNU make' package. Grab either from any GNU archive site.

You keep not telling us things.

So, does "makeinfo" do anything?

Andrew.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Compiling gcc-4.1.2 on 64-bit Ubuntu machines
  2011-01-19 17:11             ` Andrew Haley
@ 2011-01-19 20:13               ` Olumide
  2011-01-19 21:51                 ` David Daney
  0 siblings, 1 reply; 22+ messages in thread
From: Olumide @ 2011-01-19 20:13 UTC (permalink / raw)
  Cc: gcc-help

On 19/01/2011 17:11, Andrew Haley wrote:
> On 01/19/2011 05:08 PM, Olumide wrote:
>> WARNING: `makeinfo' is missing on your system. You should only need it if
>> you modified a `.texi' or `.texinfo' file, or any other file
>> indirectly affecting the aspect of the manual. The spurious
>> call might also be the consequence of using a buggy `make' (AIX,
>> DU, IRIX). You might want to install the `Texinfo' package or
>> the `GNU make' package. Grab either from any GNU archive site.
>
> You keep not telling us things.
>
> So, does "makeinfo" do anything?

I've now installed texinfo.

oaina@temp2:~/Downloads/gcc-build$ which makeinfo
/usr/bin/makeinfo
oaina@temp2:~/Downloads/gcc-build$ makeinfo
makeinfo: missing file argument.
Try `makeinfo --help' for more information.

Surprisingly, the build still complains that makeinfo is not available!

I've also tried running make after installing texinfo. I've put up a 
copy of the output on google docs, at: http://tinyurl.com/6bf4fnm .

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Compiling gcc-4.1.2 on 64-bit Ubuntu machines
  2011-01-19 20:13               ` Olumide
@ 2011-01-19 21:51                 ` David Daney
  2011-01-20 13:56                   ` Olumide
  0 siblings, 1 reply; 22+ messages in thread
From: David Daney @ 2011-01-19 21:51 UTC (permalink / raw)
  To: Olumide; +Cc: gcc-help

On 01/19/2011 12:11 PM, Olumide wrote:
> On 19/01/2011 17:11, Andrew Haley wrote:
>> On 01/19/2011 05:08 PM, Olumide wrote:
>>> WARNING: `makeinfo' is missing on your system. You should only need
>>> it if
>>> you modified a `.texi' or `.texinfo' file, or any other file
>>> indirectly affecting the aspect of the manual. The spurious
>>> call might also be the consequence of using a buggy `make' (AIX,
>>> DU, IRIX). You might want to install the `Texinfo' package or
>>> the `GNU make' package. Grab either from any GNU archive site.
>>
>> You keep not telling us things.
>>
>> So, does "makeinfo" do anything?
>
> I've now installed texinfo.
>
> oaina@temp2:~/Downloads/gcc-build$ which makeinfo
> /usr/bin/makeinfo
> oaina@temp2:~/Downloads/gcc-build$ makeinfo
> makeinfo: missing file argument.
> Try `makeinfo --help' for more information.
>
> Surprisingly, the build still complains that makeinfo is not available!
>

Some older versions of GCC were broken with versions of texinfo with two 
digits in part of the version number.  I suspect that is the problem you 
are seeing.

What is the output of 'makeinfo --version'?  If it is 4.10 or later...

David Daney

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Compiling gcc-4.1.2 on 64-bit Ubuntu machines
  2011-01-19 21:51                 ` David Daney
@ 2011-01-20 13:56                   ` Olumide
  2011-01-20 17:23                     ` Olumide
  0 siblings, 1 reply; 22+ messages in thread
From: Olumide @ 2011-01-20 13:56 UTC (permalink / raw)
  To: gcc-help

On 19/01/2011 21:50, David Daney wrote:
> Some older versions of GCC were broken with versions of texinfo with two
> digits in part of the version number. I suspect that is the problem you
> are seeing.
>
> What is the output of 'makeinfo --version'? If it is 4.10 or later...


oaina@temp2:~$ makeinfo --version
makeinfo (GNU texinfo) 4.13

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Compiling gcc-4.1.2 on 64-bit Ubuntu machines
  2011-01-20 13:56                   ` Olumide
@ 2011-01-20 17:23                     ` Olumide
  2011-01-20 20:04                       ` Jonathan Wakely
  2011-01-25 10:30                       ` Olumide
  0 siblings, 2 replies; 22+ messages in thread
From: Olumide @ 2011-01-20 17:23 UTC (permalink / raw)
  To: gcc-help

On 20/01/2011 13:56, Olumide wrote:
> On 19/01/2011 21:50, David Daney wrote:
>> Some older versions of GCC were broken with versions of texinfo with two
>> digits in part of the version number. I suspect that is the problem you
>> are seeing.
>>
>> What is the output of 'makeinfo --version'? If it is 4.10 or later...
>
>
> oaina@temp2:~$ makeinfo --version
> makeinfo (GNU texinfo) 4.13
>

Good news.

Build was successful -- I think, here's the log file http://goo.gl/SnKsP

(I had to compiled and install textinfo version 4.9 and install the 
latest version ncurses in order to compile texinfo.)

I've also to compile a sample plugin following the instructions here 
http://download.autodesk.com/us/maya/2011help/index.html?url=./files/API_Writing_a_simple_plugin.htm,topicNumber=d0e657386 
, but I got the error message:
error: CPU you selected does not support x86-64 instruction set

I was able to compile and link sample plugin after I removed 
-mtune=pentium4 flag.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Compiling gcc-4.1.2 on 64-bit Ubuntu machines
  2011-01-20 17:23                     ` Olumide
@ 2011-01-20 20:04                       ` Jonathan Wakely
  2011-01-25 10:30                       ` Olumide
  1 sibling, 0 replies; 22+ messages in thread
From: Jonathan Wakely @ 2011-01-20 20:04 UTC (permalink / raw)
  To: Olumide; +Cc: gcc-help

On 20 January 2011 17:24, Olumide wrote:
>
> I've also to compile a sample plugin following the instructions here
> http://download.autodesk.com/us/maya/2011help/index.html?url=./files/API_Writing_a_simple_plugin.htm,topicNumber=d0e657386
> , but I got the error message:
> error: CPU you selected does not support x86-64 instruction set
>
> I was able to compile and link sample plugin after I removed -mtune=pentium4
> flag.

You can't use -mtune=pentium4 when compiling a 64-bit object, which is
the default on x86_64.  If you want to compile a 32-bit object tuned
for pentium4 you should use -m32 -mtune=pentium4

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Compiling gcc-4.1.2 on 64-bit Ubuntu machines
  2011-01-20 17:23                     ` Olumide
  2011-01-20 20:04                       ` Jonathan Wakely
@ 2011-01-25 10:30                       ` Olumide
  2011-01-25 10:59                         ` Kai Ruottu
  2011-01-25 10:59                         ` Jonathan Wakely
  1 sibling, 2 replies; 22+ messages in thread
From: Olumide @ 2011-01-25 10:30 UTC (permalink / raw)
  To: gcc-help

On 20/01/2011 17:24, Olumide wrote:
> Good news.
>
> Build was successful -- I think, here's the log file http://goo.gl/SnKsP
>
> (I had to compiled and install textinfo version 4.9 and install the
> latest version ncurses in order to compile texinfo.)

I would like to roll out the build to other machines (several dozen 
actually). I've tried copying the entire hierarchy (source and build) to 
the target machines and then running make install but I'm getting the 
error message (I'd appreciate help solving this problem -- thanks):

make[1]: Entering directory `/transfer/gcc.install/gcc412/gcc-build'
/bin/sh ../gcc-4.1.2/mkinstalldirs /opt/gcc412 /opt/gcc412
make[2]: Entering directory `/transfer/gcc.install/gcc412/gcc-build/fastjar'
/bin/sh ./config.status --recheck
running /bin/sh /transfer/gcc412/gcc-4.1.2/fastjar/configure 
--cache-file=./config.cache --build=x86_64-unknown-linux-gnu 
--host=x86_64-unknown-linux-gnu --target=x86_64-unknown-linux-gnu 
--prefix=/opt/gcc412 --enable-shared --enable-threads=posix 
--enable-checking=release --with-system-zlib 
--disable-libunwind-exceptions --disable-multilib 
--enable-languages=c,c++,java,objc --program-transform-name=s,$,412,; 
--srcdir=../../gcc-4.1.2/fastjar CC=gcc CFLAGS=-g -O2  LDFLAGS= 
build_alias=x86_64-unknown-linux-gnu host_alias=x86_64-unknown-linux-gnu 
target_alias=x86_64-unknown-linux-gnu  --no-create --no-recursion
/bin/sh: Can't open /transfer/gcc412/gcc-4.1.2/fastjar/configure
make[2]: *** [config.status] Error 2
make[2]: Leaving directory `/transfer/gcc.install/gcc412/gcc-build/fastjar'
make[1]: *** [install-fastjar] Error 2
make[1]: Leaving directory `/transfer/gcc.install/gcc412/gcc-build'
make: *** [install] Error 2

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Compiling gcc-4.1.2 on 64-bit Ubuntu machines
  2011-01-25 10:30                       ` Olumide
@ 2011-01-25 10:59                         ` Kai Ruottu
  2011-01-25 10:59                         ` Jonathan Wakely
  1 sibling, 0 replies; 22+ messages in thread
From: Kai Ruottu @ 2011-01-25 10:59 UTC (permalink / raw)
  To: gcc-help

25.1.2011 12:31, Olumide kirjoitti:

> On 20/01/2011 17:24, Olumide wrote:
>> Good news.
>>
>> Build was successful -- I think, here's the log file http://goo.gl/SnKsP
>>
>> (I had to compiled and install textinfo version 4.9 and install the
>> latest version ncurses in order to compile texinfo.)

IMHO getting the 'info' docs nowadays isn't in any way important, but
getting PDF-format manuals would be. Years ago I manually did them
using 'pdftex' on some old RHL7.3 or 8.0 but whether that would succeed
somehow nowadays is unclear :(  Maybe I'm living in a totally different
planet when needing (printable when needed) PDF docs for everything...

> I would like to roll out the build to other machines (several dozen
> actually).

If I remember right, the goal was to get "plugins" for some AutoDesk
(Maya?) system which was made on/for RHEL4 which had gcc-4.1.2 as its
"system GCC". So the ultimate goal would be a (cross) "toolchain for
RHEL4 target with gcc-4.1.2".

But the original RHEL4 glibc etc. target libs are not freely available,
so what on earth to do?

   - try the "native" glibc etc. in the own development platform?
or
   - build a crosstoolchain with gcc-4.1.2 and with some freely
     available "very near" RHL4 target libraries like some CentOS
     ones? (Which ones for this case? CentOS5.x has gcc-4.1.2 and
     glibc-2.5 that I know...)

I myself would choose the latter and then produce the crosstoolchain
once, as "self-hosting" - built for the virtual "RHL4" host with the
"stage1" GCC built first using the native GCC on the development
platform. And then make a tarball for this "gcc-4.1.2 for RHEL4" and
install it onto all those several dozen platforms...

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Compiling gcc-4.1.2 on 64-bit Ubuntu machines
  2011-01-25 10:30                       ` Olumide
  2011-01-25 10:59                         ` Kai Ruottu
@ 2011-01-25 10:59                         ` Jonathan Wakely
  2011-01-25 11:34                           ` Olumide
  1 sibling, 1 reply; 22+ messages in thread
From: Jonathan Wakely @ 2011-01-25 10:59 UTC (permalink / raw)
  To: Olumide; +Cc: gcc-help

On 25 January 2011 10:31, Olumide wrote:
>
> I would like to roll out the build to other machines (several dozen
> actually). I've tried copying the entire hierarchy (source and build) to the
> target machines and then running make install but I'm getting the error
> message (I'd appreciate help solving this problem -- thanks):

The problem is that "make install" checks if it needs to rebuild, and
notices that system headers and other things have changed.

Don't do it that way, instead use "DESTDIR"

http://www.gnu.org/prep/standards/html_node/DESTDIR.html

This allows you to copy the entire installed tree (not the source and
build trees) to a temporary staging area, from where it can be
packaged up into an archive, then extracted on the destination
machines.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Compiling gcc-4.1.2 on 64-bit Ubuntu machines
  2011-01-25 10:59                         ` Jonathan Wakely
@ 2011-01-25 11:34                           ` Olumide
  2011-01-25 11:56                             ` Jonathan Wakely
  0 siblings, 1 reply; 22+ messages in thread
From: Olumide @ 2011-01-25 11:34 UTC (permalink / raw)
  To: gcc-help

On 25/01/2011 10:58, Jonathan Wakely wrote:
> On 25 January 2011 10:31, Olumide wrote:
>>
>> I would like to roll out the build to other machines (several dozen
>> actually). I've tried copying the entire hierarchy (source and build) to the
>> target machines and then running make install but I'm getting the error
>> message (I'd appreciate help solving this problem -- thanks):
>
> The problem is that "make install" checks if it needs to rebuild, and
> notices that system headers and other things have changed.
>
> Don't do it that way, instead use "DESTDIR"
>
> http://www.gnu.org/prep/standards/html_node/DESTDIR.html
>
> This allows you to copy the entire installed tree (not the source and
> build trees) to a temporary staging area, from where it can be
> packaged up into an archive, then extracted on the destination
> machines.

Thanks Jon. One tiny question tho' (I'm total newbie at this). When do I 
do make DESTDIR? At the stage, make -j 2 bootstrap, in which case the 
command would be make DESTDIR=/transfer/gcc-build-archive -j 2, or at 
the final make install stage? (The latter doesn't work.)

If the former is the case, then I would simply copy 
/transfer/gcc-build-archive to the target machines and run make install 
on each, right?

Also, do I have to install texinfo and ncurses on the target machines?

Thanks.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Compiling gcc-4.1.2 on 64-bit Ubuntu machines
  2011-01-25 11:34                           ` Olumide
@ 2011-01-25 11:56                             ` Jonathan Wakely
  2011-01-25 13:51                               ` Olumide
  0 siblings, 1 reply; 22+ messages in thread
From: Jonathan Wakely @ 2011-01-25 11:56 UTC (permalink / raw)
  To: Olumide; +Cc: gcc-help

On 25 January 2011 11:33, Olumide wrote:
> On 25/01/2011 10:58, Jonathan Wakely wrote:
>>
>> On 25 January 2011 10:31, Olumide wrote:
>>>
>>> I would like to roll out the build to other machines (several dozen
>>> actually). I've tried copying the entire hierarchy (source and build) to
>>> the
>>> target machines and then running make install but I'm getting the error
>>> message (I'd appreciate help solving this problem -- thanks):
>>
>> The problem is that "make install" checks if it needs to rebuild, and
>> notices that system headers and other things have changed.
>>
>> Don't do it that way, instead use "DESTDIR"
>>
>> http://www.gnu.org/prep/standards/html_node/DESTDIR.html
>>
>> This allows you to copy the entire installed tree (not the source and
>> build trees) to a temporary staging area, from where it can be
>> packaged up into an archive, then extracted on the destination
>> machines.
>
> Thanks Jon. One tiny question tho' (I'm total newbie at this). When do I do
> make DESTDIR? At the stage, make -j 2 bootstrap, in which case the command
> would be make DESTDIR=/transfer/gcc-build-archive -j 2, or at the final make
> install stage? (The latter doesn't work.)

Read the link I sent, which says "DESTDIR should be supported only in
the install* and uninstall* targets, as those are the only targets
where it is useful."

You use DESTDIR with "make install" as in the example on that page.

> If the former is the case, then I would simply copy
> /transfer/gcc-build-archive to the target machines and run make install on
> each, right?

No.  You do not run make on the target machines.

# configure gcc
make
make install DESTDIR=/tmp/stage

"If your installation step would normally install ‘/usr/local/bin/foo’
and ‘/usr/local/lib/libfoo.a’, then an installation invoked as in the
example above would install ‘/tmp/stage/usr/local/bin/foo’ and
‘/tmp/stage/usr/local/lib/libfoo.a’ instead."

So then you package up all the files under /tmp/stage, which are
arranged in a directory hierarchy exactly as you want in their final
installed location, but under /tmp/stage not /, so you just package
that directory tree up and then extract it on the target machine

cd /tmp/stage
tar czf /tmp/gcc.tar.gz .
# copy archive to target machine and extract


> Also, do I have to install texinfo and ncurses on the target machines?

No, because all you do on the target machine is extract an archive.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: Compiling gcc-4.1.2 on 64-bit Ubuntu machines
  2011-01-25 11:56                             ` Jonathan Wakely
@ 2011-01-25 13:51                               ` Olumide
  0 siblings, 0 replies; 22+ messages in thread
From: Olumide @ 2011-01-25 13:51 UTC (permalink / raw)
  To: gcc-help

On 25/01/2011 11:56, Jonathan Wakely wrote:
> ...
>> Also, do I have to install texinfo and ncurses on the target machines?
>
> No, because all you do on the target machine is extract an archive.

Thanks.

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2011-01-25 13:51 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-19 14:48 Compiling gcc-4.1.2 on 64-bit Ubuntu machines Olumide
2011-01-19 15:01 ` Cedric Roux
2011-01-19 15:51   ` Olumide
2011-01-19 16:21     ` Ian Lance Taylor
2011-01-19 16:37       ` Olumide
2011-01-19 16:39         ` Andrew Haley
2011-01-19 17:08           ` Olumide
2011-01-19 17:11             ` Andrew Haley
2011-01-19 20:13               ` Olumide
2011-01-19 21:51                 ` David Daney
2011-01-20 13:56                   ` Olumide
2011-01-20 17:23                     ` Olumide
2011-01-20 20:04                       ` Jonathan Wakely
2011-01-25 10:30                       ` Olumide
2011-01-25 10:59                         ` Kai Ruottu
2011-01-25 10:59                         ` Jonathan Wakely
2011-01-25 11:34                           ` Olumide
2011-01-25 11:56                             ` Jonathan Wakely
2011-01-25 13:51                               ` Olumide
2011-01-19 16:43         ` Cedric Roux
2011-01-19 16:47           ` Jonathan Wakely
2011-01-19 15:19 ` Jeff Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).