Hi,
I'm trying to cross-compile the snmp agent for a arm-linux system on a Fedora 9
system and I get the following error: ""
/usr/local/arm/ep93xx-d1/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/bin/ld:
ERROR: /tmp/ccm9qwTf.o does not use Maverick instructions, whereas a.out does
Following is the screen output, as well as an extract from the config.log file.
Any help would be greatly appreciated...
First, the screen capture:
[r...@macadamian-plantcml net-snmp-5.5]# ./configure --target=arm-linux
--with-cc=/usr/local/arm/ep93xx-d1/bin/arm-linux-gcc
checking what to build and install... agent apps man local mibs
using default persistent mask 077
using default temporary file pattern /tmp/snmpdXXXXXX
using default AgentX socket /var/agentx/master
using default "enterprise.net-snmp"
using default enterprise sysOID "NET-SNMP-MIB::netSnmpAgentOIDs..."
using default notifications "NET-SNMP-MIB::netSnmpNotifications"
using OS default send buffer size for server sockets
using OS default recv buffer size for server sockets
using OS default send buffer size for client sockets
using OS default recv buffer size for client sockets
checking if I need to feed myself to ksh... no
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for grep that handles long lines and -e... (cached) /bin/grep
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for a sed that does not truncate output... /bin/sed
checking for find... find
checking for whoami... whoami
checking for autoconf... /usr/bin/autoconf
checking for autoheader... /usr/bin/autoheader
checking for perl... /usr/bin/perl
checking for ps... /bin/ps
checking for python... /usr/bin/python
checking for uname... /bin/uname
checking for gcc... /usr/local/arm/ep93xx-d1/bin/arm-linux-gcc
checking for C compiler default output file name...
configure: error: in `/home/sylvain.dery/Download/net-snmp-5.5':
configure: error: C compiler cannot create executables
See `config.log' for more details.
Looking at the config.log file, I see:
configure:5712: checking for C compiler default output file name
configure:5734: /usr/local/arm/ep93xx-d1/bin/arm-linux-gcc conftest.c >&5
$CC $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5
/usr/local/arm/ep93xx-d1/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/bin/ld:
ERROR: /tmp/ccm9qwTf.o does not use Maverick instructions, whereas a.out does
/usr/local/arm/ep93xx-d1/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/bin/ld:
failed to merge target specific data of file /tmp/ccm9qwTf.o
collect2: ld returned 1 exit status
configure:5738: $? = 1
configure:5776: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "Net-SNMP"
| #define PACKAGE_TARNAME "net-snmp"
| #define PACKAGE_VERSION "5.5"
| #define PACKAGE_STRING "Net-SNMP 5.5"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define NETSNMP_CONFIGURE_OPTIONS " '--target=arm-linux'
'--with-cc=/usr/local/arm/ep93xx-d1/bin/arm-linux-gcc' 'target_alias=arm-linux'"
| #define NETSNMP_ENABLE_SCAPI_AUTHPRIV 1
| #define NETSNMP_WITH_OPAQUE_SPECIAL_TYPES 1
| #define NETSNMP_PERSISTENT_MASK 077
| #define NETSNMP_TEMP_FILE_PATTERN "/tmp/snmpdXXXXXX"
| #define NETSNMP_NO_DUMMY_VALUES 1
| #define NETSNMP_AGENTX_SOCKET "/var/agentx/master"
| #define UNAMEPROG "/bin/uname"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:5782: error: in `/home/sylvain.dery/Download/net-snmp-5.5':
configure:5785: error: C compiler cannot create executables
_________________________________________________________________
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders