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

List:       pcc-list
Subject:    Re: [Pcc] pcc lib compilation failure Ubuntu 18.04
From:       Anders Magnusson <ragge () ludd ! ltu ! se>
Date:       2019-02-20 8:14:06
Message-ID: 731bebc8-90cb-5603-fb86-b60681e6c061 () ludd ! ltu ! se
[Download RAW message or body]

Morning!

Den 2019-02-20 kl. 08:25, skrev arnold@skeeve.com:
> Hi. On Ubuntu 18.04 using
>
> | $ gcc --version
> | gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
>
> for bootstrapping, I get the following error when trying to compile
> pcc-lib:
>
> | ===> libpcc
> | make[1]: Entering directory '/home/aharon/src/pcc-revived/pcc-libs/libpcc'
> | pcc -O -I. -DTARGET_LITTLE_ENDIAN=1 -Dos_linux -Dmach_amd64 -isystem ../libpcc/include  -c fixdfdi.c
> | WARNING: In function soft_int2fp: soft=-0x8p+59 hard=-0x8p+60
> | WARNING: soft=-4611686018427387904.000000 hard=-9223372036854775808.000000
> | WARNING: s[0]=0 s[1]=80000000 s[2]=c03d h[0]=0 h[1]=80000000 h[2]=5300c03e
> | fixdfdi.c, line 55: cannot recover from earlier errors: goodbye!
> | error: /usr/local/libexec/ccom terminated with status 1
> | Makefile:52: recipe for target 'fixdfdi.o' failed
> | make[1]: *** [fixdfdi.o] Error 1
>
> This looks pretty serious...
Thanks!   This is an internal sanity check that softfloat works (it 
compares the softfloat result to the native result when host == target).
I'll install an 18.4 and check myself.
>
> Using 'make -k' to keep going, I get:
>
> | pcc -O -I. -DTARGET_LITTLE_ENDIAN=1 -Dos_linux -Dmach_amd64 -isystem ../libpcc/include  -c unwind.c
> | /usr/include/x86_64-linux-gnu//bits/floatn.h, line 87: invalid function definition
> | /usr/include/x86_64-linux-gnu//bits/floatn.h, line 87: syntax error
> | /usr/include/x86_64-linux-gnu//bits/floatn.h, line 87: invalid function definition
> | /usr/include//stdlib.h, line 363: cannot recover from earlier errors: goodbye!
> | error: /usr/local/libexec/ccom terminated with status 1
> | Makefile:52: recipe for target 'unwind.o' failed
>
> Looking at /usr/include/x86_64-linux-gnu//bits/floatn.h, I see:
>
> | /* The type _Float128 exists only since GCC 7.0.  */
> | #  if !__GNUC_PREREQ (7, 0) || defined __cplusplus
> | typedef __float128 _Float128;
> | #  endif
>
> The line with the typedef is line 87, so there's no preceding
> definition of __float128.
__float128 is not in the C standard, so no support for it in pcc.
I doubt it is required in Ubuntu, so that must be a setting somewhere 
else that is wrong.

-- R
>
> Help? Please?  :-)
>
> Thanks,
>
> Arnold
> _______________________________________________
> Pcc mailing list
> Pcc@lists.ludd.ltu.se
> https://lists.ludd.ltu.se/cgi-bin/mailman/listinfo/pcc

_______________________________________________
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