Dear Pablo,

     today I tried a fresh toolchain build and got an error:

In file included from opncls.c:26:0:
opncls.c: In function ‘bfd_fopen’:
bfd.h:529:65: error: right-hand operand of comma expression has no
effect [-Werror=unused-value]
  #define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = bool), TRUE)
                                                                  ^
opncls.c:263:5: note: in expansion of macro ‘bfd_set_cacheable’
      bfd_set_cacheable (nbfd, TRUE);
      ^
cc1: all warnings being treated as errors
Makefile:1607: recipe for target 'opncls.lo' failed
make[4]: *** [opncls.lo] Error 1
make[4]: Leaving directory
'/home/pablo/on-the-edge/HelenOS/tools/ia32/gdb-7.6.1/bfd'
[snip]

Since -Werror is used, a warning on the use of that macro is stopping
the whole build. Has anyone else had the same problem?

Thanks for your bug report. I'll add the --disable-werror option for the configure phase of GDB in the toolchain.sh script. The question is whether it will help, sometimes this option is ignored by the configure script.

However, GDB is not essential for a working toolchain, so even if the compilation failed in this phase, you can still use the rest of the toolchain that already compiled (binutils and GCC) for successfully building HelenOS.


M.D.

_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/listinfo/helenos-devel

Reply via email to