Skip to content

Trouble building executor on Ubuntu 15.04 - 64 bit #3

@stuaxo

Description

@stuaxo

I'm trying to build on 64 bit linux - as 32 bit (I use CC= -m32 .... )

config params:

CC='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

building - gets stuck as ARCH_TYPE_I386 is not delclared:

make
make  all-am
make[1]: Entering directory '/mnt/data/home/stu/projects/external/executor/build'
gcc -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
../src/main.c: In function ‘print_info’:
../src/main.c:1062:7: error: ‘arch_type’ undeclared (first use in this function)
   if (arch_type == ARCH_TYPE_I386)
       ^
../src/main.c:1062:7: note: each undeclared identifier is reported only once for each function it appears in
../src/main.c:1062:20: error: ‘ARCH_TYPE_I386’ undeclared (first use in this function)
   if (arch_type == ARCH_TYPE_I386)
                    ^
../src/main.c: In function ‘setstartdir’:
../src/main.c:694:2: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result [-Wunused-result]
  pipe((void *) p);
  ^
../src/main.c:698:6: warning: ignoring return value of ‘dup’, declared with attribute warn_unused_result [-Wunused-result]
      dup(p[1]);
      ^
../src/main.c:727:5: warning: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result [-Wunused-result]
     getcwd(savedir, sizeof savedir);
     ^
In file included from ../src/include/rsys/common.h:45:0,
                 from ../src/main.c:14:
../src/include/rsys/slash.h:31:16: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result]
 #define Uchdir chdir
                ^
../src/main.c:728:5: note: in expansion of macro ‘Uchdir’
     Uchdir(lookhere);
     ^
../src/main.c:731:5: warning: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result [-Wunused-result]
     getcwd(ROMlib_startdir, sizeof ROMlib_startdir);
     ^
In file included from ../src/include/rsys/common.h:45:0,
                 from ../src/main.c:14:
../src/include/rsys/slash.h:31:16: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result]
 #define Uchdir chdir
                ^
../src/main.c:732:5: note: in expansion of macro ‘Uchdir’
     Uchdir(savedir);
     ^
Makefile:1993: recipe for target 'main.o' failed
make[1]: *** [main.o] Error 1
make[1]: Leaving directory '/mnt/data/home/stu/projects/external/executor/build'
Makefile:1450: recipe for target 'all' failed
make: *** [all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions