Comments (4)
That sounds like you're using the wrong kernel version with the repository.
Which branch and which kernel?
On Tue, Aug 23, 2016 at 8:20 AM, harriss95 [email protected] wrote:
In file included from include/linux/spinlock.h:406:0,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/sched.h:19,
from arch/riscv/kernel/asm-offsets.c:2:
include/linux/atomic.h: In function 'atomic_andnot':
include/linux/atomic.h:464:2: error: implicit declaration of function
'atomic_and' [-Werror=implicit-function-declaration]
atomic_and(~i, v);
^~~~~~~~~~
include/linux/atomic.h: At top level:
include/linux/atomic.h:468:33: error: redefinition of 'atomic_clear_mask'
static inline __deprecated void atomic_clear_mask(unsigned int mask,
atomic_t*v) ^~~~~~~~~~~~~~~~~ In file included from include/linux/atomic.h:4:0,
from include/linux/spinlock.h:406, from include/linux/seqlock.h:35, from
include/linux/time.h:5, from include/uapi/linux/timex.h:56, from
include/linux/timex.h:56, from include/linux/sched.h:19, from
arch/riscv/kernel/asm-offsets.c:2:
./arch/riscv/include/asm/atomic.h:224:20: note: previous definition of
'atomic_clear_mask' was here static inline void atomic_clear_mask(unsigned
int mask, atomic_t *v) ^~~~~~~~~~~~~~~~~ In file included from
include/linux/spinlock.h:406:0, from include/linux/seqlock.h:35, from
include/linux/time.h:5, from include/uapi/linux/timex.h:56, from
include/linux/timex.h:56, from include/linux/sched.h:19, from
arch/riscv/kernel/asm-offsets.c:2: include/linux/atomic.h:473:33: error:
redefinition of 'atomic_set_mask' static inline __deprecated void
atomic_set_mask(unsigned int mask, atomic_t *v) ^~~~~~~~~~~~~~~ In file
included from include/linux/atomic.h:4:0, from
include/linux/spinlock.h:406, from include/linux/seqlock.h:35, from
include/linux/time.h:5, from include/uapi/linux/timex.h:56, from
include/linux/timex.h:56, from include/linux/sched.h:19, from
arch/riscv/kernel/asm-offsets.c:2:
./arch/riscv/include/asm/atomic.h:239:20: note: previous definition of
'atomic_set_mask' was here static inline void atomic_set_mask(unsigned int
mask, atomic_t *v) ^~~~~~~~~~~~~~~ In file included from
include/linux/spinlock.h:406:0, from include/linux/seqlock.h:35, from
include/linux/time.h:5, from include/uapi/linux/timex.h:56, from
include/linux/timex.h:56, from include/linux/sched.h:19, from
arch/riscv/kernel/asm-offsets.c:2: include/linux/atomic.h: In function
'atomic_set_mask': include/linux/atomic.h:475:2: error: implicit
declaration of function 'atomic_or' [-Werror=implicit-function-declaration]
atomic_or(mask, v); ^~~~~~~~~ include/linux/atomic.h: In function
'atomic64_andnot': include/linux/atomic.h:589:2: error: implicit
declaration of function 'atomic64_and'
[-Werror=implicit-function-declaration] atomic64_and(~i, v); ^~~~~~~~~~~~
In file included from include/linux/atomic.h:593:0, from
include/linux/spinlock.h:406, from include/linux/seqlock.h:35, from
include/linux/time.h:5, from include/uapi/linux/timex.h:56, from
include/linux/timex.h:56, from include/linux/sched.h:19, from
arch/riscv/kernel/asm-offsets.c:2: include/asm-generic/atomic-long.h: In
function 'atomic_long_or': include/asm-generic/atomic-long.h:26:28: error:
implicit declaration of function 'atomic64_or'
[-Werror=implicit-function-declaration] #define ATOMIC_LONG_PFX(x) atomic64x ^ include/asm-generic/atomic-long.h:121:2: note: in expansion of macro
'ATOMIC_LONG_PFX' ATOMIC_LONG_PFX(##op)(i, v); \ ^~~~~~~~~~~~~~~
include/asm-generic/atomic-long.h:127:1: note: in expansion of macro
'ATOMIC_LONG_OP' ATOMIC_LONG_OP(or) ^~~~~~~~~~~~~~
include/asm-generic/atomic-long.h: In function 'atomic_long_xor':
include/asm-generic/atomic-long.h:26:28: error: implicit declaration of
function 'atomic64_xor' [-Werror=implicit-function-declaration] #define
ATOMIC_LONG_PFX(x) atomic64 ## x ^ include/asm-generic/atomic-long.h:121:2:
note: in expansion of macro 'ATOMIC_LONG_PFX' ATOMIC_LONG_PFX(##op)(i, v);
\ ^~~~~~~~~~~~~~~ include/asm-generic/atomic-long.h:128:1: note: in
expansion of macro 'ATOMIC_LONG_OP' ATOMIC_LONG_OP(xor) ^~~~~~~~~~~~~~ cc1:
some warnings being treated as errors Kbuild:80: recipe for target
'arch/riscv/kernel/asm-offsets.s' failed make[1]: ***
[arch/riscv/kernel/asm-offsets.s] Error 1
Makefile:1006: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#39, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABDPisG-sMpXDd2ggnSl1j1w9PRkmuf0ks5qiw_XgaJpZM4JrDMb
.
from riscv-linux.
im using 4.6.2 and priv-1.9 branch
from riscv-linux.
Please run:
curl -L https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.6.2.tar.xz |
tar -xJ
cd linux-4.6.2
git init
git remote add -t priv-1.9 origin https://github.com/riscv/riscv-linux.git
git fetch
git checkout -f -t origin/priv-1.9
make ARCH=riscv defconfig
make ARCH=riscv
... because I cannot reproduce this problem with 4.6.2. Does the problem
persist?
On Tue, Aug 23, 2016 at 4:16 PM, harriss95 [email protected] wrote:
im using 4.6.2 and priv-1.9 branch
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#39 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABDPiphedOwOakjPYLDX4e6dDd9Hya3mks5qi381gaJpZM4JrDMb
.
from riscv-linux.
Problem solved . Thank you
closing the issue
from riscv-linux.
Related Issues (20)
- Build fails with lack of auto-generated headers HOT 6
- what branch or tag is suitable for riscv-qemu HOT 2
- Documentation/riscv HOT 1
- CONFIG_NO_HZ=y possibly broken HOT 8
- WARNING: CPU: 0 PID: 0 at drivers/irqchip/irq-riscv-intc.c:158 irq_enable+0x32/0x58 HOT 4
- I can't do "make ARCH=riscv". HOT 2
- Asking for help! Error in execution of compiled : $Top/riscv-tools/lib/gcc/riscv64-unknown-elf/7.2.0/../../../../riscv64-unknown-elf/bin/ld:unsupported -shared HOT 3
- linker issue undefined reference to __lshrti3 HOT 9
- patch for PTRACE_SETREGSET bug HOT 4
- Linux Ash Shell issue
- icache not flushed correctly HOT 8
- riscv-linux compile issue in branch riscv-all HOT 1
- Stopping lo interface Oops HOT 2
- unknown architecture riscv. HOT 1
- GPIO & PWM spec for Unleashed HOT 2
- perf_tools support
- What instruction sets do I need to run Linux on my own risc-v CPU? HOT 7
- Any plan for upstreaming DMA32? HOT 2
- Kernel errors on loading modules
- Are there any substantial differences between this repo and upstream? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from riscv-linux.