Opened 6 years ago

Closed 6 years ago

#9782 closed bug (fixed)

Errors compiling netfs and netfs_server with gcc-4.7.3

Reported by: beos_zealot Owned by: bonefish
Priority: normal Milestone: R1
Component: File Systems/UserlandFS Version: R1/Development
Keywords: netfs Cc:
Blocked By: Blocking:
Has a Patch: yes Platform: All

Description

error: converting 'false' to pointer type 'Attribute*' [-Werror=conversion-null] cc1plus: all warnings being treated as errors

patch attached...

Attachments (1)

0001-fixes-errors-compiling-netfs-and-netfs_server-with-g.patch (1.4 KB) - added by beos_zealot 6 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 6 years ago by beos_zealot

Has a Patch: set

comment:2 Changed 6 years ago by korli

OK to be applied.

comment:3 Changed 6 years ago by mmadia

This patch doesn't allow netfs to build with gcc2.


/generated/x86gcc2> jam -q netfs
LLVM not available on GCC2 
...patience...
...found 8529 target(s)...
...updating 3 target(s)...
Link /generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/userlandfs_server 
/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/UserlandRequestHandler.o: In function `rw_lock_read_lock':
/use-the-source/haiku/headers/private/kernel/lock.h:165: undefined reference to `_rw_lock_read_lock'
/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/UserlandRequestHandler.o: In function `rw_lock_read_unlock':
/use-the-source/haiku/headers/private/kernel/lock.h:194: undefined reference to `_rw_lock_read_unlock'
/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/UserlandRequestHandler.o: In function `rw_lock_write_unlock':
/use-the-source/haiku/headers/private/kernel/lock.h:202: undefined reference to `_rw_lock_write_unlock'
/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/UserlandRequestHandler.o: In function `mutex_lock':
/use-the-source/haiku/headers/private/kernel/lock.h:210: undefined reference to `_mutex_lock'
/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/UserlandRequestHandler.o: In function `mutex_trylock':
/use-the-source/haiku/headers/private/kernel/lock.h:236: undefined reference to `_mutex_trylock'
/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/UserlandRequestHandler.o: In function `mutex_unlock':
/use-the-source/haiku/headers/private/kernel/lock.h:264: undefined reference to `_mutex_unlock'
/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/UserlandRequestHandler.o: In function `malloc_etc(unsigned long, unsigned long)':
/use-the-source/haiku/headers/private/kernel/heap.h:97: undefined reference to `memalign_etc'
/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/UserlandRequestHandler.o: In function `scheduler_reschedule_if_necessary_locked(void)':
/use-the-source/haiku/headers/private/kernel/kscheduler.h:113: undefined reference to `gCPU'
/use-the-source/haiku/headers/private/kernel/kscheduler.h:113: undefined reference to `smp_get_current_cpu'
/use-the-source/haiku/headers/private/kernel/kscheduler.h:114: undefined reference to `gScheduler'
/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/UserlandRequestHandler.o: In function `thread_unblock_locked(BKernel::Thread *, long)':
/use-the-source/haiku/headers/private/kernel/thread.h:390: undefined reference to `gScheduler'
collect2: ld returned 1 exit status

rm -f "/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/userlandfs_server"
/boot/develop/abi/x86/gcc2/tools/current/bin/gcc -pipe -Xlinker -soname=_APP_ -nostdlib -Xlinker --no-undefined -o "/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/userlandfs_server"  "/generated/x86gcc2/objects/haiku/x86/release/system/glue/arch/x86/crti.o" "/boot/develop/abi/x86/gcc2/tools/gcc-2.95.3-haiku-121101/lib/gcc-lib/i586-pc-haiku/2.95.3-haiku-121101/crtbegin.o" "/generated/x86gcc2/objects/haiku/x86/release/system/glue/start_dyn.o" "/generated/x86gcc2/objects/haiku/x86/release/system/glue/init_term_dyn.o" "/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/AreaSupport.o" "/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/Debug.o" "/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/LazyInitializable.o" "/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/ObjectTracker.o" "/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/Port.o" "/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/Request.o" "/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/RequestAllocator.o" "/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/RequestHandler.o" "/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/RequestPort.o" "/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/Requests.o" "/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/SingleReplyRequestHandler.o" "/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/String.o" "/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/FileSystem.o" "/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/kernel_emu.o" "/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/main.o" "/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/RequestThread.o" "/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/ServerDefs.o" "/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/UserlandFSServer.o" "/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/UserlandRequestHandler.o" "/generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/Volume.o" \
"/generated/x86gcc2/objects/haiku/x86/debug_1/kits/libbe.so" "/generated/x86gcc2/objects/haiku/x86/release/system/libroot/libroot.so"  "/boot/develop/abi/x86/gcc2/tools/gcc-2.95.3-haiku-121101/lib/gcc-lib/i586-pc-haiku/2.95.3-haiku-121101/crtend.o" "/generated/x86gcc2/objects/haiku/x86/release/system/glue/arch/x86/crtn.o" \


...failed Link /generated/x86gcc2/objects/haiku/x86/debug_1/add-ons/kernel/file_systems/userlandfs/server/userlandfs_server ...

BUILD FAILURE:
...failed updating 1 target(s)...
...skipped 2 target(s)...
/generated/x86gcc2> 

comment:4 Changed 6 years ago by beos_zealot

Checked on HAIKU hrev45699 gcc2hybrid in VirtualBox with freshly downloaded Haiku sources and applied patch - successfully builds netfs, netfs_server targets.

Mmadia, Your build log shows that build stops at userlandfs_server, could You try:

1) jam -q -a netfs

or even better:

1) git pull 2) jam -q -a netfs

comment:5 Changed 6 years ago by korli

Resolution: fixed
Status: newclosed

Applied in hrev45701. Thanks!

Note: See TracTickets for help on using tickets.