{"action":"created","issue":{"url":"https://api.github.com/repos/ctm/executor/issues/3","labels_url":"https://api.github.com/repos/ctm/executor/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/ctm/executor/issues/3/comments","events_url":"https://api.github.com/repos/ctm/executor/issues/3/events","html_url":"https://github.com/ctm/executor/issues/3","id":95646123,"number":3,"title":"Trouble building executor on Ubuntu 15.04 - 64 bit","user":{"login":"stuaxo","id":179677,"avatar_url":"https://avatars.githubusercontent.com/u/179677?v=3","gravatar_id":"","url":"https://api.github.com/users/stuaxo","html_url":"https://github.com/stuaxo","followers_url":"https://api.github.com/users/stuaxo/followers","following_url":"https://api.github.com/users/stuaxo/following{/other_user}","gists_url":"https://api.github.com/users/stuaxo/gists{/gist_id}","starred_url":"https://api.github.com/users/stuaxo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuaxo/subscriptions","organizations_url":"https://api.github.com/users/stuaxo/orgs","repos_url":"https://api.github.com/users/stuaxo/repos","events_url":"https://api.github.com/users/stuaxo/events{/privacy}","received_events_url":"https://api.github.com/users/stuaxo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-07-17T12:18:56Z","updated_at":"2015-12-30T08:14:43Z","closed_at":null,"body":"I'm trying to build on 64 bit linux - as 32 bit (I use CC= -m32 .... )\r\n\r\nconfig params:\r\n```\r\nCC='gcc -m32 -fno-stack-check -fno-stack-protector' OBJC='gcc -m32 -fno-stack-check -fno-stack-protector -w' ../src/configure --with-front-end=sdl --with-sound=sdl\r\n```\r\n\r\nbuilding - gets stuck as ARCH_TYPE_I386 is not delclared:\r\n```\r\nmake\r\nmake  all-am\r\nmake[1]: Entering directory '/mnt/data/home/stu/projects/external/executor/build'\r\ngcc -m32 -fno-stack-check -fno-stack-protector -DHAVE_CONFIG_H -I. -I../src  -I../src/include -I../src/config/front-ends/sdl -I../src/config/os/linux -I../src/config/arch/x86_64    -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o ../src/main.c\r\n../src/main.c: In function ‘print_info’:\r\n../src/main.c:1062:7: error: ‘arch_type’ undeclared (first use in this function)\r\n   if (arch_type == ARCH_TYPE_I386)\r\n       ^\r\n../src/main.c:1062:7: note: each undeclared identifier is reported only once for each function it appears in\r\n../src/main.c:1062:20: error: ‘ARCH_TYPE_I386’ undeclared (first use in this function)\r\n   if (arch_type == ARCH_TYPE_I386)\r\n                    ^\r\n../src/main.c: In function ‘setstartdir’:\r\n../src/main.c:694:2: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result [-Wunused-result]\r\n  pipe((void *) p);\r\n  ^\r\n../src/main.c:698:6: warning: ignoring return value of ‘dup’, declared with attribute warn_unused_result [-Wunused-result]\r\n      dup(p[1]);\r\n      ^\r\n../src/main.c:727:5: warning: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result [-Wunused-result]\r\n     getcwd(savedir, sizeof savedir);\r\n     ^\r\nIn file included from ../src/include/rsys/common.h:45:0,\r\n                 from ../src/main.c:14:\r\n../src/include/rsys/slash.h:31:16: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result]\r\n #define Uchdir chdir\r\n                ^\r\n../src/main.c:728:5: note: in expansion of macro ‘Uchdir’\r\n     Uchdir(lookhere);\r\n     ^\r\n../src/main.c:731:5: warning: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result [-Wunused-result]\r\n     getcwd(ROMlib_startdir, sizeof ROMlib_startdir);\r\n     ^\r\nIn file included from ../src/include/rsys/common.h:45:0,\r\n                 from ../src/main.c:14:\r\n../src/include/rsys/slash.h:31:16: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result]\r\n #define Uchdir chdir\r\n                ^\r\n../src/main.c:732:5: note: in expansion of macro ‘Uchdir’\r\n     Uchdir(savedir);\r\n     ^\r\nMakefile:1993: recipe for target 'main.o' failed\r\nmake[1]: *** [main.o] Error 1\r\nmake[1]: Leaving directory '/mnt/data/home/stu/projects/external/executor/build'\r\nMakefile:1450: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\n```"},"comment":{"url":"https://api.github.com/repos/ctm/executor/issues/comments/167955565","html_url":"https://github.com/ctm/executor/issues/3#issuecomment-167955565","issue_url":"https://api.github.com/repos/ctm/executor/issues/3","id":167955565,"user":{"login":"ssokolow","id":46915,"avatar_url":"https://avatars.githubusercontent.com/u/46915?v=3","gravatar_id":"","url":"https://api.github.com/users/ssokolow","html_url":"https://github.com/ssokolow","followers_url":"https://api.github.com/users/ssokolow/followers","following_url":"https://api.github.com/users/ssokolow/following{/other_user}","gists_url":"https://api.github.com/users/ssokolow/gists{/gist_id}","starred_url":"https://api.github.com/users/ssokolow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssokolow/subscriptions","organizations_url":"https://api.github.com/users/ssokolow/orgs","repos_url":"https://api.github.com/users/ssokolow/repos","events_url":"https://api.github.com/users/ssokolow/events{/privacy}","received_events_url":"https://api.github.com/users/ssokolow/received_events","type":"User","site_admin":false},"created_at":"2015-12-30T08:14:43Z","updated_at":"2015-12-30T08:14:43Z","body":"I ran into the same problems on Lubuntu 14.04 64-bit but was able to get a working Executor build using the following steps over and above what you already figured out:\r\n\r\nFirst, I don't know the proper way to do it, but libSDL-1.2 and libX11 need to be made visible to the library search:\r\n\r\n```sh\r\ncd /usr/lib/i386-linux-gnu\r\nsudo ln -s libSDL-1.2.so.0 libSDL-1.2.so\r\nsudo ln -s libX11.so.6 libX11.so\r\n```\r\n\r\nSecond, your `CC` and `OBJC` need to be joined by this `LIBS` when calling configure:\r\n```sh\r\nLIBS=\"-lSDL-1.2 -lX11 -ldb-5.3\"\r\n```"}}