Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile #2

Open
cehawkins opened this issue Jul 17, 2013 · 17 comments
Open

Unable to compile #2

cehawkins opened this issue Jul 17, 2013 · 17 comments

Comments

@cehawkins
Copy link

Arch Linux 3.9.9, gcc 4.8.1, ocaml 4.00.1, wxWidgets 2.9.4
configure runs fine. Following is output from make:

make -C wxDefsGen
make[1]: Entering directory `/home/charles/pkg/ocplib-wxOCaml/wxDefsGen'
g++ -g -O2  -I/usr/lib/wx/include/gtk2-unicode-2.9 -I/usr/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -g -fPIC -o gen_wxDefs  gen_wxDefs.cpp -pthread   -lwx_gtk2u_xrc-2.9 -lwx_gtk2u_webview-2.9 -lwx_gtk2u_stc-2.9 -lwx_gtk2u_richtext-2.9 -lwx_gtk2u_ribbon-2.9 -lwx_gtk2u_propgrid-2.9 -lwx_gtk2u_aui-2.9 -lwx_gtk2u_gl-2.9 -lwx_gtk2u_media-2.9 -lwx_gtk2u_html-2.9 -lwx_gtk2u_qa-2.9 -lwx_gtk2u_adv-2.9 -lwx_gtk2u_core-2.9 -lwx_baseu_xml-2.9 -lwx_baseu_net-2.9 -lwx_baseu-2.9 
In file included from gen_wxDefs.cpp:1:0:
../wxWidgets/wxOCaml.h:569:23: fatal error: wxClasses.h: No such file or directory
 #include "wxClasses.h"
                       ^
compilation terminated.
make[1]: *** [gen_wxDefs] Error 1
make[1]: Leaving directory `/home/charles/pkg/ocplib-wxOCaml/wxDefsGen'
make: *** [all] Error 2
@gour
Copy link

gour commented Sep 15, 2013

I've similar/same problem, built the latest ocp-build from github, installed wx-2.9.5 and here is the result:

[...]
Build Successful in 0.18s. 3 jobs (parallelism 0.5x), 5 files generated.
ocp-build: Leaving directory `/home/gour/repos/external/ocplib-wxOCaml'
../_obuild/gen_wxDefs/gen_wxDefs.asm
g++ -g -O2  -I/usr/local/lib/wx/include/gtk2-unicode-2.9 -I/usr/local/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -g -fPIC -o gen_wxDefs  gen_wxDefs.cpp -L/usr/local/lib -pthread   -lwx_gtk2u_xrc-2.9 -lwx_gtk2u_stc-2.9 -lwx_gtk2u_richtext-2.9 -lwx_gtk2u_ribbon-2.9 -lwx_gtk2u_propgrid-2.9 -lwx_gtk2u_aui-2.9 -lwx_gtk2u_gl-2.9 -lwx_gtk2u_html-2.9 -lwx_gtk2u_qa-2.9 -lwx_gtk2u_adv-2.9 -lwx_gtk2u_core-2.9 -lwx_baseu_xml-2.9 -lwx_baseu_net-2.9 -lwx_baseu-2.9 
In file included from gen_wxDefs.cpp:1:0:
../wxWidgets/wxOCaml.h:580:23: fatal error: wxClasses.h: No such file or directory
 #include "wxClasses.h"
                       ^
compilation terminated.
make[1]: *** [gen_wxDefs] Error 1
make[1]: Leaving directory `/home/gour/repos/external/ocplib-wxOCaml/wxDefsGen'
make: *** [all] Error 2

Any hint?

@schrodibear
Copy link

It seems wxClasses.h is generated by wxStubsGen. I did the following trick to make wxStubsGen compile and generate the file:

  • in wxWidgets/wxConfig.ocp
    • added a dummy section for the entire wxWidgets library and
    • commented out dependency on non-existent (yet) wxUSE.ml and wxHAS.ml:
begin library "wxWidgets"
end
begin library "wxConfig"
  (* files = [ "wxUSE.ml" "wxHAS.ml" ] *)
end

This allowed to avoid circular dependency caused by some ocp-build targets depending on wxWidgets declared in wxWidgets.ocp, which in its turn should be generated by wxStubsGen, which calls ocp-build in its Makefile... wxUSE.ml and wxHAS.ml are also generated.

  • called make in wxStubsGen:
cd wxStubsGen/
make
  • repaired back wxWidgets/wxConfig.ocp, because then the necessary files were already there;
  • then I got some unresolved link to libstdc++, so I added this library to config.ocp:
link += [ "-cclib" "-lwxOCaml_api  -L/usr/local/lib -pthread   -lwx_gtk2u_xrc-3.0 -lwx_gtk2u_stc-3.0 -lwx_gtk2u_richtext-3.0 -lwx_gtk2u_ribbon-3.0 -lwx_gtk2u_propgrid-3.0 -lwx_gtk2u_aui-3.0 -lwx_gtk2u_gl-3.0 -lwx_gtk2u_html-3.0 -lwx_gtk2u_qa-3.0 -lwx_gtk2u_adv-3.0 -lwx_gtk2u_core-3.0 -lwx_baseu_xml-3.0 -wx_baseu_net-3.0 -lwx_baseu-3.0  -lstdc++" ]
  • I evetually managed to compile ocplib-wxOCaml after that.

Maybe I'll try to fix the issues in the ocp-build configs and Makefiles, but haven't looked into how to do this yet.

@gour
Copy link

gour commented Oct 31, 2013

Maybe I'll try to fix the issues in the ocp-build configs and Makefiles, but haven't looked into how to do this yet.

Thank you for investigating the issue, but it's disheartening that there is nothing coming from the team. :-(

@lefessan
Copy link
Member

