Skip to contentSkip to conversation

2.4.6-pre8 build error of aic7xxx

DISCUSSION Rodrigo Ventura 4 participants 5 messages Jun 30, 2001

lore
Share & tools
lore
#0 lore raw

I got the following build error of aic7xxx drivers, with
kernel 2.4.6-pre8:

----------------------------------------------------------------------
[...]
make[2]: Entering directory `/usr/src/linux/drivers/scsi'
make -C aic7xxx
make[3]: Entering directory `/usr/src/linux/drivers/scsi/aic7xxx'
make all_targets
make[4]: Entering directory `/usr/src/linux/drivers/scsi/aic7xxx'
make -C aicasm
make[5]: Entering directory `/usr/src/linux/drivers/scsi/aic7xxx/aicasm' gcc -I/usr/include -I. -ldb aicasm_gram.c aicasm_scan.c aicasm.c aicasm_symbol.c -o aicasm /usr/i486-linux/bin/ld: cannot open -ldb: No such file or directory
collect2: ld returned 1 exit status
make[5]: *** [aicasm] Error 1
[...]
----------------------------------------------------------------------

The gcc I'm using is:

----------------------------------------------------------------------
Reading specs from /usr/lib/gcc-lib/i486-linux/egcs-2.91.66/specs gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
----------------------------------------------------------------------

Here goes the relevant part of config:

----------------------------------------------------------------------
[...]
#
# SCSI low-level drivers
#
CONFIG_SCSI_AIC7XXX=y
CONFIG_AIC7XXX_CMDS_PER_DEVICE=253
CONFIG_AIC7XXX_RESET_DELAY_MS=15000
CONFIG_AIC7XXX_BUILD_FIRMWARE=y
[...]
----------------------------------------------------------------------

Cheers,

Signature · 6 lines
*** Rodrigo Martins de Matos Ventura <[email protected]>
***  Web page: http://www.isr.ist.utl.pt/~yoda
***   Teaching Assistant and PhD Student at ISR:
***    Instituto de Sistemas e Robotica, Polo de Lisboa
***     Instituto Superior Tecnico, Lisboa, PORTUGAL
*** PGP fingerprint = 0119 AD13 9EEE 264A 3F10  31D3 89B3 C6C4 60C6 4585
#1 lore raw
Quoted 18 lines · On 30 Jun 2001 18:13:42 +0100 Rodrigo Ventura <[email protected]> wrote:

I got the following build error of aic7xxx drivers, with
kernel 2.4.6-pre8:

----------------------------------------------------------------------
[...]
make[2]: Entering directory `/usr/src/linux/drivers/scsi'
make -C aic7xxx
make[3]: Entering directory `/usr/src/linux/drivers/scsi/aic7xxx'
make all_targets
make[4]: Entering directory `/usr/src/linux/drivers/scsi/aic7xxx'
make -C aicasm
make[5]: Entering directory `/usr/src/linux/drivers/scsi/aic7xxx/aicasm' gcc -I/usr/include -I. -ldb aicasm_gram.c aicasm_scan.c aicasm.c aicasm_symbol.c -o aicasm /usr/i486-linux/bin/ld: cannot open -ldb: No such file or directory
collect2: ld returned 1 exit status
make[5]: *** [aicasm] Error 1
[...]
----------------------------------------------------------------------

may be a 'make mrproper' solves your problem,

bernfried molte

#2 lore raw

Re: 2.4.6-pre8 build error of aic7xxxt

Quoted 8 lines
Quoted 6 lines

gcc -I/usr/include -I. -ldb aicasm_gram.c aicasm_scan.c aicasm.c aicasm_symbol.c -o aicasm /usr/i486-linux/bin/ld: cannot open -ldb: No such file or directory
collect2: ld returned 1 exit status
make[5]: *** [aicasm] Error 1
[...]
----------------------------------------------------------------------

may be a 'make mrproper' solves your problem,

Unlikely since the problem is the fact that the scsi firmware assembler wants a library that isnt installed.

#3 lore raw

Re: 2.4.6-pre8 build error of aic7xxxt

Quoted 8 lines · Alan Cox
Quoted 8 lines
Quoted 7 lines

gcc -I/usr/include -I. -ldb aicasm_gram.c aicasm_scan.c aicasm.c aicasm_symbol.c -o aicasm /usr/i486-linux/bin/ld: cannot open -ldb: No such file or directory
collect2: ld returned 1 exit status
make[5]: *** [aicasm] Error 1
[...]
----------------------------------------------------------------------

Quoted 4 lines
Quoted 1 line

may be a 'make mrproper' solves your problem,

Unlikely since the problem is the fact that the scsi firmware assembler wants a library that isnt installed.

It is not necessary to re-build the firmware (according to Justin). Disable that option and try to rebuild again.

Signature · 1 line
     Rafael
#4 lore raw

Re: 2.4.6-pre8 build error of aic7xxxt

In reply to Alan Cox
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

"AC" == Alan Cox <[email protected]> writes:

may be a 'make mrproper' solves your problem,

AC> Unlikely since the problem is the fact that the scsi firmware AC> assembler wants a library that isnt installed.

It seems the libdb is in fact installed. I just added a
symlink from libdb.so.3 to libdb.so and it worked. This was probably a side effect of installing glibc2.2 rpm from SuSE on top a SuSE 6.3 install (glibc2.1, IIRC).

Cheers,

PS: Why does the firmware assembler needs libdb, anyway??

Signature · 6 lines
*** Rodrigo Martins de Matos Ventura <[email protected]>
***  Web page: http://www.isr.ist.utl.pt/~yoda
***   Teaching Assistant and PhD Student at ISR:
***    Instituto de Sistemas e Robotica, Polo de Lisboa
***     Instituto Superior Tecnico, Lisboa, PORTUGAL
*** PGP fingerprint = 0119 AD13 9EEE 264A 3F10  31D3 89B3 C6C4 60C6 4585