Opened 5 years ago

Closed 5 years ago

#11535 closed bug (fixed)

native Haiku builds broken

Reported by: luroh Owned by: korli
Priority: normal Milestone: R1/beta1
Component: Build System Version: R1/Development
Keywords: Cc:
Blocked By: Blocking: #11624
Has a Patch: no Platform: All

Description

Tested with homebrew hrev48405 gcc2 and official hrev48401 gcc2h.

/Data/develop/haiku/haiku> ./configure --use-gcc-pipe
/Data/develop/haiku/haiku> jam -q haiku-image
Starting build of type regular ... 
WebKit build feature not available for x86_gcc2 
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...found 109295 target(s)...
...updating 14229 target(s)...
InitScript1 /Data/develop/haiku/haiku/generated/haiku.image-init-vars 
AddTargetVariableToScript1 <unique!target>_target_051 
AddTargetVariableToScript1 <unique!target>_target_151 
AddTargetVariableToScript1 <unique!target>_target_251 
AddTargetVariableToScript1 <unique!target>_target_351 
AddTargetVariableToScript1 <unique!target>_target_451 
AddTargetVariableToScript1 <unique!target>_target_551 
AddTargetVariableToScript1 <unique!target>_target_651 
AddTargetVariableToScript1 <unique!target>_target_751 
AddTargetVariableToScript1 <unique!target>_target_851 
AddTargetVariableToScript1 <unique!target>_target_951 
AddTargetVariableToScript1 <unique!target>_target_061 
Cc /Data/develop/haiku/haiku/generated/objects/haiku_host/x86_gcc2/release/build/libsolv/solv_xfopen.o 
/Data/develop/haiku/haiku/generated/build_packages/libsolv_source-0.3.0_haiku_2013_10_01-3-source/develop/sources/libsolv-0.3.0_haiku_2013_10_01-3/sources/ext/solv_xfopen.c:29: conflicting types for `cookie_io_functions_t'
/boot/system/develop/headers/posix/stdio.h:113: previous declaration of `cookie_io_functions_t'
/Data/develop/haiku/haiku/generated/build_packages/libsolv_source-0.3.0_haiku_2013_10_01-3-source/develop/sources/libsolv-0.3.0_haiku_2013_10_01-3/sources/ext/solv_xfopen.c:32: conflicting types for `fopencookie'
/boot/system/develop/headers/posix/stdio.h:114: previous declaration of `fopencookie'

gcc -O2 -Wall -Wno-trigraphs -Wmissing-prototypes -Wpointer-arith -Wcast-align -Wsign-compare -Wno-multichar -include /Data/develop/haiku/haiku/headers/build/HaikuBuildCompatibility.h -Wno-sign-compare -Wno-missing-prototypes -fPIC -c "/Data/develop/haiku/haiku/generated/build_packages/libsolv_source-0.3.0_haiku_2013_10_01-3-source/develop/sources/libsolv-0.3.0_haiku_2013_10_01-3/sources/ext/solv_xfopen.c" -DLIBSOLV_INTERNAL -DHAIKU -DENABLE_HAIKU -DVERSION=\"0.3.0\" -DHAVE_FOPENCOOKIE -DARCH_x86 -D_NO_INLINE_ASM -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAIKU_HOST_PLATFORM_HAIKU -DHAIKU_PACKAGING_ARCH=\"x86_gcc2\" -I/Data/develop/haiku/haiku/build/user_config_headers -I/Data/develop/haiku/haiku/build/config_headers -Isrc/build/libsolv -I/Data/develop/haiku/haiku/generated/objects/common/build/libsolv -I/Data/develop/haiku/haiku/generated/objects/haiku_host/x86_gcc2/common/build/libsolv -I/Data/develop/haiku/haiku/generated/objects/haiku/x86_gcc2/common/build/libsolv -I/Data/develop/haiku/haiku/generated/build_packages/libsolv_source-0.3.0_haiku_2013_10_01-3-source/develop/sources/libsolv-0.3.0_haiku_2013_10_01-3/sources/src -I/Data/develop/haiku/haiku/generated/build_packages/libsolv_source-0.3.0_haiku_2013_10_01-3-source/develop/sources/libsolv-0.3.0_haiku_2013_10_01-3/sources/ext -I- -I/Data/develop/haiku/haiku/headers/build/host/haiku_host -I/Data/develop/haiku/haiku/headers/build -I/Data/develop/haiku/haiku/headers/build/os -I/Data/develop/haiku/haiku/headers/build/os/add-ons/registrar -I/Data/develop/haiku/haiku/headers/build/os/app -I/Data/develop/haiku/haiku/headers/build/os/drivers -I/Data/develop/haiku/haiku/headers/build/os/kernel -I/Data/develop/haiku/haiku/headers/build/os/interface -I/Data/develop/haiku/haiku/headers/build/os/locale -I/Data/develop/haiku/haiku/headers/build/os/storage -I/Data/develop/haiku/haiku/headers/build/os/support -I/Data/develop/haiku/haiku/headers/build/private -o "/Data/develop/haiku/haiku/generated/objects/haiku_host/x86_gcc2/release/build/libsolv/solv_xfopen.o" ;

...failed Cc /Data/develop/haiku/haiku/generated/objects/haiku_host/x86_gcc2/release/build/libsolv/solv_xfopen.o ...

BUILD FAILURE:
...failed updating 1 target(s)...
...skipped 6 target(s)...
...updated 12 target(s)...
/Data/develop/haiku/haiku>

Change History (5)

comment:1 Changed 5 years ago by anevilyak

Owner: changed from bonefish to mmu_man
Status: newassigned

comment:2 Changed 5 years ago by pulkomandy

I apparently failed to update the libsolv package for this. It redeclares the fopencookie function but now our headers export it correctly. I have uploaded the fixed recip (with patch) to haikuports but someone should check my work there as apparently that didn't work.

Manually deleting that section of /Data/develop/haiku/haiku/generated/build_packages/libsolv_source-0.3.0_haiku_2013_10_01-3-source/develop/sources/libsolv-0.3.0_haiku_2013_10_01-3/sources/ext/solv_xfopen.c fixes the problem (the part of the file to delete is rather clearly labelled with a #ifdef __HAIKU__ and a comment explaining why it was there).

comment:3 Changed 5 years ago by korli

Blocking: 11624 added

comment:4 Changed 5 years ago by luroh

Milestone: R1R1/beta1
Owner: changed from mmu_man to korli

Homebrew hrev48583 gcc2 builds again, thanks korli, pulkomandy.

comment:5 Changed 5 years ago by korli

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.