The thing is, I am working in parallel on many projects, among which the next version of ocp-build. That's the reason why there is a branch "next-ocpbuild" in this project, that is supposed to be more up-to-date than the master. Unfortunately, to use that branch, you need to use the "next" branch of "ocp-build", which still not stable.

Once the "next" branch of "ocp-build" has been released (i.e. after some bug fixes, that I might find the time to fix in a few weeks), the "next-ocpbuild" branch will be promoted to "master", and it will be easier to provide support on this project.

Thank you for investigating the issue, but it's disheartening that there is nothing coming from the team. :-(

That's not disheartening : the goal of having such a project open-source is that the community can improve it when the team cannot. The team is unfortunately scheduling its work based on customers' demands (and on finding customers when there is not enough demand...), and only working on such projects (= without customers) on our spare time.

@gour
Copy link

gour commented Oct 31, 2013

That's not disheartening : the goal of having such a project open-source is that the community can improve it when the team cannot.

Well, I understand open-source, but the issue is 4 months old without any comment and just providing short note (similar what you did now) saying: "We're working on new version, being busy with other stuff..." would look much better not giving impression that the project is abandoned, especially considering the project fails with the very first step while doing 'make'.

@lefessan
Copy link
Member

Could you try to compile using these settings:

If it fails, attach a complete log of the output.

Note that "make" and "make clean" are not going to work in that branch. You should clean the repo using "rm -f */.cm?" and such commands until they are fixed.

@gour
Copy link

gour commented Nov 1, 2013

If it fails, attach a complete log of the output.

Bear in mind that I'm totally unfamiliar with ocp-build and therefore not sure if 'ocp-build init' step was useful at all.

 gour  atmarama  ~  repos  external  ocplib-wxOCaml  next-ocpbuild  $ ocp-build
find_project_root
Error: could not find project root (_obuild/ directory)
  Did you run 'ocp-build init' ?
 gour  atmarama  ~  repos  external  ocplib-wxOCaml  next-ocpbuild  $ ocp-build init
 gour  atmarama  ~  repos  external  ocplib-wxOCaml  next-ocpbuild  $ ocp-build
find_project_root
Error while executing subprocess
  exception Unix_error(No such file or directory, execvp, ocamlfind)
Error: file "/home/gour/repos/external/ocplib-wxOCaml/config.ocpgen" does not exist.
Error: file "/home/gour/repos/external/ocplib-wxOCaml/wxWidgets/wxWidgets.ocpgen" does not exist.
Updating ocp-build.root
File "/home/gour/repos/external/ocplib-wxOCaml/samples/wxSamples-resources/resources.ocp", line 1, characters -1--1:
Error: in project "wxSamples-resources", the source filename
    "samples/wxSamples-resources/sample_xpm.ml" does not exist
RULE 68 (state active)
        SOURCE _obuild/wxSamples-resources/wxSamples-resources validated(not available)
        SOURCE samples/wxSamples-resources/sample_xpm.ml(not available)
        SOURCE _obuild/wxSamples-resources/sample_xpm.mlmods loaded(not available)
    /usr/bin/ocamlopt.opt -c -o ${temp}/sample_xpm.cmx -I ./_obuild/wxSamples-resources -I ./samples/wxSamples-resources samples/wxSamples-resources/sample_xpm.ml
    Rename ${temp}/sample_xpm.cmi to _obuild/wxSamples-resources/sample_xpm.cmi
    Rename ${temp}/sample_xpm.cmx to _obuild/wxSamples-resources/sample_xpm.cmx
    Rename ${temp}/sample_xpm.o to _obuild/wxSamples-resources/sample_xpm.o
        TARGET _obuild/wxSamples-resources/sample_xpm.cmi
        TARGET _obuild/wxSamples-resources/sample_xpm.cmx
        TARGET _obuild/wxSamples-resources/sample_xpm.o

@lefessan
Copy link
Member

lefessan commented Nov 1, 2013

Thanks for the log !

This error should now be fixed by commit e0acb27.

@gour
Copy link

gour commented Nov 1, 2013

find_project_root
Error while executing subprocess
  exception Unix_error(No such file or directory, execvp, ocamlfind)
Error: file "/home/gour/repos/external/ocplib-wxOCaml/config.ocpgen" does not exist.
Error: file "/home/gour/repos/external/ocplib-wxOCaml/wxWidgets/wxWidgets.ocpgen" does not exist.
Updating ocp-build.root
File "/home/gour/repos/external/ocplib-wxOCaml/wxDefsGen/wxDefsGen.ocp", line 1, characters -1--1:
Error: in project "gen_wxDefs", the source filename
    "wxWidgets/wxOCamlConfig.h" does not exist
RULE 119 (state active)
        SOURCE _obuild/gen_wxDefs/gen_wxDefs validated(not available)
        SOURCE wxWidgets/wxOCaml.h(exists)
        SOURCE wxWidgets/wxOCamlConfig.h(not available)
        SOURCE wxDefsGen/genWxUSE.cpp(not available)
    cd "/home/gour/repos/external/ocplib-wxOCaml/wxDefsGen"
    g++ -g -fPIC -o genWxUSE.bin genWxUSE.cpp 
        TARGET wxDefsGen/genWxUSE.bin

@lefessan
Copy link
Member

lefessan commented Nov 1, 2013

Should now be fixed in next-ocpbuild by commit 0e490c9

@gour
Copy link

gour commented Nov 1, 2013

 gour  atmarama  ~  repos  external  ocplib-wxOCaml  next-ocpbuild  $ ocp-build
find_project_root
Error while executing subprocess
  exception Unix_error(No such file or directory, execvp, ocamlfind)
