[haiku-gsoc] Re: Help with Jam

  • From: Vivek Roy <vivekroyandroid@xxxxxxxxx>
  • To: haiku-gsoc@xxxxxxxxxxxxx
  • Date: Tue, 16 May 2017 20:32:31 +0000

I notice a difference,
this is what I get when I run jam in Linux

 -c "/home/vivek/Documents/haiku_drm/src/kits/support/Referenceable.cpp"
-O2 -include src/system/kernel/lib/kernel_lib.h
-DHAIKU_DISTRO_COMPATIBILITY_DEFAULT -DHAIKU_INCLUDE_PATENTED_CODE=0
-DHAIKU_TARGET_PLATFORM_HAIKU -DHAIKU_REGULAR_BUILD --bad-include-option
/home/vivek/Documents/haiku_drm/build/user_config_headers
--bad-include-option /home/vivek/Documents/haiku_drm/build/config_headers
--bad-include-option /home/vivek/Documents/haiku_drm/src/kits/support
--bad-include-option /home/vivek/Documents/haiku_drm/headers/private/shared
--bad-include-option
/home/vivek/Documents/haiku_drm/headers/private/libroot/locale
--bad-include-option /home/vivek/Documents/haiku_drm/headers
--bad-include-option /home/vivek/Documents/haiku_drm/headers/posix
--bad-include-option /home/vivek/Documents/haiku_drm/headers/glibc
--bad-include-option /home/vivek/Documents/haiku_drm/headers/os
--bad-include-option /home/vivek/Documents/haiku_drm/headers/os/add-ons
--bad-include-option
/home/vivek/Documents/haiku_drm/headers/os/add-ons/file_system
--bad-include-option
/home/vivek/Documents/haiku_drm/headers/os/add-ons/graphics/legacy
--bad-include-option
/home/vivek/Documents/haiku_drm/headers/os/add-ons/input_server
--bad-include-option
/home/vivek/Documents/haiku_drm/headers/os/add-ons/registrar
--bad-include-option
/home/vivek/Documents/haiku_drm/headers/os/add-ons/screen_saver
--bad-include-option
/home/vivek/Documents/haiku_drm/headers/os/add-ons/tracker
--bad-include-option /home/vivek/Documents/haiku_drm/headers/os/app
--bad-include-option /home/vivek/Documents/haiku_drm/headers/os/device
--bad-include-option /home/vivek/Documents/haiku_drm/headers/os/drivers
--bad-include-option /home/vivek/Documents/haiku_drm/headers/os/game
--bad-include-option /home/vivek/Documents/haiku_drm/headers/os/interface
--bad-include-option /home/vivek/Documents/haiku_drm/headers/os/kernel
--bad-include-option /home/vivek/Documents/haiku_drm/headers/os/locale
--bad-include-option /home/vivek/Documents/haiku_drm/headers/os/media
--bad-include-option /home/vivek/Documents/haiku_drm/headers/os/mail
--bad-include-option /home/vivek/Documents/haiku_drm/headers/os/midi
--bad-include-option /home/vivek/Documents/haiku_drm/headers/os/midi2
--bad-include-option /home/vivek/Documents/haiku_drm/headers/os/net
--bad-include-option /home/vivek/Documents/haiku_drm/headers/os/storage
--bad-include-option /home/vivek/Documents/haiku_drm/headers/os/support
--bad-include-option /home/vivek/Documents/haiku_drm/headers/os/translation
--bad-include-option /home/vivek/Documents/haiku_drm/headers/private/. -o
"system/kernel/lib/Referenceable.o" ;

whereas this in Haiku

