pkgsrc/emulators/simh build failure on -current

2014-06-30 Thread Chavdar Ivanov
Hi,

I tried to rebuild emulators/simh on a very -current amd64 system; I am getting:
...
 simhmake
= Bootstrap dependency digest=20010302: found digest-20121220
=== Checking for vulnerabilities in simh-3.9.0nb4
=== Building for simh-3.9.0nb4
lib paths are: /usr/lib /usr/pkg/lib
using libm: /usr/lib/libm.so
using librt: /usr/lib/librt.so
using libpthread: /usr/lib/libpthread.so /usr/include/pthread.h
using libdl: /usr/include/dlfcn.h
using libpcap: /usr/include/pcap.h
***
*** all Simulators being built with:
*** - compiler optimizations and no debugging support. GCC Version: 4.8.3.
*** - dynamic networking support using NetBSD provided libpcap components.
***
gcc -std=c99 -U__STRICT_ANSI__  -O2 -I/usr/include -finline-functions
-fgcse-after-reload -fpredictive-commoning -fipa-cp-clone
-fno-unsafe-loop-optimizations -fno-strict-overflow -flto
-fwhole-program -Wno-unused-result -I . -D_GNU_SOURCE
-DUSE_READER_THREAD -DHAVE_DLOPEN=so  PDP1/pdp1_lp.c PDP1/pdp1_cpu.c
PDP1/pdp1_stddev.c PDP1/pdp1_sys.c PDP1/pdp1_dt.c PDP1/pdp1_drm.c
PDP1/pdp1_clk.c PDP1/pdp1_dcs.c scp.c sim_console.c sim_fio.c
sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c -I PDP1 -o
BIN/pdp1   -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib
-R/usr/pkg/lib -lm -lrt -lpthread   -flto -fwhole-program
ld: /usr/libexec/liblto_plugin.so: error loading plugin:
/usr/libexec/liblto_plugin.so: Undefined PLT symbol htab_hash_string
(symnum = 2)
makefile:627: recipe for target 'BIN/pdp1' failed
gmake: *** [BIN/pdp1] Error 1
*** Error code 2

Stop.
make[1]: stopped in /usr/pkgsrc/emulators/simh
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/emulators/simh


Compiler problem?

Chavdar



-- 



Re: pkgsrc/emulators/simh build failure on -current

2014-06-30 Thread Matt Thomas
We don't build gcc to support lto.

so remove -flto
and it should work.


Re: pkgsrc/emulators/simh build failure on -current

2014-06-30 Thread Martin Husemann
On Mon, Jun 30, 2014 at 08:29:06AM -0700, Matt Thomas wrote:
 We don't build gcc to support lto.
 
 so remove -flto
 and it should work.

Patch-aa already does that for some gcc versions. However, this points
at a bug in the liblto_plugin build (missing -liberty?)

Martin


Re: pkgsrc/emulators/simh build failure on -current

2014-06-30 Thread Matt Thomas

On Jun 30, 2014, at 8:30 AM, Martin Husemann mar...@duskware.de wrote:

 On Mon, Jun 30, 2014 at 08:29:06AM -0700, Matt Thomas wrote:
 We don't build gcc to support lto.
 
 so remove -flto
 and it should work.
 
 Patch-aa already does that for some gcc versions. However, this points
 at a bug in the liblto_plugin build (missing -liberty?)

Worse.  libiberty is linked into the base program so we might need
--whole-archive to make all routines make it in or link with a
shared libiberty.



Re: pkgsrc/emulators/simh build failure on -current

2014-06-30 Thread Chavdar Ivanov
An earlier build (under 6.99.23) seems to work fine. I also just built
it under 6.1.4, again, installs  and runs under -current. Just a data
point; I thought it was compiler connected.

Chavdar

On 30 June 2014 16:39, Matt Thomas m...@3am-software.com wrote:

 On Jun 30, 2014, at 8:30 AM, Martin Husemann mar...@duskware.de wrote:

 On Mon, Jun 30, 2014 at 08:29:06AM -0700, Matt Thomas wrote:
 We don't build gcc to support lto.

 so remove -flto
 and it should work.

 Patch-aa already does that for some gcc versions. However, this points
 at a bug in the liblto_plugin build (missing -liberty?)

 Worse.  libiberty is linked into the base program so we might need
 --whole-archive to make all routines make it in or link with a
 shared libiberty.




--