Error: file "/home/gour/repos/external/ocplib-wxOCaml/config.ocpgen" does not exist.
Error: file "/home/gour/repos/external/ocplib-wxOCaml/wxWidgets/wxWidgets.ocpgen" does not exist.
Updating ocp-build.root
0.69s config/configure.                                                                                               [ done ]
11.94s ./config.ocpgen                                                                                                [ done ]
-- stdout of configure --
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ocamlc... ocamlc
OCaml version is 3.12.1
OCaml library path is /usr/lib/ocaml
checking for ocamlopt... ocamlopt
checking for ocamlc.opt... ocamlc.opt
checking for ocamlopt.opt... ocamlopt.opt
checking for ocaml... ocaml
checking for ocamldep... ocamldep
checking for ocamlmktop... ocamlmktop
checking for ocamlmklib... ocamlmklib
checking for ocamldoc... ocamldoc
checking for ocamlbuild... ocamlbuild
checking for camlp4... camlp4
checking for camlp4boot... no
checking for camlp4o... camlp4o
checking for camlp4of... camlp4of
checking for camlp4oof... camlp4oof
checking for camlp4orf... camlp4orf
checking for camlp4prof... camlp4prof
checking for camlp4r... camlp4r
checking for camlp4rf... camlp4rf
checking for a sed that does not truncate output... /bin/sed
checking Major version... 3
checking Minor version... 12
checking Point version... 1
checking for gawk... gawk
checking for wx-config... /usr/local/bin/wx-config
checking for wxWidgets version >= 2.9.0... yes (version 2.9.5)
checking for wxWidgets static library... no
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking wx/stc/stc.h usability... yes
checking wx/stc/stc.h presence... yes
checking for wx/stc/stc.h... yes
checking wx/wrapsizer.h usability... yes
checking wx/wrapsizer.h presence... yes
checking for wx/wrapsizer.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ../config.ocpgen
config.status: creating ../wxWidgets/wxOCamlConfig.h
NEED REBOOT
Build Successful in 13.60s. 2 jobs (parallelism 0.9x), 3 files generated.
Some configuration files were changed. Restarting build
Error: file "/home/gour/repos/external/ocplib-wxOCaml/wxWidgets/wxWidgets.ocpgen" does not exist.
Updating ocp-build.root
0.00s xpm2ml/xpm2ml.mlmods                                                                                           [ done ]
0.00s getDefines/getDefines.mlmods                                                                                   [ done ]
0.00s genWxConfig/genWxConfig.mlmods                                                                                 [ done ]
0.00s gen_wxDefs/gen_wxDefs.mlmods                                                                                   [ done ]
0.00s wxStubsGen/genVersion.mlmods                                                                                   [ done ]
0.00s wxStubsGen/genMisc.mlmods                                                                                      [ done ]
0.00s wxStubsGen/genTypes.mlmods                                                                                     [ done ]
0.01s wxStubsGen/genGlobals.mlmods                                                                                   [ done ]
0.01s getDefines/temp/define.ml                                                                                      [ done ]
-- stdout of ocamllex.opt --
36 states, 2711 transitions, table size 11060 bytes
0.00s wxStubsGen/temp/genParser.ml                                                                                   [ done ]
-- stderr of ocamlyacc --
26 shift/reduce conflicts, 7 reduce/reduce conflicts.
0.00s getDefines/define.mlmods                                                                                       [ done ]
0.00s wxStubsGen/genParser.mlimods                                                                                   [ done ]
0.00s wxStubsGen/genParser.mlmods                                                                                    [ done ]
0.00s wxStubsGen/genProject.mlmods                                                                                   [ done ]
0.01s wxStubsGen/genCplusplus.mlmods                                                                                 [ done ]
0.00s wxStubsGen/genOCaml.mlmods                                                                                     [ done ]
0.00s wxStubsGen/genEvents.mlmods                                                                                    [ done ]
0.00s wxStubsGen/genMain.mlmods                                                                                      [ done ]
0.00s calendar/calendar.mlmods                                                                                       [ done ]
0.00s dataview/dataview.mlmods                                                                                       [ done ]
0.01s dataview/dataview.cmo                                                                                          [ done ]
0.06s wxStubsGen/temp/genLexer.ml                                                                                    [ done ]
-- stdout of ocamllex.opt --
155 states, 21362 transitions, table size 86378 bytes
0.01s dataview/dataview.cmx                                                                                          [ done ]
0.06s wxStubsGen/genVersion.cmo                                                                                      [ done ]
0.02s wxStubsGen/genLexer.mlmods                                                                                     [ done ]
0.01s drawing/drawing.mlmods                                                                                         [ done ]
0.00s hello_world/hello.mlmods                                                                                       [ done ]
0.00s keyboard/keyboard.mlmods                                                                                       [ done ]
0.00s minimal/minimal.mlmods                                                                                         [ done ]
0.00s two_panels/two_panels.mlmods                                                                                   [ done ]
0.08s gen_wxDefs/gen_wxDefs.cmo                                                                                      [ done ]
0.08s genWxConfig/genWxConfig.cmo                                                                                    [ done ]
0.00s wizard/wizard.mlmods                                                                                           [ done ]
0.01s stc/stc.mlmods                                                                                                 [ done ]
0.03s wxStubsGen/genVersion.cmx                                                                                      [ done ]
0.00s wrapsizer/wrapsizer.mlmods                                                                                     [ done ]
0.03s gen_wxDefs/gen_wxDefs.cmx                                                                                      [ done ]
0.12s getDefines/define.cmo                                                                                          [ done ]
0.14s xpm2ml/xpm2ml.cmo                                                                                              [ done ]
0.09s genWxConfig/genWxConfig.cmx                                                                                    [ done ]
0.04s xpm2ml/xpm2ml.cmx                                                                                              [ done ]
0.11s gen_wxDefs/gen_wxDefs.byte                                                                                     [ done ]
0.12s genWxConfig/genWxConfig.byte                                                                                   [ done ]
0.19s wxStubsGen/genTypes.cmo                                                                                        [ done ]
0.07s getDefines/getDefines.cmo                                                                                      [ done ]
0.03s xpm2ml/xpm2ml.byte                                                                                             [ done ]
0.00s wxStubsGen/genParser.cmi                                                                                       [ done ]
0.00s getDefines/getDefines.byte                                                                                     [ done ]
0.02s wxStubsGen/genLexer.cmo                                                                                        [ done ]
0.03s wxStubsGen/genTypes.cmx                                                                                        [ done ]
0.24s wxStubsGen/genMisc.cmo                                                                                         [ done ]
0.01s wxStubsGen/genProject.cmo                                                                                      [ done ]
0.01s wxStubsGen/genEvents.cmo                                                                                       [ done ]
0.15s getDefines/define.cmx                                                                                          [ done ]
0.14s wxStubsGen/genMisc.cmx                                                                                         [ done ]
0.10s getDefines/getDefines.cmx                                                                                      [ done ]
0.02s wxStubsGen/genProject.cmx                                                                                      [ done ]
0.10s wxStubsGen/genEvents.cmx                                                                                       [ done ]
0.46s gen_wxDefs/gen_wxDefs.asm                                                                                      [ done ]
0.37s genWxConfig/genWxConfig.asm                                                                                    [ done ]
0.39s xpm2ml/xpm2ml.asm                                                                                              [ done ]
0.00s wxDefsGen/gen_wxDefs.cpp                                                                                       [ done ]
0.00s wxDefsGen/genWxUSE.cpp                                                                                         [ done ]
0.20s getDefines/getDefines.asm                                                                                      [ done ]
0.04s wxSamples-resources/wiztest_xpm.ml                                                                             [ done ]
0.04s wxSamples-resources/sample_xpm.ml                                                                              [ done ]
0.00s wxSamples-resources/sample_xpm.mlmods                                                                          [ done ]
0.01s wxSamples-resources/wiztest_xpm.mlmods                                                                         [ done ]
0.05s wxSamples-resources/smile_xpm.ml                                                                               [ done ]
0.00s wxSamples-resources/sample_xpm.cmo                                                                             [ done ]
0.00s wxSamples-resources/smile_xpm.mlmods                                                                           [ done ]
0.00s wxSamples-resources/smile_xpm.cmo                                                                              [ done ]
0.06s wxSamples-resources/wiztest2_xpm.ml                                                                            [ done ]
0.01s wxSamples-resources/wiztest_xpm.cmo                                                                            [ done ]
0.01s wxSamples-resources/sample_xpm.cmx                                                                             [ done ]
0.01s wxSamples-resources/wiztest2_xpm.mlmods                                                                        [ done ]
0.01s wxSamples-resources/smile_xpm.cmx                                                                              [ done ]
0.02s wxSamples-resources/wiztest_xpm.cmx                                                                            [ done ]
0.02s wxSamples-resources/wiztest2_xpm.cmo                                                                           [ done ]
0.00s wxSamples-resources/wxSamples-resources.cma                                                                    [ done ]
0.03s wxSamples-resources/wiztest2_xpm.cmx                                                                           [ done ]
0.16s wxSamples-resources/wxSamples-resources.cmxa                                                                   [ done ]
0.06s wxSamples-resources/wxSamples-resources.cmxa                                                                   [ done ]
3.73s wxDefsGen/gen_wxDefs.bin                                                                                       [failed]
[117.1] Command failed: 'g++' '-g' '-O2' '-I/usr/local/lib/wx/include/gtk2-unicode-2.9' '-I/usr/local/include/wx-2.9' '-D_FILE_OFFSET_BITS=64' '-DWXUSINGDLL' '-D__WXGTK__' '-g' '-fPIC' '-o' 'gen_wxDefs.bin' 'gen_wxDefs.cpp' '-L/usr/local/lib' '-pthread' '-lwx_gtk2u_xrc-2.9' '-lwx_gtk2u_stc-2.9' '-lwx_gtk2u_richtext-2.9' '-lwx_gtk2u_ribbon-2.9' '-lwx_gtk2u_propgrid-2.9' '-lwx_gtk2u_aui-2.9' '-lwx_gtk2u_gl-2.9' '-lwx_gtk2u_html-2.9' '-lwx_gtk2u_qa-2.9' '-lwx_gtk2u_adv-2.9' '-lwx_gtk2u_core-2.9' '-lwx_baseu_xml-2.9' '-lwx_baseu_net-2.9' '-lwx_baseu-2.9'
-- stderr of lib -pthread -lwx_gtk2u_xrc-2.9 -lwx_gtk2u_stc-2.9 -lwx_gtk2u_richtext-2.9 -lwx_gtk2u_ribbon-2.9 -lwx_gtk2u_propgrid-2.9 -lwx_gtk2u_aui-2.9 -lwx_gtk2u_gl-2.9 -lwx_gtk2u_html-2.9 -lwx_gtk2u_qa-2.9 -lwx_gtk2u_adv-2.9 -lwx_gtk2u_core-2.9 -lwx_baseu_xml-2.9 -lwx_baseu_net-2.9 -lwx_baseu-2.9 --
../api/wxDefs.dsc: In function ‘int main()’:
../api/wxDefs.dsc:1664:8: error: ‘wxSTC_CP_DBCS’ was not declared in this scope
 CONST( wxSTC_CP_DBCS )
        ^
