[haiku-bugs] Re: [Haiku] #16929: Error: conflicting declaration of C function while building new image in beta 2

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Wed, 28 Apr 2021 16:57:08 -0000

#16929: Error: conflicting declaration of C function while building new image in
beta 2
---------------------------+-------------------------
  Reporter:  mbrumbelow    |      Owner:  bonefish
      Type:  bug           |     Status:  new
  Priority:  high          |  Milestone:  Unscheduled
 Component:  Build System  |    Version:  R1/beta2
Resolution:                |   Keywords:
Blocked By:                |   Blocking:
  Platform:  x86-64        |
---------------------------+-------------------------
Comment (by mbrumbelow):

 1. Local haiku git repository

 {{{
 ~/source/haiku> git status
 HEAD detached at hrev55063

 }}}


 2. Tool install and configuration

 {{{
 ~/source/buildtools/jam> ./jam0 -sBINDIR=$HOME/bin install
 ~/source/buildtools/jam> pkgman install cmd:python3 cmd:xorriso
 ~/source/haiku/generated.x86_64> ../configure --cross-tools-source
 ../../buildtools --build-cross-tools x86_64

 }}}

 3. Build (Success)


 {{{
 ~/source/haiku/generated.x86_64> jam -q @nightly-anyboot
 Starting build of type regular ...
 Building Haiku Nightly
 ...patience...
 ...patience...
 ...patience...
 ...patience...
 ...patience...
 ...patience...
 ...patience...
 ...patience...
 ...patience...
 ...patience...
 ...found 98919 target(s)...
 ...updating 15840 target(s)...
 MkDir1 objects
 MkDir1 objects/haiku_host
 MkDir1 objects/haiku_host/x86_64
 MkDir1 objects/haiku_host/x86_64/release
 MkDir1 objects/haiku_host/x86_64/release/tools
 MkDir1 objects/haiku_host/x86_64/release/tools/anyboot
 C++ objects/haiku_host/x86_64/release/tools/anyboot/anyboot.o
 Link objects/haiku_host/x86_64/release/tools/anyboot/anyboot
 Chmod1 objects/haiku_host/x86_64/release/tools/anyboot/anyboot
 MkDir1 objects/haiku
 MkDir1 objects/haiku/x86_64
 MkDir1 objects/haiku/x86_64/release
 MkDir1 objects/haiku/x86_64/release/system
 MkDir1 objects/haiku/x86_64/release/system/boot
 MkDir1 objects/haiku/x86_64/release/system/boot/platform
 MkDir1 objects/haiku/x86_64/release/system/boot/platform/bios_ia32
 MkDir1
 objects/haiku/x86_64/release/system/boot/platform/bios_ia32/bios_ia32
 MkDir1 build_packages
 MkDir1 download
 MkDir1 objects/haiku/x86_64/packaging
 MkDir1 objects/haiku/x86_64/packaging/repositories
 ChecksumFileSHA256 objects/haiku/x86_64/packaging/repositories/HaikuPorts-
 checksum
 DownloadLocatedFile1
 download/gcc_syslibs_devel-8.3.0_2019_05_24-7-x86_64.hpkg
 --2021-04-28 12:40:44--  https://eu.hpkg.haiku-os.org/haikuports/master
 /build-
 
packages/16e18d7323ad5a8d99b2e548b814fa879825c21283e8418ef02f74bbcacf715d/packages/gcc_syslibs_devel-8.3.0_2019_05_24-7-x86_64.hpkg
 Resolving eu.hpkg.haiku-os.org... 2a03:b0c0:2:d0::3481:e001,
 104.248.198.131
 Connecting to eu.hpkg.haiku-os.org|2a03:b0c0:2:d0::3481:e001|:443...
 failed: Network is unreachable.
 Connecting to eu.hpkg.haiku-os.org|104.248.198.131|:443... connected.
 HTTP request sent, awaiting response... 200 OK
 Length: 2283589 (2.2M) [application/octet-stream]
 Saving to: ‘download/gcc_syslibs_devel-8.3.0_2019_05_24-7-x86_64.hpkg’

 download/gcc_syslib 100%[===================>]   2.18M   460KB/s    in
 5.0s

 2021-04-28 12:40:49 (449 KB/s) -
 ‘download/gcc_syslibs_devel-8.3.0_2019_05_24-7-x86_64.hpkg’ saved
 [2283589/2283589]

 MkDir1 objects/haiku_host/x86_64/release/build
 MkDir1 objects/haiku_host/x86_64/release/build/libroot
 C++ objects/haiku_host/x86_64/release/build/libroot/function_remapper.o
 In file included from <command-line>:
 ./../headers/build/BeOSBuildCompatibility.h:54:16: error: conflicting
 declaration of C function 'ssize_t readv_pos(int, off_t, const iovec*,
 int)'
  extern ssize_t readv_pos(int fd, off_t pos, const struct iovec* vec,
                 ^~~~~~~~~
 In file included from ./../headers/build/BeOSBuildCompatibility.h:33,
                  from <command-line>:
 /boot/system/develop/headers/posix/sys/uio.h:23:9: note: previous
 declaration 'ssize_t readv_pos(int, off_t, const iovec*, size_t)'
  ssize_t readv_pos(int fd, off_t pos, const struct iovec *vec, size_t
 count);
          ^~~~~~~~~
 In file included from <command-line>:
 ./../headers/build/BeOSBuildCompatibility.h:56:16: error: conflicting
 declaration of C function 'ssize_t writev_pos(int, off_t, const iovec*,
 int)'
  extern ssize_t writev_pos(int fd, off_t pos, const struct iovec* vec,
                 ^~~~~~~~~~
 In file included from ./../headers/build/BeOSBuildCompatibility.h:33,
                  from <command-line>:
 /boot/system/develop/headers/posix/sys/uio.h:25:9: note: previous
 declaration 'ssize_t writev_pos(int, off_t, const iovec*, size_t)'
  ssize_t writev_pos(int fd, off_t pos, const struct iovec *vec, size_t
 count);
          ^~~~~~~~~~

 gcc -c "../src/build/libroot/function_remapper.cpp" -O2 -Wall -Wno-
 trigraphs -Wno-ctor-dtor-privacy -Woverloaded-virtual -Wpointer-arith
 -Wcast-align -Wsign-compare -Wno-multichar -include
 ../headers/build/HaikuBuildCompatibility.h
 
-D'HAIKU_BUILD_ATTRIBUTES_DIR="/boot/home/source/haiku/generated.x86_64/attributes"'
 -D_HAIKU_BUILD_DONT_REMAP_FD_FUNCTIONS=1 -fPIC -include
 ../headers/build/BeOSBuildCompatibility.h -DARCH_x86_64 -D_NO_INLINE_ASM
 -D__NO_INLINE__ -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
 -DHAIKU_HOST_USE_XATTR -DHAIKU_HOST_PLATFORM_HAIKU
 -DHAIKU_HOST_PLATFORM_64_BIT -DHAIKU_PACKAGING_ARCH=\"x86_64\" -iquote
 ../build/user_config_headers -iquote ../build/config_headers -iquote
 ../src/build/libroot -iquote objects/common/build/libroot -iquote
 objects/haiku_host/x86_64/common/build/libroot -iquote
 objects/haiku/x86_64/common/build/libroot -I ../headers/build -I
 ../headers/build/os -I ../headers/build/os/app -I
 ../headers/build/os/drivers -I ../headers/build/os/kernel -I
 ../headers/build/os/interface -I ../headers/build/os/storage -I
 ../headers/build/os/support -I ../headers/build/private/kernel -I
 ../headers/build/private/libroot -I ../headers/build/private/system -I
 ../headers/build/host/haiku_host -I ../headers/build -I
 ../headers/build/os -I ../headers/build/os/add-ons/registrar -I
 ../headers/build/os/app -I ../headers/build/os/bluetooth -I
 ../headers/build/os/drivers -I ../headers/build/os/kernel -I
 ../headers/build/os/interface -I ../headers/build/os/locale -I
 ../headers/build/os/storage -I ../headers/build/os/support -I
 ../headers/build/private -o
 "objects/haiku_host/x86_64/release/build/libroot/function_remapper.o"

 ...failed C++
 objects/haiku_host/x86_64/release/build/libroot/function_remapper.o ...

 BUILD FAILURE:
 ...failed updating 1 target(s)...
 ...skipped 10 target(s)...
 ...updated 24 target(s)...

 }}}
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/16929#comment:6>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: