public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* problem in compiling gcc6.4.0 using gcc8.1.1
@ 2018-09-26  1:07 C.J.
  2018-09-26  8:59 ` Jonathan Wakely
  0 siblings, 1 reply; 5+ messages in thread
From: C.J. @ 2018-09-26  1:07 UTC (permalink / raw)
  To: gcc-help

Dear specialists,

I tried to install gcc6.4.0 in Fedora28, while something wrong happened as
following.

    In file included from ../.././libgcc/unwind-dw2.c:401:0:
    ./md-unwind-support.h: In function ‘x86_64_fallback_frame_state’:
    ./md-unwind-support.h:65:47: error: dereferencing pointer to incomplete
type ‘struct ucontex_t’
           sc = (struct sigcontext *) (void *) &uc_->uc_mcontext;
                                                   ^~

And at the end the message is here:

    make[3]: *** [../.././libgcc/shared-object.mk:14: unwind-dw2.o] Error 1
    make[3]: *** Waiting for unfinished jobs....
    make[3]: Leaving directory
'/home/rx/program/gcc-6.4.0/x86_64-pc-linux-gnu/libgcc'
    make[2]: *** [Makefile:17378: all-stage1-target-libgcc] Error 2
    make[2]: Leaving directory '/home/rx/program/gcc-6.4.0'
    make[1]: *** [Makefile:23677: stage1-bubble] Error 2
    make[1]: Leaving directory '/home/rx/program/gcc-6.4.0'
    make: *** [Makefile:914: all] Error 2

I have try the previous solution(
https://stackoverflow.com/questions/46999900/how-to-compile-gcc-6-4-0-with-gcc-7-2-in-archlinux)
, but it still failed.
Am I missing something? Thank you!

PS: This problem is also posted in stackoverflow(
https://stackoverflow.com/questions/52498431/compile-gcc6-4-0-using-gcc8-1-1
)

Best regards!
Jianhao

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

* Re: problem in compiling gcc6.4.0 using gcc8.1.1
  2018-09-26  1:07 problem in compiling gcc6.4.0 using gcc8.1.1 C.J.
@ 2018-09-26  8:59 ` Jonathan Wakely
  2018-09-26 15:01   ` C.J.
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Wakely @ 2018-09-26  8:59 UTC (permalink / raw)
  To: biocjh; +Cc: gcc-help

On Wed, 26 Sep 2018 at 02:07, C.J. wrote:
>
> Dear specialists,
>
> I tried to install gcc6.4.0 in Fedora28, while something wrong happened as
> following.
>
>     In file included from ../.././libgcc/unwind-dw2.c:401:0:
>     ./md-unwind-support.h: In function ‘x86_64_fallback_frame_state’:
>     ./md-unwind-support.h:65:47: error: dereferencing pointer to incomplete
> type ‘struct ucontex_t’

Are you sure the error says "ucontex_t"? That's not a valid type. It
should be either "struct ucontext" or ucontext_t. Not "struct
ucontex_t".

Assuming it really says "struct ucontext" the fix you need is:
https://gcc.gnu.org/viewcvs/gcc/trunk/libgcc/config/i386/linux-unwind.h?r1=249731&r2=249730&pathrev=249731

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

* Re: problem in compiling gcc6.4.0 using gcc8.1.1
  2018-09-26  8:59 ` Jonathan Wakely
@ 2018-09-26 15:01   ` C.J.
  2018-09-26 15:44     ` Jonathan Wakely
  0 siblings, 1 reply; 5+ messages in thread
From: C.J. @ 2018-09-26 15:01 UTC (permalink / raw)
  To: jwakely.gcc; +Cc: gcc-help

Thank you for your informations!

However, there are still many bug in gcc-6.4.0 installation(see attachment
below). It seems something complicated, but it's necessary for the
installation of some soft.
Is there a solution for all the bugs, like a bug-fixed 6.4.0 version? I
need to install a old version gcc(<7.0). Thank you!

Regards!
Jianhao

= = = = = = = = = = = = = = =
attached message:

/home/rx/program/gcc-6.4.0/x86_64-pc-linux-gnu/libssp/../.././libssp/gets-chk.c:74:
warning: the `gets' function is dangerous and should not be used.
../../.././libsanitizer/sanitizer_common/sanitizer_posix.cc: In function
‘__sanitizer::fd_t __sanitizer::OpenFile(const char*,
__sanitizer::FileAccessMode, __sanitizer::error_t*)’:
../../.././libsanitizer/sanitizer_common/sanitizer_posix.cc:179:27:
warning: ‘flags’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
   fd_t res = internal_open(filename, flags, 0660);
              ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
In file included from
../../.././libsanitizer/asan/asan_interceptors.cc:196:0:
../../.././libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:
In function ‘__sanitizer::uptr __interceptor_ptrace(int, int, void*,
void*)’:
../../.././libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:2449:21:
warning: ‘local_iovec.__sanitizer::__sanitizer_iovec::iov_len’ may be used
uninitialized in this function [-Wmaybe-uninitialized]
   __sanitizer_iovec local_iovec;
                     ^~~~~~~~~~~
../../.././libsanitizer/asan/asan_interceptors.cc:56:34: warning:
‘local_iovec.__sanitizer::__sanitizer_iovec::iov_base’ may be used
uninitialized in this function [-Wmaybe-uninitialized]
     uptr __offset = (uptr)(offset);                                     \
                                  ^
In file included from
../../.././libsanitizer/asan/asan_interceptors.cc:196:0:
../../.././libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:2449:21:
note: ‘local_iovec.__sanitizer::__sanitizer_iovec::iov_base’ was declared
here
   __sanitizer_iovec local_iovec;
                     ^~~~~~~~~~~
In file included from
../../.././libsanitizer/tsan/tsan_interceptors.cc:2338:0:
../../.././libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:
In function ‘__sanitizer::uptr __interceptor_ptrace(int, int, void*,
void*)’:
../../.././libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:2498:58:
warning: ‘local_iovec.__sanitizer::__sanitizer_iovec::iov_len’ may be used
uninitialized in this function [-Wmaybe-uninitialized]
                                      local_iovec.iov_len);
                                                          ^
../../.././libsanitizer/tsan/tsan_interceptors.cc:2240:20: warning:
‘local_iovec.__sanitizer::__sanitizer_iovec::iov_base’ may be used
uninitialized in this function [-Wmaybe-uninitialized]
   MemoryAccessRange(((TsanInterceptorContext *)ctx)->thr,                 \
                    ^
In file included from
../../.././libsanitizer/tsan/tsan_interceptors.cc:2338:0:
../../.././libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:2449:21:
note: ‘local_iovec.__sanitizer::__sanitizer_iovec::iov_base’ was declared
here
   __sanitizer_iovec local_iovec;
                     ^~~~~~~~~~~

Jonathan Wakely <jwakely.gcc@gmail.com> 于2018年9月26日周三 下午4:58写道:

> On Wed, 26 Sep 2018 at 02:07, C.J. wrote:
> >
> > Dear specialists,
> >
> > I tried to install gcc6.4.0 in Fedora28, while something wrong happened
> as
> > following.
> >
> >     In file included from ../.././libgcc/unwind-dw2.c:401:0:
> >     ./md-unwind-support.h: In function ‘x86_64_fallback_frame_state’:
> >     ./md-unwind-support.h:65:47: error: dereferencing pointer to
> incomplete
> > type ‘struct ucontex_t’
>
> Are you sure the error says "ucontex_t"? That's not a valid type. It
> should be either "struct ucontext" or ucontext_t. Not "struct
> ucontex_t".
>
> Assuming it really says "struct ucontext" the fix you need is:
>
> https://gcc.gnu.org/viewcvs/gcc/trunk/libgcc/config/i386/linux-unwind.h?r1=249731&r2=249730&pathrev=249731
>


-- 
Best regards!
C.J.

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

* Re: problem in compiling gcc6.4.0 using gcc8.1.1
  2018-09-26 15:01   ` C.J.
@ 2018-09-26 15:44     ` Jonathan Wakely
  2018-09-27 13:42       ` C.J.
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Wakely @ 2018-09-26 15:44 UTC (permalink / raw)
  To: biocjh; +Cc: gcc-help

On Wed, 26 Sep 2018 at 14:09, C.J. wrote:
>
> Thank you for your informations!
>
> However, there are still many bug in gcc-6.4.0 installation(see attachment below). It seems something complicated, but it's necessary for the installation of some soft.

These are only warnings not bugs, what's the problem?


> Is there a solution for all the bugs, like a bug-fixed 6.4.0 version?

You could try a snapshot of the GCC 6 branch, such as
https://gcc.gnu.org/ml/gcc/2018-09/msg00087.html

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

* Re: problem in compiling gcc6.4.0 using gcc8.1.1
  2018-09-26 15:44     ` Jonathan Wakely
@ 2018-09-27 13:42       ` C.J.
  0 siblings, 0 replies; 5+ messages in thread
From: C.J. @ 2018-09-27 13:42 UTC (permalink / raw)
  To: jwakely.gcc; +Cc: gcc-help

Thank you. I took a mistake that it was failure in installation.

Jianhao

Jonathan Wakely <jwakely.gcc@gmail.com> 于2018年9月26日周三 下午9:18写道:

> On Wed, 26 Sep 2018 at 14:09, C.J. wrote:
> >
> > Thank you for your informations!
> >
> > However, there are still many bug in gcc-6.4.0 installation(see
> attachment below). It seems something complicated, but it's necessary for
> the installation of some soft.
>
> These are only warnings not bugs, what's the problem?
>
>
> > Is there a solution for all the bugs, like a bug-fixed 6.4.0 version?
>
> You could try a snapshot of the GCC 6 branch, such as
> https://gcc.gnu.org/ml/gcc/2018-09/msg00087.html
>


-- 
Best regards!
C.J.

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

end of thread, other threads:[~2018-09-27  7:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-26  1:07 problem in compiling gcc6.4.0 using gcc8.1.1 C.J.
2018-09-26  8:59 ` Jonathan Wakely
2018-09-26 15:01   ` C.J.
2018-09-26 15:44     ` Jonathan Wakely
2018-09-27 13:42       ` C.J.

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).