gen_wxDefs.cpp:4:51: note: in definition of macro ‘CONST’
 #define CONST(name) printf("let " #name " = %d\n",name);
                                                   ^
../api/wxDefs.dsc:3053:8: error: ‘wxSTC_FS_ASM’ was not declared in this scope
 CONST( wxSTC_FS_ASM )
        ^
gen_wxDefs.cpp:4:51: note: in definition of macro ‘CONST’
 #define CONST(name) printf("let " #name " = %d\n",name);
                                                   ^
../api/wxDefs.dsc:3054:8: error: ‘wxSTC_FS_LABEL’ was not declared in this scope
 CONST( wxSTC_FS_LABEL )
        ^
gen_wxDefs.cpp:4:51: note: in definition of macro ‘CONST’
 #define CONST(name) printf("let " #name " = %d\n",name);
                                                   ^
../api/wxDefs.dsc:3055:8: error: ‘wxSTC_FS_ERROR’ was not declared in this scope
 CONST( wxSTC_FS_ERROR )
        ^
gen_wxDefs.cpp:4:51: note: in definition of macro ‘CONST’
 #define CONST(name) printf("let " #name " = %d\n",name);
                                                   ^
../api/wxDefs.dsc:3056:8: error: ‘wxSTC_FS_HEXNUMBER’ was not declared in this scope
 CONST( wxSTC_FS_HEXNUMBER )
        ^
