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

Can't compile UnixBench for AIX #5

Open
GoogleCodeExporter opened this issue Apr 9, 2015 · 3 comments
Open

Can't compile UnixBench for AIX #5

GoogleCodeExporter opened this issue Apr 9, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 23 May 2011 at 11:09

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 7 Mar 2012 at 3:33

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 20 Sep 2012 at 2:15

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 29 Oct 2013 at 9:13

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

No branches or pull requests

1 participant