netb2c / byte-unixbench

Automatically exported from code.google.com/p/byte-unixbench
0 stars 0 forks source link

Can't compile UnixBench for AIX #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I'm trying to get UnixBench running on AIX.
As make does not work on AIX, I used gmake.

Now, I'm getting the following error.
Checking distribution of files
./pgms  exists
./src  exists
./testdir  exists
./tmp  exists
./results  exists
gcc -o ./pgms/syscall -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer 
-fforce-addr -ffast-math -Wall ./src/syscall.c
In file included from ./src/syscall.c:31:
./src/timeit.c: In function 'wake_me':
./src/timeit.c:39: warning: implicit declaration of function 'alarm'
./src/syscall.c: In function 'main':
./src/syscall.c:67: warning: implicit declaration of function 'close'
./src/syscall.c:67: warning: implicit declaration of function 'dup'
./src/syscall.c:68: warning: implicit declaration of function 'getpid'
./src/syscall.c:69: warning: implicit declaration of function 'getuid'
./src/syscall.c:70: warning: implicit declaration of function 'umask'
./src/syscall.c:88: error: 'pid_t' undeclared (first use in this function)
./src/syscall.c:88: error: (Each undeclared identifier is reported only once
./src/syscall.c:88: error: for each function it appears in.)
./src/syscall.c:88: error: expected ';' before 'pid'
./src/syscall.c:89: error: 'pid' undeclared (first use in this function)
./src/syscall.c:93: warning: implicit declaration of function 'execl'
./src/syscall.c:97: warning: implicit declaration of function 'waitpid'
gmake: *** [pgms/syscall] Error 1

The system is AIX.

If someone could help, that'd be great.

Jean-Louis

Original issue reported on code.google.com by jeano...@gmail.com on 23 May 2011 at 11:09

GoogleCodeExporter commented 8 years ago
me too
i do it like this

#make
"Makefile", line 105: make: 1254-055 Dependency line needs colon or double 
colon operator.
"Makefile", line 107: make: 1254-055 Dependency line needs colon or double 
colon operator.
"Makefile", line 109: make: 1254-055 Dependency line needs colon or double 
colon operator.
make: 1254-058 Fatal errors encountered -- cannot continue.

AIX 6.1.7 @ Power710

Original comment by cassiush...@gmail.com on 7 Mar 2012 at 3:33

GoogleCodeExporter commented 8 years ago
I too have been unable to complete the "make" process and am on AIX.

My basic configuration:
Using unixbench source 5.1.3
AIX 6.1 TL07
gcc 4.3x and support libraries (sourced as RPM's compiled for my platform)
Using make not gmake 

The output is as follows:
--begin output-->

 make
Checking distribution of files
./pgms  exists
./src  exists
./testdir  exists
./tmp  exists
./results  exists
        gcc -o ./pgms/syscall -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/syscall.c
In file included from ./src/syscall.c:41:
./src/timeit.c: In function 'wake_me':
./src/timeit.c:39: warning: implicit declaration of function 'alarm'
./src/syscall.c: In function 'main':
./src/syscall.c:58: error: 'pid_t' undeclared (first use in this function)
./src/syscall.c:58: error: (Each undeclared identifier is reported only once
./src/syscall.c:58: error: for each function it appears in.)
./src/syscall.c:58: error: expected ';' before 'pid'
./src/syscall.c:78: warning: implicit declaration of function 'close'
./src/syscall.c:78: warning: implicit declaration of function 'dup'
./src/syscall.c:79: warning: implicit declaration of function 'getpid'
./src/syscall.c:80: warning: implicit declaration of function 'getuid'
./src/syscall.c:81: warning: implicit declaration of function 'umask'
./src/syscall.c:99: error: 'pid' undeclared (first use in this function)
./src/syscall.c:99: warning: implicit declaration of function 'fork'
./src/syscall.c:104: warning: implicit declaration of function 'execl'
./src/syscall.c:108: warning: implicit declaration of function 'waitpid'
make: 1254-004 The error code from the last command is 1.

Stop.
<--end output

Trying to resolve this I;
- verified the existence of the types.h and other referenced header files which 
appear to be where they are expected.
- tried pointing the code to different versions of mentioned header files 
- tried adding an appropriate declaration for the pid variable before the 
assignment is made 

Unfortunately no change whatsoever in the output, which remains as indicated 
above.
So what I am hoping for now is direction and assistance with regards to what 
else I should look to in order to resolve this..

Regards,
Marc.

Original comment by zm72...@gmail.com on 20 Sep 2012 at 2:15

GoogleCodeExporter commented 8 years ago
Dear All,

I did some changes to make it working in the Makefile:
# diff Makefile Makefile.orig
81,82c81
< ##CFLAGS = -DTIME -Wall -pedantic -ansi
< CFLAGS = -DTIME -Wall -pedantic
---
> CFLAGS = -DTIME -Wall -pedantic -ansi
138c137
<       /opt/freeware/bin/make all
---
>       make all

and Run as well:
# diff Run Run.orig
68,69d67
< my $MAKE = "/opt/freeware/bin/make";
<
790c788
<     system("$MAKE check");
---
>     system("make check");
792c790
<         system("$MAKE all");
---
>         system("make all");
794c792
<             abortRun("\"$MAKE all\" failed");
---
>             abortRun("\"make all\" failed");

Best Regards,
Tsvetin

Original comment by cec...@gmail.com on 29 Oct 2013 at 9:13