All of lore.kernel.org
 help / color / mirror / Atom feed
* compilation errors
@ 2008-07-01 11:21 Jean-Francois Moine
  0 siblings, 0 replies; 13+ messages in thread
From: Jean-Francois Moine @ 2008-07-01 11:21 UTC (permalink / raw)
  To: video4linux-list

Hi all,

There should be something I missed in the linuxtv documents.

When I do a simple 'make', in v4l, it generates almost all the .ko files
of the modules of the first level. But I cannot find, for example, any
v4l2-common.ko, nor tuner-simple.ko.

Then, I linked by hand the tree to my kernel (2.6.26-rc8). I thought
some links only were needed, so I linked:
	drivers/media
	include/media
	include/linux/videodev2.h
A 'make' in the kernel tree stops with many warnings and errors, mainly:
	warning: "LINUX_VERSION_CODE" is not defined

Any hint? Thank you.

-- 
Ken ar c'hentañ |             ** Breizh ha Linux atav! **
Jef             |               http://moinejf.free.fr/


--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Compilation errors
@ 2022-04-01  9:35 Fabio M. De Francesco
  2022-04-01 10:13 ` Stefano Brivio
  0 siblings, 1 reply; 13+ messages in thread
From: Fabio M. De Francesco @ 2022-04-01  9:35 UTC (permalink / raw)
  To: outreachy

Hello everybody,

I've made hundreds of Linux builds and never had problems, but since 
few days I'm not anymore able to compile the kernel with GCC or Clang.

I get many errors like the following and the build crashes:

# CC=gcc-11 make -j12
[...]
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c: In function ‘bnx2x_check_blocks_with_parity3’:
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:4917:4: error: case label does not reduce to an integer constant
    case AEU_INPUTS_ATTN_BITS_MCP_LATCHED_SCPAD_PARITY:
[...]
make[5]: *** [scripts/Makefile.build:289: drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.o] Error 1
make[4]: *** [scripts/Makefile.build:551: drivers/net/ethernet/broadcom/bnx2x] Error 2
make[4]: *** Waiting for unfinished jobs....

One more example...

# make mrproper
# CC=clang make -j12
[...]
drivers/usb/typec/tcpm/tcpm.c:4724:3: error: case label does not reduce to an integer constant
   case BDO_MODE_TESTDATA:
   ^~~~
make[4]: *** [scripts/Makefile.build:288: drivers/usb/typec/tcpm/tcpm.o] Error 1
make[3]: *** [scripts/Makefile.build:550: drivers/usb/typec/tcpm] Error 2
make[2]: *** [scripts/Makefile.build:550: drivers/usb/typec] Error 2
make[2]: *** Waiting for unfinished jobs....

Can someone help me to understand what is happening and how to fix this issue?
Could it depend on a configuration option that, unintentionally enabled, make 
the build fail whenever "case label does not reduce to an integer constant" is 
hit? If so, which option?

Thanks,

Fabio M. De Francesco



^ permalink raw reply	[flat|nested] 13+ messages in thread
* Compilation errors
@ 2008-02-05  2:59 Peter Teoh
  0 siblings, 0 replies; 13+ messages in thread
From: Peter Teoh @ 2008-02-05  2:59 UTC (permalink / raw)
  To: linux-mm; +Cc: kernelnewbies@nl.linux.org

I pulled the git from linux-mm today, and compiled with the following errors:

  CC      arch/x86/kernel/apm_32.o
arch/x86/kernel/apm_32.c: In function 'suspend':
arch/x86/kernel/apm_32.c:1192: warning: 'pm_send_all' is deprecated
(declared at include/linux/pm_legacy.h:16)
arch/x86/kernel/apm_32.c:1227: warning: 'pm_send_all' is deprecated
(declared at include/linux/pm_legacy.h:16)
arch/x86/kernel/apm_32.c: In function 'check_events':
arch/x86/kernel/apm_32.c:1340: warning: 'pm_send_all' is deprecated
(declared at include/linux/pm_legacy.h:16)
  LD      arch/x86/kernel/apm.o
  CC      arch/x86/kernel/smp_32.o

And the following errors:

  CC      arch/x86/mm/ioremap.o
arch/x86/mm/ioremap.c: In function '__ioremap':
arch/x86/mm/ioremap.c:106: error: expected expression before '<<' token
arch/x86/mm/ioremap.c:108: error: expected expression before '==' token
arch/x86/mm/ioremap.c:109:9: error: invalid suffix
"d45b22c079946332bf3825afefe5a981a97b6" on integer constant
arch/x86/mm/ioremap.c:128: error: expected expression before '<<' token
arch/x86/mm/ioremap.c:133:9: error: invalid suffix
"d45b22c079946332bf3825afefe5a981a97b6" on integer constant
arch/x86/mm/ioremap.c:140: error: 'prot' undeclared (first use in this function)
arch/x86/mm/ioremap.c:140: error: (Each undeclared identifier is
reported only once
arch/x86/mm/ioremap.c:140: error: for each function it appears in.)
make[1]: *** [arch/x86/mm/ioremap.o] Error 1

And issuing another "git pull" I got: the following message:

You are in the middle of a conflicted merge.


Please enlighten me here...thanks.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Compilation errors
@ 1999-02-03 14:31 Richard Hartensveld
  1999-02-03 17:12 ` Alex deVries
  0 siblings, 1 reply; 13+ messages in thread
From: Richard Hartensveld @ 1999-02-03 14:31 UTC (permalink / raw)
  To: linux@cthulhu.engr.sgi.com

Hi all,

I'm trying to build the latest cvs tree (first kernel i'm trying to
compile locally on this challenge S)

Does anyone know what's going wrong? the same kernel compiles flawlessly
on my linux/x86 system with a crosscompiler.

Down here is the error.


[root@tux linux]# make zImage
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -mcpu=r8000 -mips2
-pipe  -c -o init/main.o init/main.c
/usr/src/linux/include/linux/sched.h: In function `on_sig_stack':
In file included from /usr/src/linux/include/linux/mm.h:4,
                 from /usr/src/linux/include/linux/slab.h:14,
                 from /usr/src/linux/include/linux/malloc.h:4,
                 from /usr/src/linux/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/src/linux/include/linux/sched.h:528: `current' undeclared (first
use this function)
/usr/src/linux/include/linux/sched.h:528: (Each undeclared identifier is
reported only once
/usr/src/linux/include/linux/sched.h:528: for each function it appears
in.)
/usr/src/linux/include/linux/sched.h:530: warning: control reaches end
of non-void function
/usr/src/linux/include/linux/sched.h: In function `sas_ss_flags':
/usr/src/linux/include/linux/sched.h:534: `current' undeclared (first
use this function)
/usr/src/linux/include/linux/sched.h:536: warning: control reaches end
of non-void function
/usr/src/linux/include/linux/sched.h: In function `suser':
/usr/src/linux/include/linux/sched.h:561: `current' undeclared (first
use this function)
/usr/src/linux/include/linux/sched.h: In function `fsuser':
/usr/src/linux/include/linux/sched.h:570: `current' undeclared (first
use this function)
/usr/src/linux/include/linux/sched.h: In function `capable':
/usr/src/linux/include/linux/sched.h:586: `current' undeclared (first
use this function)
/usr/src/linux/include/linux/mm.h: In function `expand_stack':
In file included from /usr/src/linux/include/linux/slab.h:14,
                 from /usr/src/linux/include/linux/malloc.h:4,
                 from /usr/src/linux/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/src/linux/include/linux/mm.h:349: `current' undeclared (first use
this function)
init/main.c: In function `do_basic_setup':
init/main.c:1242: `current' undeclared (first use this function)
make: *** [init/main.o] Error 1


Cheers,

Richard

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-04-01 17:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-01 11:21 compilation errors Jean-Francois Moine
  -- strict thread matches above, loose matches on Subject: below --
2022-04-01  9:35 Compilation errors Fabio M. De Francesco
2022-04-01 10:13 ` Stefano Brivio
2022-04-01 12:01   ` Fabio M. De Francesco
2022-04-01 12:57     ` Stefano Brivio
2022-04-01 13:07       ` Fabio M. De Francesco
2022-04-01 16:09         ` Alison Schofield
2022-04-01 17:58           ` Fabio M. De Francesco
2022-04-01 14:39       ` Fabio M. De Francesco
2008-02-05  2:59 Peter Teoh
1999-02-03 14:31 Richard Hartensveld
1999-02-03 17:12 ` Alex deVries
1999-02-03 20:43   ` Ulf Carlsson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.