1753776 Members
7685 Online
108799 Solutions
New Discussion юеВ

gcc for hpux dlkm

 
SOLVED
Go to solution
honggaoyan
Advisor

gcc for hpux dlkm

can gcc complier the hpux dlkm
where can i get the information?
23 REPLIES 23
Steven Schweda
Honored Contributor

Re: gcc for hpux dlkm

Does that question make any sense to you?
It makes none to me.

What's a "dlkm"?
honggaoyan
Advisor

Re: gcc for hpux dlkm

hpux kernel module
Steven Schweda
Honored Contributor

Re: gcc for hpux dlkm

I know nothing, but I thought that the kernel
was always built using the bundled C
compiler.
Dennis Handly
Acclaimed Contributor
Solution

Re: gcc for hpux DLKM

>can gcc compiler the HP-UX DLKM?

What OS and architecture?
No, you MUST use HP's ANSI C compiler.

http://www.hp.com/go/hpux_ddk
http://h21007.www2.hp.com/portal/download/files/unprot/ddk/HP-UXDDKFAQ.htm

>Steven: Does that question make any sense to you? What's a "DLKM"?

This is an intelligence test.  If you know, you can obviously answer the question. ;-)
A quick search by mr google finds it right away.
http://www.docs.hp.com/en/B3782-90716/ch02s10.html
http://www.docs.hp.com/en/dlkm-62001/index.html

Dennis Handly
Acclaimed Contributor

Re: gcc for hpux DLKM

>Steven: but I thought that the kernel was always built using the bundled C compiler.

honggaoyan is writing a device driver (DLKM).
And the kernel no longer uses the bundled C compiler after 11.11.

honggaoyan
Advisor

Re: gcc for hpux dlkm

OS and architecture
#uname -a
HP-UX rp5470 B.11.11 U 9000/800 142444635 unlimited-user license
honggaoyan
Advisor

Re: gcc for hpux dlkm

my macheine have three compilers


#gcc -v
Using built-in specs.
Target: hppa1.1-hp-hpux11.11
Configured with: /tmp/gcc-4.3.1.tar.gz/gcc-4.3.1/configure --host=hppa1.1-hp-hpux11.11 --target=hppa1.1-hp-hpux11.11 --build=hppa1.1-hp-hpux11.11 --prefix=/opt/hp-gcc-4.3.1 --with-gnu-as --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix --enable-languages=c,c++ --with-gmp=/proj/opensrc/be/hppa1.1-hp-hpux11.11 --with-mpfr=/proj/opensrc/be/hppa1.1-hp-hpux11.11
├и ┬╜├з ┬иgcc├з┬╝ ├и┬п hp_ux├з module├е ,├ж ├и┬┐ ├ж ┬╣├й ┬в├з ├д┬╛ ├е┬н ├е ?

#aCC -V
aCC: HP ANSI C++ B3910B A.03.33
#which aCC
/opt/aCC/bin/aCC

#cc -v
(Bundled) cc: NLSPATH is /usr/lib/nls/msg/%L/%N.cat:/usr/lib/nls/msg/C/%N.cat:
(Bundled) cc: CCOPTS is not set.
(Bundled) cc: INCLUDIR is INCLUDIR=/usr/include
#which cc
/usr/bin/cc

aCC is hp ansic compiler├п┬╝
honggaoyan
Advisor

Re: gcc for hpux dlkm

my macheine have three compilers

#gcc -v
Using built-in specs.
Target: hppa1.1-hp-hpux11.11
Configured with: /tmp/gcc-4.3.1.tar.gz/gcc-4.3.1/configure --host=hppa1.1-hp-hpux11.11 --target=hppa1.1-hp-hpux11.11 --build=hppa1.1-hp-hpux11.11 --prefix=/opt/hp-gcc-4.3.1 --with-gnu-as --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix --enable-languages=c,c++ --with-gmp=/proj/opensrc/be/hppa1.1-hp-hpux11.11 --with-mpfr=/proj/opensrc/be/hppa1.1-hp-hpux11.11

#aCC -V
aCC: HP ANSI C++ B3910B A.03.33
#which aCC
/opt/aCC/bin/aCC

#cc -v
(Bundled) cc: NLSPATH is /usr/lib/nls/msg/%L/%N.cat:/usr/lib/nls/msg/C/%N.cat:
(Bundled) cc: CCOPTS is not set.
(Bundled) cc: INCLUDIR is INCLUDIR=/usr/include
#which cc
/usr/bin/cc

aCC is ansic compiler?
Dennis Handly
Acclaimed Contributor

Re: gcc for hpux DLKM

>aCC is ANSI C compiler?

No, it is a C++ compiler. And A.03.33 is not supported, it is over 7 years old.
While aCC has a -Ae option, it may not be enough to compile a DLKM correctly.