Opened 17 years ago
Closed 17 years ago
#1666 closed bug (invalid)
JAM can't build image
Reported by: | artemm | Owned by: | bonefish |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Build System | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | x86 |
Description (last modified by )
OS: Linux Fedora Core 6
jam, binutils, gcc for cross compiling have been built succesfully.
trying to build haiku image and get this...
$ jam -q haiku-image ... ... ResComp1 generated/objects/haiku/x86/common/home-config-settings-printers-preview.rsrc rc: Error! -:2 syntax error, unexpected $undefined export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:generated/objects/linux/lib cat "data/image_directories/home-config-settings-printers-preview.rdef" | /home/haikuos/haiku/generated/cross-tools/bin/i586-pc-haiku-gcc -E -D__HAIKU__ -DHAIKU_DISTRO_COMPATIBILITY_DEFAULT -D__INTEL__ -DARCH_x86 -DHAIKU_TARGET_PLATFORM_HAIKU -iquote . -iquote generated/objects/common -iquote generated/objects/linux/x86/common -iquote generated/objects/haiku/x86/common - | egrep -v '^#' | generated/objects/linux/x86/release/tools/rc/rc -I . -I generated/objects/common -I generated/objects/linux/x86/common -I generated/objects/haiku/x86/common --auto-names -o "generated/objects/haiku/x86/common/home-config-settings-printers-preview.rsrc" - ...failed ResComp1 generated/objects/haiku/x86/common/home-config-settings-printers-preview.rsrc ... ...skipped <HaikuImage>haiku.image-make-dirs-attributes-home-config-settings-printers-Preview for lack of home-config-settings-printers-preview.rsrc... ...skipped <HaikuImage>haiku.image-make-dirs-attributes-dummy-home/config/settings/printers/Preview for lack of <HaikuImage>haiku.image-make-dirs-attributes-home-config-settings-printers-Preview... ...skipped /haiku.image for lack of <HaikuImage>haiku.image-make-dirs... ...failed updating 1 target(s)... ...skipped 3 target(s)... ...updated 4 target(s)...
how can i fix it?
Change History (10)
comment:1 by , 17 years ago
Description: | modified (diff) |
---|
comment:2 by , 17 years ago
ok. there is a result.
# 1 "" resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be.printer"; resource(1, "Printer Name") "Preview"; resource(2, "Driver Name") "Preview"; resource(3, "transport") ""; resource(4, "transport_address") ""; resource(5, "connection") "Local"; resource(6, "state") "free";
and something for this
generated/objects/linux/x86/release/tools/rc/rc -I . -I generated/objects/common -I generated/objects/linux/x86/common -I generated/objects/haiku/x86/common --auto-names -o "generated/objects/haiku/x86/common/home-config-settings-printers-preview.rsrc" -
i don't have "generated/objects/common" DIR! there is only "generated/objects/haiku" and "generated/objects/linux"
comment:3 by , 17 years ago
The missing directory is OK. The output looks good so far.
My suspicion is that egrep doesn't work as expected on your platform. Can you add that next part of the pipe ("| egrep -v '^#'"
) to the command line please, and try again. The first line of the output should disappear. If that doesn't work for some reason, please try "| grep -E -v '^#'"
instead.
comment:4 by , 17 years ago
yes, with (| egrep -v '#) line (# 1 "") disappears
p.s. when i start JAM w\o any options, i have a bunch of errors like (rc: Error! -:2 syntax error, unexpected $undefined)
comment:5 by , 17 years ago
made some tests with RC it doesn't work!!!
$ rc -o test.rsrc test.rdef rc: Error! test.rdef:1 syntax error, unexpected $undefined
contents of TEST.RDEF:
resource(1) 1;
also tested with RDEFs from "/src/tools/rc/tests"
comment:6 by , 17 years ago
something wrong in RC with reading token syntax! tested again and found "enum {};" doesn't work, but "enum{};" works. "enum {};" syntax using in *.rdef from haiku sources...
trying to find the right syntax for other tokens.
comment:7 by , 17 years ago
You don't have by any chance a 64 bit processor, use a 64 bit Linux, and didn't configure with --use-32bit?
comment:8 by , 17 years ago
Everything is 32bit and i didn't configure with -use-32bit
i can't understand why my RC don't work properly?
comment:9 by , 17 years ago
hmmmm.... some kind of magic! :) did nothing just rebuild RC again and it works now!
but i always have a trouble with line terminating characters if it in MS-DOS style. to prevent compiling errors have to convert all resources to UNIX line terminating style.
Thanks! close the ticket.
comment:10 by , 17 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Can you please run the first line ("export ...") and the first two segments of the pipe manually and report what is printed, i.e.:
and