gcc -O2 -Wall -Wno-trigraphs -Wmissing-prototypes -Wno-multichar -nostdinc
-D_KERNEL=1 -DB_USE_POSITIVE_POSIX_ERRORS=1 -D__KERNEL__=1 -nostdinc
-finline -fno-builtin -march=pentium -c
"src/add-ons/kernel/drivers/graphics/drm/drm_auth.c" -D_KERNEL_MODE
-DARCH_x86 -DB_USE_BUILTIN_ATOMIC_FUNCTIONS -D_BEOS_R5_COMPATIBLE_
-DBOOT_ARCHIVE_IMAGE_OFFSET=320
-D__HAIKU_PRIMARY_PACKAGING_ARCH=\"x86_gcc2\"
-DHAIKU_DISTRO_COMPATIBILITY_DEFAULT -DHAIKU_INCLUDE_PATENTED_CODE=0
-DHAIKU_TARGET_PLATFORM_HAIKU -DHAIKU_REGULAR_BUILD
-I/boot/home/haiku_drm/build/user_config_headers
-I/boot/home/haiku_drm/build/config_headers
-Isrc/add-ons/kernel/drivers/graphics/drm
-I/boot/home/haiku_drm/generated/objects/common/add-ons/kernel/drivers/graphics/drm
-I/boot/home/haiku_drm/generated/objects/haiku_host/x86_gcc2/common/add-ons/kernel/drivers/graphics/drm
-I/boot/home/haiku_drm/generated/objects/haiku/x86_gcc2/common/add-ons/kernel/drivers/graphics/drm
-I- -I/boot/home/haiku_drm/headers/private/graphics/drm
-I/boot/home/haiku_drm/headers/private/graphics/drm/uapi
-I/boot/home/haiku_drm/headers/compatibility/linux
-I/boot/home/haiku_drm/src/libs/compat/dragonfly_drm/include
-I/boot/home/haiku_drm/headers/private/.
-I/boot/home/haiku_drm/headers/private/kernel
-I/boot/home/haiku_drm/headers/private/libroot
-I/boot/home/haiku_drm/headers/private/shared
-I/boot/home/haiku_drm/headers/private/kernel/boot/platform/bios_ia32
-I/boot/home/haiku_drm/headers/private/kernel/arch/x86
-I/boot/home/haiku_drm/generated/objects/haiku/x86_gcc2/common/system/kernel
-I/boot/home/haiku_drm/headers/private/.
-I/boot/home/haiku_drm/headers/private/system
-I/boot/home/haiku_drm/headers/private/system/arch/x86
-I/boot/home/haiku_drm/headers/private/.
-I/boot/home/haiku_drm/headers/private/kernel
-I/boot/home/haiku_drm/headers/private/libroot
-I/boot/home/haiku_drm/headers/private/shared
-I/boot/home/haiku_drm/headers/private/kernel/boot/platform/bios_ia32
-I/boot/home/haiku_drm/headers/private/kernel/arch/x86
-I/boot/home/haiku_drm/generated/objects/haiku/x86_gcc2/common/system/kernel
-I/boot/home/haiku_drm/headers/private/.
-I/boot/home/haiku_drm/headers/private/system
-I/boot/home/haiku_drm/headers/private/system/arch/x86
-I/boot/home/haiku_drm/headers/cpp
-I/boot/home/haiku_drm/headers/build/gcc-2.95.3
-I/boot/home/haiku_drm/headers -I/boot/home/haiku_drm/headers/posix
-I/boot/home/haiku_drm/headers/glibc -I/boot/home/haiku_drm/headers/os
-I/boot/home/haiku_drm/headers/os/add-ons
-I/boot/home/haiku_drm/headers/os/add-ons/file_system
-I/boot/home/haiku_drm/headers/os/add-ons/graphics/legacy
-I/boot/home/haiku_drm/headers/os/add-ons/input_server
-I/boot/home/haiku_drm/headers/os/add-ons/registrar
-I/boot/home/haiku_drm/headers/os/add-ons/screen_saver
-I/boot/home/haiku_drm/headers/os/add-ons/tracker
-I/boot/home/haiku_drm/headers/os/app
-I/boot/home/haiku_drm/headers/os/device
-I/boot/home/haiku_drm/headers/os/drivers
-I/boot/home/haiku_drm/headers/os/game
-I/boot/home/haiku_drm/headers/os/interface
-I/boot/home/haiku_drm/headers/os/kernel
-I/boot/home/haiku_drm/headers/os/locale
-I/boot/home/haiku_drm/headers/os/media
-I/boot/home/haiku_drm/headers/os/mail
-I/boot/home/haiku_drm/headers/os/midi
-I/boot/home/haiku_drm/headers/os/midi2
-I/boot/home/haiku_drm/headers/os/net
-I/boot/home/haiku_drm/headers/os/storage
-I/boot/home/haiku_drm/headers/os/support
-I/boot/home/haiku_drm/headers/os/translation
-I/boot/home/haiku_drm/headers/private/. -o
"/boot/home/haiku_drm/generated/objects/haiku/x86_gcc2/release/add-ons/kernel/drivers/graphics/drm/drm_auth.o"
;

Notice that with Haiku it starts with gcc while not so in Linux. How to fix
that?

Thanks


On Wed, May 17, 2017 at 1:54 AM Vivek Roy <vivekroyandroid@xxxxxxxxx> wrote:

I see this
lrwxrwxrwx 1 root root 20 Apr 25 03:18 /usr/bin/cc -> /etc/alternatives/cc*
lrwxrwxrwx 1 root root 12 Apr 25 03:17 /etc/alternatives/cc ->
/usr/bin/gcc*
lrwxrwxrwx 1 root root 5 Apr 25 03:18 /usr/bin/gcc -> gcc-5*

and then
~ $ which gcc-5
/usr/bin/gcc-5



On Wed, May 17, 2017 at 1:48 AM François Revol <revol@xxxxxxx> wrote:

On 16/05/2017 21:58, Vivek Roy wrote:
I tried with bash, but the same thing happens. Here's a sample output:

ResComp1 data/mime_db/application.rsrc
/bin/sh: 3: -E: not found
ResComp1 data/mime_db/text.rsrc
/bin/sh: 3: -E: not found
ResComp1 data/mime_db/video.rsrc
/bin/sh: 3: -E: not found
ResComp1 data/mime_db/audio.rsrc
/bin/sh: 3: -E: not found
ResComp1 data/mime_db/image.rsrc
/bin/sh: 3: -E: not found


Are you sure $(CC) is set correctly?
Because that's what the rule calls with -E ...


François.


Other related posts: