Port-sparc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Link errors building netbsd-8 for SPARC



On both a SPARCstation 20 and on an amd64 system running netbsd-8, I’m running into linker errors trying to build the latest netbsd-8 code for SPARC.

Here’s how I’m building:

    # cd /usr/src
    # mkdir -p /other/sparc/{tools,obj}
    # ./build.sh -m sparc -T /other/sparc/tools -O /other/sparc/obj -u tools
    # ./build.sh -m sparc -T /other/sparc/tools -O /other/sparc/obj -u kernel=GENERIC.MP

I wind up with the below linker errors building the netbsd target, which upon examination of the source all relate to functions declared inline.

What am I doing incorrectly?

  -- Chris

#      link  GENERIC.MP/netbsd
/other/sparc/tools/bin/sparc--netbsdelf-ld -Map netbsd.map --cref -n -T netbsd.ldscript -Ttext F0004000 -e start -X -S -o netbsd ${SYSTEM_OBJ:[@]:Nswapnetbsd.o} ${EXTRA_OBJ} vers.o swapnetbsd.o
fd.o: In function `fdopen':
fd.c:(.text+0x2280): undefined reference to `fd_dev_to_type'
xd.o: In function `xdc_cmd':
xd.c:(.text+0x471c): undefined reference to `xdc_rqinit'
xd.o: In function `xdc_startbuf':
xd.c:(.text+0x4b2c): undefined reference to `xdc_rqinit'
xy.o: In function `xyc_cmd':
xy.c:(.text+0x3b28): undefined reference to `xyc_rqinit'
xy.o: In function `xyc_startbuf':
xy.c:(.text+0x3d2c): undefined reference to `xyc_rqinit'
magma.o: In function `cd1400_enable_transmitter':
magma.c:(.text+0x344): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x354): undefined reference to `cd1400_read_reg'
magma.c:(.text+0x388): undefined reference to `cd1400_write_reg'
magma.o: In function `magma_attach':
magma.c:(.text+0x7f8): undefined reference to `cd1400_read_reg'
magma.c:(.text+0x81c): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x82c): undefined reference to `cd1400_write_ccr'
magma.c:(.text+0x840): undefined reference to `cd1400_read_reg'
magma.c:(.text+0x8c4): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x900): undefined reference to `cd1400_write_reg'
magma.o: In function `magma_hard':
magma.c:(.text+0xb68): undefined reference to `cd1400_read_reg'
magma.c:(.text+0xc38): undefined reference to `cd1400_read_reg'
magma.c:(.text+0xc9c): undefined reference to `cd1400_read_reg'
magma.c:(.text+0xd4c): undefined reference to `cd1400_read_reg'
magma.c:(.text+0xd78): undefined reference to `cd1400_read_reg'
magma.o:magma.c:(.text+0xdc4): more undefined references to `cd1400_read_reg' follow
magma.o: In function `magma_hard':
magma.c:(.text+0xe98): undefined reference to `cd1400_write_reg'
magma.c:(.text+0xf20): undefined reference to `cd1400_read_reg'
magma.c:(.text+0xfb0): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x1084): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x10f4): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x1198): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x11ac): undefined reference to `cd1400_write_reg'
magma.o:magma.c:(.text+0x11f8): more undefined references to `cd1400_write_reg' follow
magma.o: In function `magma_hard':
magma.c:(.text+0x1330): undefined reference to `cd1400_read_reg'
magma.c:(.text+0x1358): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x139c): undefined reference to `cd1400_write_reg'
magma.o: In function `mttyopen':
magma.c:(.text+0x1dd4): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x1de4): undefined reference to `cd1400_write_ccr'
magma.c:(.text+0x1e04): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x1e3c): undefined reference to `cd1400_write_reg'
magma.o: In function `mtty_modem_control':
magma.c:(.text+0x2bb4): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x2c1c): undefined reference to `cd1400_read_reg'
magma.c:(.text+0x2c58): undefined reference to `cd1400_read_reg'
magma.c:(.text+0x2dac): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x2dd8): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x2e24): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x2e4c): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x2e98): undefined reference to `cd1400_write_reg'
magma.o:magma.c:(.text+0x2ec0): more undefined references to `cd1400_write_reg' follow
magma.o: In function `mtty_param':
magma.c:(.text+0x31b8): undefined reference to `cd1400_write_ccr'
magma.c:(.text+0x32ec): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x3338): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x334c): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x335c): undefined reference to `cd1400_write_ccr'
magma.c:(.text+0x3370): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x3384): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x3410): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x342c): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x3440): undefined reference to `cd1400_write_reg'
magma.o:magma.c:(.text+0x3870): more undefined references to `cd1400_write_reg' follow
magma.o: In function `mbppopen':
magma.c:(.text+0x3880): undefined reference to `cd1400_write_ccr'
magma.c:(.text+0x3894): undefined reference to `cd1400_write_reg'
magma.o: In function `mbppioctl':
magma.c:(.text+0x3be4): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x3bfc): undefined reference to `cd1400_read_reg'
magma.o: In function `mbpp_send':
magma.c:(.text+0x42d4): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x42e8): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x42f8): undefined reference to `cd1400_write_ccr'
magma.c:(.text+0x430c): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x434c): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x4360): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x4370): undefined reference to `cd1400_write_ccr'
magma.c:(.text+0x4380): undefined reference to `cd1400_write_ccr'
magma.o: In function `mbpp_recv':
magma.c:(.text+0x4430): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x4478): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x4494): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x44a8): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x44b8): undefined reference to `cd1400_write_ccr'
magma.c:(.text+0x44c8): undefined reference to `cd1400_write_ccr'
magma.c:(.text+0x44dc): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x451c): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x4530): undefined reference to `cd1400_write_reg'
magma.c:(.text+0x4540): undefined reference to `cd1400_write_ccr'

*** Failed target:  netbsd



Home | Main Index | Thread Index | Old Index