On 01/02/2014 11:39 PM, David Koontz wrote:

Concise error reporting might help, too.


Good point. My impression is that the current problem has something to do with the GCC build system rather than the GHDL source.

For posterity and completeness, here are the notes on my current build process:

hanzer@helix[/usr/ports/lang/gcc-aux]$ sudo make install clean

(This installs the compiler(s) into /usr/local/gcc-aux/{bin,include,lib,libexec,share})

hanzer@helix[/usr/ports/lang/gcc-aux]$ sudo make extract
hanzer@helix[/usr/ports/lang/gcc-aux]$ sudo make patch

(This gives me access to the patched compiler sources)

hanzer@helix[/usr/ports/lang/gcc-aux/work]$ cp -R gcc-4.7.3 /home/hanzer/third-party/source/

hanzer@helix[/home/hanzer/third-party/distfiles]$ hg clone http://hg.code.sf.net/p/ghdl-updates/code ghdl-updates-code

hanzer@helix[/home/hanzer/third-party/distfiles]$ date
Fri Jan  3 16:50:17 EST 2014

hanzer@helix[/home/hanzer/third-party/distfiles/ghdl-updates-code/translate/gcc]$ ./dist.sh sources

hanzer@helix[/home/hanzer/third-party/distfiles/ghdl-updates-code/translate/gcc]$ mv ghdl-0.31dev.tar.bz2 /home/hanzer/third-party/distfiles/

hanzer@helix[/home/hanzer/third-party/distfiles]$ tar xjf ghdl-0.31dev.tar.bz2 -C ../source/

hanzer@helix[/home/hanzer/third-party/source]$ cp -R ghdl-0.31dev/vhdl gcc-4.7.3/gcc/

hanzer@helix[/home/hanzer/third-party]$ ./build_gcc.sh | tee build_gcc.log

 [...a lot of build status notifications... then]

configure.ac:33: error: Please use exactly Autoconf 2.64 instead of 2.69.
config/override.m4:12: _GCC_AUTOCONF_VERSION_CHECK is expanded from...
configure.ac:33: the top level
autom4te-2.69: /usr/local/bin/gm4 failed with exit status: 1
gmake: Reaping losing child 0x284c68b0 PID 5591
*** [/home/hanzer/third-party/source/gcc-4.7.3/configure] Error 1
Removing child 0x284c68b0 PID 5591 from chain.

(autoconf 2.64 was built and installed into /home/hanzer/local/bin)

hanzer@helix[/home/hanzer/third-party]$ export PATH=/home/hanzer/bin:/home/hanzer/local/bin:/usr/local/gcc-aux/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin

hanzer@helix[/home/hanzer/third-party]$ which autoconf
/home/hanzer/local/bin/autoconf
hanzer@helix[/home/hanzer/third-party]$ which gnatmake
/usr/local/gcc-aux/bin/gnatmake

hanzer@helix[/home/hanzer/third-party]$ rm build_gcc.log
hanzer@helix[/home/hanzer/third-party]$ rm -rf build
hanzer@helix[/home/hanzer/third-party]$ ./build_gcc.sh | tee build_gcc.log
 [...a lot of build status notifications...]

-rw-r--r--   1 hanzer  hanzer  4183111 Jan  3 17:38 build_gcc.log
(This log file is too big for pastebin.com)

(Modified build_gcc.sh)
29c29
< gmake
---
> gmake -B -d

hanzer@helix[/home/hanzer/third-party]$ mv build_gcc.log build_gcc.log.1
hanzer@helix[/home/hanzer/third-party]$ ./build_gcc.sh | tee build_gcc.log
 [...a lot of build status notifications...]

hanzer@helix[/home/hanzer/third-party]$ tree -L 2
.
|-- build
|   |-- Makefile
|   |-- build-i386-unknown-freebsd9.2
|   |-- config.log
|   |-- config.status
|   |-- fixincludes
|   |-- gcc
|   |-- intl
|   |-- libcpp
|   |-- libdecnumber
|   |-- libiberty
|   |-- lto-plugin
|   |-- serdep.tmp
|   `-- zlib
|-- build_gcc.log
|-- build_gcc.log.1
|-- build_gcc.sh
|-- build_gcc.sh.orig
|-- distfiles
|   |-- adacore
|   |-- autoconf-2.64.tar.gz
|   |-- clips624
|   |-- fuzzyclips610
|   |-- ghdl-0.29.tar.bz2
|   |-- ghdl-0.31dev.tar.bz2
|   `-- ghdl-updates-code
`-- source
    |-- autoconf-2.64
    |-- gcc-4.7.3
    `-- ghdl-0.31dev

[build_gcc.sh]:  http://pastebin.com/raw.php?i=6Xd0SKJM
[build_gcc.log]: http://pastebin.com/raw.php?i=Xc2qEeP4
[config.log]:    http://pastebin.com/raw.php?i=QMYGGt5m


_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to