[haiku-development] oddities with @alpha-cd target

In the past few days, I've been trying to isolate a weirdness in the
@alpha-cd target.
Basically, building it from within Haiku exhibits the weirdness.
building from FreeBSD --use-xattr, does not show the weirdness.

Can anyone try building the @alpha-cd target from within Haiku?
mkisofs can be built from source :
ftp://ftp.berlios.de/pub/cdrecord/alpha/cdrtools-beta.tar.gz

At all times, I'm trying this on a newly created external object directory.
  eg, calling configure with a relative path from an empty directory.

Haiku-gcc2 : `jam -q @alpha-cd`
  This results in the system/ and var/ directories not displaying in
Tracker nor `ls`.
  However, they can be navigated to -- either cd /path/system or
typing the path information on Tracker's navigation bar.
  This has been seen on two machines.

Haiku-gcc2 : `jam -q haiku-cd`
  The folders system/ and var/ are visible in both Tracker and `ls`'s output.

Haiku-gcc4 : `jam -q @alpha-cd`
  compilation errors. see bottom *1
  Tested only on one machine.
  To note, I typically don't use gcc4
  The revision is 30765 -- about 100revisions behind.

Haiku-gcc4 : `jam -q haiku-cd`
  same compilation error.
  same machine.

FreeBSD --use-xattr, (both gcc4 and gcc2) : `jam -q @alpha-cd` & `jam
-q haiku-cd`
  The folders system/ and var/ are visible in both Tracker and `ls`s output.

*********************
Haiku-gcc4 : @alpha-cd compliation problems:
*********************
C++ 
/haiku-src/gcc4-cd/objects/haiku_host/x86/release/tools/generate_attribute_stores.o
/haiku-src/haiku/src/tools/generate_attribute_stores.cpp: In function
'void recurse_directory(BDirectory&, uint8*)':
/haiku-src/haiku/src/tools/generate_attribute_stores.cpp:51: error:
'strcmp' was not declared in this scope
/haiku-src/haiku/src/tools/generate_attribute_stores.cpp:96: error:
'strlen' was not declared in this scope

gcc -c "/haiku-src/haiku/src/tools/generate_attribute_stores.cpp" -O2
-Wall -Wno-trigraphs -Wno-ctor-dtor-privacy -Woverloaded-virtual
-Wpointer-arith -Wcast-align -Wsign-compare -Wno-multichar
-D_ZETA_USING_DEPRECATED_API_=1 -D_ZETA_TS_FIND_DIR_=1 -DARCH_x86
-D_NO_INLINE_ASM -DCOMPILE_FOR_R5 -DHAIKU_HOST_PLATFORM_HAIKU -iquote
/haiku-src/haiku/build/user_config_headers -iquote
/haiku-src/haiku/build/config_headers -iquote
/haiku-src/haiku/src/tools -iquote
/haiku-src/gcc4-cd/objects/common/tools -iquote
/haiku-src/gcc4-cd/objects/haiku_host/x86/common/tools -iquote
/haiku-src/gcc4-cd/objects/haiku/x86/common/tools -iquote
/haiku-src/haiku/src/bin -I /haiku-src/haiku/headers/build/private/app
-I /haiku-src/haiku/headers/build/private/storage -I
/haiku-src/haiku/headers/build/host/haiku_host -o
"/haiku-src/gcc4-cd/objects/haiku_host/x86/release/tools/generate_attribute_stores.o"
;

...failed C++ 
/haiku-src/gcc4-cd/objects/haiku_host/x86/release/tools/generate_attribute_stores.o
...
...skipped <build>generate_attribute_stores for lack of
<src!tools>generate_attribute_stores.o...

Other related posts: