Skip to contentSkip to conversation

mips fix

DISCUSSION Ryan Underwood 2 participants 3 messages Sep 8, 2003 – Sep 16, 2003

lore
Share & tools
lore
#0 lore raw

In configure.in:
mips*)

    c_opts="-mcpu=r4600 -G 0 -mips2 -fno-pic -mno-abicalls -mlong-calls"
    processor="mips"
    test "$CONFIG_ISA" = "probe" && CONFIG_ISA=
    ;;

-mcpu apparently needs to be changed for latest versions of gcc, as -mcpu is no longer an option on mips architecture.

Anyone else build ALSA on mips recently?

Signature · 7 lines
Ryan Underwood, <nemesis at icequake.net>, icq=10317253


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
#1 lore raw

At Sun, 7 Sep 2003 22:36:57 -0500,

Quoted 4 lines · Ryan Underwood

In configure.in:
mips*)

Quoted 8 lines
    c_opts="-mcpu=r4600 -G 0 -mips2 -fno-pic -mno-abicalls -mlong-calls"
    processor="mips"
    test "$CONFIG_ISA" = "probe" && CONFIG_ISA=
    ;;

-mcpu apparently needs to be changed for latest versions of gcc, as -mcpu is no longer an option on mips architecture.

ok, i tried to fix it on cvs.
could you give a try?

Takashi

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#2 lore raw

Hi,

Quoted 12 lines · Takashi Iwai

At Sun, 7 Sep 2003 22:36:57 -0500,

Quoted 10 lines · Ryan Underwood

In configure.in:
mips*)

    c_opts="-mcpu=r4600 -G 0 -mips2 -fno-pic -mno-abicalls -mlong-calls"
    processor="mips"
    test "$CONFIG_ISA" = "probe" && CONFIG_ISA=
    ;;
Quoted 5 lines
Quoted 2 lines

-mcpu apparently needs to be changed for latest versions of gcc, as -mcpu is no longer an option on mips architecture.

ok, i tried to fix it on cvs.
could you give a try?

Hmm, using -DEXPORT_SYMTAB has a problem in module.h, which is included from adriver.h:

#ifdef __GENKSYMS__

#  define _set_ver(sym) sym
#  undef  MODVERSIONS
#  define MODVERSIONS
#else /* ! __GENKSYMS__ */
# if !defined(MODVERSIONS) && defined(EXPORT_SYMTAB)
#   define _set_ver(sym) sym
#   include <linux/modversions.h>
# endif
#endif /* __GENKSYMS__ */

Since MODVERSIONS is not defined with the mips kernel (module versioning is disabled) and EXPORT_SYMTAB is defined, it tries to include linux/modversions.h, which doesn't exist in the mips kernel.

Removing -DEXPORT_SYMTAB from Rules.make causes the build to die with:
hwdep.c:501: error: syntax error before "this_object_must_be_defined_as_export_objs_in_the_Makefile"

on the last line which exports a symbol:
EXPORT_SYMBOL(snd_hwdep_new);

Any ideas? I posted to debian-mips before and received no reply.

Signature · 1 line
Ryan Underwood, <nemesis at icequake.net>, icq=10317253