gen_wxDefs.cpp:4:51: note: in definition of macro ‘CONST’
 #define CONST(name) printf("let " #name " = %d\n",name);
                                                   ^
../api/wxDefs.dsc:3057:8: error: ‘wxSTC_FS_BINNUMBER’ was not declared in this scope
 CONST( wxSTC_FS_BINNUMBER )
        ^
gen_wxDefs.cpp:4:51: note: in definition of macro ‘CONST’
 #define CONST(name) printf("let " #name " = %d\n",name);
                                                   ^
4.62s wxDefsGen/genWxHAS.bin                                                                                         [ done ]
4.82s wxDefsGen/genWxUSE.bin                                                                                         [ done ]
2 errors in 19.07s. 86 jobs (parallelism 0.9x), 138 files generated.
Error log:
Error:
[117.1] 'g++' '-g' '-O2' '-I/usr/local/lib/wx/include/gtk2-unicode-2.9' '-I/usr/local/include/wx-2.9' '-D_FILE_OFFSET_BITS=64' '-DWXUSINGDLL' '-D__WXGTK__' '-g' '-fPIC' '-o' 'gen_wxDefs.bin' 'gen_wxDefs.cpp' '-L/usr/local/lib' '-pthread' '-lwx_gtk2u_xrc-2.9' '-lwx_gtk2u_stc-2.9' '-lwx_gtk2u_richtext-2.9' '-lwx_gtk2u_ribbon-2.9' '-lwx_gtk2u_propgrid-2.9' '-lwx_gtk2u_aui-2.9' '-lwx_gtk2u_gl-2.9' '-lwx_gtk2u_html-2.9' '-lwx_gtk2u_qa-2.9' '-lwx_gtk2u_adv-2.9' '-lwx_gtk2u_core-2.9' '-lwx_baseu_xml-2.9' '-lwx_baseu_net-2.9' '-lwx_baseu-2.9'

../api/wxDefs.dsc: In function ‘int main()’:
../api/wxDefs.dsc:1664:8: error: ‘wxSTC_CP_DBCS’ was not declared in this scope
 CONST( wxSTC_CP_DBCS )
        ^
gen_wxDefs.cpp:4:51: note: in definition of macro ‘CONST’
 #define CONST(name) printf("let " #name " = %d\n",name);
                                                   ^
../api/wxDefs.dsc:3053:8: error: ‘wxSTC_FS_ASM’ was not declared in this scope
 CONST( wxSTC_FS_ASM )
        ^
gen_wxDefs.cpp:4:51: note: in definition of macro ‘CONST’
 #define CONST(name) printf("let " #name " = %d\n",name);
                                                   ^
../api/wxDefs.dsc:3054:8: error: ‘wxSTC_FS_LABEL’ was not declared in this scope
 CONST( wxSTC_FS_LABEL )
        ^
gen_wxDefs.cpp:4:51: note: in definition of macro ‘CONST’
 #define CONST(name) printf("let " #name " = %d\n",name);
                                                   ^
../api/wxDefs.dsc:3055:8: error: ‘wxSTC_FS_ERROR’ was not declared in this scope
 CONST( wxSTC_FS_ERROR )
        ^
gen_wxDefs.cpp:4:51: note: in definition of macro ‘CONST’
 #define CONST(name) printf("let " #name " = %d\n",name);
                                                   ^
../api/wxDefs.dsc:3056:8: error: ‘wxSTC_FS_HEXNUMBER’ was not declared in this scope
 CONST( wxSTC_FS_HEXNUMBER )
        ^
gen_wxDefs.cpp:4:51: note: in definition of macro ‘CONST’
 #define CONST(name) printf("let " #name " = %d\n",name);
                                                   ^
../api/wxDefs.dsc:3057:8: error: ‘wxSTC_FS_BINNUMBER’ was not declared in this scope
 CONST( wxSTC_FS_BINNUMBER )
        ^
gen_wxDefs.cpp:4:51: note: in definition of macro ‘CONST’
 #define CONST(name) printf("let " #name " = %d\n",name);
                                                   ^

Error:
Target wxDefsGen/gen_wxDefs.bin not built

@lefessan
Copy link
Member

lefessan commented Nov 1, 2013

Sounds like your version of wxWidgets is older than mine. At this point,
until such problems are detected in the configure, I would advise to edit
"api/wxDefs.dsc" and comment the lines causing the errors:

CONST( wxSTC_FS_ASM )
CONST( wxSTC_FS_LABEL )
CONST( wxSTC_FS_ERROR )
CONST( wxSTC_FS_HEXNUMBER )
CONST( wxSTC_FS_BINNUMBER )

=>

// CONST( wxSTC_FS_ASM )
// CONST( wxSTC_FS_LABEL )
// CONST( wxSTC_FS_ERROR )
// CONST( wxSTC_FS_HEXNUMBER )
// CONST( wxSTC_FS_BINNUMBER )

and so on.

On Fri, Nov 1, 2013 at 3:23 PM, Gour notifications@github.com wrote:

gour  atmarama  ~  repos  external  ocplib-wxOCaml  next-ocpbuild  $ ocp-build
find_project_root
Error while executing subprocess
exception Unix_error(No such file or directory, execvp, ocamlfind)
Error: file "/home/gour/repos/external/ocplib-wxOCaml/config.ocpgen" does not exist.
Error: file "/home/gour/repos/external/ocplib-wxOCaml/wxWidgets/wxWidgets.ocpgen" does not exist.
Updating ocp-build.root
0.69s config/configure. [ done ]
11.94s ./config.ocpgen [ done ]
-- stdout of configure --
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ocamlc... ocamlc
OCaml version is 3.12.1
OCaml library path is /usr/lib/ocaml
checking for ocamlopt... ocamlopt
checking for ocamlc.opt... ocamlc.opt
checking for ocamlopt.opt... ocamlopt.opt
checking for ocaml... ocaml
checking for ocamldep... ocamldep
checking for ocamlmktop... ocamlmktop
checking for ocamlmklib... ocamlmklib
checking for ocamldoc... ocamldoc
checking for ocamlbuild... ocamlbuild
checking for camlp4... camlp4
checking for camlp4boot... no
checking for camlp4o... camlp4o
checking for camlp4of... camlp4of
checking for camlp4oof... camlp4oof
checking for camlp4orf... camlp4orf
checking for camlp4prof... camlp4prof
checking for camlp4r... camlp4r
checking for camlp4rf... camlp4rf
checking for a sed that does not truncate output... /bin/sed
checking Major version... 3
checking Minor version... 12
checking Point version... 1
checking for gawk... gawk
checking for wx-config... /usr/local/bin/wx-config
checking for wxWidgets version >= 2.9.0... yes (version 2.9.5)
checking for wxWidgets static library... no
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking wx/stc/stc.h usability... yes
checking wx/stc/stc.h presence... yes
checking for wx/stc/stc.h... yes
checking wx/wrapsizer.h usability... yes
checking wx/wrapsizer.h presence... yes
checking for wx/wrapsizer.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ../config.ocpgen
config.status: creating ../wxWidgets/wxOCamlConfig.h
NEED REBOOT
Build Successful in 13.60s. 2 jobs (parallelism 0.9x), 3 files generated.
Some configuration files were changed. Restarting build
Error: file "/home/gour/repos/external/ocplib-wxOCaml/wxWidgets/wxWidgets.ocpgen" does not exist.
Updating ocp-build.root
0.00s xpm2ml/xpm2ml.mlmods [ done ]
0.00s getDefines/getDefines.mlmods [ done ]
0.00s genWxConfig/genWxConfig.mlmods [ done ]
0.00s gen_wxDefs/gen_wxDefs.mlmods [ done ]
0.00s wxStubsGen/genVersion.mlmods [ done ]
0.00s wxStubsGen/genMisc.mlmods [ done ]
0.00s wxStubsGen/genTypes.mlmods [ done ]
0.01s wxStubsGen/genGlobals.mlmods [ done ]
0.01s getDefines/temp/define.ml [ done ]
-- stdout of ocamllex.opt --
36 states, 2711 transitions, table size 11060 bytes
0.00s wxStubsGen/temp/genParser.ml [ done ]
-- stderr of ocamlyacc --
26 shift/reduce conflicts, 7 reduce/reduce conflicts.
0.00s getDefines/define.mlmods [ done ]
0.00s wxStubsGen/genParser.mlimods [ done ]
0.00s wxStubsGen/genParser.mlmods [ done ]
0.00s wxStubsGen/genProject.mlmods [ done ]
0.01s wxStubsGen/genCplusplus.mlmods [ done ]
0.00s wxStubsGen/genOCaml.mlmods [ done ]
0.00s wxStubsGen/genEvents.mlmods [ done ]
0.00s wxStubsGen/genMain.mlmods [ done ]
0.00s calendar/calendar.mlmods [ done ]
0.00s dataview/dataview.mlmods [ done ]
0.01s dataview/dataview.cmo [ done ]
0.06s wxStubsGen/temp/genLexer.ml [ done ]
-- stdout of ocamllex.opt --
155 states, 21362 transitions, table size 86378 bytes
0.01s dataview/dataview.cmx [ done ]
0.06s wxStubsGen/genVersion.cmo [ done ]
0.02s wxStubsGen/genLexer.mlmods [ done ]
0.01s drawing/drawing.mlmods [ done ]
0.00s hello_world/hello.mlmods [ done ]
0.00s keyboard/keyboard.mlmods [ done ]
0.00s minimal/minimal.mlmods [ done ]
0.00s two_panels/two_panels.mlmods [ done ]
0.08s gen_wxDefs/gen_wxDefs.cmo [ done ]
0.08s genWxConfig/genWxConfig.cmo [ done ]
0.00s wizard/wizard.mlmods [ done ]
0.01s stc/stc.mlmods [ done ]
0.03s wxStubsGen/genVersion.cmx [ done ]
0.00s wrapsizer/wrapsizer.mlmods [ done ]
0.03s gen_wxDefs/gen_wxDefs.cmx [ done ]
0.12s getDefines/define.cmo [ done ]
0.14s xpm2ml/xpm2ml.cmo [ done ]
0.09s genWxConfig/genWxConfig.cmx [ done ]
0.04s xpm2ml/xpm2ml.cmx [ done ]
0.11s gen_wxDefs/gen_wxDefs.byte [ done ]
0.12s genWxConfig/genWxConfig.byte [ done ]
0.19s wxStubsGen/genTypes.cmo [ done ]
0.07s getDefines/getDefines.cmo [ done ]
0.03s xpm2ml/xpm2ml.byte [ done ]
0.00s wxStubsGen/genParser.cmi [ done ]
0.00s getDefines/getDefines.byte [ done ]
0.02s wxStubsGen/genLexer.cmo [ done ]
0.03s wxStubsGen/genTypes.cmx [ done ]
0.24s wxStubsGen/genMisc.cmo [ done ]
0.01s wxStubsGen/genProject.cmo [ done ]
0.01s wxStubsGen/genEvents.cmo [ done ]
0.15s getDefines/define.cmx [ done ]
0.14s wxStubsGen/genMisc.cmx [ done ]
0.10s getDefines/getDefines.cmx [ done ]
0.02s wxStubsGen/genProject.cmx [ done ]
0.10s wxStubsGen/genEvents.cmx [ done ]
0.46s gen_wxDefs/gen_wxDefs.asm [ done ]
0.37s genWxConfig/genWxConfig.asm [ done ]
0.39s xpm2ml/xpm2ml.asm [ done ]
0.00s wxDefsGen/gen_wxDefs.cpp [ done ]
0.00s wxDefsGen/genWxUSE.cpp [ done ]
0.20s getDefines/getDefines.asm [ done ]
0.04s wxSamples-resources/wiztest_xpm.ml [ done ]
0.04s wxSamples-resources/sample_xpm.ml [ done ]
0.00s wxSamples-resources/sample_xpm.mlmods [ done ]
0.01s wxSamples-resources/wiztest_xpm.mlmods [ done ]
0.05s wxSamples-resources/smile_xpm.ml [ done ]
0.00s wxSamples-resources/sample_xpm.cmo [ done ]
0.00s wxSamples-resources/smile_xpm.mlmods [ done ]
0.00s wxSamples-resources/smile_xpm.cmo [ done ]
0.06s wxSamples-resources/wiztest2_xpm.ml [ done ]
0.01s wxSamples-resources/wiztest_xpm.cmo [ done ]
0.01s wxSamples-resources/sample_xpm.cmx [ done ]
0.01s wxSamples-resources/wiztest2_xpm.mlmods [ done ]
0.01s wxSamples-resources/smile_xpm.cmx [ done ]
0.02s wxSamples-resources/wiztest_xpm.cmx [ done ]
0.02s wxSamples-resources/wiztest2_xpm.cmo [ done ]
0.00s wxSamples-resources/wxSamples-resources.cma [ done ]
0.03s wxSamples-resources/wiztest2_xpm.cmx [ done ]
0.16s wxSamples-resources/wxSamples-resources.cmxa [ done ]
0.06s wxSamples-resources/wxSamples-resources.cmxa [ done ]
3.73s wxDefsGen/gen_wxDefs.bin [failed]
[117.1] Command failed: 'g++' '-g' '-O2' '-I/usr/local/lib/wx/include/gtk2-unicode-2.9' '-I/usr/local/include/wx-2.9' '-D_FILE_OFFSET_BITS=64' '-DWXUSINGDLL' '-D__WXGTK__' '-g' '-fPIC' '-o' 'gen_wxDefs.bin' 'gen_wxDefs.cpp' '-L/usr/local/lib' '-pthread' '-lwx_gtk2u_xrc-2.9' '-lwx_gtk2u_stc-2.9' '-lwx_gtk2u_richtext-2.9' '-lwx_gtk2u_ribbon-2.9' '-lwx_gtk2u_propgrid-2.9' '-lwx_gtk2u_aui-2.9' '-lwx_gtk2u_gl-2.9' '-lwx_gtk2u_html-2.9' '-lwx_gtk2u_qa-2.9' '-lwx_gtk2u_adv-2.9' '-lwx_gtk2u_core-2.9' '-lwx_baseu_xml-2.9' '-lwx_baseu_net-2.9' '-lwx_baseu-2.9'
-- stderr of lib -pthread -lwx_gtk2u_xrc-2.9 -lwx_gtk2u_stc-2.9 -lwx_gtk2u_richtext-2.9 -lwx_gtk2u_ribbon-2.9 -lwx_gtk2u_propgrid-2.9 -lwx_gtk2u_aui-2.9 -lwx_gtk2u_gl-2.9 -lwx_gtk2u_html-2.9 -lwx_gtk2u_qa-2.9 -lwx_gtk2u_adv-2.9 -lwx_gtk2u_core-2.9 -lwx_baseu_xml-2.9 -lwx_baseu_net-2.9 -lwx_baseu-2.9 --
../api/wxDefs.dsc: In function ‘int main()’:
../api/wxDefs.dsc:1664:8: error: ‘wxSTC_CP_DBCS’ was not declared in this scope
CONST( wxSTC_CP_DBCS )
^
gen_wxDefs.cpp:4:51: note: in definition of macro ‘CONST’
#define CONST(name) printf("let " #name " = %d\n",name);
^
../api/wxDefs.dsc:3053:8: error: ‘wxSTC_FS_ASM’ was not declared in this scope
CONST( wxSTC_FS_ASM )
^
gen_wxDefs.cpp:4:51: note: in definition of macro ‘CONST’
#define CONST(name) printf("let " #name " = %d\n",name);
^
../api/wxDefs.dsc:3054:8: error: ‘wxSTC_FS_LABEL’ was not declared in this scope
CONST( wxSTC_FS_LABEL )
^
gen_wxDefs.cpp:4:51: note: in definition of macro ‘CONST’
#define CONST(name) printf("let " #name " = %d\n",name);
^
../api/wxDefs.dsc:3055:8: error: ‘wxSTC_FS_ERROR’ was not declared in this scope
CONST( wxSTC_FS_ERROR )
^
gen_wxDefs.cpp:4:51: note: in definition of macro ‘CONST’
#define CONST(name) printf("let " #name " = %d\n",name);
^
../api/wxDefs.dsc:3056:8: error: ‘wxSTC_FS_HEXNUMBER’ was not declared in this scope
CONST( wxSTC_FS_HEXNUMBER )
^
gen_wxDefs.cpp:4:51: note: in definition of macro ‘CONST’
#define CONST(name) printf("let " #name " = %d\n",name);
^
../api/wxDefs.dsc:3057:8: error: ‘wxSTC_FS_BINNUMBER’ was not declared in this scope
CONST( wxSTC_FS_BINNUMBER )
^
gen_wxDefs.cpp:4:51: note: in definition of macro ‘CONST’
#define CONST(name) printf("let " #name " = %d\n",name);
^
4.62s wxDefsGen/genWxHAS.bin [ done ]
4.82s wxDefsGen/genWxUSE.bin [ done ]
2 errors in 19.07s. 86 jobs (parallelism 0.9x), 138 files generated.
Error log:
Error:
[117.1] 'g++' '-g' '-O2' '-I/usr/local/lib/wx/include/gtk2-unicode-2.9' '-I/usr/local/include/wx-2.9' '-D_FILE_OFFSET_BITS=64' '-DWXUSINGDLL' '-D__WXGTK__' '-g' '-fPIC' '-o' 'gen_wxDefs.bin' 'gen_wxDefs.cpp' '-L/usr/local/lib' '-pthread' '-lwx_gtk2u_xrc-2.9' '-lwx_gtk2u_stc-2.9' '-lwx_gtk2u_richtext-2.9' '-lwx_gtk2u_ribbon-2.9' '-lwx_gtk2u_propgrid-2.9' '-lwx_gtk2u_aui-2.9' '-lwx_gtk2u_gl-2.9' '-lwx_gtk2u_html-2.9' '-lwx_gtk2u_qa-2.9' '-lwx_gtk2u_adv-2.9' '-lwx_gtk2u_core-2.9' '-lwx_baseu_xml-2.9' '-lwx_baseu_net-2.9' '-lwx_baseu-2.9'

../api/wxDefs.dsc: In function ‘int main()’:
../api/wxDefs.dsc:1664:8: error: ‘wxSTC_CP_DBCS’ was not declared in this scope
CONST( wxSTC_CP_DBCS )
^
gen_wxDefs.cpp:4:51: note: in definition of macro ‘CONST’
#define CONST(name) printf("let " #name " = %d\n",name);
^
../api/wxDefs.dsc:3053:8: error: ‘wxSTC_FS_ASM’ was not declared in this scope
CONST( wxSTC_FS_ASM )
^
gen_wxDefs.cpp:4:51: note: in definition of macro ‘CONST’
#define CONST(name) printf("let " #name " = %d\n",name);
^
../api/wxDefs.dsc:3054:8: error: ‘wxSTC_FS_LABEL’ was not declared in this scope
CONST( wxSTC_FS_LABEL )
^
gen_wxDefs.cpp:4:51: note: in definition of macro ‘CONST’
#define CONST(name) printf("let " #name " = %d\n",name);
^
../api/wxDefs.dsc:3055:8: error: ‘wxSTC_FS_ERROR’ was not declared in this scope
CONST( wxSTC_FS_ERROR )
^
gen_wxDefs.cpp:4:51: note: in definition of macro ‘CONST’
#define CONST(name) printf("let " #name " = %d\n",name);
^
../api/wxDefs.dsc:3056:8: error: ‘wxSTC_FS_HEXNUMBER’ was not declared in this scope
CONST( wxSTC_FS_HEXNUMBER )
^
gen_wxDefs.cpp:4:51: note: in definition of macro ‘CONST’
#define CONST(name) printf("let " #name " = %d\n",name);
^
../api/wxDefs.dsc:3057:8: error: ‘wxSTC_FS_BINNUMBER’ was not declared in this scope
CONST( wxSTC_FS_BINNUMBER )
^
gen_wxDefs.cpp:4:51: note: in definition of macro ‘CONST’
#define CONST(name) printf("let " #name " = %d\n",name);
^

Error:
Target wxDefsGen/gen_wxDefs.bin not built


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-27568801
.

Fabrice LE FESSANT

@gour
Copy link

gour commented Nov 1, 2013

Sounds like your version of wxWidgets is older than mine.

I've 2.9.5 installed.

@lefessan
Copy link
Member

lefessan commented Nov 1, 2013

Maybe it's the contrary, they removed some constants afterwards...

On Fri, Nov 1, 2013 at 3:49 PM, Gour notifications@github.com wrote:

Sounds like your version of wxWidgets is older than mine.

I've 2.9.5 installed.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-27570749
.

Fabrice LE FESSANT

@gour
Copy link

gour commented Nov 1, 2013

Considering that 3.0 is around the corner, maybe it's better to target that one?

@lefessan
Copy link
Member

lefessan commented Nov 1, 2013

I was said 3.0 has been around the corner for a few years. Is there any deadline for it now ?

@gour
Copy link

gour commented Nov 1, 2013

Yes, Nov 10th. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants