[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pcc-list
Subject:    Re: [Pcc] compiling pcc with pcc on openbsd
From:       Anders Magnusson <ragge () ludd ! ltu ! se>
Date:       2016-05-15 10:05:33
Message-ID: cae6a3ed-73de-b914-3995-bf58fbcf6b5e () ludd ! ltu ! se
[Download RAW message or body]

Den 2016-05-13 kl. 18:26, skrev rain1@openmailbox.org:
> hello
>
> I built pcc-20160513 successfully using gcc but when I tried to build 
> it with the pcc I already had:
>
> $ pcc --version
> pcc 1.0.0.RELEASE 20110221 for x86_64-unknown-openbsd5.9, 
> @amd64-1.ports.openbsd.org
>
> I got this error:
>
> $ make CC=pcc CPPFLAGS+="-fPIC"
> ===> cc
> ===> cc/cc
> pcc  cc.o compat.o strlist.o xalloc.o -o cc
> ld: cc.o: relocation R_X86_64_32S against `deflibdirs' can not be used 
> when making a shared object; recompile with -fPIC
> cc.o: could not read symbols: Bad value
> *** Error 1 in cc/cc (Makefile:66 'cc')
> *** Error 1 in cc (Makefile:18 'all')
>
> Do you know what should be done to make it self host?
You are only relinking above, not recompiling, so ensure that you have 
compiled cc with -fPIC also.

Besides that, it may very well be a relocation bug in the 5 year old pcc 
you have installed, so I would recommend to use a newer pcc first.

-- Ragge

_______________________________________________
Pcc mailing list
Pcc@lists.ludd.ltu.se
https://lists.ludd.ltu.se/cgi-bin/mailman/listinfo/pcc
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic